@saasquatch/squatch-js 2.6.2 → 2.6.3-2
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/coverage/clover.xml +913 -0
- package/coverage/coverage-final.json +21 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +196 -0
- package/coverage/lcov.info +1663 -0
- package/dist/squatch.esm.js +10 -2
- package/dist/squatch.esm.js.map +1 -1
- package/dist/squatch.js +10 -2
- package/dist/squatch.js.map +1 -1
- package/dist/squatch.min.js +1 -1
- package/dist/utils/decode.d.ts +2 -0
- package/dist/utils/decodeBase64.d.ts +1 -0
- package/package.json +3 -2
package/dist/squatch.js
CHANGED
|
@@ -1571,10 +1571,18 @@ var deepMerge = (target, source) => {
|
|
|
1571
1571
|
[prop]: isDeep(prop) ? deepMerge(target[prop], source[prop]) : source[prop]
|
|
1572
1572
|
})).reduce((a, b) => _extends({}, a, b), {});
|
|
1573
1573
|
return _extends({}, target, replaced);
|
|
1574
|
-
};
|
|
1574
|
+
}; // inspired by https://github.com/panva/jose/blob/3c4ad55c92bcd9cbc0512438819717d185c41fb2/src/util/decode_jwt.ts#L22
|
|
1575
|
+
|
|
1575
1576
|
|
|
1576
1577
|
function b64decode(input) {
|
|
1577
|
-
|
|
1578
|
+
var binary = atob(input.replace(/_/g, "/").replace(/-/g, "+"));
|
|
1579
|
+
var bytes = new Uint8Array(binary.length);
|
|
1580
|
+
|
|
1581
|
+
for (var i = 0; i < binary.length; i++) {
|
|
1582
|
+
bytes[i] = binary.charCodeAt(i);
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
return new TextDecoder("utf8").decode(bytes);
|
|
1578
1586
|
}
|
|
1579
1587
|
|
|
1580
1588
|
function b64encode(input) {
|