@codycraven/data-structs
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -1,3 +0,3 @@ | ||
import Node from './Node'; | ||
export default class DoublyLinkedList { | ||
import { Node } from './Node'; | ||
export declare class DoublyLinkedList { | ||
head: Node | undefined; | ||
@@ -4,0 +4,0 @@ tail: Node | undefined; |
@@ -47,2 +47,2 @@ "use strict"; | ||
}()); | ||
exports.default = DoublyLinkedList; | ||
exports.DoublyLinkedList = DoublyLinkedList; |
@@ -1,5 +0,4 @@ | ||
import DoublyLinkedList from './DoublyLinkedList'; | ||
import Node from './Node'; | ||
export default DoublyLinkedList; | ||
export { Node }; | ||
import { DoublyLinkedList } from './DoublyLinkedList'; | ||
import { Node } from './Node'; | ||
export { DoublyLinkedList, Node }; | ||
export declare function newNode<T>(list: DoublyLinkedList, data: T): Node; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var DoublyLinkedList_1 = require("./DoublyLinkedList"); | ||
exports.DoublyLinkedList = DoublyLinkedList_1.DoublyLinkedList; | ||
var Node_1 = require("./Node"); | ||
exports.Node = Node_1.default; | ||
exports.default = DoublyLinkedList_1.default; | ||
exports.Node = Node_1.Node; | ||
function newNode(list, data) { | ||
var n = new Node_1.default(list); | ||
var n = new Node_1.Node(list); | ||
n.data = data; | ||
@@ -10,0 +10,0 @@ return n; |
@@ -1,3 +0,3 @@ | ||
import DoublyLinkedList from './DoublyLinkedList'; | ||
export default class Node { | ||
import { DoublyLinkedList } from './DoublyLinkedList'; | ||
export declare class Node { | ||
list: DoublyLinkedList; | ||
@@ -4,0 +4,0 @@ data: any; |
@@ -66,2 +66,2 @@ "use strict"; | ||
}()); | ||
exports.default = Node; | ||
exports.Node = Node; |
@@ -1,1 +0,1 @@ | ||
export { default as DoublyLinkedList } from './doubly-linked-list'; | ||
export { DoublyLinkedList } from './doubly-linked-list'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var doubly_linked_list_1 = require("./doubly-linked-list"); | ||
exports.DoublyLinkedList = doubly_linked_list_1.default; | ||
exports.DoublyLinkedList = doubly_linked_list_1.DoublyLinkedList; |
{ | ||
"name": "@codycraven/data-structs", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Common data structures for JavaScript", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"main": "./lib/index.js", | ||
"types": "./lib/index.d.ts", | ||
"dependencies": { | ||
@@ -8,0 +8,0 @@ "tslint-to-eslint-config": "^0.2.8" |
7127
157