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

cassandra-orm

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cassandra-orm - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

18

lib/Schema.js

@@ -133,16 +133,9 @@ var clss = require('clss');

case 'RegExp':
case 'Function': return "'" + escape(value.toString()) + "'";
case 'Function': return "'" + value.toString().replace("'", "''") + "'";
case 'Array': if (!value) value = []; break;
}
value = escape(value);
default:
if (typeof value === 'string') {
value = escape(value);
}
}
return "'" + JSON.stringify(value || '') + "'";
return "'" + JSON.stringify(value || '').replace("'", "''") + "'";
};

@@ -168,3 +161,3 @@

case 'RegExp':
case 'Function': return eval(unescape(value));
case 'Function': return eval(value.replace("''", "'"));

@@ -176,7 +169,4 @@ case 'Array': if (!value) value = []; break;

try {
value = value.replace("''", "'");
value = JSON.parse(value);
if (typeof value === 'string') {
value = escape(value);
}
} catch (err) {}

@@ -183,0 +173,0 @@

@@ -6,3 +6,3 @@ {

"license": "",
"version": "0.0.11",
"version": "0.0.12",
"repository": "",

@@ -9,0 +9,0 @@ "description": "",

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