comparadise-utils 1.15.1 → 1.15.2

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.
@@ -79,10 +79,16 @@ const trimPostfix = (path) => {
79
79
  return path;
80
80
  };
81
81
  const getNewPath = (path) => {
82
- let newPath = path.slice(path.lastIndexOf('___') + 3);
83
- console.log(newPath);
84
- if (newPath.startsWith('/')) {
85
- newPath = `.${newPath}`;
82
+ let newPath;
83
+ if (path.includes('___')) {
84
+ newPath = path.slice(path.lastIndexOf('___') + 3);
85
+ if (newPath.startsWith('/')) {
86
+ newPath = `.${newPath}`;
87
+ }
88
+ console.log(newPath);
89
+ }
90
+ else {
91
+ newPath = path;
86
92
  }
87
93
  return trimPostfix(newPath);
88
94
  };
package/package.json CHANGED
@@ -32,7 +32,7 @@
32
32
  "dist",
33
33
  "types"
34
34
  ],
35
- "version": "1.15.1",
35
+ "version": "1.15.2",
36
36
  "scripts": {
37
37
  "build": "tsc && tsc --project tsconfig.types.json",
38
38
  "bump-version": "pnpm version $NEW_VERSION",