npgsqlrest 3.9.0 → 3.10.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.
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env node
2
+
3
+ const path = require("path");
4
+ const os = require("os");
5
+ const { execFileSync } = require("child_process");
6
+
7
+ const binDir = __dirname;
8
+ const ext = os.type() === "Windows_NT" ? ".exe" : "";
9
+ const binary = path.join(binDir, `npgsqlrest${ext}`);
10
+
11
+ try {
12
+ execFileSync(binary, process.argv.slice(2), { stdio: "inherit" });
13
+ } catch (err) {
14
+ if (err.status != null) {
15
+ process.exit(err.status);
16
+ }
17
+ console.error(`Failed to run ${binary}: ${err.message}`);
18
+ process.exit(1);
19
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npgsqlrest",
3
- "version": "3.9.0",
3
+ "version": "3.10.0",
4
4
  "description": "Automatic REST API for PostgreSQL Databases Client Build",
5
5
  "scripts": {
6
6
  "postinstall": "node postinstall.js",
package/postinstall.js CHANGED
@@ -5,7 +5,7 @@ const path = require("path");
5
5
  const os = require("os");
6
6
  const https = require("https");
7
7
 
8
- const downloadFrom = "https://github.com/NpgsqlRest/NpgsqlRest/releases/download/v3.9.0/";
8
+ const downloadFrom = "https://github.com/NpgsqlRest/NpgsqlRest/releases/download/v3.10.0/";
9
9
 
10
10
  // Download binary next to this script, not to ../.bin/
11
11
  const binDir = path.join(__dirname, "bin");