Revert "Changements dans les modules (nouvelle version Express, mysql, ..)"
This reverts commit bdab795506.
This commit is contained in:
10
node_modules/sqlstring/HISTORY.md
generated
vendored
10
node_modules/sqlstring/HISTORY.md
generated
vendored
@@ -1,13 +1,3 @@
|
||||
2.3.3 / 2022-03-06
|
||||
==================
|
||||
|
||||
* Fix escaping `Date` objects from foreign isolates
|
||||
|
||||
2.3.2 / 2020-04-15
|
||||
==================
|
||||
|
||||
* perf: remove outdated array pattern
|
||||
|
||||
2.3.1 / 2018-02-24
|
||||
==================
|
||||
|
||||
|
||||
7
node_modules/sqlstring/README.md
generated
vendored
7
node_modules/sqlstring/README.md
generated
vendored
@@ -3,7 +3,7 @@
|
||||
[![NPM Version][npm-version-image]][npm-url]
|
||||
[![NPM Downloads][npm-downloads-image]][npm-url]
|
||||
[![Node.js Version][node-image]][node-url]
|
||||
[![Build Status][github-actions-ci-image]][github-actions-ci-url]
|
||||
[![Build Status][travis-image]][travis-url]
|
||||
[![Coverage Status][coveralls-image]][coveralls-url]
|
||||
|
||||
Simple SQL escape and format for MySQL
|
||||
@@ -16,6 +16,7 @@ $ npm install sqlstring
|
||||
|
||||
## Usage
|
||||
|
||||
<!-- eslint-disable no-unused-vars -->
|
||||
|
||||
```js
|
||||
var SqlString = require('sqlstring');
|
||||
@@ -197,9 +198,9 @@ console.log(sql); // UPDATE `users` SET `email` = 'foobar@example.com', `modifie
|
||||
[npm-version-image]: https://img.shields.io/npm/v/sqlstring.svg
|
||||
[npm-downloads-image]: https://img.shields.io/npm/dm/sqlstring.svg
|
||||
[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
|
||||
|
||||
4
node_modules/sqlstring/lib/SqlString.js
generated
vendored
4
node_modules/sqlstring/lib/SqlString.js
generated
vendored
@@ -40,7 +40,7 @@ SqlString.escape = function escape(val, stringifyObjects, timeZone) {
|
||||
case 'boolean': return (val) ? 'true' : 'false';
|
||||
case 'number': return val + '';
|
||||
case 'object':
|
||||
if (Object.prototype.toString.call(val) === '[object Date]') {
|
||||
if (val instanceof Date) {
|
||||
return SqlString.dateToString(val, timeZone || 'local');
|
||||
} else if (Array.isArray(val)) {
|
||||
return SqlString.arrayToList(val, timeZone);
|
||||
@@ -78,7 +78,7 @@ SqlString.format = function format(sql, values, stringifyObjects, timeZone) {
|
||||
return sql;
|
||||
}
|
||||
|
||||
if (!Array.isArray(values)) {
|
||||
if (!(values instanceof Array || Array.isArray(values))) {
|
||||
values = [values];
|
||||
}
|
||||
|
||||
|
||||
12
node_modules/sqlstring/package.json
generated
vendored
12
node_modules/sqlstring/package.json
generated
vendored
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "sqlstring",
|
||||
"description": "Simple SQL escape and format for MySQL",
|
||||
"version": "2.3.3",
|
||||
"version": "2.3.1",
|
||||
"contributors": [
|
||||
"Adri Van Houdt <adri.van.houdt@gmail.com>",
|
||||
"Douglas Christopher Wilson <doug@somethingdoug.com>",
|
||||
@@ -21,9 +21,9 @@
|
||||
"devDependencies": {
|
||||
"beautify-benchmark": "0.2.4",
|
||||
"benchmark": "2.1.4",
|
||||
"eslint": "7.32.0",
|
||||
"eslint-plugin-markdown": "2.2.1",
|
||||
"nyc": "15.1.0",
|
||||
"eslint": "4.18.1",
|
||||
"eslint-plugin-markdown": "1.0.0-beta.6",
|
||||
"nyc": "10.3.2",
|
||||
"urun": "0.0.8",
|
||||
"utest": "0.0.8"
|
||||
},
|
||||
@@ -39,9 +39,9 @@
|
||||
},
|
||||
"scripts": {
|
||||
"bench": "node benchmark/index.js",
|
||||
"lint": "eslint .",
|
||||
"lint": "eslint --plugin markdown --ext js,md .",
|
||||
"test": "node test/run.js",
|
||||
"test-ci": "nyc --reporter=lcovonly --reporter=text npm test",
|
||||
"test-ci": "nyc --reporter=text npm test",
|
||||
"test-cov": "nyc --reporter=html --reporter=text npm test"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user