apimock-rs 4.0.0-rc.11 → 4.0.0-rc.13
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/index.js +2 -1
- package/package.json +39 -39
package/index.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
|
3
3
|
const os = require("os")
|
4
|
+
const { join } = require("path")
|
4
5
|
const { spawn } = require("child_process")
|
5
6
|
|
6
7
|
const binaryName = "apimock"
|
@@ -15,7 +16,7 @@ function binaryPath() {
|
|
15
16
|
default:
|
16
17
|
}
|
17
18
|
|
18
|
-
return `${binaryName}${extension}`
|
19
|
+
return join(__dirname, `${binaryName}${extension}`)
|
19
20
|
}
|
20
21
|
|
21
22
|
function spawnBinary(binaryPath) {
|
package/package.json
CHANGED
@@ -1,40 +1,40 @@
|
|
1
1
|
{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
}
|
2
|
+
"name": "apimock-rs",
|
3
|
+
"version": "4.0.0-rc.13",
|
4
|
+
"description": "HTTP server generating REST/JSON responses. Aims to be mocking helper to develop microservices and APIs.",
|
5
|
+
"author": "nabbisen<nabbisen@scqr.net>",
|
6
|
+
"license": "Apache-2.0",
|
7
|
+
"repository": {
|
8
|
+
"type": "git",
|
9
|
+
"url": "git+https://github.com/nabbisen/apimock-rs.git"
|
10
|
+
},
|
11
|
+
"bin": {
|
12
|
+
"apimock": "./index.js"
|
13
|
+
},
|
14
|
+
"files": [
|
15
|
+
"postinstall.js"
|
16
|
+
],
|
17
|
+
"scripts": {
|
18
|
+
"postinstall": "node postinstall.js"
|
19
|
+
},
|
20
|
+
"optionalDependencies": {
|
21
|
+
"@apimock-rs/linux-x64-gnu": "4.0.0-rc.13",
|
22
|
+
"@apimock-rs/darwin-arm64": "4.0.0-rc.13",
|
23
|
+
"@apimock-rs/win32-x64-msvc": "4.0.0-rc.13"
|
24
|
+
},
|
25
|
+
"keywords": [
|
26
|
+
"api",
|
27
|
+
"mock",
|
28
|
+
"server",
|
29
|
+
"http",
|
30
|
+
"json",
|
31
|
+
"route-matching",
|
32
|
+
"dynamic-routing",
|
33
|
+
"custom-routes",
|
34
|
+
"devtool",
|
35
|
+
"developer-tool",
|
36
|
+
"testing",
|
37
|
+
"stub",
|
38
|
+
"simulate"
|
39
|
+
]
|
40
|
+
}
|