Socket
Socket
Sign inDemoInstall

@polkadot/x-textencoder

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-textencoder - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

3

browser.js

@@ -9,4 +9,3 @@ "use strict";

// Copyright 2020 @polkadot/x-textencoder authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
// SPDX-License-Identifier: Apache-2.0
var _default = typeof TextEncoder === 'undefined' ? class {

@@ -13,0 +12,0 @@ encode(value) {

{
"name": "@polkadot/x-textencoder",
"version": "0.3.2",
"version": "0.3.3",
"description": "A TextDecoder replacement",

@@ -26,4 +26,4 @@ "browser": "browser.js",

"dependencies": {
"@babel/runtime": "^7.11.2"
"@babel/runtime": "^7.12.1"
}
}
# @polkadot/x-textencoder
A cross-environment TextEncoder.
Install it via `yarn add @polkadot/x-textencoder`
```js
import TextEncoder from '@polkadot/x-textencoder';
...
const encoder = new TextEncoder();
```

@@ -10,5 +10,4 @@ "use strict";

// Copyright 2020 @polkadot/x-textencoder authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
// SPDX-License-Identifier: Apache-2.0
console.log(new _browser.default().encode('abc'));
console.log(new _node.default().encode('abc'));
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