From 813ec697c1b1dbfb22a47d2fac176e21be860f36 Mon Sep 17 00:00:00 2001 From: a flying potato <80830782+a-flying-potato@users.noreply.github.com> Date: Sat, 10 Sep 2022 20:07:31 +0200 Subject: [PATCH] :robot: 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/d09fbf6436be892b61bbe02454e1d7d7229c50d8/src/transforms/codemod:use-esm-import-syntax.js Please contact the author of the transform if you believe there was an error. --- src/adt/Forest.js | 2 +- src/adt/ForestAmortizedHalving.js | 2 +- src/adt/ForestAmortizedRecursive.js | 2 +- src/adt/ForestAmortizedSplitting.js | 2 +- src/adt/ForestAmortizedTwoPasses.js | 2 +- src/adt/LinkedList.js | 2 +- src/adt/LinkedListWithHead.js | 2 +- src/adt/LinkedListWithHeadAndLength.js | 2 +- src/adt/index.js | 16 ++++++++-------- src/fundamentals/_RankedTreeUniverse.js | 4 ++-- src/fundamentals/index.js | 12 ++++++------ src/index.js | 2 +- test/src/disjointset.js | 2 +- 13 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/adt/Forest.js b/src/adt/Forest.js index d7277c5..f74576a 100644 --- a/src/adt/Forest.js +++ b/src/adt/Forest.js @@ -1,4 +1,4 @@ -import { selfs } from '../fundamentals' ; +import { selfs } from '../fundamentals/index.js' ; export function union ( p , a , b ) { diff --git a/src/adt/ForestAmortizedHalving.js b/src/adt/ForestAmortizedHalving.js index 790ac36..82abcf2 100644 --- a/src/adt/ForestAmortizedHalving.js +++ b/src/adt/ForestAmortizedHalving.js @@ -1,4 +1,4 @@ -import { rankedtreeunion , _RankedTreeUniverse } from '../fundamentals' ; +import { rankedtreeunion , _RankedTreeUniverse } from '../fundamentals/index.js' ; export const union = rankedtreeunion ; diff --git a/src/adt/ForestAmortizedRecursive.js b/src/adt/ForestAmortizedRecursive.js index a62fa61..1ef0086 100644 --- a/src/adt/ForestAmortizedRecursive.js +++ b/src/adt/ForestAmortizedRecursive.js @@ -1,4 +1,4 @@ -import { rankedtreeunion , _RankedTreeUniverse } from '../fundamentals' ; +import { rankedtreeunion , _RankedTreeUniverse } from '../fundamentals/index.js' ; export const union = rankedtreeunion ; diff --git a/src/adt/ForestAmortizedSplitting.js b/src/adt/ForestAmortizedSplitting.js index 90bbfa4..51f0d63 100644 --- a/src/adt/ForestAmortizedSplitting.js +++ b/src/adt/ForestAmortizedSplitting.js @@ -1,4 +1,4 @@ -import { rankedtreeunion , _RankedTreeUniverse } from '../fundamentals' ; +import { rankedtreeunion , _RankedTreeUniverse } from '../fundamentals/index.js' ; export const union = rankedtreeunion ; diff --git a/src/adt/ForestAmortizedTwoPasses.js b/src/adt/ForestAmortizedTwoPasses.js index 95083e5..18bf314 100644 --- a/src/adt/ForestAmortizedTwoPasses.js +++ b/src/adt/ForestAmortizedTwoPasses.js @@ -1,4 +1,4 @@ -import { rankedtreeunion , _RankedTreeUniverse } from '../fundamentals' ; +import { rankedtreeunion , _RankedTreeUniverse } from '../fundamentals/index.js' ; export const union = rankedtreeunion ; diff --git a/src/adt/LinkedList.js b/src/adt/LinkedList.js index 4fe29c0..a8bf6a6 100644 --- a/src/adt/LinkedList.js +++ b/src/adt/LinkedList.js @@ -1,4 +1,4 @@ -import { selfs , nulls } from '../fundamentals' ; +import { selfs , nulls } from '../fundamentals/index.js' ; export function union ( back , next , a , b ) { diff --git a/src/adt/LinkedListWithHead.js b/src/adt/LinkedListWithHead.js index 400a2f6..64b5230 100644 --- a/src/adt/LinkedListWithHead.js +++ b/src/adt/LinkedListWithHead.js @@ -1,4 +1,4 @@ -import { selfs , nulls } from '../fundamentals' ; +import { selfs , nulls } from '../fundamentals/index.js' ; export function union ( back , next , a , b ) { diff --git a/src/adt/LinkedListWithHeadAndLength.js b/src/adt/LinkedListWithHeadAndLength.js index be9b90f..a0e4ecd 100644 --- a/src/adt/LinkedListWithHeadAndLength.js +++ b/src/adt/LinkedListWithHeadAndLength.js @@ -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 ) { diff --git a/src/adt/index.js b/src/adt/index.js index 267be05..28ae976 100644 --- a/src/adt/index.js +++ b/src/adt/index.js @@ -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 , diff --git a/src/fundamentals/_RankedTreeUniverse.js b/src/fundamentals/_RankedTreeUniverse.js index 612d365..cdc3f37 100644 --- a/src/fundamentals/_RankedTreeUniverse.js +++ b/src/fundamentals/_RankedTreeUniverse.js @@ -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 ) { diff --git a/src/fundamentals/index.js b/src/fundamentals/index.js index 8bb842d..69c60bc 100644 --- a/src/fundamentals/index.js +++ b/src/fundamentals/index.js @@ -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 , diff --git a/src/index.js b/src/index.js index 1ee31a8..49b5cee 100644 --- a/src/index.js +++ b/src/index.js @@ -7,7 +7,7 @@ import { LinkedList , LinkedListWithHead , LinkedListWithHeadAndLength , -} from './adt' ; +} from './adt/index.js' ; export default { Forest , diff --git a/test/src/disjointset.js b/test/src/disjointset.js index 4b06997..9a098c5 100644 --- a/test/src/disjointset.js +++ b/test/src/disjointset.js @@ -9,7 +9,7 @@ import { ForestAmortizedTwoPasses , ForestAmortizedSplitting , ForestAmortizedHalving , -} from '../../src' ; +} from '../../src/index.js' ; function macro ( t , Universe ) {