@xyo-network/payload 2.33.15 → 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/esm/Huri/Huri.js
CHANGED
|
@@ -25,8 +25,8 @@ export class Huri {
|
|
|
25
25
|
}
|
|
26
26
|
parsePath(path, hasProtocol) {
|
|
27
27
|
const pathParts = path.split('/');
|
|
28
|
-
//if the
|
|
29
|
-
assertEx(!(hasProtocol && pathParts[0].length === 0), 'Invalid protocol
|
|
28
|
+
//if the protocol was found, then there is not allowed to be a leading /
|
|
29
|
+
assertEx(!(hasProtocol && pathParts[0].length === 0), 'Invalid protocol separator');
|
|
30
30
|
//remove leading '/' if needed
|
|
31
31
|
pathParts[0].length === 0 ? pathParts.shift() : null;
|
|
32
32
|
//hash is assumed to be the last part
|
package/package.json
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@xylabs/sdk-js": "^2.6.7",
|
|
14
|
-
"@xyo-network/account": "^2.
|
|
15
|
-
"@xyo-network/core": "^2.
|
|
14
|
+
"@xyo-network/account": "^2.34.0",
|
|
15
|
+
"@xyo-network/core": "^2.34.0",
|
|
16
16
|
"axios": "^0.27.2",
|
|
17
17
|
"tslib": "^2.4.0"
|
|
18
18
|
},
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
},
|
|
50
50
|
"sideEffects": false,
|
|
51
51
|
"types": "dist/esm/index.d.ts",
|
|
52
|
-
"version": "2.
|
|
52
|
+
"version": "2.34.0"
|
|
53
53
|
}
|
package/src/Huri/Huri.ts
CHANGED
|
@@ -60,8 +60,8 @@ export class Huri<T extends XyoPayload = XyoPayload> {
|
|
|
60
60
|
private parsePath(path: string, hasProtocol: boolean) {
|
|
61
61
|
const pathParts = path.split('/')
|
|
62
62
|
|
|
63
|
-
//if the
|
|
64
|
-
assertEx(!(hasProtocol && pathParts[0].length === 0), 'Invalid protocol
|
|
63
|
+
//if the protocol was found, then there is not allowed to be a leading /
|
|
64
|
+
assertEx(!(hasProtocol && pathParts[0].length === 0), 'Invalid protocol separator')
|
|
65
65
|
|
|
66
66
|
//remove leading '/' if needed
|
|
67
67
|
pathParts[0].length === 0 ? pathParts.shift() : null
|