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/a44c42967442d65fd14272682fb84a6f32feb841/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 Jul 28, 2021
1 parent f0c8c3b commit e12afe0
Show file tree
Hide file tree
Showing 15 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions src/adt/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './DummyHeap' ;
export * from './DummyHeapWithoutReferences' ;
export * from './DummyHeap.js' ;
export * from './DummyHeapWithoutReferences.js' ;
8 changes: 4 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './adt' ;
export * from './parts' ;
export * from './test' ;
export * from './tester' ;
export * from './adt/index.js' ;
export * from './parts/index.js' ;
export * from './test.js' ;
export * from './tester.js' ;
2 changes: 1 addition & 1 deletion src/parts/decreasekey.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { tester } from '../tester' ;
import { tester } from '../tester.js' ;
import { shuffle } from '@randomized/random' ;

export function _decreasekey ( _test, length, heapname, Heap, diffname, diff, n ) {
Expand Down
2 changes: 1 addition & 1 deletion src/parts/delete.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { tester } from '../tester' ;
import { tester } from '../tester.js' ;
import { shuffle } from '@randomized/random' ;

export function _del ( _test, length, heapname, Heap, diffname, diff, n ) {
Expand Down
2 changes: 1 addition & 1 deletion src/parts/head.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { tester } from '../tester' ;
import { tester } from '../tester.js' ;

export function _head ( _test, length, heapname, Heap, diffname, diff, n ) {

Expand Down
2 changes: 1 addition & 1 deletion src/parts/headreference.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { tester } from '../tester' ;
import { tester } from '../tester.js' ;

export function _headreference ( _test, length, heapname, Heap, diffname, diff, n ) {

Expand Down
2 changes: 1 addition & 1 deletion src/parts/increasekey.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { tester } from '../tester' ;
import { tester } from '../tester.js' ;
import { shuffle } from '@randomized/random' ;

export function _increasekey ( _test, length, heapname, Heap, diffname, diff, n ) {
Expand Down
20 changes: 10 additions & 10 deletions src/parts/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export * from './decreasekey' ;
export * from './delete' ;
export * from './head' ;
export * from './headreference' ;
export * from './increasekey' ;
export * from './merge' ;
export * from './popreference' ;
export * from './pushpop' ;
export * from './pushreference' ;
export * from './update' ;
export * from './decreasekey.js' ;
export * from './delete.js' ;
export * from './head.js' ;
export * from './headreference.js' ;
export * from './increasekey.js' ;
export * from './merge.js' ;
export * from './popreference.js' ;
export * from './pushpop.js' ;
export * from './pushreference.js' ;
export * from './update.js' ;
2 changes: 1 addition & 1 deletion src/parts/merge.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { tester2 } from '../tester' ;
import { tester2 } from '../tester.js' ;

export function _merge ( _test, length, heapname, Heap, diffname, diff, m, n ) {

Expand Down
2 changes: 1 addition & 1 deletion src/parts/popreference.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { tester } from '../tester' ;
import { tester } from '../tester.js' ;

export function _popreference ( _test, length, heapname, Heap, diffname, diff, n ) {

Expand Down
2 changes: 1 addition & 1 deletion src/parts/pushpop.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { tester } from '../tester' ;
import { tester } from '../tester.js' ;

export function _pushpop ( _test, length, heapname, Heap, diffname, diff, n ) {

Expand Down
2 changes: 1 addition & 1 deletion src/parts/pushreference.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { tester } from '../tester' ;
import { tester } from '../tester.js' ;
import { shuffle } from '@randomized/random' ;

export function _pushreference ( _test, length, heapname, Heap, diffname, diff, n ) {
Expand Down
2 changes: 1 addition & 1 deletion src/parts/update.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { tester } from '../tester' ;
import { tester } from '../tester.js' ;
import { shuffle } from '@randomized/random' ;

export function _update ( _test, length, heapname, Heap, diffname, diff, n ) {
Expand Down
2 changes: 1 addition & 1 deletion src/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
headreference ,
popreference ,
pushreference ,
} from './parts' ;
} from './parts/index.js' ;

export function test ( _test , heaps , { references , length , lengths , lengths1 , lengths2 } = {
references : true ,
Expand Down
2 changes: 1 addition & 1 deletion test/src/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ava from 'ava' ;

import { partial , create } from '@functional-abstraction/functools' ;

import * as spec from '../../src' ;
import * as spec from '../../src/index.js' ;

spec.test(
ava ,
Expand Down

0 comments on commit e12afe0

Please sign in to comment.