cookie-es 3.1.0 → 3.1.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.
Files changed (2) hide show
  1. package/dist/index.mjs +2 -2
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const COOKIE_MAX_AGE_LIMIT = 400 * 24 * 60 * 60;
1
+ const COOKIE_MAX_AGE_LIMIT = 3456e4;
2
2
  function endIndex(str, min, len) {
3
3
  const index = str.indexOf(";", min);
4
4
  return index === -1 ? len : index;
@@ -162,7 +162,7 @@ function isDate(val) {
162
162
  return __toString.call(val) === "[object Date]";
163
163
  }
164
164
  const maxAgeRegExp = /^-?\d+$/;
165
- const _nullProto = Object.getPrototypeOf({});
165
+ const _nullProto = /* @__PURE__ */ Object.getPrototypeOf({});
166
166
  function parseSetCookie(str, options) {
167
167
  const len = str.length;
168
168
  let _endIdx = len;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cookie-es",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "license": "MIT",
5
5
  "repository": "unjs/cookie-es",
6
6
  "files": [