react-native-asset 2.2.9 → 2.2.10

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/main.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AASA,KAAK,YAAY,GAAG,KAAK,GAAG,SAAS,CAAC;AAEtC,eAAO,MAAM,UAAU,GACrB,wCAIG;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,GACR,CAAC,IAAI,YAAY,GAAG;QACnB,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,MAAM,EAAE,CAAC;KAClB,GACF,CAAC;CACH,KACA,OAAO,CAAC,IAAI,CA2Wd,CAAC"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AASA,KAAK,YAAY,GAAG,KAAK,GAAG,SAAS,CAAC;AAEtC,eAAO,MAAM,UAAU,GACrB,wCAIG;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,GACR,CAAC,IAAI,YAAY,GAAG;QACnB,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,MAAM,EAAE,CAAC;KAClB,GACF,CAAC;CACH,KACA,OAAO,CAAC,IAAI,CA4Wd,CAAC"}
package/esm/main.js CHANGED
@@ -183,7 +183,8 @@ export const linkAssets = async ({ rootPath, platforms, shouldUnlink = true, })
183
183
  .map((asset) => ({
184
184
  ...asset,
185
185
  path: path.relative(rp, asset.path).split(path.SEPARATOR).join("/"),
186
- })));
186
+ }))
187
+ .sort((a, b) => a.path.localeCompare(b.path, "en")));
187
188
  };
188
189
  const platformsArray = [
189
190
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-asset",
3
- "version": "2.2.9",
3
+ "version": "2.2.10",
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",
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AASA,KAAK,YAAY,GAAG,KAAK,GAAG,SAAS,CAAC;AAEtC,eAAO,MAAM,UAAU,GACrB,wCAIG;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,GACR,CAAC,IAAI,YAAY,GAAG;QACnB,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,MAAM,EAAE,CAAC;KAClB,GACF,CAAC;CACH,KACA,OAAO,CAAC,IAAI,CA2Wd,CAAC"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AASA,KAAK,YAAY,GAAG,KAAK,GAAG,SAAS,CAAC;AAEtC,eAAO,MAAM,UAAU,GACrB,wCAIG;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,GACR,CAAC,IAAI,YAAY,GAAG;QACnB,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,MAAM,EAAE,CAAC;KAClB,GACF,CAAC;CACH,KACA,OAAO,CAAC,IAAI,CA4Wd,CAAC"}
package/script/main.js CHANGED
@@ -222,7 +222,8 @@ const linkAssets = async ({ rootPath, platforms, shouldUnlink = true, }) => {
222
222
  .map((asset) => ({
223
223
  ...asset,
224
224
  path: path.relative(rp, asset.path).split(path.SEPARATOR).join("/"),
225
- })));
225
+ }))
226
+ .sort((a, b) => a.path.localeCompare(b.path, "en")));
226
227
  };
227
228
  const platformsArray = [
228
229
  {