npgsqlrest 1.1.2 → 1.1.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/config-copy.js +2 -2
- package/package.json +2 -2
- package/postinstall.js +1 -1
package/config-copy.js
CHANGED
|
@@ -7,10 +7,10 @@ const path = require('path');
|
|
|
7
7
|
const destDir = process.argv[2] || process.cwd();
|
|
8
8
|
|
|
9
9
|
// Path to the source file
|
|
10
|
-
const srcFile = path.join(__dirname,
|
|
10
|
+
const srcFile = path.join(__dirname, "appsettings.json");
|
|
11
11
|
|
|
12
12
|
// Path to the destination file
|
|
13
|
-
const destFile = path.join(destDir,
|
|
13
|
+
const destFile = path.join(destDir, "appsettings.json");
|
|
14
14
|
|
|
15
15
|
// Copy the file
|
|
16
16
|
fs.copyFileSync(srcFile, destFile);
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npgsqlrest",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "Automatic REST API for PostgreSQL Databases Client Build",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"postinstall": "node postinstall.js",
|
|
7
7
|
"start": "npx npgsqlrest ./appsettings.json ./npgsqlrest.json"
|
|
8
8
|
},
|
|
9
9
|
"bin": {
|
|
10
|
-
"npgsqlrest": "
|
|
10
|
+
"npgsqlrest": "./bin/npgsqlrest",
|
|
11
11
|
"npgsqlrest-config-copy": "./config-copy.js"
|
|
12
12
|
},
|
|
13
13
|
"repository": {
|
package/postinstall.js
CHANGED
|
@@ -3,7 +3,7 @@ const path = require("path");
|
|
|
3
3
|
const os = require("os");
|
|
4
4
|
const https = require("https");
|
|
5
5
|
|
|
6
|
-
const downloadDir = "
|
|
6
|
+
const downloadDir = "./bin/";
|
|
7
7
|
const downloadFrom = "https://github.com/vb-consulting/NpgsqlRest/releases/download/v2.7.1-client-v1.1.0/";
|
|
8
8
|
|
|
9
9
|
function download(url, to, done) {
|