human-ids 1.0.3 → 1.0.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
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [1.0.4] - 2023-07-07
8
+
9
+ ### Fixed
10
+ - Fixed module definition
7
11
  ## [1.0.3] - 2023-07-07
8
12
 
9
13
  ### Added
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  declare module 'human-ids' {
2
- export interface IdGeneratorSettings {
2
+ interface IdGeneratorSettings {
3
3
  lang: string;
4
4
  adjective?: boolean;
5
5
  color?: boolean;
@@ -8,12 +8,10 @@ declare module 'human-ids' {
8
8
  min?: number;
9
9
  max?: number;
10
10
  completeWithZeros?: boolean;
11
- sets?: number;
12
11
  };
13
12
  }
14
13
 
15
- export default class IdGenerator {
16
- constructor(settings?: IdGeneratorSettings);
17
- generateId(): string;
18
- }
19
- }
14
+ function generateId(settings?: IdGeneratorSettings): string;
15
+
16
+ export = generateId;
17
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "human-ids",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "A library to generate human readable IDs",
5
5
  "main": "index.js",
6
6
  "scripts": {