db-migrate 1.0.0-beta.20 → 1.0.0-beta.21

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/learn.js +1 -1
  2. package/package.json +10 -8
package/lib/learn.js CHANGED
@@ -8,7 +8,7 @@ class STD {
8
8
  throw new Error(`There is no ${t} table in schema!`);
9
9
  }
10
10
 
11
- if (!this.schema[t][c] && !this.schema[t].columns[c]) {
11
+ if (!this.schema[t][c] && !this.schema[t].columns?.[c]) {
12
12
  throw new Error(`There is no ${c} column in schema!`);
13
13
  }
14
14
  };
package/package.json CHANGED
@@ -31,7 +31,7 @@
31
31
  "programable",
32
32
  "api"
33
33
  ],
34
- "version": "1.0.0-beta.20",
34
+ "version": "1.0.0-beta.21",
35
35
  "engines": {
36
36
  "node": ">=8.0.0"
37
37
  },
@@ -44,7 +44,7 @@
44
44
  "url": "https://github.com/db-migrate/node-db-migrate.git"
45
45
  },
46
46
  "dependencies": {
47
- "bluebird": "^3.1.1",
47
+ "bluebird": "^3.7.2",
48
48
  "db-migrate-shared": "^1.2.0",
49
49
  "deep-extend": "^0.6.0",
50
50
  "dotenv": "^5.0.1",
@@ -59,17 +59,19 @@
59
59
  "yargs": "^17.5.1"
60
60
  },
61
61
  "devDependencies": {
62
- "@hapi/code": "5.x",
63
- "@hapi/lab": "18.x",
62
+ "@babel/eslint-parser": "^7.21.8",
63
+ "@hapi/code": "9.x",
64
+ "@hapi/eslint-plugin": "^6.0.0",
65
+ "@hapi/lab": "25.x",
64
66
  "db-migrate-base": "^2.1.1",
65
67
  "db-migrate-mysql": "^2.1.1",
66
68
  "db-migrate-sqlite3": "^0.4.0",
67
- "eslint": "^6.8.0",
69
+ "eslint": "^7.32.0",
68
70
  "eslint-config-standard": "^14.1.1",
69
- "eslint-plugin-import": "^2.20.2",
71
+ "eslint-plugin-import": "^2.26.0",
70
72
  "eslint-plugin-node": "^11.1.0",
71
- "eslint-plugin-promise": "^4.2.1",
72
- "eslint-plugin-standard": "^4.0.1",
73
+ "eslint-plugin-promise": "^4.3.1",
74
+ "eslint-plugin-standard": "^4.1.0",
73
75
  "proxyquire": "^1.4.0",
74
76
  "rimraf": "^3.0.2",
75
77
  "sinon": "^9.0.2"