@nexia/sdk 0.8.6 → 0.8.7

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.
Files changed (2) hide show
  1. package/dist/host.js +1 -5
  2. package/package.json +1 -1
package/dist/host.js CHANGED
@@ -120,10 +120,6 @@ function waitForOperationPoll(signal) {
120
120
  if (signal.aborted) {
121
121
  return Promise.reject(signal.reason ?? new DOMException('Aborted', 'AbortError'));
122
122
  }
123
- const delay = typeof document !== 'undefined'
124
- && document.visibilityState === 'hidden'
125
- ? 3000
126
- : 1200;
127
123
  return new Promise((resolve, reject) => {
128
124
  const aborted = () => {
129
125
  globalThis.clearTimeout(timer);
@@ -132,7 +128,7 @@ function waitForOperationPoll(signal) {
132
128
  const timer = globalThis.setTimeout(() => {
133
129
  signal.removeEventListener('abort', aborted);
134
130
  resolve();
135
- }, delay);
131
+ }, 5000);
136
132
  signal.addEventListener('abort', aborted, { once: true });
137
133
  });
138
134
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexia/sdk",
3
- "version": "0.8.6",
3
+ "version": "0.8.7",
4
4
  "description": "Frontend contracts for Nexia App Packages",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",