joist-migration-utils 1.294.0 → 2.0.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.
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +3 -2
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.d.ts
CHANGED
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AAExB,wBAAsB,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAQlD"}
|
package/build/index.js
CHANGED
|
@@ -14,12 +14,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.joistMigrate = joistMigrate;
|
|
17
18
|
const joist_utils_1 = require("joist-utils");
|
|
18
19
|
const pg_1 = require("pg");
|
|
19
20
|
const migrate_1 = require("./migrate");
|
|
20
21
|
__exportStar(require("./migrate"), exports);
|
|
21
22
|
__exportStar(require("./utils"), exports);
|
|
22
|
-
async function
|
|
23
|
+
async function joistMigrate() {
|
|
23
24
|
const client = new pg_1.Client((0, joist_utils_1.newPgConnectionConfig)());
|
|
24
25
|
await client.connect();
|
|
25
26
|
try {
|
|
@@ -34,7 +35,7 @@ if (require.main === module) {
|
|
|
34
35
|
if (Object.fromEntries === undefined) {
|
|
35
36
|
throw new Error("Joist requires Node v12.4.0+");
|
|
36
37
|
}
|
|
37
|
-
|
|
38
|
+
joistMigrate().catch((err) => {
|
|
38
39
|
console.error(err);
|
|
39
40
|
process.exit(1);
|
|
40
41
|
});
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAOA,oCAQC;AAfD,6CAAoD;AACpD,2BAA4B;AAC5B,uCAAkD;AAElD,4CAA0B;AAC1B,0CAAwB;AAEjB,KAAK,UAAU,YAAY;IAChC,MAAM,MAAM,GAAG,IAAI,WAAM,CAAC,IAAA,mCAAqB,GAAE,CAAC,CAAC;IACnD,MAAM,MAAM,CAAC,OAAO,EAAE,CAAC;IACvB,IAAI,CAAC;QACH,MAAM,IAAA,+BAAqB,EAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IACtD,CAAC;YAAS,CAAC;QACT,MAAM,MAAM,CAAC,GAAG,EAAE,CAAC;IACrB,CAAC;AACH,CAAC;AAED,8BAA8B;AAC9B,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;IAC5B,IAAI,MAAM,CAAC,WAAW,KAAK,SAAS,EAAE,CAAC;QACrC,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;IAClD,CAAC;IACD,YAAY,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;QAC3B,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACnB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "joist-migration-utils",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@types/pluralize": "^0.0.33",
|
|
20
|
-
"joist-utils": "
|
|
20
|
+
"joist-utils": "2.0.0",
|
|
21
21
|
"node-pg-migrate": "^8.0.4",
|
|
22
22
|
"pg": "^8.16.3",
|
|
23
23
|
"pg-structure": "^7.15.3",
|