Skip to content

Commit 76b7647

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

14 files changed

+22
-22
lines changed

src/api/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export * from './randfloat' ;
2-
export * from './randint' ;
3-
export * from './randrange' ;
4-
export * from './sample' ;
5-
export * from './shuffle' ;
1+
export * from "./randfloat.js" ;
2+
export * from "./randint.js" ;
3+
export * from "./randrange.js" ;
4+
export * from "./sample.js" ;
5+
export * from "./shuffle.js" ;

src/api/randrange.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { randint } from './randint' ;
1+
import { randint } from "./randint.js" ;
22

33
/**
44
* Return a randomly selected element from range(start, stop, step).

src/api/sample.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { _fisheryates } from '../kernel' ;
2-
import { randint } from './randint' ;
1+
import { _fisheryates } from "../kernel/index.js" ;
2+
import { randint } from "./randint.js" ;
33

44
export const sample = _fisheryates( randint ) ;

src/api/shuffle.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { _shuffle } from '../kernel' ;
2-
import { sample } from './sample' ;
1+
import { _shuffle } from "../kernel/index.js" ;
2+
import { sample } from "./sample.js" ;
33

44
export const shuffle = _shuffle( sample ) ;

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from './api' ;
2-
export * from './kernel' ;
1+
export * from "./api/index.js" ;
2+
export * from "./kernel/index.js" ;

src/kernel/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from './_fisheryates' ;
2-
export * from './_shuffle' ;
1+
export * from "./_fisheryates.js" ;
2+
export * from "./_shuffle.js" ;

test/src/randfloat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava';
2-
import * as random from '../../src';
2+
import * as random from "../../src/index.js";
33

44

55
import util from "util" ;

test/src/randint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava';
2-
import * as random from '../../src';
2+
import * as random from "../../src/index.js";
33

44

55
import util from "util" ;

test/src/randrange_only_stop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava';
2-
import * as random from '../../src';
2+
import * as random from "../../src/index.js";
33

44

55
import util from "util" ;

test/src/randrange_with_negative_step.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava';
2-
import * as random from '../../src';
2+
import * as random from "../../src/index.js";
33

44

55
import util from "util" ;

test/src/randrange_with_positive_step.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava';
2-
import * as random from '../../src';
2+
import * as random from "../../src/index.js";
33

44

55
import util from "util" ;

test/src/randrange_without_step.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava';
2-
import * as random from '../../src';
2+
import * as random from "../../src/index.js";
33

44

55
import util from "util" ;

test/src/sample.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava';
2-
import * as random from '../../src';
2+
import * as random from "../../src/index.js";
33

44

55
import util from "util" ;

test/src/shuffle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava';
2-
import * as random from '../../src';
2+
import * as random from "../../src/index.js";
33

44

55
import util from "util" ;

0 commit comments

Comments
 (0)