Skip to content

Commit

Permalink
fix/ Node requirement of .js at end of imports
Browse files Browse the repository at this point in the history
  • Loading branch information
brunolnetto committed Jan 25, 2022
1 parent 967ae12 commit fb62d91
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions data-structures/graph/Graph.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Iter from 'es-iter';
import _ from 'lodash';
import depthFirstSearch from '../../algorithms/depth-first-search/depthFirstSearch';
import VisitMetadata from './VisitMetadata';
import depthFirstSearch from '../../algorithms/depth-first-search/depthFirstSearch.js';
import VisitMetadata from './VisitMetadata.js';

export default class Graph {
#cycles;
Expand Down
2 changes: 1 addition & 1 deletion data-structures/graph/GraphVertex.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import LinkedList from '../linked-list/LinkedList';
import LinkedList from '../linked-list/LinkedList.js';

export default class GraphVertex {
/**
Expand Down
2 changes: 1 addition & 1 deletion data-structures/heap/Heap.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Comparator from '../../utils/comparator/Comparator';
import Comparator from '../../utils/comparator/Comparator.js';

/**
* Parent class for Min and Max Heaps.
Expand Down
2 changes: 1 addition & 1 deletion data-structures/heap/MaxHeap.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Heap from './Heap';
import Heap from './Heap.js';

export default class MaxHeap extends Heap {
/**
Expand Down
2 changes: 1 addition & 1 deletion data-structures/heap/MinHeap.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Heap from './Heap';
import Heap from './Heap.js';

export default class MinHeap extends Heap {
/**
Expand Down
4 changes: 2 additions & 2 deletions data-structures/linked-list/LinkedList.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import LinkedListNode from './LinkedListNode';
import Comparator from '../../utils/comparator/Comparator';
import LinkedListNode from './LinkedListNode.js';
import Comparator from '../../utils/comparator/Comparator.js';

export default class LinkedList {
/**
Expand Down
4 changes: 2 additions & 2 deletions data-structures/priority-queue/PriorityQueue.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import MinHeap from '../heap/MinHeap';
import Comparator from '../../utils/comparator/Comparator';
import MinHeap from '../heap/MinHeap.js';
import Comparator from '../../utils/comparator/Comparator.js';

// It is the same as min heap except that when comparing two elements
// we take into account its priority instead of the element's value.
Expand Down
2 changes: 1 addition & 1 deletion data-structures/queue/Queue.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import LinkedList from '../linked-list/LinkedList';
import LinkedList from '../linked-list/LinkedList.js';

export default class Queue {
constructor() {
Expand Down
2 changes: 1 addition & 1 deletion data-structures/stack/Stack.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import LinkedList from '../linked-list/LinkedList';
import LinkedList from '../linked-list/LinkedList.js';

export default class Stack {
constructor() {
Expand Down

0 comments on commit fb62d91

Please sign in to comment.