Comparing version 2.3.2 to 2.3.3
@@ -0,1 +1,6 @@ | ||
2.3.3 / 2022-03-06 | ||
================== | ||
* Fix escaping `Date` objects from foreign isolates | ||
2.3.2 / 2020-04-15 | ||
@@ -2,0 +7,0 @@ ================== |
@@ -43,3 +43,3 @@ var SqlString = exports; | ||
case 'object': | ||
if (val instanceof Date) { | ||
if (Object.prototype.toString.call(val) === '[object Date]') { | ||
return SqlString.dateToString(val, timeZone || 'local'); | ||
@@ -46,0 +46,0 @@ } else if (Array.isArray(val)) { |
{ | ||
"name": "sqlstring", | ||
"description": "Simple SQL escape and format for MySQL", | ||
"version": "2.3.2", | ||
"version": "2.3.3", | ||
"contributors": [ | ||
@@ -24,5 +24,5 @@ "Adri Van Houdt <adri.van.houdt@gmail.com>", | ||
"benchmark": "2.1.4", | ||
"eslint": "5.16.0", | ||
"eslint-plugin-markdown": "1.0.2", | ||
"nyc": "15.0.0", | ||
"eslint": "7.32.0", | ||
"eslint-plugin-markdown": "2.2.1", | ||
"nyc": "15.1.0", | ||
"urun": "0.0.8", | ||
@@ -43,7 +43,7 @@ "utest": "0.0.8" | ||
"bench": "node benchmark/index.js", | ||
"lint": "eslint --plugin markdown --ext js,md .", | ||
"lint": "eslint .", | ||
"test": "node test/run.js", | ||
"test-ci": "nyc --reporter=text npm test", | ||
"test-ci": "nyc --reporter=lcovonly --reporter=text npm test", | ||
"test-cov": "nyc --reporter=html --reporter=text npm test" | ||
} | ||
} |
@@ -6,3 +6,3 @@ # sqlstring | ||
[![Node.js Version][node-image]][node-url] | ||
[![Build Status][travis-image]][travis-url] | ||
[![Build Status][github-actions-ci-image]][github-actions-ci-url] | ||
[![Coverage Status][coveralls-image]][coveralls-url] | ||
@@ -20,3 +20,2 @@ | ||
<!-- eslint-disable no-undef, no-unused-vars --> | ||
@@ -37,4 +36,2 @@ ```js | ||
<!-- eslint-disable no-undef --> | ||
```js | ||
@@ -49,4 +46,2 @@ var userId = 'some user provided value'; | ||
<!-- eslint-disable no-undef --> | ||
```js | ||
@@ -62,4 +57,2 @@ var userId = 1; | ||
<!-- eslint-disable no-undef --> | ||
```js | ||
@@ -101,4 +94,2 @@ var userId = 1; | ||
<!-- eslint-disable no-undef --> | ||
```js | ||
@@ -112,4 +103,2 @@ var post = {id: 1, title: 'Hello MySQL'}; | ||
<!-- eslint-disable no-undef --> | ||
```js | ||
@@ -128,4 +117,2 @@ var CURRENT_TIMESTAMP = { toSqlString: function() { return 'CURRENT_TIMESTAMP()'; } }; | ||
<!-- eslint-disable no-undef --> | ||
```js | ||
@@ -140,4 +127,2 @@ var CURRENT_TIMESTAMP = SqlString.raw('CURRENT_TIMESTAMP()'); | ||
<!-- eslint-disable no-undef --> | ||
```js | ||
@@ -153,4 +138,2 @@ var sql = 'SELECT * FROM posts WHERE title=' + SqlString.escape('Hello MySQL'); | ||
<!-- eslint-disable no-undef --> | ||
```js | ||
@@ -164,4 +147,2 @@ var sorter = 'date'; | ||
<!-- eslint-disable no-undef --> | ||
```js | ||
@@ -176,4 +157,2 @@ var sorter = 'date'; | ||
<!-- eslint-disable no-undef --> | ||
```js | ||
@@ -188,4 +167,2 @@ var sorter = 'date.2'; | ||
<!-- eslint-disable no-undef --> | ||
```js | ||
@@ -206,4 +183,2 @@ var userId = 1; | ||
<!-- eslint-disable no-undef --> | ||
```js | ||
@@ -225,4 +200,2 @@ var userId = 1; | ||
<!-- eslint-disable no-undef --> | ||
```js | ||
@@ -242,7 +215,7 @@ var userId = 1; | ||
[npm-url]: https://npmjs.org/package/sqlstring | ||
[travis-image]: https://img.shields.io/travis/mysqljs/sqlstring/master.svg | ||
[travis-url]: https://travis-ci.org/mysqljs/sqlstring | ||
[coveralls-image]: https://img.shields.io/coveralls/mysqljs/sqlstring/master.svg | ||
[coveralls-url]: https://coveralls.io/r/mysqljs/sqlstring?branch=master | ||
[github-actions-ci-image]: https://img.shields.io/github/workflow/status/mysqljs/sqlstring/ci/master?label=build | ||
[github-actions-ci-url]: https://github.com/mysqljs/sqlstring/actions/workflows/ci.yml | ||
[node-image]: https://img.shields.io/node/v/sqlstring.svg | ||
[node-url]: https://nodejs.org/en/download |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17255
206