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 CHANGED
@@ -1,9 +1,7 @@
1
1
  #!/usr/bin/env node
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- const node_child_process_1 = require("node:child_process");
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":";;;AACA,2DAA+C;AAE/C,yDAAmD;AAEnD,MAAM,KAAK,GAAG,IAAA,8BAAS,EAAC,IAAA,gCAAa,GAAE,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"}
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
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
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":";;;AAAA,yDAAmD;AAE1C,8FAFA,gCAAa,OAEA"}
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"}
@@ -1,13 +1,10 @@
1
- "use strict";
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 = node_process_1.platform === "win32" ? ".exe" : "";
10
- const path = `@dbmate/${node_process_1.platform}-${node_process_1.arch}/bin/dbmate${ext}`;
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":";;AAKA,sCAkBC;AAvBD,+CAA8C;AAE9C;;KAEK;AACL,SAAgB,aAAa;IAC3B,MAAM,GAAG,GAAG,uBAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC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C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dbmate",
3
- "version": "2.29.3",
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.3",
33
- "@dbmate/linux-x64": "2.29.3",
34
- "@dbmate/linux-arm": "2.29.3",
35
- "@dbmate/linux-arm64": "2.29.3",
36
- "@dbmate/darwin-x64": "2.29.3",
37
- "@dbmate/darwin-arm64": "2.29.3",
38
- "@dbmate/win32-x64": "2.29.3"
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
  }