Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@polkadot/x-textdecoder

Package Overview
Dependencies
Maintainers
2
Versions
733
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polkadot/x-textdecoder - npm Package Compare versions

Comparing version 12.2.1 to 12.2.2

7

cjs/fallback.js

@@ -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' };
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc