@expofp/utils 3.11.10 → 3.11.11

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.
@@ -14,6 +14,7 @@ let importJsonNative;
14
14
  function getImportJsonNative() {
15
15
  if (importJsonNative === undefined) {
16
16
  try {
17
+ // eslint-disable-next-line @typescript-eslint/no-implied-eval
17
18
  importJsonNative = new Function('url', 'return import(url, { with: { type: "json" } });');
18
19
  }
19
20
  catch {
@@ -68,7 +69,7 @@ async function loadJson(url, fetchCache, signal) {
68
69
  if (!response.ok) {
69
70
  throw new Error(`Failed to fetch JSON from ${url}`);
70
71
  }
71
- return await response.json();
72
+ return (await response.json());
72
73
  })();
73
74
  fetchCache.set(key, dataPromise);
74
75
  return dataPromise;
@@ -3,5 +3,6 @@ export async function importNodeModule(moduleName) {
3
3
  throw new Error('importNodeModule can only be used in Node.js environments');
4
4
  }
5
5
  // prevents Vite/Rollup from analyzing the import specifier
6
+ // eslint-disable-next-line @typescript-eslint/no-implied-eval, @typescript-eslint/no-unsafe-call
6
7
  return new Function('moduleName', 'return import(moduleName)')(moduleName);
7
8
  }
@@ -70,7 +70,7 @@ export async function makeLocalPath(url, filenameSuffix) {
70
70
  return pathSegments.join('/') + '/';
71
71
  }
72
72
  // For files: Extract filename (last part) and directory parts
73
- const filename = pathParts.pop() || '';
73
+ const filename = pathParts.pop() ?? '';
74
74
  const directoryParts = pathParts;
75
75
  // Slugify directory parts
76
76
  const slugifiedDirs = directoryParts.map((part) => safeSlugify(part));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expofp/utils",
3
- "version": "3.11.10",
3
+ "version": "3.11.11",
4
4
  "type": "module",
5
5
  "description": "ExpoFP SDK internal: shared utilities",
6
6
  "homepage": "https://developer.expofp.com/",