@paqtcom/recycleclub-calculator
Advanced tools
Comparing version 1.3.0 to 1.3.1
//# sourceMappingURL=index.esm.js.map |
@@ -1,2 +0,131 @@ | ||
import{p as e,b as c}from"./p-21c28309.js";const r=()=>{const c=import.meta.url;const r={};if(c!==""){r.resourcesUrl=new URL(".",c).href}return e(r)};r().then((e=>c([["p-2bd3d5d9",[[1,"recycleclub-calculator",{charityCode:[1,"charity-code"],apiEndpoint:[1,"api-endpoint"],redirectHostname:[1,"redirect-hostname"],redirectPath:[1,"redirect-path"],filteredBrands:[32],noConnection:[32]}],[1,"recycleclub-calculator-brandlisting",{brand:[16],isOpen:[32]}],[1,"recycleclub-calculator-output",{charityCode:[1,"charity-code"],redirectHostname:[1,"redirect-hostname"],redirectPath:[1,"redirect-path"]}],[1,"recycleclub-calculator-spinner",{article:[16],value:[32]}]]]],e))); | ||
import { B as BUILD, c as consoleDevInfo, p as plt, w as win, H, d as doc, N as NAMESPACE, a as promiseResolve, b as bootstrapLazy } from './index-75dc97d8.js'; | ||
import { g as globalScripts } from './app-globals-0f993ce5.js'; | ||
/* | ||
Stencil Client Patch Browser v2.15.0 | MIT Licensed | https://stenciljs.com | ||
*/ | ||
const getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`; | ||
const patchBrowser = () => { | ||
// NOTE!! This fn cannot use async/await! | ||
if (BUILD.isDev && !BUILD.isTesting) { | ||
consoleDevInfo('Running in development mode.'); | ||
} | ||
if (BUILD.cssVarShim) { | ||
// shim css vars | ||
plt.$cssShim$ = win.__cssshim; | ||
} | ||
if (BUILD.cloneNodeFix) { | ||
// opted-in to polyfill cloneNode() for slot polyfilled components | ||
patchCloneNodeFix(H.prototype); | ||
} | ||
if (BUILD.profile && !performance.mark) { | ||
// not all browsers support performance.mark/measure (Safari 10) | ||
// because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist, | ||
// simply stub the implementations out. | ||
// TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking) | ||
// @ts-ignore | ||
performance.mark = performance.measure = () => { | ||
/*noop*/ | ||
}; | ||
performance.getEntriesByName = () => []; | ||
} | ||
// @ts-ignore | ||
const scriptElm = BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim | ||
? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\/${NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) || | ||
s.getAttribute('data-stencil-namespace') === NAMESPACE) | ||
: null; | ||
const importMeta = import.meta.url; | ||
const opts = BUILD.scriptDataOpts ? scriptElm['data-opts'] || {} : {}; | ||
if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) { | ||
// Safari < v11 support: This IF is true if it's Safari below v11. | ||
// This fn cannot use async/await since Safari didn't support it until v11, | ||
// however, Safari 10 did support modules. Safari 10 also didn't support "nomodule", | ||
// so both the ESM file and nomodule file would get downloaded. Only Safari | ||
// has 'onbeforeload' in the script, and "history.scrollRestoration" was added | ||
// to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue. | ||
// IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds. | ||
return { | ||
then() { | ||
/* promise noop */ | ||
}, | ||
}; | ||
} | ||
if (!BUILD.safari10 && importMeta !== '') { | ||
opts.resourcesUrl = new URL('.', importMeta).href; | ||
} | ||
else if (BUILD.dynamicImportShim || BUILD.safari10) { | ||
opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href; | ||
if (BUILD.dynamicImportShim) { | ||
patchDynamicImport(opts.resourcesUrl, scriptElm); | ||
} | ||
if (BUILD.dynamicImportShim && !win.customElements) { | ||
// module support, but no custom elements support (Old Edge) | ||
// @ts-ignore | ||
return import(/* webpackChunkName: "polyfills-dom" */ './dom-7fc649b0.js').then(() => opts); | ||
} | ||
} | ||
return promiseResolve(opts); | ||
}; | ||
const patchDynamicImport = (base, orgScriptElm) => { | ||
const importFunctionName = getDynamicImportFunction(NAMESPACE); | ||
try { | ||
// test if this browser supports dynamic imports | ||
// There is a caching issue in V8, that breaks using import() in Function | ||
// By generating a random string, we can workaround it | ||
// Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info | ||
win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`); | ||
} | ||
catch (e) { | ||
// this shim is specifically for browsers that do support "esm" imports | ||
// however, they do NOT support "dynamic" imports | ||
// basically this code is for old Edge, v18 and below | ||
const moduleMap = new Map(); | ||
win[importFunctionName] = (src) => { | ||
const url = new URL(src, base).href; | ||
let mod = moduleMap.get(url); | ||
if (!mod) { | ||
const script = doc.createElement('script'); | ||
script.type = 'module'; | ||
script.crossOrigin = orgScriptElm.crossOrigin; | ||
script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], { | ||
type: 'application/javascript', | ||
})); | ||
mod = new Promise((resolve) => { | ||
script.onload = () => { | ||
resolve(win[importFunctionName].m); | ||
script.remove(); | ||
}; | ||
}); | ||
moduleMap.set(url, mod); | ||
doc.head.appendChild(script); | ||
} | ||
return mod; | ||
}; | ||
} | ||
}; | ||
const patchCloneNodeFix = (HTMLElementPrototype) => { | ||
const nativeCloneNodeFn = HTMLElementPrototype.cloneNode; | ||
HTMLElementPrototype.cloneNode = function (deep) { | ||
if (this.nodeName === 'TEMPLATE') { | ||
return nativeCloneNodeFn.call(this, deep); | ||
} | ||
const clonedNode = nativeCloneNodeFn.call(this, false); | ||
const srcChildNodes = this.childNodes; | ||
if (deep) { | ||
for (let i = 0; i < srcChildNodes.length; i++) { | ||
// Node.ATTRIBUTE_NODE === 2, and checking because IE11 | ||
if (srcChildNodes[i].nodeType !== 2) { | ||
clonedNode.appendChild(srcChildNodes[i].cloneNode(true)); | ||
} | ||
} | ||
} | ||
return clonedNode; | ||
}; | ||
}; | ||
patchBrowser().then(options => { | ||
globalScripts(); | ||
return bootstrapLazy([["recycleclub-calculator-brandlisting",[[1,"recycleclub-calculator-brandlisting",{"brand":[16],"isOpen":[32]}]]],["recycleclub-calculator-output",[[1,"recycleclub-calculator-output",{"charityCode":[1,"charity-code"],"redirectHostname":[1,"redirect-hostname"],"redirectPath":[1,"redirect-path"]}]]],["recycleclub-calculator-spinner",[[1,"recycleclub-calculator-spinner",{"article":[16],"value":[32]}]]],["recycleclub-calculator",[[1,"recycleclub-calculator",{"charityCode":[1,"charity-code"],"apiEndpoint":[1,"api-endpoint"],"redirectHostname":[1,"redirect-hostname"],"redirectPath":[1,"redirect-path"],"filteredBrands":[32],"noConnection":[32]}]]]], options); | ||
}); | ||
//# sourceMappingURL=recycleclub-calculator.esm.js.map |
{ | ||
"name": "@paqtcom/recycleclub-calculator", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "A Web Component to check what your empty cartridges are worth", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
4
4
769533
54
1
6225