@learncard/init 2.0.14 → 2.0.16

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/dist/index.cjs ADDED
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ if (process.env.NODE_ENV === 'production') {
4
+ module.exports = require('./init.cjs.production.min.cjs');
5
+ } else {
6
+ module.exports = require('./init.cjs.development.cjs');
7
+ }
@@ -39,8 +39,8 @@ __export(src_exports, {
39
39
  module.exports = __toCommonJS(src_exports);
40
40
 
41
41
  // ../learn-card-core/dist/core.esm.js
42
- var ac = __toESM(require("abort-controller/dist/abort-controller.js"));
43
- var import_isomorphic_webcrypto = __toESM(require("isomorphic-webcrypto"));
42
+ var ac = __toESM(require("abort-controller/dist/abort-controller.js"), 1);
43
+ var import_isomorphic_webcrypto = __toESM(require("isomorphic-webcrypto"), 1);
44
44
  var __create2 = Object.create;
45
45
  var __defProp2 = Object.defineProperty;
46
46
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -3399,7 +3399,7 @@ var require_promise3 = __commonJS({
3399
3399
  module2.exports = parent;
3400
3400
  }
3401
3401
  });
3402
- var import_promise = __toESM2(require_promise3());
3402
+ var import_promise = __toESM2(require_promise3(), 1);
3403
3403
  var g = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : void 0;
3404
3404
  if (g) {
3405
3405
  if (typeof g.AbortController === "undefined") {
@@ -4458,7 +4458,7 @@ __name3(__wbg_adapter_212, "__wbg_adapter_212");
4458
4458
  var __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
4459
4459
  var __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
4460
4460
  async function __wbg_load(module2, imports) {
4461
- if (typeof Response === "function" && Object.prototype.toString.call(module2) === "[object Response]") {
4461
+ if (typeof Response === "function" && module2 instanceof Response) {
4462
4462
  if (typeof WebAssembly.instantiateStreaming === "function") {
4463
4463
  try {
4464
4464
  return await WebAssembly.instantiateStreaming(module2, imports);
@@ -4897,7 +4897,7 @@ function __wbg_get_imports() {
4897
4897
  const ret = false;
4898
4898
  return ret;
4899
4899
  };
4900
- imports.wbg.__wbindgen_closure_wrapper12543 = function(arg0, arg1, arg2) {
4900
+ imports.wbg.__wbindgen_closure_wrapper12542 = function(arg0, arg1, arg2) {
4901
4901
  const ret = makeMutClosure(arg0, arg1, 4131, __wbg_adapter_52);
4902
4902
  return ret;
4903
4903
  };
@@ -5028,7 +5028,7 @@ __name3(__wbg_init, "__wbg_init");
5028
5028
  var didkit_wasm_default = __wbg_init;
5029
5029
  var initialized = false;
5030
5030
  var generating = false;
5031
- var init = /* @__PURE__ */ __name3(async (arg = "https://cdn.filestackcontent.com/YIb5FlfxTmiJUeZqOE29") => {
5031
+ var init = /* @__PURE__ */ __name3(async (arg = "https://cdn.filestackcontent.com/uJ4ZnJoLRyuHyLgrSDIr") => {
5032
5032
  while (generating)
5033
5033
  await new Promise((res) => setTimeout(res, 250));
5034
5034
  if (initialized)
@@ -85595,4 +85595,4 @@ __name(initLearnCard, "initLearnCard");
85595
85595
  * @copyright Chen, Yi-Cyuan 2015-2018
85596
85596
  * @license MIT
85597
85597
  */
85598
- //# sourceMappingURL=init.cjs.development.js.map
85598
+ //# sourceMappingURL=init.cjs.development.cjs.map