@notedge/panduck-linux-arm64 0.0.0 → 0.0.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/index.js CHANGED
@@ -1,14 +1,4 @@
1
- import { createRequire } from "node:module";
2
- import { readdirSync } from "node:fs";
3
- import { dirname, join } from "node:path";
4
- import { fileURLToPath } from "node:url";
5
-
6
- const require = createRequire(import.meta.url);
7
- const libDir = join(dirname(fileURLToPath(import.meta.url)), "lib");
8
- const nodeName = readdirSync(libDir).find((name) => name.endsWith(".node"));
9
- if (!nodeName) {
10
- throw new Error(`Missing .node binary in ${libDir}. Run npm run build:napi from the repo root.`);
11
- }
12
-
13
- const binding = require(join(libDir, nodeName));
14
- export default binding;
1
+ import { createRequire } from "node:module";
2
+
3
+ const require = createRequire(import.meta.url);
4
+ export default require("./lib/panduck-linux-arm64-gnu.node");
Binary file
package/package.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
- "cpu": [
3
- "arm64"
4
- ],
5
- "description": "Panduck Node-API binary for Linux arm64",
2
+ "name": "@notedge/panduck-linux-arm64",
3
+ "version": "0.0.2",
4
+ "description": "Panduck Node-API binary for linux-arm64",
5
+ "type": "module",
6
+ "license": "MPL-2.0",
7
+ "main": "./index.js",
6
8
  "files": [
7
9
  "index.js",
8
10
  "lib"
9
11
  ],
10
- "license": "MPL-2.0",
11
- "main": "./index.js",
12
- "name": "@notedge/panduck-linux-arm64",
13
12
  "os": [
14
13
  "linux"
15
14
  ],
15
+ "cpu": [
16
+ "arm64"
17
+ ],
16
18
  "publishConfig": {
17
19
  "access": "public"
18
20
  },
19
21
  "repository": {
20
22
  "type": "git",
21
- "url": "git+https://github.com/oovm/npm-tools.git"
22
- },
23
- "type": "module",
24
- "version": "0.0.0"
23
+ "url": "git+https://github.com/notedge/panduck.git"
24
+ }
25
25
  }