@polkadot/x-textdecoder
Advanced tools
Comparing version 0.3.6 to 3.6.2-12
@@ -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]))); |
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
3
4
1
8
2805
48