topsyde-utils 1.0.190 → 1.0.191

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.
@@ -1,5 +1,5 @@
1
1
  import { onBeforeUnmount, onMounted, ref } from "vue";
2
- import { Guards, Lib } from "../../utils.js";
2
+ import { Guards, Lib } from "../../utils/index.js";
3
3
  import { Rxjs } from "../../utils/Rxjs.js";
4
4
  export const useRxjs = (_namespace, actions, options) => {
5
5
  const subs = ref(new Map());
@@ -2,5 +2,5 @@
2
2
  // Do not edit this file directly
3
3
  export * from './websocket/Websocket.js';
4
4
  export { default as Websocket } from './websocket/Websocket.js';
5
- export * from './websocket.js';
5
+ export * from './websocket/index.js';
6
6
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  import { join } from 'path';
2
2
  import { readdirSync, statSync } from 'fs';
3
- import { Lib } from '../../../utils.js';
3
+ import { Lib } from '../../../utils/index.js';
4
4
  const fallbackRoutes = {};
5
5
  /**
6
6
  * Dynamically discovers and loads controllers from the components directory
@@ -1,4 +1,4 @@
1
- import { Throwable } from "../../...js";
1
+ import { Throwable } from "../../../index.js";
2
2
  import { ERROR_CODE } from "../../../errors.js";
3
3
  import { Debug } from "../../../utils/Lib.js";
4
4
  class Router_Internal {
@@ -1,4 +1,4 @@
1
- import { Guards, Lib } from "../../../utils.js";
1
+ import { Guards, Lib } from "../../../utils/index.js";
2
2
  import Message from "./Message.js";
3
3
  export default class Channel {
4
4
  constructor(id, name, ws, limit, members, metadata) {
@@ -1,5 +1,5 @@
1
1
  import { E_WebsocketMessageType } from "./websocket.enums.js";
2
- import { Guards, Lib } from "../../../utils.js";
2
+ import { Guards, Lib } from "../../../utils/index.js";
3
3
  import Message from "./Message.js";
4
4
  export default class Client {
5
5
  set ws(value) {
@@ -1,5 +1,5 @@
1
1
  import Singleton from "../../../singleton.js";
2
- import { Lib } from "../../../utils.js";
2
+ import { Lib } from "../../../utils/index.js";
3
3
  import { Console } from "../../../utils/Console.js";
4
4
  import Channel from "./Channel.js";
5
5
  import Client from "./Client.js";
@@ -1,6 +1,6 @@
1
1
  import { ERROR_CODE } from "../errors.js";
2
2
  import Initializable from "../initializable.js";
3
- import { Guards } from "../utils.js";
3
+ import { Guards } from "../utils/index.js";
4
4
  export default class Controller extends Initializable {
5
5
  constructor() {
6
6
  super();
@@ -1,6 +1,6 @@
1
1
  import { ERROR_CODE } from "../errors.js";
2
2
  import Initializable from "../initializable.js";
3
- import { Guards } from "../utils.js";
3
+ import { Guards } from "../utils/index.js";
4
4
  export default class Service extends Initializable {
5
5
  async validateRequestBody(request, keys) {
6
6
  return await Service.validateRequestBody(request, keys);
package/dist/throwable.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Guards, Lib } from "./utils.js";
1
+ import { Guards, Lib } from "./utils/index.js";
2
2
  /**
3
3
  * @description Custom error class for errors that are expected to be thrown
4
4
  * and should not trigger retry mechanisms or be reported to error monitoring services.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "topsyde-utils",
3
- "version": "1.0.190",
3
+ "version": "1.0.191",
4
4
  "description": "A bundle of TypeScript utility classes and functions",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -19,7 +19,7 @@
19
19
  "build:types": "tsc --emitDeclarationOnly --declaration --outDir ./dist",
20
20
  "build:prepare": "bun run clean && bun run generate-indexes && bun run format:generated",
21
21
  "build": "bun run build:prepare && bun run build:ts && bun run build:types && bun run build:fix-imports",
22
- "build:fix-imports": "bun scripts/fix-esm-imports.ts",
22
+ "build:fix-imports": "bun scripts/generate-indexes.ts --fix-imports",
23
23
  "test": "bun test",
24
24
  "release": "./scripts/release.sh",
25
25
  "deploy": "./scripts/release.sh",