Skip to content

Commit 8e720b6

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/1fe650dc2407c6c6395828a28777fe8137a3bd2f/src/transforms/codemod:use-esm-import-syntax.js Please contact the author of the transform if you believe there was an error.
1 parent 91773e8 commit 8e720b6

31 files changed

+81
-81
lines changed

src/_apply.js

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

33
/**
44
* Applies a given sequence (in the given order) of transpositions (given as

src/_invertcycles.js

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

33
/**
44
* Inverts given cycles in a given permutation ___in-place___. Can be used as

src/_next.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { _transpose } from './_transpose' ;
2-
import { _reverse } from './_reverse' ;
1+
import { _transpose } from './_transpose.js' ;
2+
import { _reverse } from './_reverse.js' ;
33

44
/**
55
* Updates the input permutation to the next one ___in-place___. Returns true

src/_permutations.js

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

33
/**
44
* Yields all permutations starting from a given one and ending at the last

src/_reverse.js

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

33
/**
44
* Reverses input permutation ___in-place___ from input index <code>i</code>

src/apply.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { identity } from './identity' ;
2-
import { _apply } from './_apply' ;
1+
import { identity } from './identity.js' ;
2+
import { _apply } from './_apply.js' ;
33

44
/**
55
* Apply a given sequence (in the given order) of transpositions (given as

src/bitreversal.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { permutation } from './permutation' ;
2-
import { _bitreversal } from './_bitreversal' ;
1+
import { permutation } from './permutation.js' ;
2+
import { _bitreversal } from './_bitreversal.js' ;
33

44
/**
55
* Returns a newly allocated array containing the bitreversal permutation for

src/compose.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { permutation } from './permutation' ;
2-
import { _compose } from './_compose' ;
1+
import { permutation } from './permutation.js' ;
2+
import { _compose } from './_compose.js' ;
33

44
/**
55
* Compose two input permutations. The resulting permutation is output as an

src/copy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { permutation } from './permutation' ;
2-
import { _copy } from './_copy' ;
1+
import { permutation } from './permutation.js' ;
2+
import { _copy } from './_copy.js' ;
33

44
/**
55
* Make a copy of the input permutation.

src/cycles.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { _cycles } from './_cycles' ;
2-
import { used } from './used' ;
1+
import { _cycles } from './_cycles.js' ;
2+
import { used } from './used.js' ;
33

44

55
/**

0 commit comments

Comments
 (0)