fastv7 1.0.0 → 1.0.1

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/README.md CHANGED
@@ -11,9 +11,9 @@ npm install fastv7
11
11
  ## Usage
12
12
 
13
13
  ```ts
14
- import { fastv7 } from "fastv7";
14
+ import { uuid } from "fastv7";
15
15
 
16
- const id = fastv7();
16
+ const id = uuid();
17
17
  // → 019b3ae7-0184-799d-babe-a5a0bb7f263f
18
18
  ```
19
19
 
package/dist/fastv7.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare function fastv7(): string;
1
+ export declare function uuid(): string;
2
2
  //# sourceMappingURL=fastv7.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fastv7.d.ts","sourceRoot":"","sources":["../src/fastv7.ts"],"names":[],"mappings":"AAaA,wBAAgB,MAAM,WAqDrB"}
1
+ {"version":3,"file":"fastv7.d.ts","sourceRoot":"","sources":["../src/fastv7.ts"],"names":[],"mappings":"AAaA,wBAAgB,IAAI,WAqDnB"}
package/dist/fastv7.js CHANGED
@@ -7,7 +7,7 @@ function refillPool() {
7
7
  }
8
8
  let lastTs = 0;
9
9
  let seq = 0;
10
- export function fastv7() {
10
+ export function uuid() {
11
11
  const now = Date.now();
12
12
  if (now > lastTs) {
13
13
  lastTs = now;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fastv7",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Fast UUID v7 generator with monotonic ordering",
5
5
  "type": "module",
6
6
  "main": "./dist/fastv7.js",