@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 CHANGED
@@ -2,13 +2,27 @@
2
2
 
3
3
  Reusable generic typescript utilities, types, constants, helpers
4
4
 
5
- [![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
5
+ <!-- Package & Status -->
6
+ [![npm version](https://img.shields.io/npm/v/@lichens-innovation/ts-common.svg?style=flat-square)](https://www.npmjs.com/package/@lichens-innovation/ts-common)
7
+ [![npm downloads](https://img.shields.io/npm/dm/@lichens-innovation/ts-common.svg?style=flat-square)](https://www.npmjs.com/package/@lichens-innovation/ts-common)
8
+ [![Build Status](https://img.shields.io/github/actions/workflow/status/Lichens-Innovation/ts-common/create-release.yml?branch=main&style=flat-square&logo=github)](https://github.com/Lichens-Innovation/ts-common/actions)
9
+ [![License](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square)](LICENSE)
10
+
11
+ <!-- Tech Stack -->
6
12
  [![TypeScript](https://img.shields.io/badge/TypeScript-5.9-blue.svg?style=flat-square&logo=typescript)](https://www.typescriptlang.org/)
7
13
  [![Node.js](https://img.shields.io/badge/Node.js-LTS-green.svg?style=flat-square&logo=node.js)](https://nodejs.org/)
8
- [![License](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square)](LICENSE)
9
- [![Vitest](https://img.shields.io/badge/Vitest-4.0-6E9F18.svg?style=flat-square&logo=vitest)](https://vitest.dev/)
10
14
  [![Yarn](https://img.shields.io/badge/Yarn-1.22+-2C8EBB.svg?style=flat-square&logo=yarn)](https://yarnpkg.com/)
11
15
 
16
+ <!-- Code Quality -->
17
+ [![Vitest](https://img.shields.io/badge/Vitest-4.0-6E9F18.svg?style=flat-square&logo=vitest)](https://vitest.dev/)
18
+ [![ESLint](https://img.shields.io/badge/ESLint-9.x-4B32C3.svg?style=flat-square&logo=eslint)](https://eslint.org/)
19
+ [![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square&logo=prettier)](https://prettier.io/)
20
+
21
+ <!-- Standards -->
22
+ [![Semantic Versioning](https://img.shields.io/badge/semver-2.0.0-blue.svg?style=flat-square)](https://semver.org/)
23
+ [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://makeapullrequest.com)
24
+ [![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
25
+
12
26
  Table of content
13
27
  - [ts-common](#ts-common)
14
28
  - [Prerequisites](#prerequisites)
@@ -8,4 +8,5 @@ export * from './thread.utils';
8
8
  export * from './time.utils';
9
9
  export * from './types.utils';
10
10
  export * from './units.utils';
11
+ export * from './websocket.utils';
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -8,4 +8,5 @@ export * from './thread.utils';
8
8
  export * from './time.utils';
9
9
  export * from './types.utils';
10
10
  export * from './units.utils';
11
+ export * from './websocket.utils';
11
12
  //# sourceMappingURL=index.js.map
@@ -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.0",
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,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=vitest.setup.d.ts.map
@@ -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"}