@ohos-ports/node-rs-bcrypt-openharmony-arm64 2.0.0-beta.1 → 2.0.0-beta.2
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/README.md +20 -0
- package/bcrypt.openharmony-arm64.node +0 -0
- package/package.json +6 -6
package/README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# `@ohos-ports/node-rs-bcrypt-openharmony-arm64`
|
|
2
|
+
|
|
3
|
+
Rust bcrypt binding — **openharmony/arm64** binary for `@node-rs/bcrypt`.
|
|
4
|
+
|
|
5
|
+
This is a port of the `@node-rs/bcrypt-darwin-x64@2.0.0` slot package: the original
|
|
6
|
+
`bcrypt.darwin-x64.node` (Mach-O x86-64) was replaced by `bcrypt.openharmony-arm64.node`,
|
|
7
|
+
rebuilt from the upstream Rust source ([napi-rs/node-rs](https://github.com/napi-rs/node-rs)
|
|
8
|
+
@ `b706e303`, `packages/bcrypt`) with the OHOS Rust toolchain for
|
|
9
|
+
`aarch64-unknown-linux-ohos`, and signed for openharmony. `os`/`cpu` in `package.json`
|
|
10
|
+
are set to `openharmony`/`arm64` so the host `@node-rs/bcrypt` loader can use it on
|
|
11
|
+
HarmonyOS.
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
Install together with the host package `@node-rs/bcrypt` (its `binding.js`
|
|
16
|
+
`openharmony`/`arm64` branch resolves this slot package). Or require directly:
|
|
17
|
+
|
|
18
|
+
```js
|
|
19
|
+
const { hashSync, verifySync } = require('@ohos-ports/node-rs-bcrypt-openharmony-arm64')
|
|
20
|
+
```
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ohos-ports/node-rs-bcrypt-openharmony-arm64",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
4
|
-
"description": "Rust bcrypt binding",
|
|
3
|
+
"version": "2.0.0-beta.2",
|
|
4
|
+
"description": "Rust bcrypt binding (port of @node-rs/bcrypt-darwin-x64@2.0.0 slot, compiled from source napi-rs/node-rs b706e303 for openharmony arm64)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"N-API",
|
|
7
7
|
"auth",
|
|
@@ -13,12 +13,9 @@
|
|
|
13
13
|
"node-rs",
|
|
14
14
|
"password"
|
|
15
15
|
],
|
|
16
|
+
"author": "LongYinan <lynweklm@gmail.com>",
|
|
16
17
|
"homepage": "https://github.com/napi-rs/node-rs",
|
|
17
|
-
"bugs": {
|
|
18
|
-
"url": "https://github.com/napi-rs/node-rs/issues"
|
|
19
|
-
},
|
|
20
18
|
"license": "MIT",
|
|
21
|
-
"author": "LongYinan <lynweklm@gmail.com>",
|
|
22
19
|
"main": "./index.js",
|
|
23
20
|
"files": [
|
|
24
21
|
"index.js",
|
|
@@ -38,6 +35,9 @@
|
|
|
38
35
|
"url": "https://github.com/ohos-ports/ohos-ports.git",
|
|
39
36
|
"directory": "ports/node-rs-bcrypt-openharmony-arm64/2.0.0"
|
|
40
37
|
},
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/ohos-ports/ohos-ports/issues"
|
|
40
|
+
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"registry": "https://registry.npmjs.org/",
|
|
43
43
|
"access": "public"
|