@thirdweb-dev/crypto
Advanced tools
Comparing version 0.2.0 to 0.2.1-nightly-553f7fda4-20240229191938
@@ -27,15 +27,13 @@ 'use strict'; | ||
class TextProcessorCache { | ||
#encoder; | ||
#decoder; | ||
get encoder() { | ||
if (!this.#encoder) { | ||
this.#encoder = new TextEncoder(); | ||
if (!this._encoder) { | ||
this._encoder = new TextEncoder(); | ||
} | ||
return this.#encoder; | ||
return this._encoder; | ||
} | ||
get decoder() { | ||
if (!this.#decoder) { | ||
this.#decoder = new TextDecoder(); | ||
if (!this._decoder) { | ||
this._decoder = new TextDecoder(); | ||
} | ||
return this.#decoder; | ||
return this._decoder; | ||
} | ||
@@ -42,0 +40,0 @@ } |
@@ -27,15 +27,13 @@ 'use strict'; | ||
class TextProcessorCache { | ||
#encoder; | ||
#decoder; | ||
get encoder() { | ||
if (!this.#encoder) { | ||
this.#encoder = new TextEncoder(); | ||
if (!this._encoder) { | ||
this._encoder = new TextEncoder(); | ||
} | ||
return this.#encoder; | ||
return this._encoder; | ||
} | ||
get decoder() { | ||
if (!this.#decoder) { | ||
this.#decoder = new TextDecoder(); | ||
if (!this._decoder) { | ||
this._decoder = new TextDecoder(); | ||
} | ||
return this.#decoder; | ||
return this._decoder; | ||
} | ||
@@ -42,0 +40,0 @@ } |
@@ -5,15 +5,13 @@ import { sha256 as sha256$1 } from '@noble/hashes/sha256'; | ||
class TextProcessorCache { | ||
#encoder; | ||
#decoder; | ||
get encoder() { | ||
if (!this.#encoder) { | ||
this.#encoder = new TextEncoder(); | ||
if (!this._encoder) { | ||
this._encoder = new TextEncoder(); | ||
} | ||
return this.#encoder; | ||
return this._encoder; | ||
} | ||
get decoder() { | ||
if (!this.#decoder) { | ||
this.#decoder = new TextDecoder(); | ||
if (!this._decoder) { | ||
this._decoder = new TextDecoder(); | ||
} | ||
return this.#decoder; | ||
return this._decoder; | ||
} | ||
@@ -20,0 +18,0 @@ } |
{ | ||
"name": "@thirdweb-dev/crypto", | ||
"version": "0.2.0", | ||
"version": "0.2.1-nightly-553f7fda4-20240229191938", | ||
"main": "dist/thirdweb-dev-crypto.cjs.js", | ||
@@ -36,9 +36,9 @@ "module": "dist/thirdweb-dev-crypto.esm.js", | ||
"@thirdweb-dev/tsconfig": "^0.1.7", | ||
"@types/crypto-js": "^4.1.3", | ||
"@types/crypto-js": "^4.2.2", | ||
"crypto-js": "^4.2.0", | ||
"eslint-config-thirdweb": "^0.1.6", | ||
"eslint-config-thirdweb": "^0.1.7", | ||
"ethers": "^5.7.2", | ||
"js-awe": "^1.0.62", | ||
"tinybench": "^2.5.1", | ||
"typescript": "^5.1.6", | ||
"typescript": "^5.3.3", | ||
"viem": "^1.19.1" | ||
@@ -45,0 +45,0 @@ }, |
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
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
4
108301
2367