@uniformdev/project-map 19.100.0 → 19.103.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/dist/index.esm.js +5 -3
- package/dist/index.js +5 -3
- package/dist/index.mjs +5 -3
- package/package.json +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -283,9 +283,11 @@ parseRouteOrPath_fn = function(path) {
|
|
|
283
283
|
if (!path.startsWith("/") || path === "") {
|
|
284
284
|
throw new Error(`Path must start with a slash: ${path}`);
|
|
285
285
|
}
|
|
286
|
-
const
|
|
287
|
-
const
|
|
288
|
-
pathSegments[pathSegments.length - 1]
|
|
286
|
+
const [pathname, queryString] = path.split("?");
|
|
287
|
+
const pathSegments = pathname.substring(1).split("/");
|
|
288
|
+
if (pathSegments[pathSegments.length - 1] === "") {
|
|
289
|
+
pathSegments.pop();
|
|
290
|
+
}
|
|
289
291
|
const queryParams = new URLSearchParams(queryString);
|
|
290
292
|
return { segments: pathSegments, queryParams };
|
|
291
293
|
};
|
package/dist/index.js
CHANGED
|
@@ -311,9 +311,11 @@ parseRouteOrPath_fn = function(path) {
|
|
|
311
311
|
if (!path.startsWith("/") || path === "") {
|
|
312
312
|
throw new Error(`Path must start with a slash: ${path}`);
|
|
313
313
|
}
|
|
314
|
-
const
|
|
315
|
-
const
|
|
316
|
-
pathSegments[pathSegments.length - 1]
|
|
314
|
+
const [pathname, queryString] = path.split("?");
|
|
315
|
+
const pathSegments = pathname.substring(1).split("/");
|
|
316
|
+
if (pathSegments[pathSegments.length - 1] === "") {
|
|
317
|
+
pathSegments.pop();
|
|
318
|
+
}
|
|
317
319
|
const queryParams = new URLSearchParams(queryString);
|
|
318
320
|
return { segments: pathSegments, queryParams };
|
|
319
321
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -283,9 +283,11 @@ parseRouteOrPath_fn = function(path) {
|
|
|
283
283
|
if (!path.startsWith("/") || path === "") {
|
|
284
284
|
throw new Error(`Path must start with a slash: ${path}`);
|
|
285
285
|
}
|
|
286
|
-
const
|
|
287
|
-
const
|
|
288
|
-
pathSegments[pathSegments.length - 1]
|
|
286
|
+
const [pathname, queryString] = path.split("?");
|
|
287
|
+
const pathSegments = pathname.substring(1).split("/");
|
|
288
|
+
if (pathSegments[pathSegments.length - 1] === "") {
|
|
289
|
+
pathSegments.pop();
|
|
290
|
+
}
|
|
289
291
|
const queryParams = new URLSearchParams(queryString);
|
|
290
292
|
return { segments: pathSegments, queryParams };
|
|
291
293
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/project-map",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.103.0",
|
|
4
4
|
"description": "Uniform Project Map",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"/dist"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@uniformdev/canvas": "19.
|
|
37
|
-
"@uniformdev/context": "19.
|
|
36
|
+
"@uniformdev/canvas": "19.103.0",
|
|
37
|
+
"@uniformdev/context": "19.103.0"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "ebdcac3a77d293bff272925f62f8c1c10be855bc"
|
|
43
43
|
}
|