react-native-asset 2.2.7 → 2.2.8

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/esm/mod.js CHANGED
@@ -6,8 +6,9 @@ export { linkAssets } from "./main.js";
6
6
  import { runCli } from "./cli.js";
7
7
  import { pathToFileURL } from "node:url";
8
8
  import process from "node:process";
9
+ import * as path from "./deps/jsr.io/@std/path/1.1.4/mod.js";
9
10
  const isMain = globalThis[Symbol.for("import-meta-ponyfill-esmodule")](import.meta).main ||
10
- (typeof dntShim.Deno === "undefined" &&
11
+ (path.basename(process.argv[0]).startsWith("node") &&
11
12
  pathToFileURL(dntShim.Deno.realPathSync(process.argv[1])).href ===
12
13
  globalThis[Symbol.for("import-meta-ponyfill-esmodule")](import.meta).url);
13
14
  if (isMain) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-asset",
3
- "version": "2.2.7",
3
+ "version": "2.2.8",
4
4
  "description": "Linking and unlinking of assets in your react-native app, works for fonts and sounds",
5
5
  "keywords": [
6
6
  "react-native",
package/script/mod.js CHANGED
@@ -46,8 +46,9 @@ Object.defineProperty(exports, "linkAssets", { enumerable: true, get: function (
46
46
  const cli_js_1 = require("./cli.js");
47
47
  const node_url_1 = require("node:url");
48
48
  const node_process_1 = __importDefault(require("node:process"));
49
+ const path = __importStar(require("./deps/jsr.io/@std/path/1.1.4/mod.js"));
49
50
  const isMain = globalThis[Symbol.for("import-meta-ponyfill-commonjs")](require, module).main ||
50
- (typeof dntShim.Deno === "undefined" &&
51
+ (path.basename(node_process_1.default.argv[0]).startsWith("node") &&
51
52
  (0, node_url_1.pathToFileURL)(dntShim.Deno.realPathSync(node_process_1.default.argv[1])).href ===
52
53
  globalThis[Symbol.for("import-meta-ponyfill-commonjs")](require, module).url);
53
54
  if (isMain) {