@thirdweb-dev/crypto
Advanced tools
Comparing version 0.0.0-dev-9467fc3-20231117115135 to 0.0.0-dev-9aaf173-20240301192815
@@ -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.0.0-dev-9467fc3-20231117115135", | ||
"version": "0.0.0-dev-9aaf173-20240301192815", | ||
"main": "dist/thirdweb-dev-crypto.cjs.js", | ||
@@ -36,10 +36,10 @@ "module": "dist/thirdweb-dev-crypto.esm.js", | ||
"@thirdweb-dev/tsconfig": "^0.1.7", | ||
"@types/crypto-js": "^4.2.1", | ||
"@types/crypto-js": "^4.2.2", | ||
"crypto-js": "^4.2.0", | ||
"eslint-config-thirdweb": "^0.0.0-dev-9467fc3-20231117115135", | ||
"eslint-config-thirdweb": "^0.1.7", | ||
"ethers": "^5.7.2", | ||
"js-awe": "^1.0.63", | ||
"js-awe": "^1.0.62", | ||
"tinybench": "^2.5.1", | ||
"typescript": "^5.2.2", | ||
"viem": "^1.19.3" | ||
"typescript": "^5.3.3", | ||
"viem": "^1.19.1" | ||
}, | ||
@@ -46,0 +46,0 @@ "engines": { |
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
108295
2367