use 0.3.0-beta.5 remix-plugin

pull/3094/head
yann300 4 years ago
parent 420bb732b2
commit 37fe827794
  1. 3911
      package-lock.json
  2. 6
      package.json
  3. 4
      src/websocket.ts
  4. 2
      tsconfig.json

3911
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -32,8 +32,10 @@
}, },
"homepage": "https://github.com/ethereum/remixd#readme", "homepage": "https://github.com/ethereum/remixd#readme",
"dependencies": { "dependencies": {
"@remixproject/plugin": "^0.3.0-alpha.8", "@remixproject/plugin": "0.3.0-beta.5",
"@remixproject/plugin-ws": "^0.3.0-alpha.4", "@remixproject/plugin-ws": "0.3.0-beta.5",
"@remixproject/plugin-api": "0.3.0-beta.5",
"@remixproject/plugin-utils": "0.3.0-beta.5",
"chokidar": "^2.1.8", "chokidar": "^2.1.8",
"commander": "^2.20.3", "commander": "^2.20.3",
"fs-extra": "^3.0.1", "fs-extra": "^3.0.1",

@ -2,7 +2,7 @@ import * as WS from 'ws'
import * as http from 'http' import * as http from 'http'
import { WebsocketOpt, SharedFolderClient } from '../types' import { WebsocketOpt, SharedFolderClient } from '../types'
const { buildWebsocketClient } = require('@remixproject/plugin-ws') const { createClient } = require('@remixproject/plugin-ws')
export default class WebSocket { export default class WebSocket {
server: http.Server server: http.Server
@ -37,7 +37,7 @@ export default class WebSocket {
const { sharedFolder } = this const { sharedFolder } = this
this.connection = ws this.connection = ws
buildWebsocketClient(ws, sharedFolder) createClient(ws, sharedFolder)
if(callback) callback(ws) if(callback) callback(ws)
}) })
} }

@ -1,7 +1,7 @@
{ {
"compilerOptions": { "compilerOptions": {
/* Basic Options */ /* Basic Options */
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ "target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
"declaration": true, /* Generates corresponding '.d.ts' file. */ "declaration": true, /* Generates corresponding '.d.ts' file. */
"outDir": "./lib", "outDir": "./lib",

Loading…
Cancel
Save