@graffy/server
Advanced tools
Comparing version 0.15.0 to 0.15.1-alpha.1
@@ -12,2 +12,7 @@ "use strict"; | ||
var _testing = require("@graffy/testing"); | ||
var _debug = _interopRequireDefault(require("debug")); | ||
const log = (0, _debug.default)('graffy:server:ws'); | ||
const PING_INTERVAL = 30000; | ||
@@ -39,2 +44,4 @@ | ||
} catch (e) { | ||
console.error(e); | ||
log(op + 'error:' + e.message + ' ' + (0, _testing.format)(payload)); | ||
ws.send((0, _common.serialize)([id, e.message])); | ||
@@ -56,2 +63,4 @@ } | ||
} catch (e) { | ||
console.error(e); | ||
log(op + 'error:' + e.message + ' ' + (0, _testing.format)(payload)); | ||
ws.send((0, _common.serialize)([id, e.message])); | ||
@@ -58,0 +67,0 @@ } |
import WebSocket from 'ws'; | ||
import { serialize, deserialize } from '@graffy/common'; | ||
import { format } from '@graffy/testing'; | ||
import debug from 'debug'; | ||
const log = debug('graffy:server:ws'); | ||
const PING_INTERVAL = 30000; | ||
@@ -28,2 +31,4 @@ export default function server(store) { | ||
} catch (e) { | ||
console.error(e); | ||
log(op + 'error:' + e.message + ' ' + format(payload)); | ||
ws.send(serialize([id, e.message])); | ||
@@ -45,2 +50,4 @@ } | ||
} catch (e) { | ||
console.error(e); | ||
log(op + 'error:' + e.message + ' ' + format(payload)); | ||
ws.send(serialize([id, e.message])); | ||
@@ -47,0 +54,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"author": "aravind (https://github.com/aravindet)", | ||
"version": "0.15.0", | ||
"version": "0.15.1-alpha.1", | ||
"main": "./cjs/index.js", | ||
@@ -20,5 +20,7 @@ "exports": { | ||
"@babel/runtime": "^7.10.4", | ||
"@graffy/common": "0.15.0", | ||
"ws": "^7.3.0" | ||
"@graffy/common": "0.15.1-alpha.1", | ||
"ws": "^7.3.0", | ||
"@graffy/testing": "0.15.1-alpha.1", | ||
"debug": "^4.1.1" | ||
} | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
11526
294
0
5
+ Addeddebug@^4.1.1
+ Added@graffy/common@0.15.1-alpha.1(transitive)
+ Added@graffy/stream@0.15.1-alpha.1(transitive)
+ Added@graffy/testing@0.15.1-alpha.1(transitive)
+ Addeddebug@4.4.0(transitive)
+ Addeddom-walk@0.1.2(transitive)
+ Addedglobal@4.4.0(transitive)
+ Addedmin-document@2.19.0(transitive)
+ Addedms@2.1.3(transitive)
+ Addedprocess@0.11.10(transitive)
- Removed@graffy/common@0.15.0(transitive)
- Removed@graffy/stream@0.15.0(transitive)