Use .js imports in src (#5526)
* Use .js imports in src * Adjust * Fix imports * Bump dev * Adjust with .js imports for typegen * Adjust * Adjust * Remove target override
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export * from './info';
|
||||
export * from './overview';
|
||||
export * from './info.js';
|
||||
export * from './overview.js';
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { CollatorId, ParaId } from '@polkadot/types/interfaces';
|
||||
import type { DeriveApi, DeriveParachainActive, DeriveParachainFull, DeriveParachainInfo } from '../types';
|
||||
import type { Active, DidUpdate, Heads, ParaInfoResult, PendingSwap, RelayDispatchQueue, RetryQueue, SelectedThreads } from './types';
|
||||
import type { DeriveApi, DeriveParachainActive, DeriveParachainFull, DeriveParachainInfo } from '../types.js';
|
||||
import type { Active, DidUpdate, Heads, ParaInfoResult, PendingSwap, RelayDispatchQueue, RetryQueue, SelectedThreads } from './types.js';
|
||||
|
||||
import { map, of } from 'rxjs';
|
||||
|
||||
import { objectSpread } from '@polkadot/util';
|
||||
|
||||
import { memo } from '../util';
|
||||
import { didUpdateToBool } from './util';
|
||||
import { memo } from '../util/index.js';
|
||||
import { didUpdateToBool } from './util.js';
|
||||
|
||||
type Result = [
|
||||
Active,
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { ParaId } from '@polkadot/types/interfaces';
|
||||
import type { DeriveApi, DeriveParachain, DeriveParachainInfo } from '../types';
|
||||
import type { DidUpdate, ParaInfoResult, PendingSwap, RelayDispatchQueueSize } from './types';
|
||||
import type { DeriveApi, DeriveParachain, DeriveParachainInfo } from '../types.js';
|
||||
import type { DidUpdate, ParaInfoResult, PendingSwap, RelayDispatchQueueSize } from './types.js';
|
||||
|
||||
import { combineLatest, map, of, switchMap } from 'rxjs';
|
||||
|
||||
import { objectSpread } from '@polkadot/util';
|
||||
|
||||
import { memo } from '../util';
|
||||
import { didUpdateToBool } from './util';
|
||||
import { memo } from '../util/index.js';
|
||||
import { didUpdateToBool } from './util.js';
|
||||
|
||||
type Result = [
|
||||
ParaId[],
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ParaId } from '@polkadot/types/interfaces';
|
||||
import type { DidUpdate } from './types';
|
||||
import type { DidUpdate } from './types.js';
|
||||
|
||||
export function didUpdateToBool (didUpdate: DidUpdate, id: ParaId): boolean {
|
||||
return didUpdate.isSome
|
||||
|
||||
Reference in New Issue
Block a user