mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-10-24 20:45:01 +00:00
chore: update to version 14.0.11 and align website URLs
This commit is contained in:
1 parent
ef74383349
commit
19c8d69bd8
1499 files changed
+53633
-89
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import util from 'node:util';
|
||||
import { extractGlobal } from '@pezkuwi/x-global';
|
||||
export { packageInfo } from './packageInfo.js';
|
||||
class Fallback {
|
||||
#encoder;
|
||||
constructor() {
|
||||
this.#encoder = new util.TextEncoder();
|
||||
}
|
||||
// For a Jest 26.0.1 environment, Buffer !== Uint8Array
|
||||
encode(value) {
|
||||
return Uint8Array.from(this.#encoder.encode(value));
|
||||
}
|
||||
}
|
||||
export const TextEncoder = /*#__PURE__*/ extractGlobal('TextEncoder', Fallback);
|
||||
Reference in new issue
Block a user