zohodealpos 1.3.3 → 1.3.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.
@@ -1735,7 +1735,7 @@
1735
1735
  * Use of this source code is governed by an MIT-style license that can be
1736
1736
  * found in the LICENSE file at https://angular.io/license
1737
1737
  */
1738
- const SW_VERSION = '12.2.4';
1738
+ const SW_VERSION = '12.2.11';
1739
1739
  const DEBUG_LOG_BUFFER_SIZE = 100;
1740
1740
  class DebugHandler {
1741
1741
  constructor(driver, adapter) {
@@ -2345,7 +2345,8 @@ ${msgIdle}`, { headers: this.adapter.newHeaders({ 'Content-Type': 'text/plain' }
2345
2345
  yield this.notifyClientsAboutUnrecoverableState(appVersion, err.message);
2346
2346
  }
2347
2347
  if (err.isCritical) {
2348
- // Something went wrong with the activation of this version.
2348
+ // Something went wrong with handling the request from this version.
2349
+ this.debugger.log(err, `Driver.handleFetch(version: ${appVersion.manifestHash})`);
2349
2350
  yield this.versionFailed(appVersion, err);
2350
2351
  return this.safeFetch(event.request);
2351
2352
  }
@@ -2628,34 +2629,29 @@ ${msgIdle}`, { headers: this.adapter.newHeaders({ 'Content-Type': 'text/plain' }
2628
2629
  return;
2629
2630
  }
2630
2631
  const brokenHash = broken[0];
2631
- const affectedClients = Array.from(this.clientVersionMap.entries())
2632
- .filter(([clientId, hash]) => hash === brokenHash)
2633
- .map(([clientId]) => clientId);
2632
+ // The specified version is broken and new clients should not be served from it. However, it is
2633
+ // deemed even riskier to switch the existing clients to a different version or to the network.
2634
+ // Therefore, we keep clients on their current version (even if broken) and ensure that no new
2635
+ // clients will be assigned to it.
2634
2636
  // TODO: notify affected apps.
2635
2637
  // The action taken depends on whether the broken manifest is the active (latest) or not.
2636
- // If so, the SW cannot accept new clients, but can continue to service old ones.
2638
+ // - If the broken version is not the latest, no further action is necessary, since new clients
2639
+ // will be assigned to the latest version anyway.
2640
+ // - If the broken version is the latest, the SW cannot accept new clients (but can continue to
2641
+ // service old ones).
2637
2642
  if (this.latestHash === brokenHash) {
2638
- // The latest manifest is broken. This means that new clients are at the mercy of the
2639
- // network, but caches continue to be valid for previous versions. This is
2640
- // unfortunate but unavoidable.
2643
+ // The latest manifest is broken. This means that new clients are at the mercy of the network,
2644
+ // but caches continue to be valid for previous versions. This is unfortunate but unavoidable.
2641
2645
  this.state = DriverReadyState.EXISTING_CLIENTS_ONLY;
2642
2646
  this.stateMessage = `Degraded due to: ${errorToString(err)}`;
2643
- // Cancel the binding for the affected clients.
2644
- affectedClients.forEach(clientId => this.clientVersionMap.delete(clientId));
2645
- }
2646
- else {
2647
- // The latest version is viable, but this older version isn't. The only
2648
- // possible remedy is to stop serving the older version and go to the network.
2649
- // Put the affected clients on the latest version.
2650
- affectedClients.forEach(clientId => this.clientVersionMap.set(clientId, this.latestHash));
2651
- }
2652
- try {
2653
- yield this.sync();
2654
- }
2655
- catch (err2) {
2656
- // We are already in a bad state. No need to make things worse.
2657
- // Just log the error and move on.
2658
- this.debugger.log(err2, `Driver.versionFailed(${err.message || err})`);
2647
+ try {
2648
+ yield this.sync();
2649
+ }
2650
+ catch (err2) {
2651
+ // We are already in a bad state. No need to make things worse.
2652
+ // Just log the error and move on.
2653
+ this.debugger.log(err2, `Driver.versionFailed(${err.message || err})`);
2654
+ }
2659
2655
  }
2660
2656
  });
2661
2657
  }
package/zoho/ngsw.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "configVersion": 1,
3
- "timestamp": 1632818197431,
3
+ "timestamp": 1637552349185,
4
4
  "index": "/index.html",
5
5
  "assetGroups": [
6
6
  {
@@ -11,17 +11,16 @@
11
11
  "ignoreVary": true
12
12
  },
13
13
  "urls": [
14
- "/642.bc7016febd03c6cb4d6a.js",
15
- "/665.8af334950ba206e5c0e5.js",
16
- "/899.172aae95d86818ea0930.js",
14
+ "/642.89027232f0b1cf25c2df.js",
15
+ "/665.b9537de996da942d47d4.js",
16
+ "/899.6f733b0321009a809619.js",
17
17
  "/favicon.ico",
18
- "/index.html",
19
- "/main.87fafd478f714d6e58fe.js",
18
+ "/main.08acc1c921358cd283fe.js",
20
19
  "/manifest.webmanifest",
21
20
  "/polyfills.91e9c0d031abefd44bb8.js",
22
- "/runtime.e1dbc9dd848129fcbb33.js",
21
+ "/runtime.21f1cc195db9e1522ede.js",
23
22
  "/scripts.efed6238f50c973203f8.js",
24
- "/styles.51eee3d61e891f39ef1d.css"
23
+ "/styles.425b83625e151c89fa80.css"
25
24
  ],
26
25
  "patterns": []
27
26
  },
@@ -84,9 +83,9 @@
84
83
  ],
85
84
  "dataGroups": [],
86
85
  "hashTable": {
87
- "/642.bc7016febd03c6cb4d6a.js": "381e020d3108ba6f52291e83c64764680676dea3",
88
- "/665.8af334950ba206e5c0e5.js": "eebf2d90b8ca89792216fee8715ebb70cc3a2bbd",
89
- "/899.172aae95d86818ea0930.js": "28203bf08c9933de2afd19755a9f10c138a384db",
86
+ "/642.89027232f0b1cf25c2df.js": "4bdae595e5345f6edfb58511e2311606d1b46722",
87
+ "/665.b9537de996da942d47d4.js": "eebf2d90b8ca89792216fee8715ebb70cc3a2bbd",
88
+ "/899.6f733b0321009a809619.js": "306a7d1aa943946263b4e63c94074d91d0ef63c4",
90
89
  "/assets/bootstrap_light.scss": "c1259a97d15ee836fbd3ba031dc8327f9cd7cf05",
91
90
  "/assets/floatingLabel.scss": "ecc84bde7497e5998dd61c5051c3ce4ffce6b67b",
92
91
  "/assets/icons/icon-128x128.png": "dae3b6ed49bdaf4327b92531d4b5b4a5d30c7532",
@@ -133,13 +132,12 @@
133
132
  "/assets/pos_variable.scss": "1c4a121e77fa382d97ba44f7eb0558933d82af6f",
134
133
  "/assets/sitemap.json": "d770a14b6123cba4e31a8617318b0346582e8f10",
135
134
  "/favicon.ico": "22f6a4a3bcaafafb0254e0f2fa4ceb89e505e8b2",
136
- "/index.html": "b37983decd7e072123f0850185d56e163cab06c3",
137
- "/main.87fafd478f714d6e58fe.js": "8dd61e321f1f7196bedf3803abbd1d80816196e9",
135
+ "/main.08acc1c921358cd283fe.js": "e63c6fbb136f80ef92b42daf656666ec927e8dd6",
138
136
  "/manifest.webmanifest": "0b6a767cefbd854096cf0ee35858b7497a39c611",
139
137
  "/polyfills.91e9c0d031abefd44bb8.js": "20beec0fc5c8a2428571138f88379b80e6bc5541",
140
- "/runtime.e1dbc9dd848129fcbb33.js": "7367e012a2045ee95cd44ecc1e030220ee005222",
138
+ "/runtime.21f1cc195db9e1522ede.js": "2dccd48933ac4e4d3dd47e76e18f0217ad07f4a1",
141
139
  "/scripts.efed6238f50c973203f8.js": "745226d8d08afb3d716848d7eeed74d2319d4082",
142
- "/styles.51eee3d61e891f39ef1d.css": "7cef63f359db3cac24ee3b7f600752a6fa44b4a3"
140
+ "/styles.425b83625e151c89fa80.css": "098d57f59bec86ae12d311c3bf28d6729b76ada9"
143
141
  },
144
142
  "navigationUrls": [
145
143
  {
@@ -1 +1 @@
1
- (()=>{"use strict";var e,v={},h={};function r(e){var n=h[e];if(void 0!==n)return n.exports;var t=h[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(n,t,i,f)=>{if(!t){var a=1/0;for(o=0;o<e.length;o++){for(var[t,i,f]=e[o],s=!0,l=0;l<t.length;l++)(!1&f||a>=f)&&Object.keys(r.O).every(b=>r.O[b](t[l]))?t.splice(l--,1):(s=!1,f<a&&(a=f));if(s){e.splice(o--,1);var d=i();void 0!==d&&(n=d)}}return n}f=f||0;for(var o=e.length;o>0&&e[o-1][2]>f;o--)e[o]=e[o-1];e[o]=[t,i,f]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{642:"bc7016febd03c6cb4d6a",665:"8af334950ba206e5c0e5",899:"172aae95d86818ea0930"}[e]+".js",r.miniCssF=e=>"styles.51eee3d61e891f39ef1d.css",r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="zoho:";r.l=(t,i,f,o)=>{if(e[t])e[t].push(i);else{var a,s;if(void 0!==f)for(var l=document.getElementsByTagName("script"),d=0;d<l.length;d++){var u=l[d];if(u.getAttribute("src")==t||u.getAttribute("data-webpack")==n+f){a=u;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,r.nc&&a.setAttribute("nonce",r.nc),a.setAttribute("data-webpack",n+f),a.src=r.tu(t)),e[t]=[i];var c=(g,b)=>{a.onerror=a.onload=null,clearTimeout(p);var m=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),m&&m.forEach(_=>_(b)),g)return g(b)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=c.bind(null,a.onerror),a.onload=c.bind(null,a.onload),s&&document.head.appendChild(a)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tu=n=>(void 0===e&&(e={createScriptURL:t=>t},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e.createScriptURL(n))})(),r.p="https://cdn.jsdelivr.net/npm/zohodealpos@1.3.3/zoho/",(()=>{var e={666:0};r.f.j=(i,f)=>{var o=r.o(e,i)?e[i]:void 0;if(0!==o)if(o)f.push(o[2]);else if(666!=i){var a=new Promise((u,c)=>o=e[i]=[u,c]);f.push(o[2]=a);var s=r.p+r.u(i),l=new Error;r.l(s,u=>{if(r.o(e,i)&&(0!==(o=e[i])&&(e[i]=void 0),o)){var c=u&&("load"===u.type?"missing":u.type),p=u&&u.target&&u.target.src;l.message="Loading chunk "+i+" failed.\n("+c+": "+p+")",l.name="ChunkLoadError",l.type=c,l.request=p,o[1](l)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var n=(i,f)=>{var l,d,[o,a,s]=f,u=0;for(l in a)r.o(a,l)&&(r.m[l]=a[l]);if(s)var c=s(r);for(i&&i(f);u<o.length;u++)r.o(e,d=o[u])&&e[d]&&e[d][0](),e[o[u]]=0;return r.O(c)},t=self.webpackChunkzoho=self.webpackChunkzoho||[];t.forEach(n.bind(null,0)),t.push=n.bind(null,t.push.bind(t))})()})();
1
+ (()=>{"use strict";var e,v={},h={};function r(e){var n=h[e];if(void 0!==n)return n.exports;var t=h[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(n,t,i,f)=>{if(!t){var a=1/0;for(o=0;o<e.length;o++){for(var[t,i,f]=e[o],s=!0,l=0;l<t.length;l++)(!1&f||a>=f)&&Object.keys(r.O).every(b=>r.O[b](t[l]))?t.splice(l--,1):(s=!1,f<a&&(a=f));if(s){e.splice(o--,1);var u=i();void 0!==u&&(n=u)}}return n}f=f||0;for(var o=e.length;o>0&&e[o-1][2]>f;o--)e[o]=e[o-1];e[o]=[t,i,f]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{642:"89027232f0b1cf25c2df",665:"b9537de996da942d47d4",899:"6f733b0321009a809619"}[e]+".js",r.miniCssF=e=>"styles.425b83625e151c89fa80.css",r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="zoho:";r.l=(t,i,f,o)=>{if(e[t])e[t].push(i);else{var a,s;if(void 0!==f)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==t||d.getAttribute("data-webpack")==n+f){a=d;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,r.nc&&a.setAttribute("nonce",r.nc),a.setAttribute("data-webpack",n+f),a.src=r.tu(t)),e[t]=[i];var c=(g,b)=>{a.onerror=a.onload=null,clearTimeout(p);var m=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),m&&m.forEach(_=>_(b)),g)return g(b)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=c.bind(null,a.onerror),a.onload=c.bind(null,a.onload),s&&document.head.appendChild(a)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tu=n=>(void 0===e&&(e={createScriptURL:t=>t},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e.createScriptURL(n))})(),r.p="https://cdn.jsdelivr.net/npm/zohodealpos@1.3.7/zoho/",(()=>{var e={666:0};r.f.j=(i,f)=>{var o=r.o(e,i)?e[i]:void 0;if(0!==o)if(o)f.push(o[2]);else if(666!=i){var a=new Promise((d,c)=>o=e[i]=[d,c]);f.push(o[2]=a);var s=r.p+r.u(i),l=new Error;r.l(s,d=>{if(r.o(e,i)&&(0!==(o=e[i])&&(e[i]=void 0),o)){var c=d&&("load"===d.type?"missing":d.type),p=d&&d.target&&d.target.src;l.message="Loading chunk "+i+" failed.\n("+c+": "+p+")",l.name="ChunkLoadError",l.type=c,l.request=p,o[1](l)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var n=(i,f)=>{var l,u,[o,a,s]=f,d=0;for(l in a)r.o(a,l)&&(r.m[l]=a[l]);if(s)var c=s(r);for(i&&i(f);d<o.length;d++)r.o(e,u=o[d])&&e[u]&&e[u][0](),e[o[d]]=0;return r.O(c)},t=self.webpackChunkzoho=self.webpackChunkzoho||[];t.forEach(n.bind(null,0)),t.push=n.bind(null,t.push.bind(t))})()})();
@@ -14,7 +14,13 @@ self.addEventListener('install', event => {
14
14
 
15
15
  self.addEventListener('activate', event => {
16
16
  event.waitUntil(self.clients.claim());
17
- self.registration.unregister().then(() => {
17
+
18
+ event.waitUntil(self.registration.unregister().then(() => {
18
19
  console.log('NGSW Safety Worker - unregistered old service worker');
19
- });
20
+ }));
21
+
22
+ event.waitUntil(caches.keys().then(cacheNames => {
23
+ const ngswCacheNames = cacheNames.filter(name => /^ngsw:/.test(name));
24
+ return Promise.all(ngswCacheNames.map(name => caches.delete(name)));
25
+ }));
20
26
  });