@hyperfrontend/project-scope 0.1.0 → 0.2.0
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/CHANGELOG.md +23 -3
- package/README.md +2 -0
- package/core/index.cjs.js +5 -1
- package/core/index.cjs.js.map +1 -1
- package/core/index.esm.js +5 -1
- package/core/index.esm.js.map +1 -1
- package/core/path/index.cjs.js +5 -1
- package/core/path/index.cjs.js.map +1 -1
- package/core/path/index.esm.js +5 -1
- package/core/path/index.esm.js.map +1 -1
- package/core/path/normalize.d.ts.map +1 -1
- package/index.cjs.js +5 -1
- package/index.cjs.js.map +1 -1
- package/index.esm.js +5 -1
- package/index.esm.js.map +1 -1
- package/package.json +9 -9
- package/vfs/index.cjs.js +5 -1
- package/vfs/index.cjs.js.map +1 -1
- package/vfs/index.esm.js +5 -1
- package/vfs/index.esm.js.map +1 -1
package/index.esm.js
CHANGED
|
@@ -1175,7 +1175,11 @@ function normalizeToNative(filePath) {
|
|
|
1175
1175
|
* @returns Path with trailing slashes removed
|
|
1176
1176
|
*/
|
|
1177
1177
|
function removeTrailingSlash(filePath) {
|
|
1178
|
-
|
|
1178
|
+
let i = filePath.length;
|
|
1179
|
+
while (i > 0 && (filePath[i - 1] === '/' || filePath[i - 1] === '\\')) {
|
|
1180
|
+
i--;
|
|
1181
|
+
}
|
|
1182
|
+
return filePath.slice(0, i);
|
|
1179
1183
|
}
|
|
1180
1184
|
/**
|
|
1181
1185
|
* Append a forward slash to the path if not already present.
|