@teamnhz/rn-ui-toolkit 1.2.0 → 1.2.1

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.
@@ -9,7 +9,11 @@ import { Colors, Images, Scale, Typography } from "../../styles";
9
9
  //--------------------------------------
10
10
  // 🟦 FORMAT RESPONSE (single standard)
11
11
  //--------------------------------------
12
- const normalizePath = (p) => p ? p.replace("file://", "") : "";
12
+ const normalizePath = (p) => {
13
+ if (!p)
14
+ return "";
15
+ return p.startsWith("file://") ? p : `file://${p}`;
16
+ };
13
17
  const buildResponse = (raw, compressed) => {
14
18
  return {
15
19
  path: normalizePath(compressed || raw?.path || raw?.uri),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamnhz/rn-ui-toolkit",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [