mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-22 07:57:59 +00:00
chore: update to version 14.0.11 and align website URLs
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
export { packageInfo } from './packageInfo.js';
|
||||
export declare const TextDecoder: {
|
||||
new (label?: string, options?: TextDecoderOptions): TextDecoder;
|
||||
prototype: TextDecoder;
|
||||
};
|
||||
@@ -0,0 +1,8 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.TextDecoder = exports.packageInfo = void 0;
|
||||
const x_global_1 = require("@pezkuwi/x-global");
|
||||
const fallback_js_1 = require("./fallback.js");
|
||||
var packageInfo_js_1 = require("./packageInfo.js");
|
||||
Object.defineProperty(exports, "packageInfo", { enumerable: true, get: function () { return packageInfo_js_1.packageInfo; } });
|
||||
exports.TextDecoder = (0, x_global_1.extractGlobal)('TextDecoder', fallback_js_1.TextDecoder);
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
export declare class TextDecoder {
|
||||
__encoding?: string;
|
||||
constructor(encoding?: 'utf-8' | 'utf8');
|
||||
decode(value: Uint8Array): string;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.TextDecoder = void 0;
|
||||
class TextDecoder {
|
||||
__encoding;
|
||||
constructor(encoding) {
|
||||
this.__encoding = encoding;
|
||||
}
|
||||
decode(value) {
|
||||
let result = '';
|
||||
for (let i = 0, count = value.length; i < count; i++) {
|
||||
result += String.fromCharCode(value[i]);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
exports.TextDecoder = TextDecoder;
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
export { packageInfo } from './packageInfo.js';
|
||||
export declare const TextDecoder: {
|
||||
new (label?: string, options?: TextDecoderOptions): TextDecoder;
|
||||
prototype: TextDecoder;
|
||||
};
|
||||
@@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.TextDecoder = exports.packageInfo = void 0;
|
||||
const tslib_1 = require("tslib");
|
||||
const node_util_1 = tslib_1.__importDefault(require("node:util"));
|
||||
const x_global_1 = require("@pezkuwi/x-global");
|
||||
var packageInfo_js_1 = require("./packageInfo.js");
|
||||
Object.defineProperty(exports, "packageInfo", { enumerable: true, get: function () { return packageInfo_js_1.packageInfo; } });
|
||||
exports.TextDecoder = (0, x_global_1.extractGlobal)('TextDecoder', node_util_1.default.TextDecoder);
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"type": "commonjs"
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
export declare const packageInfo: {
|
||||
name: string;
|
||||
path: string;
|
||||
type: string;
|
||||
version: string;
|
||||
};
|
||||
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.packageInfo = void 0;
|
||||
exports.packageInfo = { name: '@pezkuwi/x-textdecoder', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '14.0.10' };
|
||||
@@ -0,0 +1 @@
|
||||
export * from './browser.js';
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const tslib_1 = require("tslib");
|
||||
tslib_1.__exportStar(require("./browser.js"), exports);
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
@@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const x_global_1 = require("@pezkuwi/x-global");
|
||||
const x_textdecoder_1 = require("@pezkuwi/x-textdecoder");
|
||||
(0, x_global_1.exposeGlobal)('TextDecoder', x_textdecoder_1.TextDecoder);
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
@@ -0,0 +1,6 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const browser_js_1 = require("./browser.js");
|
||||
const node_js_1 = require("./node.js");
|
||||
console.log(new browser_js_1.TextDecoder('utf-8').decode(new Uint8Array([1, 2, 3])));
|
||||
console.log(new node_js_1.TextDecoder('utf-8').decode(new Uint8Array([1, 2, 3])));
|
||||
Reference in New Issue
Block a user