Skip to content

Commit

Permalink
Switch to sailshq/lodash which patched security vulnerabilities and a…
Browse files Browse the repository at this point in the history
…dd milliseconds to dates (#1)

* Fix date milliseconds and switch to sailshq/lodash

* switch version
  • Loading branch information
barryhammen authored Jan 13, 2021
1 parent d8f1bf9 commit b1374f4
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "waterline-sequel",
"description": "A helper library for generating SQL queries from the Waterline Query Language.",
"version": "0.6.4",
"version": "0.6.4-immuta1",
"author": "Cody Stoltman <particlebanana@gmail.com>",
"url": "http://github.com/balderdashy/waterline-sequel",
"keywords": [],
Expand All @@ -10,7 +10,7 @@
"url": "git://github.com/balderdashy/waterline-sequel.git"
},
"dependencies": {
"lodash": "3.10.1"
"@sailshq/lodash": "^3.10.4"
},
"devDependencies": {
"async": "2.0.1",
Expand Down
2 changes: 1 addition & 1 deletion sequel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Module dependencies
*/

var _ = require('lodash');
var _ = require('@sailshq/lodash');

var SelectBuilder = require('./select');
var WhereBuilder = require('./where');
Expand Down
2 changes: 1 addition & 1 deletion sequel/lib/criteriaProcessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Module dependencies
*/

var _ = require('lodash');
var _ = require('@sailshq/lodash');
var utils = require('./utils');
var hop = utils.object.hasOwnProperty;
var operators = [
Expand Down
4 changes: 2 additions & 2 deletions sequel/lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Helper functions
*/

var _ = require('lodash');
var _ = require('@sailshq/lodash');

// Module Exports

Expand Down Expand Up @@ -177,5 +177,5 @@ utils.escapeString = function(value, forLike) {
*/

utils.toSqlDate = function(date) {
return date.toUTCString();
return date.toISOString();
};
2 changes: 1 addition & 1 deletion sequel/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Module dependencies
*/

var _ = require('lodash');
var _ = require('@sailshq/lodash');
var utils = require('./lib/utils');
var hop = utils.object.hasOwnProperty;

Expand Down
2 changes: 1 addition & 1 deletion sequel/where.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Module dependecies
*/

var _ = require('lodash');
var _ = require('@sailshq/lodash');
var CriteriaParser = require('./lib/criteriaProcessor');
var utils = require('./lib/utils');
var hop = utils.object.hasOwnProperty;
Expand Down
2 changes: 1 addition & 1 deletion test/unit/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var assert = require('chai').assert,
Sequel = require('../../sequel'),
schema = require('../schema'),
options = require('../options'),
_ = require('lodash'),
_ = require('@sailshq/lodash'),
queries = require('../queries');
schemaQueries = require('../schemaQueries');

Expand Down

0 comments on commit b1374f4

Please sign in to comment.