Skip to content

Commit c94e04a

Browse files
committedJan 13, 2025·
chore: organize src dir
1 parent 37fe050 commit c94e04a

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed
 

‎src/hash.ts ‎src/hash/hash.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { objectHash, HashOptions } from "./object-hash";
2-
import { sha256base64 } from "./crypto/sha256";
2+
import { sha256base64 } from "../crypto/sha256";
33

44
/**
55
* Hash any JS value into a string
File renamed without changes.

‎src/index.ts

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
export { objectHash } from "./object-hash";
2-
export { hash } from "./hash";
1+
// Hash
2+
export { objectHash } from "./hash/object-hash";
3+
export { hash } from "./hash/hash";
4+
5+
// Crypto
36
export { murmurHash } from "./crypto/murmur";
47
export { sha256, sha256base64 } from "./crypto/sha256";
5-
export { isEqual } from "./utils";
6-
export { diff } from "./diff";
8+
9+
// Utils
10+
export { isEqual } from "./utils/is-equal";
11+
export { diff } from "./utils/diff";

‎src/diff.ts ‎src/utils/diff.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { objectHash, HashOptions } from "./object-hash";
1+
import { objectHash, HashOptions } from "../hash/object-hash";
22

33
/**
44
* Calculates the difference between two objects and returns a list of differences.

‎src/utils.ts ‎src/utils/is-equal.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { objectHash, HashOptions } from "./object-hash";
1+
import { objectHash, HashOptions } from "../hash/object-hash";
22
/**
33
* Compare two objects using reference equality and stable deep hashing.
44
* @param {any} object1 First object

0 commit comments

Comments
 (0)
Please sign in to comment.