@nomalism-com/api 0.45.12 → 0.45.14

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/dist/index.js CHANGED
@@ -135,7 +135,7 @@ var MAX_BACKOFF_MS = 3e4;
135
135
  var BASE_BACKOFF_MS = 1e3;
136
136
  var Service = class {
137
137
  constructor({ route }) {
138
- this.route = route;
138
+ this.route = route.replace(/^http(s?):/i, "ws$1:");
139
139
  }
140
140
  openSocket({
141
141
  token,
package/dist/main.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { AxiosInstance } from 'axios';
2
- import Nomalism from '@nomalism-com/types';
3
2
  import WebSocketClass from './modules/view/webSocket';
4
3
  import BankDataClass from './modules/user/bankData';
5
4
  import ClientClass from './modules/user/clients';
@@ -256,7 +255,7 @@ export declare class API {
256
255
  processEnvironment: IEnvironment;
257
256
  client: AxiosInstance;
258
257
  services: Record<IService, string>;
259
- WebSocket: WebSocketClass<Nomalism.WebSocket.IEvent>;
258
+ WebSocket: WebSocketClass;
260
259
  BankData: BankDataClass;
261
260
  Client: ClientClass;
262
261
  ClientType: ClientTypeClass;
@@ -1,7 +1,6 @@
1
1
  import type Nomalism from '@nomalism-com/types';
2
2
  import type { IModuleConstructor } from '../../main';
3
- export default class Service<T extends Nomalism.WebSocket.IEvent> implements Nomalism.WebSocket
4
- .IClient<T> {
3
+ export default class Service implements Nomalism.WebSocket.IClient {
5
4
  route: string;
6
5
  constructor({ route }: IModuleConstructor);
7
6
  openSocket<T extends Nomalism.WebSocket.IEvent>({ token, onEvent, onOpen, onReconnect, onClose, onAuthUnverified, }: Nomalism.WebSocket.SocketOptions<T>): Nomalism.WebSocket.SocketHandle;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nomalism-com/api",
3
3
  "description": "A nomalism API package for performing HTTP requests on API endpoints",
4
- "version": "0.45.12",
4
+ "version": "0.45.14",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -23,11 +23,11 @@
23
23
  "prepack": "npm run lint && npm run build"
24
24
  },
25
25
  "dependencies": {
26
- "@nomalism-com/types": "^0.45.15",
26
+ "@nomalism-com/types": "^0.45.17",
27
27
  "axios": "^1.16.1"
28
28
  },
29
29
  "devDependencies": {
30
- "@swc/core": "^1.15.33",
30
+ "@swc/core": "^1.15.40",
31
31
  "@types/node": "^24.12.4",
32
32
  "@typescript-eslint/eslint-plugin": "^8.59.4",
33
33
  "@typescript-eslint/parser": "^8.59.4",