@polkadot/x-textdecoder
Advanced tools
Comparing version 12.2.1 to 12.2.2
@@ -5,9 +5,8 @@ "use strict"; | ||
class TextDecoder { | ||
// eslint-disable-next-line no-useless-constructor | ||
constructor(_) { | ||
// nothing | ||
constructor(encoding) { | ||
this.__encoding = encoding; | ||
} | ||
decode(value) { | ||
let result = ''; | ||
for (let i = 0; i < value.length; i++) { | ||
for (let i = 0, count = value.length; i < count; i++) { | ||
result += String.fromCharCode(value[i]); | ||
@@ -14,0 +13,0 @@ } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.packageInfo = void 0; | ||
exports.packageInfo = { name: '@polkadot/x-textdecoder', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '12.2.1' }; | ||
exports.packageInfo = { name: '@polkadot/x-textdecoder', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '12.2.2' }; |
export declare class TextDecoder { | ||
constructor(_?: 'utf-8' | 'utf8'); | ||
__encoding?: string; | ||
constructor(encoding?: 'utf-8' | 'utf8'); | ||
decode(value: Uint8Array): string; | ||
} |
export class TextDecoder { | ||
// eslint-disable-next-line no-useless-constructor | ||
constructor(_) { | ||
// nothing | ||
constructor(encoding) { | ||
this.__encoding = encoding; | ||
} | ||
decode(value) { | ||
let result = ''; | ||
for (let i = 0; i < value.length; i++) { | ||
for (let i = 0, count = value.length; i < count; i++) { | ||
result += String.fromCharCode(value[i]); | ||
@@ -10,0 +9,0 @@ } |
@@ -18,3 +18,3 @@ { | ||
"type": "module", | ||
"version": "12.2.1", | ||
"version": "12.2.2", | ||
"main": "./cjs/node.js", | ||
@@ -106,5 +106,5 @@ "module": "./node.js", | ||
"dependencies": { | ||
"@polkadot/x-global": "12.2.1", | ||
"tslib": "^2.5.0" | ||
"@polkadot/x-global": "12.2.2", | ||
"tslib": "^2.5.3" | ||
} | ||
} |
@@ -1,1 +0,1 @@ | ||
export const packageInfo = { name: '@polkadot/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: '12.2.1' }; | ||
export const packageInfo = { name: '@polkadot/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: '12.2.2' }; |
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
3
4
1
8
105
+ Added@polkadot/x-global@12.2.2(transitive)
- Removed@polkadot/x-global@12.2.1(transitive)
Updated@polkadot/x-global@12.2.2
Updatedtslib@^2.5.3