think-model-sqlite 1.2.1 → 1.3.0

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.
Files changed (2) hide show
  1. package/lib/parser.js +1 -1
  2. package/package.json +5 -5
package/lib/parser.js CHANGED
@@ -153,7 +153,7 @@ module.exports = class SQLiteParser extends Parser {
153
153
  parseKey(key) {
154
154
  if (!/^\w+$/.test(key)) return key;
155
155
  const keyUpperCase = key.toUpperCase();
156
- if (keywords.indexOf(keyUpperCase) > -1) return `"${key}"`;
156
+ if (keywords.indexOf(keyUpperCase) > -1 || /^\d/.test(key)) return `"${key}"`;
157
157
  return key;
158
158
  }
159
159
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "think-model-sqlite",
3
- "version": "1.2.1",
3
+ "version": "1.3.0",
4
4
  "description": "SQLite adapter for ThinkJS 3.x",
5
5
  "scripts": {
6
6
  "test": "npm run eslint && npm run test-cov",
@@ -27,11 +27,11 @@
27
27
  "homepage": "https://github.com/thinkjs/think-model-sqlite#readme",
28
28
  "dependencies": {
29
29
  "generic-pool": "^3.1.7",
30
- "sqlite3": "^4.0.9",
30
+ "sqlite3": "^5.0.11",
31
31
  "think-debounce": "^1.0.3",
32
- "think-helper": "^1.0.5",
33
- "think-instance": "^1.0.1",
34
- "think-model-abstract": "^1.0.0"
32
+ "think-helper": "^1.1.3",
33
+ "think-instance": "^1.0.2",
34
+ "think-model-abstract": "^1.6.5"
35
35
  },
36
36
  "devDependencies": {
37
37
  "ava": "^0.19.1",