@symbo.ls/scratch
Advanced tools
Comparing version 2.11.389 to 2.11.394
@@ -133,3 +133,3 @@ "use strict"; | ||
__export2(globals_exports, { | ||
document: () => document2, | ||
document: () => document, | ||
global: () => global, | ||
@@ -143,3 +143,3 @@ self: () => self, | ||
var window = globalThis; | ||
var document2 = window.document; | ||
var document = window.document; | ||
} | ||
@@ -1147,5 +1147,6 @@ }); | ||
var import_types = require_types(); | ||
var import_utils2 = require_cjs(); | ||
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))(); | ||
var setCookie = (cname, cvalue, exdays = 365) => { | ||
if ((0, import_types.isUndefined)(document) || (0, import_types.isUndefined)(document.cookie)) | ||
if ((0, import_types.isUndefined)(import_utils2.document) || (0, import_types.isUndefined)(import_utils2.document.cookie)) | ||
return; | ||
@@ -1155,9 +1156,9 @@ const d = /* @__PURE__ */ new Date(); | ||
const expires = `expires=${d.toUTCString()}`; | ||
document.cookie = `${cname}=${cvalue};${expires};path=/`; | ||
import_utils2.document.cookie = `${cname}=${cvalue};${expires};path=/`; | ||
}; | ||
var getCookie = (cname) => { | ||
if ((0, import_types.isUndefined)(document) || (0, import_types.isUndefined)(document.cookie)) | ||
if ((0, import_types.isUndefined)(import_utils2.document) || (0, import_types.isUndefined)(import_utils2.document.cookie)) | ||
return; | ||
const name = `${cname}=`; | ||
const decodedCookie = decodeURIComponent(document.cookie); | ||
const decodedCookie = decodeURIComponent(import_utils2.document.cookie); | ||
const ca = decodedCookie.split(";"); | ||
@@ -1609,3 +1610,3 @@ for (let i = 0; i < ca.length; i++) { | ||
var getActiveConfig = (def) => { | ||
return FACTORY[def || FACTORY.active]; | ||
return FACTORY[def || FACTORY.active] || CONFIG; | ||
}; | ||
@@ -1612,0 +1613,0 @@ var setActiveConfig = (newConfig) => { |
@@ -56,3 +56,3 @@ "use strict"; | ||
__export2(globals_exports, { | ||
document: () => document3, | ||
document: () => document2, | ||
global: () => global, | ||
@@ -66,3 +66,3 @@ self: () => self, | ||
var window2 = globalThis; | ||
var document3 = window2.document; | ||
var document2 = window2.document; | ||
} | ||
@@ -171,3 +171,3 @@ }); | ||
__export2(globals_exports, { | ||
document: () => document3, | ||
document: () => document2, | ||
global: () => global, | ||
@@ -181,3 +181,3 @@ self: () => self, | ||
var window2 = globalThis; | ||
var document3 = window2.document; | ||
var document2 = window2.document; | ||
} | ||
@@ -1185,5 +1185,6 @@ }); | ||
var import_types = require_types(); | ||
var import_utils2 = require_cjs2(); | ||
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))(); | ||
var setCookie = (cname, cvalue, exdays = 365) => { | ||
if ((0, import_types.isUndefined)(document) || (0, import_types.isUndefined)(document.cookie)) | ||
if ((0, import_types.isUndefined)(import_utils2.document) || (0, import_types.isUndefined)(import_utils2.document.cookie)) | ||
return; | ||
@@ -1193,9 +1194,9 @@ const d = /* @__PURE__ */ new Date(); | ||
const expires = `expires=${d.toUTCString()}`; | ||
document.cookie = `${cname}=${cvalue};${expires};path=/`; | ||
import_utils2.document.cookie = `${cname}=${cvalue};${expires};path=/`; | ||
}; | ||
var getCookie = (cname) => { | ||
if ((0, import_types.isUndefined)(document) || (0, import_types.isUndefined)(document.cookie)) | ||
if ((0, import_types.isUndefined)(import_utils2.document) || (0, import_types.isUndefined)(import_utils2.document.cookie)) | ||
return; | ||
const name = `${cname}=`; | ||
const decodedCookie = decodeURIComponent(document.cookie); | ||
const decodedCookie = decodeURIComponent(import_utils2.document.cookie); | ||
const ca = decodedCookie.split(";"); | ||
@@ -1202,0 +1203,0 @@ for (let i = 0; i < ca.length; i++) { |
@@ -133,3 +133,3 @@ "use strict"; | ||
__export2(globals_exports, { | ||
document: () => document2, | ||
document: () => document, | ||
global: () => global, | ||
@@ -143,3 +143,3 @@ self: () => self, | ||
var window = globalThis; | ||
var document2 = window.document; | ||
var document = window.document; | ||
} | ||
@@ -1147,5 +1147,6 @@ }); | ||
var import_types = require_types(); | ||
var import_utils3 = require_cjs(); | ||
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))(); | ||
var setCookie = (cname, cvalue, exdays = 365) => { | ||
if ((0, import_types.isUndefined)(document) || (0, import_types.isUndefined)(document.cookie)) | ||
if ((0, import_types.isUndefined)(import_utils3.document) || (0, import_types.isUndefined)(import_utils3.document.cookie)) | ||
return; | ||
@@ -1155,9 +1156,9 @@ const d = /* @__PURE__ */ new Date(); | ||
const expires = `expires=${d.toUTCString()}`; | ||
document.cookie = `${cname}=${cvalue};${expires};path=/`; | ||
import_utils3.document.cookie = `${cname}=${cvalue};${expires};path=/`; | ||
}; | ||
var getCookie = (cname) => { | ||
if ((0, import_types.isUndefined)(document) || (0, import_types.isUndefined)(document.cookie)) | ||
if ((0, import_types.isUndefined)(import_utils3.document) || (0, import_types.isUndefined)(import_utils3.document.cookie)) | ||
return; | ||
const name = `${cname}=`; | ||
const decodedCookie = decodeURIComponent(document.cookie); | ||
const decodedCookie = decodeURIComponent(import_utils3.document.cookie); | ||
const ca = decodedCookie.split(";"); | ||
@@ -1602,3 +1603,3 @@ for (let i = 0; i < ca.length; i++) { | ||
var getActiveConfig = (def) => { | ||
return FACTORY[def || FACTORY.active]; | ||
return FACTORY[def || FACTORY.active] || CONFIG; | ||
}; | ||
@@ -1605,0 +1606,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"author": "symbo.ls", | ||
"version": "2.11.389", | ||
"version": "2.11.394", | ||
"files": [ | ||
@@ -34,3 +34,3 @@ "src", | ||
}, | ||
"gitHead": "e260280a4a50ca08fd7df53104a884086dc3da88" | ||
"gitHead": "96fc31e44dd43084955c647e91b5d0e70d56aee8" | ||
} |
@@ -33,3 +33,3 @@ 'use strict' | ||
export const getActiveConfig = (def) => { | ||
return FACTORY[def || FACTORY.active] | ||
return FACTORY[def || FACTORY.active] || CONFIG | ||
} | ||
@@ -36,0 +36,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
2538500
68579