Socket
Socket
Sign inDemoInstall

@polkadot/x-textdecoder

Package Overview
Dependencies
Maintainers
2
Versions
730
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 0.3.6 to 3.6.2-12

2

browser.js

@@ -8,3 +8,3 @@ "use strict";

// Copyright 2020 @polkadot/x-textencoder authors & contributors
// Copyright 2017-2020 @polkadot/x-textencoder authors & contributors
// SPDX-License-Identifier: Apache-2.0

@@ -11,0 +11,0 @@ var _default = typeof TextDecoder === 'undefined' ? class {

@@ -1,7 +0,5 @@

/// <reference types="node" />
import { TextDecoder as NodeTextDecoder } from 'util';
declare const _default: {
new (label?: string | undefined, options?: TextDecoderOptions | undefined): TextDecoder;
prototype: TextDecoder;
} | typeof NodeTextDecoder;
};
export default _default;

@@ -10,3 +10,3 @@ "use strict";

// Copyright 2020 @polkadot/x-textencoder authors & contributors
// Copyright 2017-2020 @polkadot/x-textencoder authors & contributors
// SPDX-License-Identifier: Apache-2.0

@@ -13,0 +13,0 @@ var _default = typeof TextDecoder === 'undefined' ? _util.TextDecoder : TextDecoder;

{
"name": "@polkadot/x-textdecoder",
"version": "0.3.6",
"version": "3.6.2-12",
"description": "A TextDecoder replacement",

@@ -19,8 +19,8 @@ "browser": "browser.js",

"type": "git",
"url": "git+https://github.com/polkadot-js/polyfill.git"
"url": "git+https://github.com/polkadot-js/common.git"
},
"bugs": {
"url": "https://github.com/polkadot-js/polyfill/issues"
"url": "https://github.com/polkadot-js/common/issues"
},
"homepage": "https://github.com/polkadot-js/polyfill/tree/master/packages/x-textdecoder#readme",
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-textdecoder#readme",
"dependencies": {

@@ -27,0 +27,0 @@ "@babel/runtime": "^7.12.1"

@@ -9,5 +9,5 @@ "use strict";

// Copyright 2020 @polkadot/x-textdecoder authors & contributors
// Copyright 2017-2020 @polkadot/x-textdecoder authors & contributors
// SPDX-License-Identifier: Apache-2.0
console.log(new _browser.default('utf-8').decode(new Uint8Array([1, 2, 3])));
console.log(new _node.default('utf-8').decode(new Uint8Array([1, 2, 3])));
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