@alicloud/cookie
Advanced tools
Comparing version 1.0.14 to 1.0.16
@@ -1,5 +0,4 @@ | ||
import getAllCookies from './util/get-all-cookies'; | ||
import getCookie from './util/get-cookie'; | ||
import setCookie from './util/set-cookie'; | ||
import deleteCookie from './util/delete-cookie'; | ||
export { getAllCookies, getCookie, setCookie, deleteCookie }; | ||
export { default as getAllCookies } from './util/get-all-cookies'; | ||
export { default as getCookie } from './util/get-cookie'; | ||
export { default as setCookie } from './util/set-cookie'; | ||
export { default as deleteCookie } from './util/delete-cookie'; |
@@ -1,5 +0,4 @@ | ||
import getAllCookies from './util/get-all-cookies'; | ||
import getCookie from './util/get-cookie'; | ||
import setCookie from './util/set-cookie'; | ||
import deleteCookie from './util/delete-cookie'; | ||
export { getAllCookies, getCookie, setCookie, deleteCookie }; | ||
export { default as getAllCookies } from './util/get-all-cookies'; | ||
export { default as getCookie } from './util/get-cookie'; | ||
export { default as setCookie } from './util/set-cookie'; | ||
export { default as deleteCookie } from './util/delete-cookie'; |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@alicloud/cookie"]=t():e["@alicloud/cookie"]=t()}(window,function(){return o=[function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return document.cookie?document.cookie.split(/\s*;\s*/).reduce(function(t,e){var e=e.split("="),o=e[0],n=e[1];try{t[o]=decodeURIComponent(n)}catch(e){t[o]=unescape(n)}return t},{}):{}}},function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(o(5)),i=n(o(6));t.default=function(e,t,o){var n=void 0===o?{}:o,u=n.domain,o=void 0===u?i.default():u,u=n.path,u=void 0===u?"/":u,n=n.days,n=void 0===n?180:n;document.cookie=[e+"="+encodeURIComponent(t),"domain="+o,"path="+u,"expires="+r.default(n)].join(";")}},function(e,t,o){e.exports=o(3)},function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.deleteCookie=t.setCookie=t.getCookie=t.getAllCookies=void 0;var u=n(o(0));t.getAllCookies=u.default;u=n(o(4));t.getCookie=u.default;u=n(o(1));t.setCookie=u.default;o=n(o(7));t.deleteCookie=o.default},function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=n(o(0));t.default=function(e){return u.default()[e]}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!e)return"";var t=new Date;return t.setDate(t.getDate()+e),t.toUTCString()}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=window.location.hostname;if(/^\d[\d.]*\d$/.test(e))return e;var t=e.split(".");return 3<=t.length?"."+t[t.length-2]+"."+t[t.length-1]:e}},function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=n(o(1));t.default=function(e,t){var o=void 0===t?{}:t,t=o.domain,o=o.path;u.default(e,"",{domain:t,path:o,days:-1})}}],n={},u.m=o,u.c=n,u.d=function(e,t,o){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(t,e){if(1&e&&(t=u(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(u.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)u.d(o,n,function(e){return t[e]}.bind(null,n));return o},u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="/",u(u.s=2);function u(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,u),t.l=!0,t.exports}var o,n}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@alicloud/cookie"]=t():e["@alicloud/cookie"]=t()}(window,function(){return o=[function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return document.cookie?document.cookie.split(/\s*;\s*/).reduce(function(t,e){var e=e.split("="),o=e[0],n=e[1];try{t[o]=decodeURIComponent(n)}catch(e){t[o]=unescape(n)}return t},{}):{}}},function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=n(o(5)),i=n(o(6));t.default=function(e,t,o){var n=void 0===o?{}:o,r=n.domain,o=void 0===r?i.default():r,r=n.path,r=void 0===r?"/":r,n=n.days,n=void 0===n?180:n;document.cookie=[e+"="+encodeURIComponent(t),"domain="+o,"path="+r,"expires="+u.default(n)].join(";")}},function(e,t,o){e.exports=o(3)},function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.deleteCookie=t.setCookie=t.getCookie=t.getAllCookies=void 0;var r=o(0);Object.defineProperty(t,"getAllCookies",{enumerable:!0,get:function(){return n(r).default}});var u=o(4);Object.defineProperty(t,"getCookie",{enumerable:!0,get:function(){return n(u).default}});var i=o(1);Object.defineProperty(t,"setCookie",{enumerable:!0,get:function(){return n(i).default}});var f=o(7);Object.defineProperty(t,"deleteCookie",{enumerable:!0,get:function(){return n(f).default}})},function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(o(0));t.default=function(e){return r.default()[e]}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!e)return"";var t=new Date;return t.setDate(t.getDate()+e),t.toUTCString()}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=window.location.hostname;if(/^\d[\d.]*\d$/.test(e))return e;var t=e.split(".");return 3<=t.length?"."+t[t.length-2]+"."+t[t.length-1]:e}},function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(o(1));t.default=function(e,t){var o=void 0===t?{}:t,t=o.domain,o=o.path;r.default(e,"",{domain:t,path:o,days:-1})}}],n={},r.m=o,r.c=n,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)r.d(o,n,function(e){return t[e]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=2);function r(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,n}); |
{ | ||
"name": "@alicloud/cookie", | ||
"version": "1.0.14", | ||
"version": "1.0.16", | ||
"description": "ConsoleBase Cookie", | ||
@@ -27,4 +27,4 @@ "license": "MIT", | ||
"@alicloud/console-toolkit-cli": "^1.2.0", | ||
"@alicloud/console-toolkit-preset-component": "^1.2.6", | ||
"@alicloud/demo-rc-elements": "^1.0.11", | ||
"@alicloud/console-toolkit-preset-component": "^1.2.7", | ||
"@alicloud/demo-rc-elements": "^1.0.13", | ||
"@types/jest": "^26.0.20", | ||
@@ -48,3 +48,3 @@ "@types/react": "^16.14.2", | ||
}, | ||
"gitHead": "7f093628cdf93860a5a5d6148eb84274ebc1d9ef" | ||
"gitHead": "ecbf838a3bce1ea1ad867566cbd894f57b911f8e" | ||
} |
@@ -1,11 +0,4 @@ | ||
import getAllCookies from './util/get-all-cookies'; | ||
import getCookie from './util/get-cookie'; | ||
import setCookie from './util/set-cookie'; | ||
import deleteCookie from './util/delete-cookie'; | ||
export { | ||
getAllCookies, | ||
getCookie, | ||
setCookie, | ||
deleteCookie | ||
}; | ||
export { default as getAllCookies } from './util/get-all-cookies'; | ||
export { default as getCookie } from './util/get-cookie'; | ||
export { default as setCookie } from './util/set-cookie'; | ||
export { default as deleteCookie } from './util/delete-cookie'; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19916
343