upgrade to esm from @std/esm
parent
4651fd4c2d
commit
8484afd335
|
@ -3,3 +3,4 @@
|
|||
/syncd/
|
||||
*.log
|
||||
/temp/
|
||||
*.lock
|
||||
|
|
13
package.json
13
package.json
|
@ -1,14 +1,14 @@
|
|||
{
|
||||
"name": "@uci/websocket",
|
||||
"version": "0.1.5",
|
||||
"version": "0.1.6",
|
||||
"description": "JSON packet host websocket server",
|
||||
"main": "src",
|
||||
"scripts": {
|
||||
"testw": "mocha -r @std/esm test/*.test.mjs --watch --recurse --watch-extensions mjs",
|
||||
"test": "mocha -r @std/esm --timeout 10000 test/*.test.mjs",
|
||||
"testlog": "DEBUG=true mocha -r @std/esm --timeout 10000 test/*.test.mjs",
|
||||
"testw": "mocha -r esm test/*.test.mjs --watch --recurse",
|
||||
"test": "mocha -r esm --timeout 10000 test/*.test.mjs",
|
||||
"testlog": "DEBUG=true mocha -r esm --timeout 10000 test/*.test.mjs",
|
||||
"testci": "istanbul cover ./node_modules/.bin/_mocha --report lcovonly -- -R spec --recursive && codecov || true",
|
||||
"s": "DEBUG=true node -r @std/esm examples/server"
|
||||
"s": "DEBUG=true node -r esm examples/server"
|
||||
},
|
||||
"author": "David Kebler",
|
||||
"license": "MIT",
|
||||
|
@ -31,12 +31,11 @@
|
|||
"url": "https://github.com/uCOMmandIt/websocket/issues"
|
||||
},
|
||||
"homepage": "https://github.com/uCOMmandIt/websocket#readme",
|
||||
"@std/esm": "cjs",
|
||||
"devDependencies": {
|
||||
"@std/esm": "^0.22.0",
|
||||
"chai": "^4.1.2",
|
||||
"chai-as-promised": "^7.1.1",
|
||||
"codecov": "^3.0.0",
|
||||
"esm": "^3.0.21",
|
||||
"istanbul": "^0.4.5",
|
||||
"mocha": "^5.0.1",
|
||||
"nodemon": "^1.15.1"
|
||||
|
|
|
@ -17,15 +17,7 @@ export default class Socket extends WebSocket.Server {
|
|||
//self bindings
|
||||
this._listen = this._listen.bind(this)
|
||||
this.create = this.create.bind(this)
|
||||
log = logger.child(
|
||||
{
|
||||
repo:'uci-websocket',
|
||||
npm:'@uci/websocket',
|
||||
file:'src/socket.mjs',
|
||||
class:'Socket',
|
||||
id:this.id,
|
||||
instance_created:new Date().getTime()
|
||||
})
|
||||
log = logger({file:'src/socket.js',class:'Socket',name:'websocket',id:this.id})
|
||||
|
||||
} // end constructor
|
||||
|
Loading…
Reference in New Issue