Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

js-cookie 3.0.5 #14559

Merged
merged 2 commits into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -483,9 +483,9 @@ ResourceManifest BuildManifest()
manifest
.DefineScript("js-cookie")
.SetUrl("~/OrchardCore.Resources/Scripts/js.cookie.min.js", "~/OrchardCore.Resources/Scripts/js.cookie.js")
.SetCdn("https://cdn.jsdelivr.net/npm/[email protected].1/dist/js.cookie.min.js", "https://cdn.jsdelivr.net/npm/[email protected].1/dist/js.cookie.js")
.SetCdnIntegrity("sha384-ETDm/j6COkRSUfVFsGNM5WYE4WjyRgfDhy4Pf4Fsc8eNw/eYEMqYZWuxTzMX6FBa", "sha384-wAGdUDEOVO9JhMpvNh7mkYd0rL2EM0bLb1+VY5R+jDfVBxYFJNfzkinHfbRfxT2s")
.SetVersion("3.0.1");
.SetCdn("https://cdn.jsdelivr.net/npm/[email protected].5/dist/js.cookie.min.js", "https://cdn.jsdelivr.net/npm/[email protected].5/dist/js.cookie.js")
.SetCdnIntegrity("sha384-/vxhYfM1LENRhdpZ8dwEsQn/X4VhpbEZSiU4m/FwR+PVpzar4fkEOw8FP9Y+OfQN", "sha384-b1TD0tFP+Ao4jmFaQw9RQxezUooFrLdlqfDfoh1SKv5L3jG7dD44QiwD+UzckH8W")
.SetVersion("3.0.5");

manifest
.DefineScript("monaco-loader")
Expand Down
16 changes: 8 additions & 8 deletions src/OrchardCore.Modules/OrchardCore.Resources/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/OrchardCore.Modules/OrchardCore.Resources/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"jquery": "3.7.1",
"jquery-resizable-dom": "0.35.0",
"jquery.easing": "1.4.1",
"js-cookie": "3.0.1",
"js-cookie": "3.0.5",
"monaco-editor": "^0.35.0",
"sortablejs": "^1.14.0",
"trumbowyg": "2.27.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
*/

function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
/*! js-cookie v3.0.1 | MIT */
/*! js-cookie v3.0.5 | MIT */
;
(function (global, factory) {
(typeof exports === "undefined" ? "undefined" : _typeof(exports)) === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global = global || self, function () {
(typeof exports === "undefined" ? "undefined" : _typeof(exports)) === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, function () {
var current = global.Cookies;
var exports = global.Cookies = factory();
exports.noConflict = function () {
Expand Down Expand Up @@ -47,7 +47,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
/* eslint-disable no-var */

function init(converter, defaultAttributes) {
function set(key, value, attributes) {
function set(name, value, attributes) {
if (typeof document === 'undefined') {
return;
}
Expand All @@ -58,7 +58,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
if (attributes.expires) {
attributes.expires = attributes.expires.toUTCString();
}
key = encodeURIComponent(key).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
name = encodeURIComponent(name).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
var stringifiedAttributes = '';
for (var attributeName in attributes) {
if (!attributes[attributeName]) {
Expand All @@ -78,10 +78,10 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
// ...
stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];
}
return document.cookie = key + '=' + converter.write(value, key) + stringifiedAttributes;
return document.cookie = name + '=' + converter.write(value, name) + stringifiedAttributes;
}
function get(key) {
if (typeof document === 'undefined' || arguments.length && !key) {
function get(name) {
if (typeof document === 'undefined' || arguments.length && !name) {
return;
}

Expand All @@ -93,20 +93,20 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
var parts = cookies[i].split('=');
var value = parts.slice(1).join('=');
try {
var foundKey = decodeURIComponent(parts[0]);
jar[foundKey] = converter.read(value, foundKey);
if (key === foundKey) {
var found = decodeURIComponent(parts[0]);
jar[found] = converter.read(value, found);
if (name === found) {
break;
}
} catch (e) {}
}
return key ? jar[key] : jar;
return name ? jar[name] : jar;
}
return Object.create({
set: set,
get: get,
remove: function remove(key, attributes) {
set(key, '', assign({}, attributes, {
remove: function remove(name, attributes) {
set(name, '', assign({}, attributes, {
expires: -1
}));
},
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/docs/reference/modules/Resources/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ The `OrchardCore.Resources` module provides some commonly used ones:
| jQuery-ui-i18n | Script | 1.7.2 | jQuery-ui |
| jquery.easing | Script | 1.4.1 | - |
| jquery-resizable-dom | Script | 0.35.0 | - |
| js-cookie | Script | 3.0.1 | jQuery |
| js-cookie | Script | 3.0.5 | - |
| popper | Script | 1.16.1 | - |
| popperjs | Script | 2.11.8 | - |
| bootstrap | Script | 4.6.1 | popper |
Expand Down
2 changes: 1 addition & 1 deletion src/docs/resources/libraries/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ The below table lists the different libraries used as Resources:
| [jQuery UI i18n](https://github.com/jquery/jquery-ui/tree/master/ui/i18n) | jQuery UI internationalization. | 1.7.2 | [MIT](https://github.com/jquery/jquery-ui/blob/master/LICENSE.txt) |
| [jQuery Easing](https://github.com/gdsmith/jquery.easing) | jQuery Easing Plugin. | 1.4.1 | [MIT](https://github.com/gdsmith/jquery.easing/blob/master/LICENSE-BSD-3-Clause.txt) |
| [jquery-resizable-dom](https://github.com/RickStrahl/jquery-resizable) | jQuery plug-in to make DOM components resizable. | 0.35.0 | [MIT](https://github.com/RickStrahl/jquery-resizable/blob/master/LICENSE.md) |
| [js-cookie](https://github.com/js-cookie/js-cookie) | A simple, lightweight JavaScript API for handling browser cookies. | 3.0.1 | [MIT](https://github.com/js-cookie/js-cookie/blob/master/LICENSE) |
| [js-cookie](https://github.com/js-cookie/js-cookie) | A simple, lightweight JavaScript API for handling browser cookies. | 3.0.5 | [MIT](https://github.com/js-cookie/js-cookie/blob/master/LICENSE) |
| [Material icons](https://github.com/marella/material-icons) | Latest icon fonts and CSS for self-hosting material design icons. | 1.12.0 | [Apache-2.0](https://github.com/marella/material-icons/blob/main/LICENSE) |
| [Monaco Editor](https://microsoft.github.io/monaco-editor) | Lightweight source code editor | 0.35.0 | [MIT](https://github.com/microsoft/monaco-editor/blob/main/LICENSE.md) |
| [noUiSlider](https://github.com/leongersen/noUiSlider) | noUiSlider is a lightweight JavaScript range slider. | 15.6.1 | [MIT](https://github.com/leongersen/noUiSlider/blob/master/LICENSE.md) |
Expand Down
Loading