altcha-lib 0.5.0 → 0.5.1
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/cjs/dist/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/cjs/dist/index.js
CHANGED
|
@@ -45,7 +45,7 @@ function extractParams(payload) {
|
|
|
45
45
|
if (typeof payload === 'string') {
|
|
46
46
|
payload = JSON.parse(atob(payload));
|
|
47
47
|
}
|
|
48
|
-
return Object.fromEntries(new URLSearchParams(payload
|
|
48
|
+
return Object.fromEntries(new URLSearchParams(payload?.salt?.split('?')?.[1] || ''));
|
|
49
49
|
}
|
|
50
50
|
exports.extractParams = extractParams;
|
|
51
51
|
/**
|
package/dist/index.js
CHANGED
|
@@ -41,7 +41,7 @@ export function extractParams(payload) {
|
|
|
41
41
|
if (typeof payload === 'string') {
|
|
42
42
|
payload = JSON.parse(atob(payload));
|
|
43
43
|
}
|
|
44
|
-
return Object.fromEntries(new URLSearchParams(payload
|
|
44
|
+
return Object.fromEntries(new URLSearchParams(payload?.salt?.split('?')?.[1] || ''));
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
47
|
* Verifies the solution provided by the client.
|