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 4.0.0-6 to 4.0.0-7

fallback.d.ts

7

browser.d.ts

@@ -1,9 +0,6 @@

declare const _default: {
import Fallback from './fallback';
declare const _default: typeof Fallback | {
new (label?: string | undefined, options?: TextDecoderOptions | undefined): TextDecoder;
prototype: TextDecoder;
} | {
new (_: 'utf-8'): {
decode(value: Uint8Array): string;
};
};
export default _default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {

@@ -8,17 +10,8 @@ value: true

var _fallback = _interopRequireDefault(require("./fallback"));
// Copyright 2017-2020 @polkadot/x-textencoder authors & contributors
// SPDX-License-Identifier: Apache-2.0
var _default = typeof TextDecoder === 'undefined' ? class {
// eslint-disable-next-line @typescript-eslint/no-unused-vars,no-useless-constructor
constructor(_) {// nothing
}
var _default = typeof TextDecoder === 'undefined' ? _fallback.default : TextDecoder;
decode(value) {
return value.reduce((str, code) => {
return str + String.fromCharCode(code);
}, '');
}
} : TextDecoder;
exports.default = _default;
{
"name": "@polkadot/x-textdecoder",
"version": "4.0.0-6",
"version": "4.0.0-7",
"description": "A TextDecoder replacement",

@@ -5,0 +5,0 @@ "browser": "browser.js",

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