mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 10:19:24 +02:00
npm update
This commit is contained in:
parent
0cdd3e9fee
commit
4696ba952f
1437 changed files with 32727 additions and 1248226 deletions
30
node_modules/js-cookie/dist/js.cookie.mjs
generated
vendored
30
node_modules/js-cookie/dist/js.cookie.mjs
generated
vendored
|
@ -1,4 +1,4 @@
|
|||
/*! js-cookie v3.0.1 | MIT */
|
||||
/*! js-cookie v3.0.5 | MIT */
|
||||
/* eslint-disable no-var */
|
||||
function assign (target) {
|
||||
for (var i = 1; i < arguments.length; i++) {
|
||||
|
@ -31,7 +31,7 @@ var defaultConverter = {
|
|||
/* eslint-disable no-var */
|
||||
|
||||
function init (converter, defaultAttributes) {
|
||||
function set (key, value, attributes) {
|
||||
function set (name, value, attributes) {
|
||||
if (typeof document === 'undefined') {
|
||||
return
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ function init (converter, defaultAttributes) {
|
|||
attributes.expires = attributes.expires.toUTCString();
|
||||
}
|
||||
|
||||
key = encodeURIComponent(key)
|
||||
name = encodeURIComponent(name)
|
||||
.replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)
|
||||
.replace(/[()]/g, escape);
|
||||
|
||||
|
@ -72,11 +72,11 @@ function init (converter, defaultAttributes) {
|
|||
}
|
||||
|
||||
return (document.cookie =
|
||||
key + '=' + converter.write(value, key) + stringifiedAttributes)
|
||||
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
|
||||
}
|
||||
|
||||
|
@ -89,25 +89,25 @@ function init (converter, defaultAttributes) {
|
|||
var value = parts.slice(1).join('=');
|
||||
|
||||
try {
|
||||
var foundKey = decodeURIComponent(parts[0]);
|
||||
jar[foundKey] = converter.read(value, foundKey);
|
||||
var found = decodeURIComponent(parts[0]);
|
||||
jar[found] = converter.read(value, found);
|
||||
|
||||
if (key === foundKey) {
|
||||
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 (key, attributes) {
|
||||
set,
|
||||
get,
|
||||
remove: function (name, attributes) {
|
||||
set(
|
||||
key,
|
||||
name,
|
||||
'',
|
||||
assign({}, attributes, {
|
||||
expires: -1
|
||||
|
@ -131,4 +131,4 @@ function init (converter, defaultAttributes) {
|
|||
var api = init(defaultConverter, { path: '/' });
|
||||
/* eslint-enable no-var */
|
||||
|
||||
export default api;
|
||||
export { api as default };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue