velocious 1.0.17 → 1.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "velocious": "bin/velocious.js"
4
4
  },
5
5
  "name": "velocious",
6
- "version": "1.0.17",
6
+ "version": "1.0.19",
7
7
  "main": "index.js",
8
8
  "scripts": {
9
9
  "test": "jasmine",
@@ -38,7 +38,6 @@
38
38
  "incorporator": "^1.0.2",
39
39
  "inflection": "^3.0.0",
40
40
  "sql-escape-string": "^1.1.0",
41
- "sql-string-escape": "^1.1.6",
42
41
  "sql.js": "^1.12.0",
43
42
  "strftime": "^0.10.2"
44
43
  }
@@ -5,7 +5,7 @@ import Base from "../base.js"
5
5
  import CreateIndex from "../sqlite/sql/create-index.js"
6
6
  import CreateTable from "../sqlite/sql/create-table.js"
7
7
  import Delete from "../sqlite/sql/delete.js"
8
- import escapeString from "sql-string-escape"
8
+ import escapeString from "sql-escape-string"
9
9
  import Insert from "../sqlite/sql/insert.js"
10
10
  import Options from "../sqlite/options.js"
11
11
  import QueryParser from "../sqlite/query-parser.js"
@@ -493,6 +493,10 @@ export default class VelociousDatabaseRecord {
493
493
  return this._newQuery().preload(...args)
494
494
  }
495
495
 
496
+ static toArray(...args) {
497
+ return this._newQuery().toArray(...args)
498
+ }
499
+
496
500
  static where(...args) {
497
501
  return this._newQuery().where(...args)
498
502
  }