kaafil-js 0.6.1 → 0.6.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/dist/client-entry.cjs +2 -1
- package/dist/client-entry.cjs.map +1 -1
- package/dist/client-entry.js +2 -1
- package/dist/client-entry.js.map +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/client-entry.cjs
CHANGED
|
@@ -1761,7 +1761,8 @@ function parseRetryAfterSeconds(headerValue) {
|
|
|
1761
1761
|
return Number.isFinite(seconds) && seconds >= 0 ? seconds : void 0;
|
|
1762
1762
|
}
|
|
1763
1763
|
function attachMeta(data, meta, facets) {
|
|
1764
|
-
const
|
|
1764
|
+
const base = data === void 0 || data === null ? {} : data;
|
|
1765
|
+
const withMeta = Object.assign(base, { meta });
|
|
1765
1766
|
return facets === void 0 ? withMeta : Object.assign(withMeta, { facets });
|
|
1766
1767
|
}
|
|
1767
1768
|
function describeCrossOriginSuspect(url) {
|