Remove /index imports (swap to bare) (#362)

This commit is contained in:
Jaco Greeff
2019-03-14 08:41:00 +01:00
committed by GitHub
parent a7ef2dcd86
commit de67a88f45
162 changed files with 198 additions and 189 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
import { DecodeFunc, DecodeOutput } from './types';
import { assert } from '@polkadot/util/index';
import { assert } from '@polkadot/util';
import decodeListLong from './listLong';
import decodeListShort from './listShort';
+1 -1
View File
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the MPL-2.0 license. See the LICENSE file for details.
import { assert, u8aToHex } from '@polkadot/util/index';
import { assert, u8aToHex } from '@polkadot/util';
import internalDecode from './decode';
+1 -1
View File
@@ -4,7 +4,7 @@
import { DecodeFunc, DecodeOutput } from './types';
import { assert } from '@polkadot/util/index';
import { assert } from '@polkadot/util';
import safeParseInt from './safeParseInt';
+1 -1
View File
@@ -4,7 +4,7 @@
import { DecodeFunc, DecodeOutput } from './types';
import { assert } from '@polkadot/util/index';
import { assert } from '@polkadot/util';
import safeParseInt from './safeParseInt';
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the MPL-2.0 license. See the LICENSE file for details.
import { assert } from '@polkadot/util/index';
import { assert } from '@polkadot/util';
export default function safeParseInt (input: Uint8Array): number {
assert(input[0] > 0, 'invalid rlp, extra zeros found');
+1 -1
View File
@@ -4,7 +4,7 @@
import { DecodeFunc, DecodeOutput } from './types';
import { assert } from '@polkadot/util/index';
import { assert } from '@polkadot/util';
export default function decodeString (decode: DecodeFunc, input: Uint8Array): DecodeOutput {
const firstByte = input[0];