mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 02:09:22 +02:00
npm update
This commit is contained in:
parent
0cdd3e9fee
commit
4696ba952f
1437 changed files with 32727 additions and 1248226 deletions
36
node_modules/js-cookie/dist/js.cookie.js
generated
vendored
36
node_modules/js-cookie/dist/js.cookie.js
generated
vendored
|
@ -1,14 +1,14 @@
|
|||
/*! js-cookie v3.0.1 | MIT */
|
||||
/*! js-cookie v3.0.5 | MIT */
|
||||
;
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
||||
typeof define === 'function' && define.amd ? define(factory) :
|
||||
(global = global || self, (function () {
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, (function () {
|
||||
var current = global.Cookies;
|
||||
var exports = global.Cookies = factory();
|
||||
exports.noConflict = function () { global.Cookies = current; return exports; };
|
||||
}()));
|
||||
}(this, (function () { 'use strict';
|
||||
})());
|
||||
})(this, (function () { 'use strict';
|
||||
|
||||
/* eslint-disable no-var */
|
||||
function assign (target) {
|
||||
|
@ -42,7 +42,7 @@
|
|||
/* eslint-disable no-var */
|
||||
|
||||
function init (converter, defaultAttributes) {
|
||||
function set (key, value, attributes) {
|
||||
function set (name, value, attributes) {
|
||||
if (typeof document === 'undefined') {
|
||||
return
|
||||
}
|
||||
|
@ -56,7 +56,7 @@
|
|||
attributes.expires = attributes.expires.toUTCString();
|
||||
}
|
||||
|
||||
key = encodeURIComponent(key)
|
||||
name = encodeURIComponent(name)
|
||||
.replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)
|
||||
.replace(/[()]/g, escape);
|
||||
|
||||
|
@ -83,11 +83,11 @@
|
|||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
|
@ -100,25 +100,25 @@
|
|||
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
|
||||
|
@ -144,4 +144,4 @@
|
|||
|
||||
return api;
|
||||
|
||||
})));
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue