objc-js 1.0.2 → 1.0.4

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/dist/native.js CHANGED
@@ -1,6 +1,9 @@
1
1
  import { createRequire } from "node:module";
2
+ import { fileURLToPath } from "node:url";
3
+ import { dirname, join } from "node:path";
2
4
  const require = createRequire(import.meta.url);
3
- import path from "node:path";
4
- const binding = require("node-gyp-build")(path.join(__dirname, ".."));
5
+ const __filename = fileURLToPath(import.meta.url);
6
+ const __dirname = dirname(__filename);
7
+ const binding = require("node-gyp-build")(join(__dirname, ".."));
5
8
  const { LoadLibrary, GetClassObject, ObjcObject, GetPointer, FromPointer, CreateProtocolImplementation, DefineClass, CallSuper } = binding;
6
9
  export { LoadLibrary, GetClassObject, ObjcObject, GetPointer, FromPointer, CreateProtocolImplementation, DefineClass, CallSuper };
package/package.json CHANGED
@@ -39,11 +39,11 @@
39
39
  "make-clangd-config": "node ./scripts/make-clangd-config.js",
40
40
  "format": "prettier --write \"**/*.{ts,js,json,md}\"",
41
41
  "preinstall-disabled": "npm run build-scripts && npm run make-clangd-config",
42
- "prebuild:arm64": "prebuildify --napi --strip --arch arm64",
43
- "prebuild:x64": "prebuildify --napi --strip --arch x64",
42
+ "prebuild:arm64": "prebuildify --napi --strip --arch arm64 -r node --tagArmv",
43
+ "prebuild:x64": "prebuildify --napi --strip --arch x64 -r node",
44
44
  "prebuild:all": "bun run prebuild:arm64 && bun run prebuild:x64"
45
45
  },
46
- "version": "1.0.2",
46
+ "version": "1.0.4",
47
47
  "description": "Objective-C bridge for Node.js",
48
48
  "main": "dist/index.js",
49
49
  "dependencies": {
@@ -58,5 +58,8 @@
58
58
  "prettier": "^3.7.4",
59
59
  "typescript": "^5.9.3"
60
60
  },
61
- "gypfile": true
61
+ "gypfile": true,
62
+ "patchedDependencies": {
63
+ "prebuildify@6.0.1": "patches/prebuildify@6.0.1.patch"
64
+ }
62
65
  }
index 9178ab1..d88bd53 100755
Binary file
index 5e18a24..3ae6d4c 100755
Binary file