Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sqlstring

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sqlstring - npm Package Compare versions

Comparing version 2.3.1 to 2.3.2

5

HISTORY.md

@@ -0,1 +1,6 @@

2.3.2 / 2020-04-15
==================
* perf: remove outdated array pattern
2.3.1 / 2018-02-24

@@ -2,0 +7,0 @@ ==================

2

lib/SqlString.js

@@ -81,3 +81,3 @@ var SqlString = exports;

if (!(values instanceof Array || Array.isArray(values))) {
if (!Array.isArray(values)) {
values = [values];

@@ -84,0 +84,0 @@ }

{
"name": "sqlstring",
"description": "Simple SQL escape and format for MySQL",
"version": "2.3.1",
"version": "2.3.2",
"contributors": [

@@ -24,5 +24,5 @@ "Adri Van Houdt <adri.van.houdt@gmail.com>",

"benchmark": "2.1.4",
"eslint": "4.18.1",
"eslint-plugin-markdown": "1.0.0-beta.6",
"nyc": "10.3.2",
"eslint": "5.16.0",
"eslint-plugin-markdown": "1.0.2",
"nyc": "15.0.0",
"urun": "0.0.8",

@@ -29,0 +29,0 @@ "utest": "0.0.8"

@@ -19,3 +19,3 @@ # sqlstring

<!-- eslint-disable no-unused-vars -->
<!-- eslint-disable no-undef, no-unused-vars -->

@@ -36,2 +36,4 @@ ```js

<!-- eslint-disable no-undef -->
```js

@@ -46,2 +48,4 @@ var userId = 'some user provided value';

<!-- eslint-disable no-undef -->
```js

@@ -57,2 +61,4 @@ var userId = 1;

<!-- eslint-disable no-undef -->
```js

@@ -94,2 +100,4 @@ var userId = 1;

<!-- eslint-disable no-undef -->
```js

@@ -103,2 +111,4 @@ var post = {id: 1, title: 'Hello MySQL'};

<!-- eslint-disable no-undef -->
```js

@@ -117,2 +127,4 @@ var CURRENT_TIMESTAMP = { toSqlString: function() { return 'CURRENT_TIMESTAMP()'; } };

<!-- eslint-disable no-undef -->
```js

@@ -127,2 +139,4 @@ var CURRENT_TIMESTAMP = SqlString.raw('CURRENT_TIMESTAMP()');

<!-- eslint-disable no-undef -->
```js

@@ -138,2 +152,4 @@ var sql = 'SELECT * FROM posts WHERE title=' + SqlString.escape('Hello MySQL');

<!-- eslint-disable no-undef -->
```js

@@ -147,2 +163,4 @@ var sorter = 'date';

<!-- eslint-disable no-undef -->
```js

@@ -157,2 +175,4 @@ var sorter = 'date';

<!-- eslint-disable no-undef -->
```js

@@ -167,2 +187,4 @@ var sorter = 'date.2';

<!-- eslint-disable no-undef -->
```js

@@ -183,2 +205,4 @@ var userId = 1;

<!-- eslint-disable no-undef -->
```js

@@ -200,2 +224,4 @@ var userId = 1;

<!-- eslint-disable no-undef -->
```js

@@ -202,0 +228,0 @@ var userId = 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