From 4690353516b6b21f59b5d8520b28e25e088f12b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Norrliden?= Date: Wed, 9 Oct 2024 13:54:39 +0200 Subject: [PATCH 1/2] feat: type defs --- index.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 index.d.ts diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..e1a6666 --- /dev/null +++ b/index.d.ts @@ -0,0 +1,13 @@ +interface xuid { + (now?: number): string; + create(now?: number): string; + date(id: string): Date | undefined; + dateValue(id: string): number | undefined; + now: null; + ALPHABET: string; + MAX_COUNTER: number | undefined; + MAX_RANDOM: number | undefined; +} +declare const xuid: xuid +export = xuid; +export as namespace xuid From 499ad1215a3b1cc8adc3956f795ef5125b4e730c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Norrliden?= Date: Mon, 13 Jan 2025 10:33:28 +0100 Subject: [PATCH 2/2] 4.1.4 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3bf2c56..d382321 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xuid", - "version": "4.1.3", + "version": "4.1.4", "main": "index.js", "author": "Robert Nagy ", "keywords": [