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:
@@ -5,7 +5,7 @@
|
||||
|
||||
import { of, timer } from 'rxjs';
|
||||
|
||||
import { drr } from '.';
|
||||
import { drr } from './index.js';
|
||||
|
||||
describe('drr', (): void => {
|
||||
it('should not fire twice the same value', async (): Promise<void> => {
|
||||
|
||||
@@ -7,7 +7,7 @@ import { catchError, distinctUntilChanged, publishReplay, refCount, tap } from '
|
||||
|
||||
import { stringify } from '@polkadot/util';
|
||||
|
||||
import { refCountDelay } from './refCountDelay';
|
||||
import { refCountDelay } from './refCountDelay.js';
|
||||
|
||||
export type DrrResult = <T> (source$: Observable<T>) => Observable<T>;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2023 @polkadot/rpc-core authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export * from './drr';
|
||||
export * from './memo';
|
||||
export * from './refCountDelay';
|
||||
export * from './drr.js';
|
||||
export * from './memo.js';
|
||||
export * from './refCountDelay.js';
|
||||
|
||||
@@ -8,7 +8,7 @@ import { Observable } from 'rxjs';
|
||||
|
||||
import { memoize } from '@polkadot/util';
|
||||
|
||||
import { drr } from './drr';
|
||||
import { drr } from './drr.js';
|
||||
|
||||
type ObsFn <T> = (...params: unknown[]) => Observable<T>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user