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:
Jaco
2023-03-09 12:19:12 +02:00
committed by GitHub
parent f233671c27
commit 9fe2798b70
754 changed files with 1873 additions and 1871 deletions
+1 -1
View File
@@ -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> => {
+1 -1
View File
@@ -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>;
+3 -3
View File
@@ -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';
+1 -1
View File
@@ -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>;