@xyo-network/payload 2.33.14 → 2.34.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/cjs/Huri/Huri.js +2 -2
- package/dist/docs.json +187 -187
- package/dist/esm/Huri/Huri.js +2 -2
- package/package.json +3 -3
- package/src/Huri/Huri.ts +2 -2
package/dist/cjs/Huri/Huri.js
CHANGED
|
@@ -26,8 +26,8 @@ class Huri {
|
|
|
26
26
|
parsePath(path, hasProtocol) {
|
|
27
27
|
var _a;
|
|
28
28
|
const pathParts = path.split('/');
|
|
29
|
-
//if the
|
|
30
|
-
(0, sdk_js_1.assertEx)(!(hasProtocol && pathParts[0].length === 0), 'Invalid protocol
|
|
29
|
+
//if the protocol was found, then there is not allowed to be a leading /
|
|
30
|
+
(0, sdk_js_1.assertEx)(!(hasProtocol && pathParts[0].length === 0), 'Invalid protocol separator');
|
|
31
31
|
//remove leading '/' if needed
|
|
32
32
|
pathParts[0].length === 0 ? pathParts.shift() : null;
|
|
33
33
|
//hash is assumed to be the last part
|