@aloma.io/integration-sdk 3.0.7 → 3.0.8

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.
@@ -9,10 +9,10 @@ import { Dispatcher } from "./dispatcher/index.mjs";
9
9
  import { WebsocketConnector } from "./websocket/index.mjs";
10
10
  import JWE from "./util/jwe/index.mjs";
11
11
  import fetch from "node-fetch";
12
- import cuid from "@paralleldrive/cuid2";
12
+ import { init } from "@paralleldrive/cuid2";
13
+ const cuid = init({ length: 32 });
13
14
  import express from 'express';
14
15
  import PromClient from 'prom-client';
15
- cuid.init({ length: 32 });
16
16
  // TODO fetch with retry
17
17
  const handlePacketError = (packet, e, transport) => {
18
18
  if (!packet.cb()) {
@@ -1,6 +1,6 @@
1
1
  import C from "../connection/constants.mjs";
2
- import cuid from "@paralleldrive/cuid2";
3
- cuid.init({ length: 32 });
2
+ import { init } from "@paralleldrive/cuid2";
3
+ const cuid = init({ length: 32 });
4
4
  import { DurableWebsocket } from "./durable.mjs";
5
5
  import WebSocket from "ws";
6
6
  import { Packet, Callback } from "./packet.mjs";
@@ -1,5 +1,5 @@
1
- import cuid from "@paralleldrive/cuid2";
2
- cuid.init({ length: 32 });
1
+ import { init } from "@paralleldrive/cuid2";
2
+ const cuid = init({ length: 32 });
3
3
  class Packet {
4
4
  constructor(data = {}) {
5
5
  this.data = data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aloma.io/integration-sdk",
3
- "version": "3.0.7",
3
+ "version": "3.0.8",
4
4
  "description": "",
5
5
  "author": "aloma.io",
6
6
  "license": "Apache-2.0",
@@ -9,12 +9,11 @@ import { Dispatcher } from "./dispatcher/index.mjs";
9
9
  import { WebsocketConnector } from "./websocket/index.mjs";
10
10
  import JWE from "./util/jwe/index.mjs";
11
11
  import fetch from "node-fetch";
12
- import cuid from "@paralleldrive/cuid2"
12
+ import { init } from "@paralleldrive/cuid2";
13
+ const cuid = init({ length: 32 });
13
14
  import express from 'express';
14
15
  import PromClient from 'prom-client'
15
16
 
16
- cuid.init({ length: 32 });
17
-
18
17
  // TODO fetch with retry
19
18
 
20
19
  const handlePacketError = (packet, e, transport) => {
@@ -1,6 +1,6 @@
1
1
  import C from "../connection/constants.mjs";
2
- import cuid from "@paralleldrive/cuid2"
3
- cuid.init({ length: 32 });
2
+ import { init } from "@paralleldrive/cuid2";
3
+ const cuid = init({ length: 32 });
4
4
 
5
5
  import { DurableWebsocket } from "./durable.mjs";
6
6
  import WebSocket from "ws";
@@ -1,5 +1,5 @@
1
- import cuid from "@paralleldrive/cuid2";
2
- cuid.init({ length: 32 });
1
+ import { init } from "@paralleldrive/cuid2";
2
+ const cuid = init({ length: 32 });
3
3
 
4
4
  class Packet {
5
5
  constructor(data = {}) {