@lichens-innovation/ts-common 1.3.0 → 1.3.2
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 +17 -3
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/package.json +8 -1
- package/dist/utils/vitest.setup.d.ts +0 -2
- package/dist/utils/vitest.setup.d.ts.map +0 -1
- package/dist/utils/vitest.setup.js +0 -21
- package/dist/utils/vitest.setup.js.map +0 -1
package/README.md
CHANGED
|
@@ -2,13 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
Reusable generic typescript utilities, types, constants, helpers
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
<!-- Package & Status -->
|
|
6
|
+
[](https://www.npmjs.com/package/@lichens-innovation/ts-common)
|
|
7
|
+
[](https://www.npmjs.com/package/@lichens-innovation/ts-common)
|
|
8
|
+
[](https://github.com/Lichens-Innovation/ts-common/actions)
|
|
9
|
+
[](LICENSE)
|
|
10
|
+
|
|
11
|
+
<!-- Tech Stack -->
|
|
6
12
|
[](https://www.typescriptlang.org/)
|
|
7
13
|
[](https://nodejs.org/)
|
|
8
|
-
[](LICENSE)
|
|
9
|
-
[](https://vitest.dev/)
|
|
10
14
|
[](https://yarnpkg.com/)
|
|
11
15
|
|
|
16
|
+
<!-- Code Quality -->
|
|
17
|
+
[](https://vitest.dev/)
|
|
18
|
+
[](https://eslint.org/)
|
|
19
|
+
[](https://prettier.io/)
|
|
20
|
+
|
|
21
|
+
<!-- Standards -->
|
|
22
|
+
[](https://semver.org/)
|
|
23
|
+
[](https://makeapullrequest.com)
|
|
24
|
+
[](https://github.com/RichardLitt/standard-readme)
|
|
25
|
+
|
|
12
26
|
Table of content
|
|
13
27
|
- [ts-common](#ts-common)
|
|
14
28
|
- [Prerequisites](#prerequisites)
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC"}
|
package/dist/utils/index.js
CHANGED
package/dist/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lichens-innovation/ts-common",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "Reusable generic typescript utilities, types, constants, helpers",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"typescript",
|
|
7
|
+
"utilities",
|
|
8
|
+
"utils",
|
|
9
|
+
"helpers",
|
|
10
|
+
"common"
|
|
11
|
+
],
|
|
5
12
|
"main": "dist/index.js",
|
|
6
13
|
"types": "dist/index.d.ts",
|
|
7
14
|
"files": [
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vitest.setup.d.ts","sourceRoot":"","sources":["../../src/utils/vitest.setup.ts"],"names":[],"mappings":""}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { vi } from 'vitest';
|
|
2
|
-
// Mock WebSocket for Node.js environment
|
|
3
|
-
class MockWebSocket {
|
|
4
|
-
static CONNECTING = 0;
|
|
5
|
-
static OPEN = 1;
|
|
6
|
-
static CLOSING = 2;
|
|
7
|
-
static CLOSED = 3;
|
|
8
|
-
CONNECTING = 0;
|
|
9
|
-
OPEN = 1;
|
|
10
|
-
CLOSING = 2;
|
|
11
|
-
CLOSED = 3;
|
|
12
|
-
readyState = MockWebSocket.CONNECTING;
|
|
13
|
-
close = vi.fn();
|
|
14
|
-
send = vi.fn();
|
|
15
|
-
constructor(_url, _protocols) { }
|
|
16
|
-
}
|
|
17
|
-
// Only set the global if WebSocket is not already defined
|
|
18
|
-
if (typeof globalThis.WebSocket === 'undefined') {
|
|
19
|
-
globalThis.WebSocket = MockWebSocket;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=vitest.setup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vitest.setup.js","sourceRoot":"","sources":["../../src/utils/vitest.setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE5B,yCAAyC;AACzC,MAAM,aAAa;IACjB,MAAM,CAAU,UAAU,GAAG,CAAC,CAAC;IAC/B,MAAM,CAAU,IAAI,GAAG,CAAC,CAAC;IACzB,MAAM,CAAU,OAAO,GAAG,CAAC,CAAC;IAC5B,MAAM,CAAU,MAAM,GAAG,CAAC,CAAC;IAElB,UAAU,GAAG,CAAC,CAAC;IACf,IAAI,GAAG,CAAC,CAAC;IACT,OAAO,GAAG,CAAC,CAAC;IACZ,MAAM,GAAG,CAAC,CAAC;IAEpB,UAAU,GAAG,aAAa,CAAC,UAAU,CAAC;IACtC,KAAK,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;IAChB,IAAI,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;IAEf,YAAY,IAAY,EAAE,UAA8B,IAAG,CAAC;;AAG9D,0DAA0D;AAC1D,IAAI,OAAO,UAAU,CAAC,SAAS,KAAK,WAAW,EAAE,CAAC;IAC/C,UAA6D,CAAC,SAAS,GAAG,aAAa,CAAC;AAC3F,CAAC"}
|