@polkadot/x-textdecoder
Advanced tools
Comparing version 4.0.0-6 to 4.0.0-7
@@ -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", |
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
3310
10
59