@polkadot/x-textencoder
Advanced tools
Comparing version 4.2.2-8 to 4.2.2-9
@@ -6,5 +6,5 @@ // Copyright 2017-2020 @polkadot/x-textencoder authors & contributors | ||
encode(value) { | ||
const u8a = new Uint8Array(value.length); | ||
var u8a = new Uint8Array(value.length); | ||
for (let i = 0; i < value.length; i++) { | ||
for (var i = 0; i < value.length; i++) { | ||
u8a[i] = value.charCodeAt(i); | ||
@@ -11,0 +11,0 @@ } |
@@ -1,3 +0,3 @@ | ||
import _classPrivateFieldLooseBase from "@babel/runtime/helpers/classPrivateFieldLooseBase"; | ||
import _classPrivateFieldLooseKey from "@babel/runtime/helpers/classPrivateFieldLooseKey"; | ||
import _classPrivateFieldLooseBase from "@babel/runtime/helpers/esm/classPrivateFieldLooseBase"; | ||
import _classPrivateFieldLooseKey from "@babel/runtime/helpers/esm/classPrivateFieldLooseKey"; | ||
// Copyright 2017-2020 @polkadot/x-textencoder authors & contributors | ||
@@ -20,3 +20,3 @@ // SPDX-License-Identifier: Apache-2.0 | ||
encode(value) { | ||
const encoded = _classPrivateFieldLooseBase(this, _encoder)[_encoder].encode(value); | ||
var encoded = _classPrivateFieldLooseBase(this, _encoder)[_encoder].encode(value); | ||
@@ -23,0 +23,0 @@ return Uint8Array.from(encoded); |
@@ -11,3 +11,3 @@ { | ||
"type": "module", | ||
"version": "4.2.2-8" | ||
"version": "4.2.2-9" | ||
} |
{ | ||
"name": "@polkadot/x-textencoder", | ||
"version": "4.2.2-8", | ||
"version": "4.2.2-9", | ||
"description": "A TextDecoder replacement", | ||
@@ -5,0 +5,0 @@ "browser": "browser.js", |
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
6789