@ohos-ports/msgpackr-extract-openharmony-arm64 0.0.0-stage → 1.1.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/README.md +24 -2
- package/index.js +7 -0
- package/node.napi.glibc.node +0 -0
- package/package.json +21 -4
package/README.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @ohos-ports/msgpackr-extract-openharmony-arm64
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Platform specific binary for [msgpackr-extract](https://github.com/kriszyp/msgpackr-extract)
|
|
4
|
+
on HarmonyOS (openharmony) with arm64 architecture.
|
|
5
|
+
|
|
6
|
+
This is a HarmonyOS port of `msgpackr-extract-linux-arm@1.1.0` published under the
|
|
7
|
+
[`@ohos-ports`](https://github.com/ohos-ports/ohos-ports) organization:
|
|
8
|
+
|
|
9
|
+
- The ARM32/glibc prebuilt binaries shipped by upstream were **discarded** and
|
|
10
|
+
replaced by an AArch64 NAPI binary compiled from the upstream source
|
|
11
|
+
(`src/extract.cpp` v1.1.0, plus the HarmonyOS port patch below) with the
|
|
12
|
+
OpenHarmony SDK clang++ (`aarch64-unknown-linux-ohos`) and signed with
|
|
13
|
+
`binary-sign-tool`.
|
|
14
|
+
- The `node.napi.glibc.node` filename is kept so that the parent package
|
|
15
|
+
`msgpackr-extract` keeps resolving this platform package through
|
|
16
|
+
`node-gyp-build-optional-packages` (the libc tag defaults to `glibc` on
|
|
17
|
+
non-alpine hosts).
|
|
18
|
+
- `index.js` directly exports the NAPI binary so this platform package is also
|
|
19
|
+
usable standalone: `const { extractStrings } = require('@ohos-ports/msgpackr-extract-openharmony-arm64')`.
|
|
20
|
+
- Port additions: the single-argument convenience form
|
|
21
|
+
`extractStrings(buffer)` (returns every MessagePack string in the buffer as
|
|
22
|
+
separate array elements) is supported in addition to the upstream
|
|
23
|
+
three-argument form `extractStrings(position, size, buffer)`.
|
|
24
|
+
|
|
25
|
+
License: MIT (author: Kris Zyp).
|
package/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// HarmonyOS (openharmony/arm64) port.
|
|
2
|
+
// Upstream ships an empty index.js because the parent package (msgpackr-extract)
|
|
3
|
+
// loads the .node file directly through node-gyp-build-optional-packages, which
|
|
4
|
+
// resolves "node.napi.glibc.node" on this platform as well (libc tag defaults to
|
|
5
|
+
// "glibc" for non-alpine hosts). Export the NAPI binary here so the platform
|
|
6
|
+
// package is also usable standalone.
|
|
7
|
+
module.exports = require('./node.napi.glibc.node');
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ohos-ports/msgpackr-extract-openharmony-arm64",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
"version": "1.1.0-beta.1",
|
|
4
|
+
"os": [
|
|
5
|
+
"openharmony"
|
|
6
|
+
],
|
|
7
|
+
"cpu": [
|
|
8
|
+
"arm64"
|
|
9
|
+
],
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"author": "Kris Zyp",
|
|
12
|
+
"main": "index.js",
|
|
13
|
+
"files": [
|
|
14
|
+
"index.js",
|
|
15
|
+
"node.napi.glibc.node"
|
|
16
|
+
],
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/ohos-ports/ohos-ports.git",
|
|
20
|
+
"directory": "ports/msgpackr-extract-openharmony-arm64/1.1.0"
|
|
21
|
+
},
|
|
22
|
+
"description": "Platform specific binary for msgpackr-extract on HarmonyOS (openharmony) with arm64 architecture. HarmonyOS port of msgpackr-extract-linux-arm@1.1.0: AArch64 NAPI binary compiled from source with the OpenHarmony SDK and signed with binary-sign-tool."
|
|
23
|
+
}
|