@applicaster/zapp-react-native-bridge 12.0.0-rc.2 → 12.0.0-rc.20

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.
@@ -80,9 +80,12 @@ export const fileIsSaved = R.curry((savedFilesResult, { file }) => {
80
80
  export const remapAssetPath = (
81
81
  assets: FilesList,
82
82
  source: Record<string, any>,
83
- localFiles: Record<string, string>
83
+ localFiles: Record<string, string>,
84
+ tag: string = "unknown"
84
85
  ): Record<string, any> => {
85
- return assets.reduce((obj, { path, url }) => {
86
+ const startTime = performance.now();
87
+
88
+ const result = assets.reduce((obj, { path, url }) => {
86
89
  const localFile = localFiles[url];
87
90
 
88
91
  if (!localFile) {
@@ -108,7 +111,11 @@ export const remapAssetPath = (
108
111
  }
109
112
 
110
113
  return obj;
111
- }, R.clone(source));
114
+ }, JSON.parse(JSON.stringify(source)));
115
+
116
+ bridgeLogger.log({ message: `remapAssetPath: remapping took ${performance.now() - startTime} ms, tag: ${tag}` });
117
+
118
+ return result;
112
119
  };
113
120
 
114
121
  export function collectAssets(object, nativeRootPath, source, path = []) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-bridge",
3
- "version": "12.0.0-rc.2",
3
+ "version": "12.0.0-rc.20",
4
4
  "description": "Applicaster Zapp React Native modules",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -33,7 +33,7 @@
33
33
  "homepage": "https://github.com/applicaster/quickbrick#readme",
34
34
  "dependencies": {
35
35
  "@applicaster/zapp-pipes-dev-kit": "1.4.7",
36
- "@applicaster/zapp-react-native-utils": "12.0.0-rc.2",
36
+ "@applicaster/zapp-react-native-utils": "12.0.0-rc.20",
37
37
  "md5": "^2.3.0",
38
38
  "uuid": "^3.3.2"
39
39
  },