@laboratoria/sdk-js 6.0.0-beta.2 → 6.0.0

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.
@@ -1145,7 +1145,7 @@ function Cr(n) {
1145
1145
  const e = n.getComponent();
1146
1146
  return (e == null ? void 0 : e.type) === "VERSION";
1147
1147
  }
1148
- const nt = "@firebase/app", wt = "0.9.16";
1148
+ const nt = "@firebase/app", wt = "0.9.18";
1149
1149
  /**
1150
1150
  * @license
1151
1151
  * Copyright 2019 Google LLC
@@ -1162,7 +1162,7 @@ const nt = "@firebase/app", wt = "0.9.16";
1162
1162
  * See the License for the specific language governing permissions and
1163
1163
  * limitations under the License.
1164
1164
  */
1165
- const Z = new Zt("@firebase/app"), Rr = "@firebase/app-compat", Pr = "@firebase/analytics-compat", Or = "@firebase/analytics", kr = "@firebase/app-check-compat", Dr = "@firebase/app-check", Nr = "@firebase/auth", Lr = "@firebase/auth-compat", Mr = "@firebase/database", $r = "@firebase/database-compat", Ur = "@firebase/functions", jr = "@firebase/functions-compat", Fr = "@firebase/installations", Br = "@firebase/installations-compat", Vr = "@firebase/messaging", Hr = "@firebase/messaging-compat", Wr = "@firebase/performance", xr = "@firebase/performance-compat", zr = "@firebase/remote-config", qr = "@firebase/remote-config-compat", Gr = "@firebase/storage", Kr = "@firebase/storage-compat", Jr = "@firebase/firestore", Yr = "@firebase/firestore-compat", Xr = "firebase", Qr = "10.2.0";
1165
+ const Z = new Zt("@firebase/app"), Rr = "@firebase/app-compat", Pr = "@firebase/analytics-compat", Or = "@firebase/analytics", kr = "@firebase/app-check-compat", Dr = "@firebase/app-check", Nr = "@firebase/auth", Lr = "@firebase/auth-compat", Mr = "@firebase/database", $r = "@firebase/database-compat", Ur = "@firebase/functions", jr = "@firebase/functions-compat", Fr = "@firebase/installations", Br = "@firebase/installations-compat", Vr = "@firebase/messaging", Hr = "@firebase/messaging-compat", Wr = "@firebase/performance", xr = "@firebase/performance-compat", zr = "@firebase/remote-config", qr = "@firebase/remote-config-compat", Gr = "@firebase/storage", Kr = "@firebase/storage-compat", Jr = "@firebase/firestore", Yr = "@firebase/firestore-compat", Xr = "firebase", Qr = "10.3.1";
1166
1166
  /**
1167
1167
  * @license
1168
1168
  * Copyright 2019 Google LLC
@@ -1620,7 +1620,7 @@ function hi(n) {
1620
1620
  )), ie(nt, wt, n), ie(nt, wt, "esm2017"), ie("fire-js", "");
1621
1621
  }
1622
1622
  hi("");
1623
- var fi = "firebase", pi = "10.2.0";
1623
+ var fi = "firebase", pi = "10.3.1";
1624
1624
  /**
1625
1625
  * @license
1626
1626
  * Copyright 2020 Google LLC
@@ -6230,7 +6230,7 @@ class wo {
6230
6230
  }
6231
6231
  }
6232
6232
  const Eo = wo;
6233
- var Bt = "@firebase/auth", Vt = "1.2.0";
6233
+ var Bt = "@firebase/auth", Vt = "1.3.0";
6234
6234
  /**
6235
6235
  * @license
6236
6236
  * Copyright 2020 Google LLC
@@ -208,7 +208,7 @@
208
208
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
209
209
  * See the License for the specific language governing permissions and
210
210
  * limitations under the License.
211
- */class Or{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(t=>{if(Pr(t)){const r=t.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(t=>t).join(" ")}}function Pr(n){const e=n.getComponent();return(e==null?void 0:e.type)==="VERSION"}const et="@firebase/app",Dt="0.9.16";/**
211
+ */class Or{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(t=>{if(Pr(t)){const r=t.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(t=>t).join(" ")}}function Pr(n){const e=n.getComponent();return(e==null?void 0:e.type)==="VERSION"}const et="@firebase/app",Dt="0.9.18";/**
212
212
  * @license
213
213
  * Copyright 2019 Google LLC
214
214
  *
@@ -223,7 +223,7 @@
223
223
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
224
224
  * See the License for the specific language governing permissions and
225
225
  * limitations under the License.
226
- */const Q=new St("@firebase/app"),kr="@firebase/app-compat",Dr="@firebase/analytics-compat",Nr="@firebase/analytics",Lr="@firebase/app-check-compat",Mr="@firebase/app-check",$r="@firebase/auth",Ur="@firebase/auth-compat",jr="@firebase/database",Fr="@firebase/database-compat",Br="@firebase/functions",Vr="@firebase/functions-compat",Hr="@firebase/installations",Wr="@firebase/installations-compat",xr="@firebase/messaging",zr="@firebase/messaging-compat",qr="@firebase/performance",Gr="@firebase/performance-compat",Kr="@firebase/remote-config",Jr="@firebase/remote-config-compat",Yr="@firebase/storage",Xr="@firebase/storage-compat",Qr="@firebase/firestore",Zr="@firebase/firestore-compat",ei="firebase",ti="10.2.0";/**
226
+ */const Q=new St("@firebase/app"),kr="@firebase/app-compat",Dr="@firebase/analytics-compat",Nr="@firebase/analytics",Lr="@firebase/app-check-compat",Mr="@firebase/app-check",$r="@firebase/auth",Ur="@firebase/auth-compat",jr="@firebase/database",Fr="@firebase/database-compat",Br="@firebase/functions",Vr="@firebase/functions-compat",Hr="@firebase/installations",Wr="@firebase/installations-compat",xr="@firebase/messaging",zr="@firebase/messaging-compat",qr="@firebase/performance",Gr="@firebase/performance-compat",Kr="@firebase/remote-config",Jr="@firebase/remote-config-compat",Yr="@firebase/storage",Xr="@firebase/storage-compat",Qr="@firebase/firestore",Zr="@firebase/firestore-compat",ei="firebase",ti="10.3.1";/**
227
227
  * @license
228
228
  * Copyright 2019 Google LLC
229
229
  *
@@ -343,7 +343,7 @@
343
343
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
344
344
  * See the License for the specific language governing permissions and
345
345
  * limitations under the License.
346
- */function gi(n){me(new se("platform-logger",e=>new Or(e),"PRIVATE")),me(new se("heartbeat",e=>new hi(e),"PRIVATE")),oe(et,Dt,n),oe(et,Dt,"esm2017"),oe("fire-js","")}gi("");var mi="firebase",yi="10.2.0";/**
346
+ */function gi(n){me(new se("platform-logger",e=>new Or(e),"PRIVATE")),me(new se("heartbeat",e=>new hi(e),"PRIVATE")),oe(et,Dt,n),oe(et,Dt,"esm2017"),oe("fire-js","")}gi("");var mi="firebase",yi="10.3.1";/**
347
347
  * @license
348
348
  * Copyright 2020 Google LLC
349
349
  *
@@ -1438,7 +1438,7 @@
1438
1438
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1439
1439
  * See the License for the specific language governing permissions and
1440
1440
  * limitations under the License.
1441
- */const vt="webStorageSupport";class Ao{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=_n,this._completeRedirectFn=Ks,this._overrideRedirectResult=zs}async _openPopup(e,t,r,i){var s;F((s=this.eventManagers[e._key()])===null||s===void 0?void 0:s.manager,"_initialize() not called before _openPopup()");const o=await Pn(e,t,r,ot(),i);return vo(e,o,mt())}async _openRedirect(e,t,r,i){await this._originValidation(e);const s=await Pn(e,t,r,ot(),i);return Cs(s),new Promise(()=>{})}_initialize(e){const t=e._key();if(this.eventManagers[t]){const{manager:i,promise:s}=this.eventManagers[t];return i?Promise.resolve(i):(F(s,"If manager is not set, promise should be"),s)}const r=this.initAndGetManager(e);return this.eventManagers[t]={promise:r},r.catch(()=>{delete this.eventManagers[t]}),r}async initAndGetManager(e){const t=await fo(e),r=new Ys(e);return t.register("authEvent",i=>(y(i==null?void 0:i.authEvent,e,"invalid-auth-event"),{status:r.onEvent(i.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:r},this.iframes[e._key()]=t,r}_isIframeWebStorageSupported(e,t){this.iframes[e._key()].send(vt,{type:vt},i=>{var s;const o=(s=i==null?void 0:i[0])===null||s===void 0?void 0:s[vt];o!==void 0&&t(!!o),D(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=to(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return sn()||dt()||$e()}}const So=Ao;var kn="@firebase/auth",Dn="1.2.0";/**
1441
+ */const vt="webStorageSupport";class Ao{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=_n,this._completeRedirectFn=Ks,this._overrideRedirectResult=zs}async _openPopup(e,t,r,i){var s;F((s=this.eventManagers[e._key()])===null||s===void 0?void 0:s.manager,"_initialize() not called before _openPopup()");const o=await Pn(e,t,r,ot(),i);return vo(e,o,mt())}async _openRedirect(e,t,r,i){await this._originValidation(e);const s=await Pn(e,t,r,ot(),i);return Cs(s),new Promise(()=>{})}_initialize(e){const t=e._key();if(this.eventManagers[t]){const{manager:i,promise:s}=this.eventManagers[t];return i?Promise.resolve(i):(F(s,"If manager is not set, promise should be"),s)}const r=this.initAndGetManager(e);return this.eventManagers[t]={promise:r},r.catch(()=>{delete this.eventManagers[t]}),r}async initAndGetManager(e){const t=await fo(e),r=new Ys(e);return t.register("authEvent",i=>(y(i==null?void 0:i.authEvent,e,"invalid-auth-event"),{status:r.onEvent(i.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:r},this.iframes[e._key()]=t,r}_isIframeWebStorageSupported(e,t){this.iframes[e._key()].send(vt,{type:vt},i=>{var s;const o=(s=i==null?void 0:i[0])===null||s===void 0?void 0:s[vt];o!==void 0&&t(!!o),D(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=to(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return sn()||dt()||$e()}}const So=Ao;var kn="@firebase/auth",Dn="1.3.0";/**
1442
1442
  * @license
1443
1443
  * Copyright 2020 Google LLC
1444
1444
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laboratoria/sdk-js",
3
- "version": "6.0.0-beta.2",
3
+ "version": "6.0.0",
4
4
  "description": "Laboratoria JavaScript (browser) SDK",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -23,13 +23,13 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "blueimp-md5": "^2.19.0",
26
- "firebase": "^10.1.0"
26
+ "firebase": "^10.3.1"
27
27
  },
28
28
  "devDependencies": {
29
- "@vitest/coverage-v8": "^0.34.2",
29
+ "@vitest/coverage-v8": "^0.34.3",
30
30
  "jsdom": "^22.1.0",
31
31
  "vite": "^4.4.9",
32
- "vitest": "^0.34.2"
32
+ "vitest": "^0.34.3"
33
33
  },
34
34
  "engines": {
35
35
  "node": ">=16.0.0"