mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-22 05:38:03 +00:00
chore: update to version 14.0.11 and align website URLs
This commit is contained in:
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,4 @@
|
||||
import { extractGlobal } from '@pezkuwi/x-global';
|
||||
import { TextDecoder as Fallback } from './fallback.js';
|
||||
export { packageInfo } from './packageInfo.js';
|
||||
export const TextDecoder = /*#__PURE__*/ extractGlobal('TextDecoder', Fallback);
|
||||
+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])));
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
export declare class TextDecoder {
|
||||
__encoding?: string;
|
||||
constructor(encoding?: 'utf-8' | 'utf8');
|
||||
decode(value: Uint8Array): string;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
export 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;
|
||||
}
|
||||
}
|
||||
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,4 @@
|
||||
import util from 'node:util';
|
||||
import { extractGlobal } from '@pezkuwi/x-global';
|
||||
export { packageInfo } from './packageInfo.js';
|
||||
export const TextDecoder = /*#__PURE__*/ extractGlobal('TextDecoder', util.TextDecoder);
|
||||
@@ -15,12 +15,193 @@
|
||||
},
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"version": "14.0.10",
|
||||
"browser": "browser.js",
|
||||
"main": "node.js",
|
||||
"react-native": "react-native.js",
|
||||
"version": "14.0.11",
|
||||
"main": "./cjs/node.js",
|
||||
"module": "./node.js",
|
||||
"browser": "./cjs/browser.js",
|
||||
"react-native": "./cjs/react-native.js",
|
||||
"types": "./node.d.ts",
|
||||
"exports": {
|
||||
"./cjs/package.json": "./cjs/package.json",
|
||||
"./cjs/*": "./cjs/*.js",
|
||||
".": {
|
||||
"types": "./node.d.ts",
|
||||
"react-native": {
|
||||
"module": {
|
||||
"types": "./react-native.d.ts",
|
||||
"default": "./react-native.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./cjs/react-native.d.ts",
|
||||
"default": "./cjs/react-native.js"
|
||||
},
|
||||
"default": {
|
||||
"types": "./react-native.d.ts",
|
||||
"default": "./react-native.js"
|
||||
}
|
||||
},
|
||||
"browser": {
|
||||
"module": {
|
||||
"types": "./browser.d.ts",
|
||||
"default": "./browser.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./cjs/browser.d.ts",
|
||||
"default": "./cjs/browser.js"
|
||||
},
|
||||
"default": {
|
||||
"types": "./browser.d.ts",
|
||||
"default": "./browser.js"
|
||||
}
|
||||
},
|
||||
"node": {
|
||||
"module": {
|
||||
"types": "./node.d.ts",
|
||||
"default": "./node.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./cjs/node.d.ts",
|
||||
"default": "./cjs/node.js"
|
||||
},
|
||||
"default": {
|
||||
"types": "./node.d.ts",
|
||||
"default": "./node.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"./browser": {
|
||||
"module": {
|
||||
"types": "./browser.d.ts",
|
||||
"default": "./browser.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./cjs/browser.d.ts",
|
||||
"default": "./cjs/browser.js"
|
||||
},
|
||||
"default": {
|
||||
"types": "./browser.d.ts",
|
||||
"default": "./browser.js"
|
||||
}
|
||||
},
|
||||
"./fallback": {
|
||||
"module": {
|
||||
"types": "./fallback.d.ts",
|
||||
"default": "./fallback.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./cjs/fallback.d.ts",
|
||||
"default": "./cjs/fallback.js"
|
||||
},
|
||||
"default": {
|
||||
"types": "./fallback.d.ts",
|
||||
"default": "./fallback.js"
|
||||
}
|
||||
},
|
||||
"./node": {
|
||||
"module": {
|
||||
"types": "./node.d.ts",
|
||||
"default": "./node.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./cjs/node.d.ts",
|
||||
"default": "./cjs/node.js"
|
||||
},
|
||||
"default": {
|
||||
"types": "./node.d.ts",
|
||||
"default": "./node.js"
|
||||
}
|
||||
},
|
||||
"./package.json": {
|
||||
"require": "./cjs/package.json",
|
||||
"default": "./package.json"
|
||||
},
|
||||
"./packageInfo.js": {
|
||||
"module": {
|
||||
"types": "./packageInfo.d.ts",
|
||||
"default": "./packageInfo.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./cjs/packageInfo.d.ts",
|
||||
"default": "./cjs/packageInfo.js"
|
||||
},
|
||||
"default": {
|
||||
"types": "./packageInfo.d.ts",
|
||||
"default": "./packageInfo.js"
|
||||
}
|
||||
},
|
||||
"./packageInfo": {
|
||||
"module": {
|
||||
"types": "./packageInfo.d.ts",
|
||||
"default": "./packageInfo.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./cjs/packageInfo.d.ts",
|
||||
"default": "./cjs/packageInfo.js"
|
||||
},
|
||||
"default": {
|
||||
"types": "./packageInfo.d.ts",
|
||||
"default": "./packageInfo.js"
|
||||
}
|
||||
},
|
||||
"./react-native": {
|
||||
"module": {
|
||||
"types": "./react-native.d.ts",
|
||||
"default": "./react-native.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./cjs/react-native.d.ts",
|
||||
"default": "./cjs/react-native.js"
|
||||
},
|
||||
"default": {
|
||||
"types": "./react-native.d.ts",
|
||||
"default": "./react-native.js"
|
||||
}
|
||||
},
|
||||
"./shim.js": {
|
||||
"module": {
|
||||
"types": "./shim.d.ts",
|
||||
"default": "./shim.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./cjs/shim.d.ts",
|
||||
"default": "./cjs/shim.js"
|
||||
},
|
||||
"default": {
|
||||
"types": "./shim.d.ts",
|
||||
"default": "./shim.js"
|
||||
}
|
||||
},
|
||||
"./shim": {
|
||||
"module": {
|
||||
"types": "./shim.d.ts",
|
||||
"default": "./shim.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./cjs/shim.d.ts",
|
||||
"default": "./cjs/shim.js"
|
||||
},
|
||||
"default": {
|
||||
"types": "./shim.d.ts",
|
||||
"default": "./shim.js"
|
||||
}
|
||||
},
|
||||
"./typeCheck": {
|
||||
"module": {
|
||||
"types": "./typeCheck.d.ts",
|
||||
"default": "./typeCheck.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./cjs/typeCheck.d.ts",
|
||||
"default": "./cjs/typeCheck.js"
|
||||
},
|
||||
"default": {
|
||||
"types": "./typeCheck.d.ts",
|
||||
"default": "./typeCheck.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"@pezkuwi/x-global": "workspace:*",
|
||||
"@pezkuwi/x-global": "14.0.11",
|
||||
"tslib": "^2.8.0"
|
||||
}
|
||||
}
|
||||
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
export declare const packageInfo: {
|
||||
name: string;
|
||||
path: string;
|
||||
type: string;
|
||||
version: string;
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
export const packageInfo = { name: '@pezkuwi/x-textdecoder', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '14.0.10' };
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from './browser.js';
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from './browser.js';
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
@@ -0,0 +1,3 @@
|
||||
import { exposeGlobal } from '@pezkuwi/x-global';
|
||||
import { TextDecoder } from '@pezkuwi/x-textdecoder';
|
||||
exposeGlobal('TextDecoder', TextDecoder);
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
@@ -0,0 +1,4 @@
|
||||
import { TextDecoder as BrowserTD } from './browser.js';
|
||||
import { TextDecoder as NodeTD } from './node.js';
|
||||
console.log(new BrowserTD('utf-8').decode(new Uint8Array([1, 2, 3])));
|
||||
console.log(new NodeTD('utf-8').decode(new Uint8Array([1, 2, 3])));
|
||||
Reference in New Issue
Block a user