@bigbinary/neeto-commons-frontend 2.0.97 → 2.0.98

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-commons-frontend",
3
- "version": "2.0.97",
3
+ "version": "2.0.98",
4
4
  "description": "A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.",
5
5
  "repository": "git@github.com:bigbinary/neeto-commons-frontend.git",
6
6
  "author": "Amaljith K <amaljith.k@bigbinary.com>",
@@ -12,7 +12,7 @@
12
12
  "scripts": {
13
13
  "prepare": "husky install",
14
14
  "sync_with_wheel": "./.scripts/sync_with_wheel.sh",
15
- "test": "TZ=UTC jest",
15
+ "test": "TZ=UTC jest --detectOpenHandles",
16
16
  "build": "NODE_ENV=production rollup -c rollup.config.js && yarn build:jsdoc",
17
17
  "watch": "rollup -c rollup.config.js --watch",
18
18
  "build:jsdoc": "node ./.scripts/jsdoc-builder.mjs"
package/utils.cjs.js CHANGED
@@ -3211,8 +3211,9 @@ var getWebsocketURL = function getWebsocketURL() {
3211
3211
  subdomain: globalProps.organization.subdomain
3212
3212
  });
3213
3213
  };
3214
+ var consumer = createConsumer(getWebsocketURL);
3214
3215
  var createSubscription = function createSubscription(channelName, callbacks) {
3215
- var subscription = createConsumer(getWebsocketURL).subscriptions.create(channelName, callbacks);
3216
+ var subscription = consumer.subscriptions.create(channelName, callbacks);
3216
3217
  return subscription;
3217
3218
  };
3218
3219