@thi.ng/ksuid 3.2.70 → 3.2.72
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 +1 -1
- package/aksuid.d.ts +3 -3
- package/ksuid32.d.ts +2 -2
- package/ksuid64.d.ts +2 -2
- package/package.json +9 -9
- package/ulid.d.ts +2 -2
package/CHANGELOG.md
CHANGED
package/aksuid.d.ts
CHANGED
|
@@ -16,17 +16,17 @@ export declare abstract class AKSUID implements IKSUID {
|
|
|
16
16
|
protected pad: (x: any) => string;
|
|
17
17
|
protected constructor(epochSize: number, opts: Partial<KSUIDOpts>);
|
|
18
18
|
next(): string;
|
|
19
|
-
nextBinary(buf?: Uint8Array): Uint8Array
|
|
19
|
+
nextBinary(buf?: Uint8Array): Uint8Array<ArrayBufferLike>;
|
|
20
20
|
timeOnly(epoch?: number): string;
|
|
21
21
|
abstract timeOnlyBinary(epoch?: number, buf?: Uint8Array): Uint8Array;
|
|
22
22
|
fromEpoch(epoch?: number): string;
|
|
23
|
-
fromEpochBinary(epoch?: number, buf?: Uint8Array): Uint8Array
|
|
23
|
+
fromEpochBinary(epoch?: number, buf?: Uint8Array): Uint8Array<ArrayBufferLike>;
|
|
24
24
|
format(buf: Uint8Array): string;
|
|
25
25
|
abstract parse(id: string): {
|
|
26
26
|
epoch: number;
|
|
27
27
|
id: Uint8Array;
|
|
28
28
|
};
|
|
29
|
-
protected ensureSize(buf: Uint8Array): Uint8Array
|
|
29
|
+
protected ensureSize(buf: Uint8Array): Uint8Array<ArrayBufferLike>;
|
|
30
30
|
protected ensureTime(t: number, max?: number): number;
|
|
31
31
|
protected u32(buf: Uint8Array, i?: number): number;
|
|
32
32
|
}
|
package/ksuid32.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import { AKSUID } from "./aksuid.js";
|
|
|
2
2
|
import type { KSUIDOpts } from "./api.js";
|
|
3
3
|
export declare class KSUID32 extends AKSUID {
|
|
4
4
|
constructor(opts?: Partial<KSUIDOpts>);
|
|
5
|
-
timeOnlyBinary(epoch?: number, buf?: Uint8Array): Uint8Array
|
|
5
|
+
timeOnlyBinary(epoch?: number, buf?: Uint8Array): Uint8Array<ArrayBufferLike>;
|
|
6
6
|
parse(id: string): {
|
|
7
7
|
epoch: number;
|
|
8
|
-
id: Uint8Array
|
|
8
|
+
id: Uint8Array<ArrayBuffer>;
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
/**
|
package/ksuid64.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import { AKSUID } from "./aksuid.js";
|
|
|
2
2
|
import type { KSUIDOpts } from "./api.js";
|
|
3
3
|
export declare class KSUID64 extends AKSUID {
|
|
4
4
|
constructor(opts?: Partial<KSUIDOpts>);
|
|
5
|
-
timeOnlyBinary(epoch?: number, buf?: Uint8Array): Uint8Array
|
|
5
|
+
timeOnlyBinary(epoch?: number, buf?: Uint8Array): Uint8Array<ArrayBufferLike>;
|
|
6
6
|
parse(id: string): {
|
|
7
7
|
epoch: number;
|
|
8
|
-
id: Uint8Array
|
|
8
|
+
id: Uint8Array<ArrayBuffer>;
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/ksuid",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.72",
|
|
4
4
|
"description": "Configurable K-sortable unique IDs, ULIDs, binary & base-N encoded, 32/48/64bit time resolutions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@thi.ng/base-n": "^2.7.
|
|
42
|
-
"@thi.ng/errors": "^2.5.
|
|
43
|
-
"@thi.ng/random": "^4.1.
|
|
44
|
-
"@thi.ng/strings": "^3.8.
|
|
41
|
+
"@thi.ng/base-n": "^2.7.26",
|
|
42
|
+
"@thi.ng/errors": "^2.5.20",
|
|
43
|
+
"@thi.ng/random": "^4.1.5",
|
|
44
|
+
"@thi.ng/strings": "^3.8.12"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@microsoft/api-extractor": "^7.
|
|
47
|
+
"@microsoft/api-extractor": "^7.48.0",
|
|
48
48
|
"esbuild": "^0.24.0",
|
|
49
|
-
"typedoc": "^0.
|
|
50
|
-
"typescript": "^5.
|
|
49
|
+
"typedoc": "^0.27.4",
|
|
50
|
+
"typescript": "^5.7.2"
|
|
51
51
|
},
|
|
52
52
|
"keywords": [
|
|
53
53
|
"32bit",
|
|
@@ -116,5 +116,5 @@
|
|
|
116
116
|
"status": "stable",
|
|
117
117
|
"year": 2020
|
|
118
118
|
},
|
|
119
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "34ac95538d96f046090fef5fd3a1dc36d54663d5\n"
|
|
120
120
|
}
|
package/ulid.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import { AKSUID } from "./aksuid.js";
|
|
|
2
2
|
import type { KSUIDOpts } from "./api.js";
|
|
3
3
|
export declare class ULID extends AKSUID {
|
|
4
4
|
constructor(opts?: Partial<KSUIDOpts>);
|
|
5
|
-
timeOnlyBinary(epoch?: number): Uint8Array
|
|
5
|
+
timeOnlyBinary(epoch?: number): Uint8Array<ArrayBuffer>;
|
|
6
6
|
parse(id: string): {
|
|
7
7
|
epoch: number;
|
|
8
|
-
id: Uint8Array
|
|
8
|
+
id: Uint8Array<ArrayBuffer>;
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
/**
|