From c62c5a31e5597a3591e57820b930e372c222e140 Mon Sep 17 00:00:00 2001 From: a flying potato <80830782+a-flying-potato@users.noreply.github.com> Date: Thu, 15 Apr 2021 13:58:50 +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/aureooms/rejuvenate/blob/b7b7316fcc320ee7d249b0aa391d9a196c944421/src/transforms/codemod:use-esm-import-syntax.js Please contact the author of the transform if you believe there was an error. --- src/FibonacciHeap.js | 10 +++++----- src/cascading_cut.js | 2 +- src/consolidate.js | 2 +- src/index.js | 4 ++-- test/src/FibonacciHeap.js | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/FibonacciHeap.js b/src/FibonacciHeap.js index 8e54a9b..5ac6957 100644 --- a/src/FibonacciHeap.js +++ b/src/FibonacciHeap.js @@ -1,4 +1,4 @@ -import Node from './Node'; +import Node from './Node.js'; import { _append as list_insert, @@ -6,11 +6,11 @@ import { _concat as list_concatenate } from '@aureooms/js-cll'; -import list_reset_parent from './list_reset_parent'; +import list_reset_parent from './list_reset_parent.js'; -import consolidate from './consolidate'; -import cut from './cut'; -import cascading_cut from './cascading_cut'; +import consolidate from './consolidate.js'; +import cut from './cut.js'; +import cascading_cut from './cascading_cut.js'; /** * See CLRS09 Chapter 19 on the Fibonacci Heap. diff --git a/src/cascading_cut.js b/src/cascading_cut.js index a91f6b1..8673131 100644 --- a/src/cascading_cut.js +++ b/src/cascading_cut.js @@ -1,4 +1,4 @@ -import cut from './cut'; +import cut from './cut.js'; export default function* cascading_cut(y) { while (true) { diff --git a/src/consolidate.js b/src/consolidate.js index 50d14a1..7fabd01 100644 --- a/src/consolidate.js +++ b/src/consolidate.js @@ -1,5 +1,5 @@ import {_append as list_insert} from '@aureooms/js-cll'; -import link from './link'; +import link from './link.js'; /** * CONSOLIDATE: Consolidate the root list of a heap. diff --git a/src/index.js b/src/index.js index f120fc0..b64bd40 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,5 @@ -import Node from './Node'; -import FibonacciHeap from './FibonacciHeap'; +import Node from './Node.js'; +import FibonacciHeap from './FibonacciHeap.js'; export default FibonacciHeap; diff --git a/test/src/FibonacciHeap.js b/test/src/FibonacciHeap.js index 4d33edf..81fc18c 100644 --- a/test/src/FibonacciHeap.js +++ b/test/src/FibonacciHeap.js @@ -3,7 +3,7 @@ import ava from 'ava'; import * as spec from '@aureooms/js-heap-spec'; -import FibonacciHeap from '../../src'; +import FibonacciHeap from '../../src/index.js'; const heaps = [['FibonacciHeap', (compare) => new FibonacciHeap(compare)]];