@uniformdev/project-map 19.99.1-alpha.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 -10
- package/dist/index.js +5 -10
- package/dist/index.mjs +5 -10
- package/package.json +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -253,13 +253,6 @@ var _Route = class _Route {
|
|
|
253
253
|
}
|
|
254
254
|
const dynamicSegmentValue = dynamicInputValues[dynamicSegmentName];
|
|
255
255
|
if (!dynamicSegmentValue) {
|
|
256
|
-
console.log(
|
|
257
|
-
"Missing dynamic input value for",
|
|
258
|
-
dynamicSegmentName,
|
|
259
|
-
"in",
|
|
260
|
-
this.route,
|
|
261
|
-
"using literal value"
|
|
262
|
-
);
|
|
263
256
|
return segment;
|
|
264
257
|
}
|
|
265
258
|
return encodeRouteComponent(dynamicSegmentValue, doNotEscapeVariables);
|
|
@@ -290,9 +283,11 @@ parseRouteOrPath_fn = function(path) {
|
|
|
290
283
|
if (!path.startsWith("/") || path === "") {
|
|
291
284
|
throw new Error(`Path must start with a slash: ${path}`);
|
|
292
285
|
}
|
|
293
|
-
const
|
|
294
|
-
const
|
|
295
|
-
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
|
+
}
|
|
296
291
|
const queryParams = new URLSearchParams(queryString);
|
|
297
292
|
return { segments: pathSegments, queryParams };
|
|
298
293
|
};
|
package/dist/index.js
CHANGED
|
@@ -281,13 +281,6 @@ var _Route = class _Route {
|
|
|
281
281
|
}
|
|
282
282
|
const dynamicSegmentValue = dynamicInputValues[dynamicSegmentName];
|
|
283
283
|
if (!dynamicSegmentValue) {
|
|
284
|
-
console.log(
|
|
285
|
-
"Missing dynamic input value for",
|
|
286
|
-
dynamicSegmentName,
|
|
287
|
-
"in",
|
|
288
|
-
this.route,
|
|
289
|
-
"using literal value"
|
|
290
|
-
);
|
|
291
284
|
return segment;
|
|
292
285
|
}
|
|
293
286
|
return encodeRouteComponent(dynamicSegmentValue, doNotEscapeVariables);
|
|
@@ -318,9 +311,11 @@ parseRouteOrPath_fn = function(path) {
|
|
|
318
311
|
if (!path.startsWith("/") || path === "") {
|
|
319
312
|
throw new Error(`Path must start with a slash: ${path}`);
|
|
320
313
|
}
|
|
321
|
-
const
|
|
322
|
-
const
|
|
323
|
-
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
|
+
}
|
|
324
319
|
const queryParams = new URLSearchParams(queryString);
|
|
325
320
|
return { segments: pathSegments, queryParams };
|
|
326
321
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -253,13 +253,6 @@ var _Route = class _Route {
|
|
|
253
253
|
}
|
|
254
254
|
const dynamicSegmentValue = dynamicInputValues[dynamicSegmentName];
|
|
255
255
|
if (!dynamicSegmentValue) {
|
|
256
|
-
console.log(
|
|
257
|
-
"Missing dynamic input value for",
|
|
258
|
-
dynamicSegmentName,
|
|
259
|
-
"in",
|
|
260
|
-
this.route,
|
|
261
|
-
"using literal value"
|
|
262
|
-
);
|
|
263
256
|
return segment;
|
|
264
257
|
}
|
|
265
258
|
return encodeRouteComponent(dynamicSegmentValue, doNotEscapeVariables);
|
|
@@ -290,9 +283,11 @@ parseRouteOrPath_fn = function(path) {
|
|
|
290
283
|
if (!path.startsWith("/") || path === "") {
|
|
291
284
|
throw new Error(`Path must start with a slash: ${path}`);
|
|
292
285
|
}
|
|
293
|
-
const
|
|
294
|
-
const
|
|
295
|
-
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
|
+
}
|
|
296
291
|
const queryParams = new URLSearchParams(queryString);
|
|
297
292
|
return { segments: pathSegments, queryParams };
|
|
298
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
|
}
|