Skip to content

Commit

Permalink
🤖 refactor: Use ESM import syntax.
Browse files Browse the repository at this point in the history
These changes were automatically generated by a transform whose code can be found at:
  - https://github.com/make-github-pseudonymous-again/rejuvenate/blob/d09fbf6436be892b61bbe02454e1d7d7229c50d8/src/transforms/codemod:use-esm-import-syntax.js
Please contact the author of the transform if you believe there was an error.
  • Loading branch information
a-flying-potato authored and make-github-pseudonymous-again committed Sep 10, 2022
1 parent 6f01388 commit 813ec69
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion src/adt/Forest.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { selfs } from '../fundamentals' ;
import { selfs } from '../fundamentals/index.js' ;

export function union ( p , a , b ) {

Expand Down
2 changes: 1 addition & 1 deletion src/adt/ForestAmortizedHalving.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { rankedtreeunion , _RankedTreeUniverse } from '../fundamentals' ;
import { rankedtreeunion , _RankedTreeUniverse } from '../fundamentals/index.js' ;

export const union = rankedtreeunion ;

Expand Down
2 changes: 1 addition & 1 deletion src/adt/ForestAmortizedRecursive.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { rankedtreeunion , _RankedTreeUniverse } from '../fundamentals' ;
import { rankedtreeunion , _RankedTreeUniverse } from '../fundamentals/index.js' ;

export const union = rankedtreeunion ;

Expand Down
2 changes: 1 addition & 1 deletion src/adt/ForestAmortizedSplitting.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { rankedtreeunion , _RankedTreeUniverse } from '../fundamentals' ;
import { rankedtreeunion , _RankedTreeUniverse } from '../fundamentals/index.js' ;

export const union = rankedtreeunion ;

Expand Down
2 changes: 1 addition & 1 deletion src/adt/ForestAmortizedTwoPasses.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { rankedtreeunion , _RankedTreeUniverse } from '../fundamentals' ;
import { rankedtreeunion , _RankedTreeUniverse } from '../fundamentals/index.js' ;

export const union = rankedtreeunion ;

Expand Down
2 changes: 1 addition & 1 deletion src/adt/LinkedList.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { selfs , nulls } from '../fundamentals' ;
import { selfs , nulls } from '../fundamentals/index.js' ;

export function union ( back , next , a , b ) {

Expand Down
2 changes: 1 addition & 1 deletion src/adt/LinkedListWithHead.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { selfs , nulls } from '../fundamentals' ;
import { selfs , nulls } from '../fundamentals/index.js' ;

export function union ( back , next , a , b ) {

Expand Down
2 changes: 1 addition & 1 deletion src/adt/LinkedListWithHeadAndLength.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { selfs , nulls , ones } from '../fundamentals' ;
import { selfs , nulls , ones } from '../fundamentals/index.js' ;

export function union ( back , next , length , a , b ) {

Expand Down
16 changes: 8 additions & 8 deletions src/adt/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import Forest from './Forest' ;
import ForestAmortizedHalving from './ForestAmortizedHalving' ;
import ForestAmortizedRecursive from './ForestAmortizedRecursive' ;
import ForestAmortizedSplitting from './ForestAmortizedSplitting' ;
import ForestAmortizedTwoPasses from './ForestAmortizedTwoPasses' ;
import LinkedList from './LinkedList' ;
import LinkedListWithHead from './LinkedListWithHead' ;
import LinkedListWithHeadAndLength from './LinkedListWithHeadAndLength' ;
import Forest from './Forest.js' ;
import ForestAmortizedHalving from './ForestAmortizedHalving.js' ;
import ForestAmortizedRecursive from './ForestAmortizedRecursive.js' ;
import ForestAmortizedSplitting from './ForestAmortizedSplitting.js' ;
import ForestAmortizedTwoPasses from './ForestAmortizedTwoPasses.js' ;
import LinkedList from './LinkedList.js' ;
import LinkedListWithHead from './LinkedListWithHead.js' ;
import LinkedListWithHeadAndLength from './LinkedListWithHeadAndLength.js' ;

export default {
Forest ,
Expand Down
4 changes: 2 additions & 2 deletions src/fundamentals/_RankedTreeUniverse.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import selfs from './selfs' ;
import zeros from './zeros' ;
import selfs from './selfs.js' ;
import zeros from './zeros.js' ;

export default function _RankedTreeUniverse ( union , find ) {

Expand Down
12 changes: 6 additions & 6 deletions src/fundamentals/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import _RankedTreeUniverse from './_RankedTreeUniverse' ;
import nulls from './nulls' ;
import ones from './ones' ;
import rankedtreeunion from './rankedtreeunion' ;
import selfs from './selfs' ;
import zeros from './zeros' ;
import _RankedTreeUniverse from './_RankedTreeUniverse.js' ;
import nulls from './nulls.js' ;
import ones from './ones.js' ;
import rankedtreeunion from './rankedtreeunion.js' ;
import selfs from './selfs.js' ;
import zeros from './zeros.js' ;

export default {
_RankedTreeUniverse ,
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
LinkedList ,
LinkedListWithHead ,
LinkedListWithHeadAndLength ,
} from './adt' ;
} from './adt/index.js' ;

export default {
Forest ,
Expand Down
2 changes: 1 addition & 1 deletion test/src/disjointset.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
ForestAmortizedTwoPasses ,
ForestAmortizedSplitting ,
ForestAmortizedHalving ,
} from '../../src' ;
} from '../../src/index.js' ;

function macro ( t , Universe ) {

Expand Down

0 comments on commit 813ec69

Please sign in to comment.