@polkadot/x-textencoder
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -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')); |
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
3384
13
64
Updated@babel/runtime@^7.12.1