dbmate 2.29.3 → 2.29.4
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/dist/cli.js +3 -5
- package/dist/cli.js.map +1 -1
- package/dist/index.js +2 -5
- package/dist/index.js.map +1 -1
- package/dist/resolveBinary.js +4 -7
- package/dist/resolveBinary.js.map +1 -1
- package/package.json +9 -8
package/dist/cli.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const resolveBinary_js_1 = require("./resolveBinary.js");
|
|
6
|
-
const child = (0, node_child_process_1.spawnSync)((0, resolveBinary_js_1.resolveBinary)(), process.argv.slice(2), {
|
|
2
|
+
import { spawnSync } from "node:child_process";
|
|
3
|
+
import { resolveBinary } from "./resolveBinary.js";
|
|
4
|
+
const child = spawnSync(resolveBinary(), process.argv.slice(2), {
|
|
7
5
|
stdio: "inherit",
|
|
8
6
|
});
|
|
9
7
|
process.exit(child.status ?? 0);
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,KAAK,GAAG,SAAS,CAAC,aAAa,EAAE,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;IAC9D,KAAK,EAAE,SAAS;CACjB,CAAC,CAAC;AACH,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.resolveBinary = void 0;
|
|
4
|
-
const resolveBinary_js_1 = require("./resolveBinary.js");
|
|
5
|
-
Object.defineProperty(exports, "resolveBinary", { enumerable: true, get: function () { return resolveBinary_js_1.resolveBinary; } });
|
|
1
|
+
import { resolveBinary } from "./resolveBinary.js";
|
|
2
|
+
export { resolveBinary };
|
|
6
3
|
//# sourceMappingURL=index.js.map
|
package/dist/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":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
package/dist/resolveBinary.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveBinary = resolveBinary;
|
|
4
|
-
const node_process_1 = require("node:process");
|
|
1
|
+
import { arch, platform } from "node:process";
|
|
5
2
|
/**
|
|
6
3
|
* Resolve path to dbmate for the current platform
|
|
7
4
|
* */
|
|
8
|
-
function resolveBinary() {
|
|
9
|
-
const ext =
|
|
10
|
-
const path = `@dbmate/${
|
|
5
|
+
export function resolveBinary() {
|
|
6
|
+
const ext = platform === "win32" ? ".exe" : "";
|
|
7
|
+
const path = `@dbmate/${platform}-${arch}/bin/dbmate${ext}`;
|
|
11
8
|
try {
|
|
12
9
|
return require.resolve(path);
|
|
13
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveBinary.js","sourceRoot":"","sources":["../src/resolveBinary.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resolveBinary.js","sourceRoot":"","sources":["../src/resolveBinary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE9C;;KAEK;AACL,MAAM,UAAU,aAAa;IAC3B,MAAM,GAAG,GAAG,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IAC/C,MAAM,IAAI,GAAG,WAAW,QAAQ,IAAI,IAAI,cAAc,GAAG,EAAE,CAAC;IAE5D,IAAI,CAAC;QACH,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IACE,GAAG,IAAI,SAAS;YAChB,OAAO,GAAG,KAAK,QAAQ;YACvB,MAAM,IAAI,GAAG;YACb,GAAG,CAAC,IAAI,KAAK,kBAAkB,EAC/B,CAAC;YACD,MAAM,IAAI,KAAK,CAAC,mCAAmC,IAAI,GAAG,CAAC,CAAC;QAC9D,CAAC;aAAM,CAAC;YACN,MAAM,GAAG,CAAC;QACZ,CAAC;IACH,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dbmate",
|
|
3
|
-
"version": "2.29.
|
|
3
|
+
"version": "2.29.4",
|
|
4
4
|
"description": "A lightweight, framework-agnostic database migration tool",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"homepage": "https://github.com/amacneil/dbmate#readme",
|
|
10
10
|
"author": "Adrian Macneil",
|
|
11
11
|
"license": "MIT",
|
|
12
|
+
"type": "module",
|
|
12
13
|
"keywords": [
|
|
13
14
|
"clickhouse",
|
|
14
15
|
"database",
|
|
@@ -29,12 +30,12 @@
|
|
|
29
30
|
"build": "tsc --build"
|
|
30
31
|
},
|
|
31
32
|
"optionalDependencies": {
|
|
32
|
-
"@dbmate/linux-ia32": "2.29.
|
|
33
|
-
"@dbmate/linux-x64": "2.29.
|
|
34
|
-
"@dbmate/linux-arm": "2.29.
|
|
35
|
-
"@dbmate/linux-arm64": "2.29.
|
|
36
|
-
"@dbmate/darwin-x64": "2.29.
|
|
37
|
-
"@dbmate/darwin-arm64": "2.29.
|
|
38
|
-
"@dbmate/win32-x64": "2.29.
|
|
33
|
+
"@dbmate/linux-ia32": "2.29.4",
|
|
34
|
+
"@dbmate/linux-x64": "2.29.4",
|
|
35
|
+
"@dbmate/linux-arm": "2.29.4",
|
|
36
|
+
"@dbmate/linux-arm64": "2.29.4",
|
|
37
|
+
"@dbmate/darwin-x64": "2.29.4",
|
|
38
|
+
"@dbmate/darwin-arm64": "2.29.4",
|
|
39
|
+
"@dbmate/win32-x64": "2.29.4"
|
|
39
40
|
}
|
|
40
41
|
}
|