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/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.
  • Loading branch information
a-flying-potato authored and make-github-pseudonymous-again committed Apr 15, 2021
1 parent 5b2090f commit c62c5a3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/FibonacciHeap.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import Node from './Node';
import Node from './Node.js';

import {
_append as list_insert,
_remove as list_remove,
_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.
Expand Down
2 changes: 1 addition & 1 deletion src/cascading_cut.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import cut from './cut';
import cut from './cut.js';

export default function* cascading_cut(y) {
while (true) {
Expand Down
2 changes: 1 addition & 1 deletion src/consolidate.js
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
2 changes: 1 addition & 1 deletion test/src/FibonacciHeap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)]];

Expand Down

0 comments on commit c62c5a3

Please sign in to comment.