Skip to content

Commit e4d2ab0

Browse files
🤖 refactor: Use ESM import syntax.
These changes were automatically generated by a transform whose code can be found at: - https://github.com/make-github-pseudonymous-again/rejuvenate/blob/a44c42967442d65fd14272682fb84a6f32feb841/src/transforms/codemod:use-esm-import-syntax.js Please contact the author of the transform if you believe there was an error.
1 parent 1e95b28 commit e4d2ab0

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import DONE_ITERATOR from './DONE_ITERATOR';
2-
import withMethods from './withMethods';
3-
import withoutMethods from './withoutMethods';
1+
import DONE_ITERATOR from './DONE_ITERATOR.js';
2+
import withMethods from './withMethods.js';
3+
import withoutMethods from './withoutMethods.js';
44

55
/* eslint import/no-anonymous-default-export: [2, {"allowObject": true}] */
66
export default withoutMethods;

src/withoutMethods.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {_reduce} from '@iterable-iterator/reduce';
2-
import DONE_ITERATOR from './DONE_ITERATOR';
2+
import DONE_ITERATOR from './DONE_ITERATOR.js';
33

44
function Node(value, next) {
55
this.value = value;

test/src/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import test from 'ava';
22

33
import {product} from '@set-theory/cartesian-product';
44

5-
import {withMethods, withoutMethods} from '../../src';
5+
import {withMethods, withoutMethods} from '../../src/index.js';
66

77
function macro(t, {empty, isEmpty, push, pop, peek}, n) {
88
const array = [];

test/src/errors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import test from 'ava';
22

3-
import {withMethods, withoutMethods} from '../../src';
3+
import {withMethods, withoutMethods} from '../../src/index.js';
44

55
function macro(t, {empty, peek, pop}) {
66
t.throws(() => peek(empty()), null, 'Cannot peek empty.');

test/src/exports.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import test from 'ava';
22

3-
import {empty, from, isEmpty, push, pop, peek, iter} from '../../src';
3+
import {empty, from, isEmpty, push, pop, peek, iter} from '../../src/index.js';
44

55
test('can import empty', (t) => {
66
t.true(empty !== undefined);

test/src/from.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {range} from '@iterable-iterator/range';
55
import {list} from '@iterable-iterator/list';
66
import {reversed} from '@iterable-iterator/reversed';
77

8-
import {withMethods, withoutMethods} from '../../src';
8+
import {withMethods, withoutMethods} from '../../src/index.js';
99

1010
function macro(t, {from, iter, isEmpty}, n) {
1111
const stack = from(range(n));

test/src/immutability.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {product} from '@set-theory/cartesian-product';
44
import {list} from '@iterable-iterator/list';
55
import {zip, enumerate} from '@iterable-iterator/zip';
66

7-
import {withMethods, withoutMethods} from '../../src';
7+
import {withMethods, withoutMethods} from '../../src/index.js';
88

99
function macro(t, {empty, push, pop, iter}, n) {
1010
const array = [];

test/src/methods.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import test from 'ava';
33
import {TypeError} from '@failure-abstraction/error';
44
import {product} from '@set-theory/cartesian-product';
55

6-
import {withMethods} from '../../src';
6+
import {withMethods} from '../../src/index.js';
77

88
function macro(t, {empty}, n) {
99
const array = [];

test/src/readme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import test from 'ava';
22

3-
import {from, iter} from '../../src';
3+
import {from, iter} from '../../src/index.js';
44

55
test('readme', (t) => {
66
const stack = from('abc');

0 commit comments

Comments
 (0)