@uniformdev/project-map 20.72.1 → 20.72.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.
- package/dist/index.d.mts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.esm.js +32 -0
- package/dist/index.js +32 -0
- package/dist/index.mjs +32 -0
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1215,6 +1215,18 @@ declare class Route {
|
|
|
1215
1215
|
*/
|
|
1216
1216
|
expand(options?: ExpandOptions): string;
|
|
1217
1217
|
static getDynamicRouteSegmentName(segment: string): string | undefined;
|
|
1218
|
+
/**
|
|
1219
|
+
* Splits a path into the path portion and an optional `#fragment`
|
|
1220
|
+
* (everything after the first `#`).
|
|
1221
|
+
*
|
|
1222
|
+
* Variable expressions (`${...}`) may legitimately contain `#` characters
|
|
1223
|
+
* (e.g. JSON-pointer tokens like `${#jptr:/foo/_slug}`), so the fragment
|
|
1224
|
+
* delimiter is the first `#` that falls outside of a variable expression.
|
|
1225
|
+
*/
|
|
1226
|
+
static splitFragment(path: string): {
|
|
1227
|
+
path: string;
|
|
1228
|
+
fragment: string | undefined;
|
|
1229
|
+
};
|
|
1218
1230
|
static dynamicSegmentPrefix: string;
|
|
1219
1231
|
}
|
|
1220
1232
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1215,6 +1215,18 @@ declare class Route {
|
|
|
1215
1215
|
*/
|
|
1216
1216
|
expand(options?: ExpandOptions): string;
|
|
1217
1217
|
static getDynamicRouteSegmentName(segment: string): string | undefined;
|
|
1218
|
+
/**
|
|
1219
|
+
* Splits a path into the path portion and an optional `#fragment`
|
|
1220
|
+
* (everything after the first `#`).
|
|
1221
|
+
*
|
|
1222
|
+
* Variable expressions (`${...}`) may legitimately contain `#` characters
|
|
1223
|
+
* (e.g. JSON-pointer tokens like `${#jptr:/foo/_slug}`), so the fragment
|
|
1224
|
+
* delimiter is the first `#` that falls outside of a variable expression.
|
|
1225
|
+
*/
|
|
1226
|
+
static splitFragment(path: string): {
|
|
1227
|
+
path: string;
|
|
1228
|
+
fragment: string | undefined;
|
|
1229
|
+
};
|
|
1218
1230
|
static dynamicSegmentPrefix: string;
|
|
1219
1231
|
}
|
|
1220
1232
|
|
package/dist/index.esm.js
CHANGED
|
@@ -336,6 +336,38 @@ var _Route = class _Route {
|
|
|
336
336
|
}
|
|
337
337
|
return segment.slice(_Route.dynamicSegmentPrefix.length);
|
|
338
338
|
}
|
|
339
|
+
/**
|
|
340
|
+
* Splits a path into the path portion and an optional `#fragment`
|
|
341
|
+
* (everything after the first `#`).
|
|
342
|
+
*
|
|
343
|
+
* Variable expressions (`${...}`) may legitimately contain `#` characters
|
|
344
|
+
* (e.g. JSON-pointer tokens like `${#jptr:/foo/_slug}`), so the fragment
|
|
345
|
+
* delimiter is the first `#` that falls outside of a variable expression.
|
|
346
|
+
*/
|
|
347
|
+
static splitFragment(path) {
|
|
348
|
+
let fragmentIndex = -1;
|
|
349
|
+
let length = 0;
|
|
350
|
+
parseVariableExpression(path, (token, type) => {
|
|
351
|
+
if (type === "variable") {
|
|
352
|
+
length += createVariableReference(token).length;
|
|
353
|
+
return;
|
|
354
|
+
}
|
|
355
|
+
const hashOffset = token.indexOf("#");
|
|
356
|
+
if (hashOffset === -1) {
|
|
357
|
+
length += token.length;
|
|
358
|
+
return;
|
|
359
|
+
}
|
|
360
|
+
fragmentIndex = length + hashOffset;
|
|
361
|
+
return false;
|
|
362
|
+
});
|
|
363
|
+
if (fragmentIndex === -1) {
|
|
364
|
+
return { path, fragment: void 0 };
|
|
365
|
+
}
|
|
366
|
+
return {
|
|
367
|
+
path: path.slice(0, fragmentIndex),
|
|
368
|
+
fragment: path.slice(fragmentIndex + 1)
|
|
369
|
+
};
|
|
370
|
+
}
|
|
339
371
|
};
|
|
340
372
|
_routeInfo = new WeakMap();
|
|
341
373
|
_Route_static = new WeakSet();
|
package/dist/index.js
CHANGED
|
@@ -369,6 +369,38 @@ var _Route = class _Route {
|
|
|
369
369
|
}
|
|
370
370
|
return segment.slice(_Route.dynamicSegmentPrefix.length);
|
|
371
371
|
}
|
|
372
|
+
/**
|
|
373
|
+
* Splits a path into the path portion and an optional `#fragment`
|
|
374
|
+
* (everything after the first `#`).
|
|
375
|
+
*
|
|
376
|
+
* Variable expressions (`${...}`) may legitimately contain `#` characters
|
|
377
|
+
* (e.g. JSON-pointer tokens like `${#jptr:/foo/_slug}`), so the fragment
|
|
378
|
+
* delimiter is the first `#` that falls outside of a variable expression.
|
|
379
|
+
*/
|
|
380
|
+
static splitFragment(path) {
|
|
381
|
+
let fragmentIndex = -1;
|
|
382
|
+
let length = 0;
|
|
383
|
+
(0, import_canvas.parseVariableExpression)(path, (token, type) => {
|
|
384
|
+
if (type === "variable") {
|
|
385
|
+
length += (0, import_canvas.createVariableReference)(token).length;
|
|
386
|
+
return;
|
|
387
|
+
}
|
|
388
|
+
const hashOffset = token.indexOf("#");
|
|
389
|
+
if (hashOffset === -1) {
|
|
390
|
+
length += token.length;
|
|
391
|
+
return;
|
|
392
|
+
}
|
|
393
|
+
fragmentIndex = length + hashOffset;
|
|
394
|
+
return false;
|
|
395
|
+
});
|
|
396
|
+
if (fragmentIndex === -1) {
|
|
397
|
+
return { path, fragment: void 0 };
|
|
398
|
+
}
|
|
399
|
+
return {
|
|
400
|
+
path: path.slice(0, fragmentIndex),
|
|
401
|
+
fragment: path.slice(fragmentIndex + 1)
|
|
402
|
+
};
|
|
403
|
+
}
|
|
372
404
|
};
|
|
373
405
|
_routeInfo = new WeakMap();
|
|
374
406
|
_Route_static = new WeakSet();
|
package/dist/index.mjs
CHANGED
|
@@ -336,6 +336,38 @@ var _Route = class _Route {
|
|
|
336
336
|
}
|
|
337
337
|
return segment.slice(_Route.dynamicSegmentPrefix.length);
|
|
338
338
|
}
|
|
339
|
+
/**
|
|
340
|
+
* Splits a path into the path portion and an optional `#fragment`
|
|
341
|
+
* (everything after the first `#`).
|
|
342
|
+
*
|
|
343
|
+
* Variable expressions (`${...}`) may legitimately contain `#` characters
|
|
344
|
+
* (e.g. JSON-pointer tokens like `${#jptr:/foo/_slug}`), so the fragment
|
|
345
|
+
* delimiter is the first `#` that falls outside of a variable expression.
|
|
346
|
+
*/
|
|
347
|
+
static splitFragment(path) {
|
|
348
|
+
let fragmentIndex = -1;
|
|
349
|
+
let length = 0;
|
|
350
|
+
parseVariableExpression(path, (token, type) => {
|
|
351
|
+
if (type === "variable") {
|
|
352
|
+
length += createVariableReference(token).length;
|
|
353
|
+
return;
|
|
354
|
+
}
|
|
355
|
+
const hashOffset = token.indexOf("#");
|
|
356
|
+
if (hashOffset === -1) {
|
|
357
|
+
length += token.length;
|
|
358
|
+
return;
|
|
359
|
+
}
|
|
360
|
+
fragmentIndex = length + hashOffset;
|
|
361
|
+
return false;
|
|
362
|
+
});
|
|
363
|
+
if (fragmentIndex === -1) {
|
|
364
|
+
return { path, fragment: void 0 };
|
|
365
|
+
}
|
|
366
|
+
return {
|
|
367
|
+
path: path.slice(0, fragmentIndex),
|
|
368
|
+
fragment: path.slice(fragmentIndex + 1)
|
|
369
|
+
};
|
|
370
|
+
}
|
|
339
371
|
};
|
|
340
372
|
_routeInfo = new WeakMap();
|
|
341
373
|
_Route_static = new WeakSet();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/project-map",
|
|
3
|
-
"version": "20.72.
|
|
3
|
+
"version": "20.72.2",
|
|
4
4
|
"description": "Uniform Project Map",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"/dist"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@uniformdev/canvas": "20.72.
|
|
36
|
-
"@uniformdev/context": "20.72.
|
|
35
|
+
"@uniformdev/canvas": "20.72.2",
|
|
36
|
+
"@uniformdev/context": "20.72.2"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "8b65535fb3ec81e23f9eb8e0ed0b0be478f6e0e8"
|
|
42
42
|
}
|