@treeship/verify 0.31.13 → 0.31.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.js +3 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -62,7 +62,9 @@ export function receiptApiUrl(raw) {
|
|
|
62
62
|
const noFragment = pathAndQuery.split('#')[0];
|
|
63
63
|
const q = noFragment.indexOf('?');
|
|
64
64
|
const query = q < 0 ? null : noFragment.slice(q + 1);
|
|
65
|
-
|
|
65
|
+
let path = q < 0 ? noFragment : noFragment.slice(0, q);
|
|
66
|
+
while (path.endsWith('/'))
|
|
67
|
+
path = path.slice(0, -1);
|
|
66
68
|
// The id is whatever follows the receipt segment: exactly one path
|
|
67
69
|
// segment of id characters, so `..`, `%2F` and friends never reach the
|
|
68
70
|
// request.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@treeship/verify",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.14",
|
|
4
4
|
"description": "Zero-dependency cryptographic verification for Treeship receipts and certificates. Runs anywhere WASM runs: Node, browser, Vercel Edge, Cloudflare Workers, AWS Lambda.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"test": "vitest run"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@treeship/core-wasm": "0.31.
|
|
43
|
+
"@treeship/core-wasm": "0.31.14"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/node": "^25.5.0",
|