data-structure-typed 1.34.2 → 1.34.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -8,7 +8,7 @@ All notable changes to this project will be documented in this file.
8
8
  - [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
9
9
  - [`auto-changelog`](https://github.com/CookPete/auto-changelog)
10
10
 
11
- ## [v1.34.2](https://github.com/zrwusa/data-structure-typed/compare/v1.34.1...main) (upcoming)
11
+ ## [v1.34.3](https://github.com/zrwusa/data-structure-typed/compare/v1.34.1...main) (upcoming)
12
12
 
13
13
  ## [v1.34.1](https://github.com/zrwusa/data-structure-typed/compare/v1.33.4...v1.34.1) (6 October 2023)
14
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "data-structure-typed",
3
- "version": "1.34.2",
3
+ "version": "1.34.4",
4
4
  "description": "Data Structures of Javascript & TypeScript. Binary Tree, BST, Graph, Heap, Priority Queue, Linked List, Queue, Deque, Stack, AVL Tree, Tree Multiset, Trie, Directed Graph, Undirected Graph, Singly Linked List, Doubly Linked List, Max Heap, Max Priority Queue, Min Heap, Min Priority Queue.",
5
5
  "main": "dist/index.js",
6
6
  "module": "lib/index.js",
@@ -1,5 +1,4 @@
1
- import {BinaryTreeNode} from '../../../../src';
2
- import {BinaryTree} from 'binary-tree-typed';
1
+ import {BinaryTree, BinaryTreeNode} from '../../../../src';
3
2
 
4
3
  describe('BinaryTreeNode', () => {
5
4
  it('should create an instance of BinaryTreeNode', () => {
@@ -16,7 +15,7 @@ describe('BinaryTreeNode', () => {
16
15
  });
17
16
 
18
17
  it('should set and get the value correctly', () => {
19
- const node = new BinaryTreeNode<number>(1, 42);
18
+ const node: BinaryTreeNode<number> = new BinaryTreeNode<number>(1, 42);
20
19
  expect(node.val).toBe(42);
21
20
 
22
21
  node.val = 55;