@eventvisor/module-uuid 0.2.0 → 0.3.0
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 +16 -0
- package/dist/index.spec.d.ts +1 -0
- package/lib/index.spec.d.ts +1 -0
- package/package.json +5 -5
- package/src/index.spec.ts +15 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.3.0](https://github.com/eventvisor/eventvisor/compare/v0.2.1...v0.3.0) (2025-10-01)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @eventvisor/module-uuid
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.2.1](https://github.com/eventvisor/eventvisor/compare/v0.2.0...v0.2.1) (2025-10-01)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @eventvisor/module-uuid
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# [0.2.0](https://github.com/eventvisor/eventvisor/compare/v0.1.0...v0.2.0) (2025-10-01)
|
|
7
23
|
|
|
8
24
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eventvisor/module-uuid",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Eventvisor UUID module",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"transpile": "echo 'Nothing to transpile'",
|
|
18
18
|
"dist": "webpack --config ./webpack.config.js && tsc --project tsconfig.esm.json --declaration --emitDeclarationOnly --declarationDir dist",
|
|
19
19
|
"build": "npm run transpile && npm run dist",
|
|
20
|
-
"
|
|
21
|
-
"test": "
|
|
20
|
+
"test:jest": "jest --config jest.config.js --verbose --coverage",
|
|
21
|
+
"test": "npm run test:jest"
|
|
22
22
|
},
|
|
23
23
|
"author": {
|
|
24
24
|
"name": "Fahad Heylaal",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"url": "https://github.com/eventvisor/eventvisor/issues"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@eventvisor/sdk": "0.
|
|
41
|
+
"@eventvisor/sdk": "0.3.0"
|
|
42
42
|
},
|
|
43
43
|
"license": "MIT",
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "877802f58d745cfbfe815fbd2ec3cf54aaef4b24"
|
|
45
45
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createUUIDModule } from "./index";
|
|
2
|
+
import { ModuleDependencies } from "@eventvisor/sdk";
|
|
3
|
+
|
|
4
|
+
describe("createUUIDModule", () => {
|
|
5
|
+
it("should create a module", async () => {
|
|
6
|
+
const module = createUUIDModule();
|
|
7
|
+
const dependencies = {} as ModuleDependencies; // it's fine because we're not using the dependencies in this module
|
|
8
|
+
|
|
9
|
+
expect(module.name).toEqual("uuid");
|
|
10
|
+
|
|
11
|
+
const uuid = await module.lookup?.({ key: "" }, dependencies);
|
|
12
|
+
expect(uuid).toBeDefined();
|
|
13
|
+
expect(uuid).toMatch(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/);
|
|
14
|
+
});
|
|
15
|
+
});
|