@uniformdev/project-map 20.72.2-alpha.3 → 20.72.3-alpha.14
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 +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.esm.js +29 -0
- package/dist/index.js +29 -0
- package/dist/index.mjs +29 -0
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1100,6 +1100,7 @@ declare class ProjectMapClient extends ApiClient {
|
|
|
1100
1100
|
private setFetchOptions;
|
|
1101
1101
|
private cleanProjectMapNode;
|
|
1102
1102
|
}
|
|
1103
|
+
/** @deprecated Pass `bypassCache: true` to {@link ProjectMapClient} instead. */
|
|
1103
1104
|
declare class UncachedProjectMapClient extends ProjectMapClient {
|
|
1104
1105
|
constructor(options: Omit<ClientOptions, 'bypassCache'>);
|
|
1105
1106
|
}
|
|
@@ -1215,6 +1216,18 @@ declare class Route {
|
|
|
1215
1216
|
*/
|
|
1216
1217
|
expand(options?: ExpandOptions): string;
|
|
1217
1218
|
static getDynamicRouteSegmentName(segment: string): string | undefined;
|
|
1219
|
+
/**
|
|
1220
|
+
* Splits a path into the path portion and an optional `#fragment`
|
|
1221
|
+
* (everything after the first `#`).
|
|
1222
|
+
*
|
|
1223
|
+
* Variable expressions (`${...}`) may legitimately contain `#` characters
|
|
1224
|
+
* (e.g. JSON-pointer tokens like `${#jptr:/foo/_slug}`), so the fragment
|
|
1225
|
+
* delimiter is the first `#` that falls outside of a variable expression.
|
|
1226
|
+
*/
|
|
1227
|
+
static splitFragment(path: string): {
|
|
1228
|
+
path: string;
|
|
1229
|
+
fragment: string | undefined;
|
|
1230
|
+
};
|
|
1218
1231
|
static dynamicSegmentPrefix: string;
|
|
1219
1232
|
}
|
|
1220
1233
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1100,6 +1100,7 @@ declare class ProjectMapClient extends ApiClient {
|
|
|
1100
1100
|
private setFetchOptions;
|
|
1101
1101
|
private cleanProjectMapNode;
|
|
1102
1102
|
}
|
|
1103
|
+
/** @deprecated Pass `bypassCache: true` to {@link ProjectMapClient} instead. */
|
|
1103
1104
|
declare class UncachedProjectMapClient extends ProjectMapClient {
|
|
1104
1105
|
constructor(options: Omit<ClientOptions, 'bypassCache'>);
|
|
1105
1106
|
}
|
|
@@ -1215,6 +1216,18 @@ declare class Route {
|
|
|
1215
1216
|
*/
|
|
1216
1217
|
expand(options?: ExpandOptions): string;
|
|
1217
1218
|
static getDynamicRouteSegmentName(segment: string): string | undefined;
|
|
1219
|
+
/**
|
|
1220
|
+
* Splits a path into the path portion and an optional `#fragment`
|
|
1221
|
+
* (everything after the first `#`).
|
|
1222
|
+
*
|
|
1223
|
+
* Variable expressions (`${...}`) may legitimately contain `#` characters
|
|
1224
|
+
* (e.g. JSON-pointer tokens like `${#jptr:/foo/_slug}`), so the fragment
|
|
1225
|
+
* delimiter is the first `#` that falls outside of a variable expression.
|
|
1226
|
+
*/
|
|
1227
|
+
static splitFragment(path: string): {
|
|
1228
|
+
path: string;
|
|
1229
|
+
fragment: string | undefined;
|
|
1230
|
+
};
|
|
1218
1231
|
static dynamicSegmentPrefix: string;
|
|
1219
1232
|
}
|
|
1220
1233
|
|
package/dist/index.esm.js
CHANGED
|
@@ -336,6 +336,35 @@ 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
|
+
parseVariableExpression(path, (token, type, offset) => {
|
|
350
|
+
if (type === "variable") {
|
|
351
|
+
return;
|
|
352
|
+
}
|
|
353
|
+
const hashOffset = token.indexOf("#");
|
|
354
|
+
if (hashOffset === -1) {
|
|
355
|
+
return;
|
|
356
|
+
}
|
|
357
|
+
fragmentIndex = offset + hashOffset;
|
|
358
|
+
return false;
|
|
359
|
+
});
|
|
360
|
+
if (fragmentIndex === -1) {
|
|
361
|
+
return { path, fragment: void 0 };
|
|
362
|
+
}
|
|
363
|
+
return {
|
|
364
|
+
path: path.slice(0, fragmentIndex),
|
|
365
|
+
fragment: path.slice(fragmentIndex + 1)
|
|
366
|
+
};
|
|
367
|
+
}
|
|
339
368
|
};
|
|
340
369
|
_routeInfo = new WeakMap();
|
|
341
370
|
_Route_static = new WeakSet();
|
package/dist/index.js
CHANGED
|
@@ -369,6 +369,35 @@ 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
|
+
(0, import_canvas.parseVariableExpression)(path, (token, type, offset) => {
|
|
383
|
+
if (type === "variable") {
|
|
384
|
+
return;
|
|
385
|
+
}
|
|
386
|
+
const hashOffset = token.indexOf("#");
|
|
387
|
+
if (hashOffset === -1) {
|
|
388
|
+
return;
|
|
389
|
+
}
|
|
390
|
+
fragmentIndex = offset + hashOffset;
|
|
391
|
+
return false;
|
|
392
|
+
});
|
|
393
|
+
if (fragmentIndex === -1) {
|
|
394
|
+
return { path, fragment: void 0 };
|
|
395
|
+
}
|
|
396
|
+
return {
|
|
397
|
+
path: path.slice(0, fragmentIndex),
|
|
398
|
+
fragment: path.slice(fragmentIndex + 1)
|
|
399
|
+
};
|
|
400
|
+
}
|
|
372
401
|
};
|
|
373
402
|
_routeInfo = new WeakMap();
|
|
374
403
|
_Route_static = new WeakSet();
|
package/dist/index.mjs
CHANGED
|
@@ -336,6 +336,35 @@ 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
|
+
parseVariableExpression(path, (token, type, offset) => {
|
|
350
|
+
if (type === "variable") {
|
|
351
|
+
return;
|
|
352
|
+
}
|
|
353
|
+
const hashOffset = token.indexOf("#");
|
|
354
|
+
if (hashOffset === -1) {
|
|
355
|
+
return;
|
|
356
|
+
}
|
|
357
|
+
fragmentIndex = offset + hashOffset;
|
|
358
|
+
return false;
|
|
359
|
+
});
|
|
360
|
+
if (fragmentIndex === -1) {
|
|
361
|
+
return { path, fragment: void 0 };
|
|
362
|
+
}
|
|
363
|
+
return {
|
|
364
|
+
path: path.slice(0, fragmentIndex),
|
|
365
|
+
fragment: path.slice(fragmentIndex + 1)
|
|
366
|
+
};
|
|
367
|
+
}
|
|
339
368
|
};
|
|
340
369
|
_routeInfo = new WeakMap();
|
|
341
370
|
_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.3-alpha.14+1e232e59cd",
|
|
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.3-alpha.14+1e232e59cd",
|
|
36
|
+
"@uniformdev/context": "20.72.3-alpha.14+1e232e59cd"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "1e232e59cd3ded97b85b063986cc95e954b8c937"
|
|
42
42
|
}
|