@ohos-ports/node-rs-bcrypt-openharmony-arm64 2.0.0-beta.0 → 2.0.0-beta.1
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/bcrypt.openharmony-arm64.node +0 -0
- package/index.js +2 -8
- package/package.json +18 -20
- package/README.md +0 -14
- package/bcrypt.android-arm64.node +0 -0
|
Binary file
|
package/index.js
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
// HarmonyOS (openharmony) loads the locally compiled native binary;
|
|
4
|
-
// all other platforms fall back to the original prebuilt binary.
|
|
5
|
-
module.exports =
|
|
6
|
-
process.platform === 'openharmony'
|
|
7
|
-
? require('./bcrypt.openharmony-arm64.node')
|
|
8
|
-
: require('./bcrypt.android-arm64.node');
|
|
1
|
+
// HarmonyOS (openharmony) loader: loads the ohos-compiled native binary
|
|
2
|
+
module.exports = require('./bcrypt.openharmony-arm64.node')
|
package/package.json
CHANGED
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ohos-ports/node-rs-bcrypt-openharmony-arm64",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
4
|
-
"
|
|
5
|
-
"arm64"
|
|
6
|
-
],
|
|
7
|
-
"main": "index.js",
|
|
8
|
-
"files": [
|
|
9
|
-
"bcrypt.android-arm64.node",
|
|
10
|
-
"index.js",
|
|
11
|
-
"bcrypt.openharmony-arm64.node"
|
|
12
|
-
],
|
|
13
|
-
"description": "Rust bcrypt binding (openharmony arm64 port of @node-rs/bcrypt-android-arm64@2.0.0, compiled from source napi-rs/node-rs for aarch64-unknown-linux-ohos)",
|
|
3
|
+
"version": "2.0.0-beta.1",
|
|
4
|
+
"description": "Rust bcrypt binding",
|
|
14
5
|
"keywords": [
|
|
15
6
|
"N-API",
|
|
16
7
|
"auth",
|
|
@@ -22,9 +13,23 @@
|
|
|
22
13
|
"node-rs",
|
|
23
14
|
"password"
|
|
24
15
|
],
|
|
25
|
-
"author": "LongYinan <lynweklm@gmail.com>",
|
|
26
16
|
"homepage": "https://github.com/napi-rs/node-rs",
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/napi-rs/node-rs/issues"
|
|
19
|
+
},
|
|
27
20
|
"license": "MIT",
|
|
21
|
+
"author": "LongYinan <lynweklm@gmail.com>",
|
|
22
|
+
"main": "./index.js",
|
|
23
|
+
"files": [
|
|
24
|
+
"index.js",
|
|
25
|
+
"bcrypt.openharmony-arm64.node"
|
|
26
|
+
],
|
|
27
|
+
"os": [
|
|
28
|
+
"openharmony"
|
|
29
|
+
],
|
|
30
|
+
"cpu": [
|
|
31
|
+
"arm64"
|
|
32
|
+
],
|
|
28
33
|
"engines": {
|
|
29
34
|
"node": ">= 10"
|
|
30
35
|
},
|
|
@@ -33,15 +38,8 @@
|
|
|
33
38
|
"url": "https://github.com/ohos-ports/ohos-ports.git",
|
|
34
39
|
"directory": "ports/node-rs-bcrypt-openharmony-arm64/2.0.0"
|
|
35
40
|
},
|
|
36
|
-
"bugs": {
|
|
37
|
-
"url": "https://github.com/ohos-ports/ohos-ports/issues"
|
|
38
|
-
},
|
|
39
41
|
"publishConfig": {
|
|
40
42
|
"registry": "https://registry.npmjs.org/",
|
|
41
43
|
"access": "public"
|
|
42
|
-
}
|
|
43
|
-
"os": [
|
|
44
|
-
"android",
|
|
45
|
-
"openharmony"
|
|
46
|
-
]
|
|
44
|
+
}
|
|
47
45
|
}
|
package/README.md
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# `@ohos-ports/node-rs-bcrypt-openharmony-arm64`
|
|
2
|
-
|
|
3
|
-
OpenHarmony (arm64) platform port of `@node-rs/bcrypt-android-arm64@2.0.0`.
|
|
4
|
-
|
|
5
|
-
The `bcrypt.openharmony-arm64.node` binary is compiled from source
|
|
6
|
-
([napi-rs/node-rs](https://github.com/napi-rs/node-rs), tag `@node-rs/bcrypt@2.0.0`,
|
|
7
|
-
crate `node-rs-bcrypt`, napi-rs v3) for `aarch64-unknown-linux-ohos` and signed for
|
|
8
|
-
the OpenHarmony loader. The original `bcrypt.android-arm64.node` prebuilt is kept
|
|
9
|
-
so the package keeps working on Android devices; the entry `index.js` dispatches
|
|
10
|
-
`process.platform === 'openharmony'` to the openharmony binary and falls back to
|
|
11
|
-
the Android prebuilt elsewhere.
|
|
12
|
-
|
|
13
|
-
This is the platform-specific binary subpackage; install the main package
|
|
14
|
-
`@ohos-ports/node-rs-bcrypt` for the high-level API.
|
|
Binary file
|