kui-utils 0.0.4 → 0.0.6
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/index.js +2 -1
- package/cjs/index.js.map +1 -1
- package/index.d.ts +23 -36
- package/index.js +2 -1
- package/index.js.map +1 -1
- package/package.json +7 -2
package/cjs/index.js
CHANGED
|
@@ -2043,7 +2043,8 @@ function setCookie(name, value, options) {
|
|
|
2043
2043
|
if (options === void 0) { options = {}; }
|
|
2044
2044
|
var cookieOptions = __assign({ path: "/" }, options);
|
|
2045
2045
|
var updatedCookie = "".concat(encodeURIComponent(name), "=").concat(encodeURIComponent(value));
|
|
2046
|
-
|
|
2046
|
+
Object.keys(cookieOptions).forEach(function (key) {
|
|
2047
|
+
var val = cookieOptions[key];
|
|
2047
2048
|
updatedCookie += "; ".concat(key);
|
|
2048
2049
|
updatedCookie += "=".concat(val);
|
|
2049
2050
|
});
|