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

derby

Package Overview
Dependencies
Maintainers
6
Versions
213
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

derby - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

test/all/App.mocha.js

20

lib/App.js

@@ -63,3 +63,3 @@ /*

var script = this._getScript();
var data = JSON.parse(script.nextSibling.innerHTML);
var data = App._parseInitialData(script.nextSibling.innerHTML);
this.model.createConnection(data);

@@ -362,1 +362,19 @@ this.emit('model', this.model);

};
App._parseInitialData = function _parseInitialData(jsonString) {
try {
return JSON.parse(jsonString);
} catch (error) {
var message = error.message || '';
var match = message.match(/Unexpected token (.) in JSON at position (\d+)/);
if (match) {
var p = parseInt(match[2], 10);
var stringContext = jsonString.substring(
Math.min(0, p - 30),
Math.max(p + 30, jsonString.length - 1)
);
throw new Error('Parse failure: ' + error.message + ' context: \'' + stringContext + '\'');
}
throw error;
}
};

2

package.json
{
"name": "derby",
"description": "MVC framework making it easy to write realtime, collaborative applications that run in both Node.js and browsers.",
"version": "1.0.0",
"version": "1.0.1",
"homepage": "http://derbyjs.com/",

@@ -6,0 +6,0 @@ "repository": {

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