New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@graffy/server

Package Overview
Dependencies
Maintainers
1
Versions
226
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graffy/server - npm Package Compare versions

Comparing version 0.15.0 to 0.15.1-alpha.1

9

cjs/wsServer.js

@@ -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 @@ }

8

package.json

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc