@transcend-io/penumbra
Advanced tools
Comparing version 4.3.8 to 4.3.9
{ | ||
"name": "@transcend-io/penumbra", | ||
"version": "4.3.8", | ||
"version": "4.3.9", | ||
"description": "Crypto streams for the browser.", | ||
@@ -5,0 +5,0 @@ "main": "build/penumbra.js", |
@@ -47,5 +47,6 @@ /* eslint-disable import/no-webpack-loader-syntax */ | ||
const scriptElement: HTMLScriptElement | undefined | null = | ||
const scriptElement: HTMLScriptElement = | ||
document.currentScript || | ||
(document.querySelector('script[data-penumbra]') as any); | ||
(document.querySelector('script[data-penumbra]') as any) || | ||
({ dataset: {} } as HTMLScriptElement); | ||
@@ -56,5 +57,5 @@ /** | ||
function getScriptElement(): HTMLScriptElement { | ||
if (!scriptElement) { | ||
throw new Error('Unable to locate Penumbra script element.'); | ||
} | ||
// if (!scriptElement) { | ||
// throw new Error('Unable to locate Penumbra script element.'); | ||
// } | ||
return scriptElement; | ||
@@ -67,2 +68,3 @@ } | ||
function getScript(): DOMStringMap { | ||
// eslint-disable-next-line no-undef | ||
return getScriptElement()?.dataset || {}; | ||
@@ -69,0 +71,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 not supported yet
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 2 instances 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
7173693
121
37166
4