objc-js 1.0.2 → 1.0.3

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
@@ -43,7 +43,7 @@
43
43
  "prebuild:x64": "prebuildify --napi --strip --arch x64",
44
44
  "prebuild:all": "bun run prebuild:arm64 && bun run prebuild:x64"
45
45
  },
46
- "version": "1.0.2",
46
+ "version": "1.0.3",
47
47
  "description": "Objective-C bridge for Node.js",
48
48
  "main": "dist/index.js",
49
49
  "dependencies": {
Binary file
Binary file