@hyperledger/anoncreds-nodejs 0.1.0-dev.15 → 0.1.0-dev.17
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/package.json +5 -5
- package/scripts/platform.js +13 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperledger/anoncreds-nodejs",
|
|
3
|
-
"version": "0.1.0-dev.
|
|
3
|
+
"version": "0.1.0-dev.17",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Nodejs wrapper for Anoncreds",
|
|
6
6
|
"main": "build/index",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"build": "yarn clean && yarn compile",
|
|
24
24
|
"clean": "rimraf -rf ./build",
|
|
25
25
|
"compile": "tsc -p tsconfig.build.json",
|
|
26
|
-
"install": "node-pre-gyp install --target_arch=$(node scripts/arch.js)"
|
|
26
|
+
"install": "node-pre-gyp install --target_arch=$(node scripts/arch.js) --target_platform=$(node scripts/platform.js)"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@hyperledger/anoncreds-shared": "0.1.0-dev.
|
|
29
|
+
"@hyperledger/anoncreds-shared": "0.1.0-dev.17",
|
|
30
30
|
"@mapbox/node-pre-gyp": "^1.0.10",
|
|
31
31
|
"ffi-napi": "4.0.3",
|
|
32
32
|
"node-cache": "5.1.2",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"binary": {
|
|
46
46
|
"module_name": "anoncreds",
|
|
47
47
|
"module_path": "native",
|
|
48
|
-
"remote_path": "v0.1.0-dev.
|
|
48
|
+
"remote_path": "v0.1.0-dev.17",
|
|
49
49
|
"host": "https://github.com/hyperledger/anoncreds-rs/releases/download/",
|
|
50
50
|
"package_name": "library-{platform}-{arch}.tar.gz"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "8bb174f10d38deb9e34bbfe4d7acbb7bb067369f"
|
|
53
53
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
2
|
+
/* eslint-disable no-console */
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
|
4
|
+
/* eslint-disable no-undef */
|
|
5
|
+
const os = require('os')
|
|
6
|
+
|
|
7
|
+
// Find appropriate target architecture for retrieving the anoncreds library
|
|
8
|
+
const platform = os.platform()
|
|
9
|
+
|
|
10
|
+
// We swap win32 with windows as that is the key that we use
|
|
11
|
+
const targetPlatform = platform == 'win32' ? 'windows' : platform
|
|
12
|
+
|
|
13
|
+
console.log(targetPlatform)
|