imzo-agnost 1.0.0 → 1.0.1

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.js CHANGED
@@ -33,6 +33,18 @@ var EIMZOAgnost = (function (exports) {
33
33
  return __decoratorMetadata(array, target), desc && __defProp(target, name, desc), p ? k ^ 4 ? extra : desc : target;
34
34
  };
35
35
 
36
+ // polyfills/process-polyfill.js
37
+ if (typeof globalThis !== "undefined" && typeof globalThis.process === "undefined") {
38
+ globalThis.process = {
39
+ env: {
40
+ NODE_ENV: "production"
41
+ },
42
+ versions: {
43
+ node: null
44
+ }
45
+ };
46
+ }
47
+
36
48
  // src/e-imzo/capiws.ts
37
49
  var CAPIWS = typeof EIMZOEXT !== "undefined" ? EIMZOEXT : {
38
50
  URL: (window.location.protocol.toLowerCase() === "https:" ? "wss://127.0.0.1:64443" : "ws://127.0.0.1:64646") + "/service/cryptapi",
@@ -1773,34 +1785,7 @@ var EIMZOAgnost = (function (exports) {
1773
1785
  win.EIMZOClient = e_imzo_client_default;
1774
1786
  win.capiws = capiws_default;
1775
1787
  win.eimzoApi = eimzoApi;
1776
- const processEnv = process.env;
1777
- const isDev = typeof process !== "undefined" && processEnv.NODE_ENV === "development";
1778
- if (isDev) {
1779
- win.imzoPlugins = {
1780
- version: "1.0.0",
1781
- loaded: true,
1782
- plugins: [],
1783
- debug: true
1784
- };
1785
- console.info("\u{1F527} E-IMZO Agnostic Library - Development Mode");
1786
- console.info("Available APIs:", {
1787
- CAPIWS: "Main CAPIWS client for E-IMZO communication",
1788
- EIMZOClient: "Legacy E-IMZO client wrapper",
1789
- capiws: "Legacy alias for CAPIWS",
1790
- eimzoApi: "Modern plugin-based E-IMZO API",
1791
- imzoPlugins: "Plugin system information"
1792
- });
1793
- }
1794
- if (isDev) {
1795
- console.info("\u2705 E-IMZO Global Setup - Success");
1796
- console.info("Global status:", {
1797
- CAPIWS: Boolean(win.CAPIWS),
1798
- EIMZOClient: Boolean(win.EIMZOClient),
1799
- capiws: Boolean(win.capiws),
1800
- eimzoApi: Boolean(win.eimzoApi),
1801
- imzoPlugins: Boolean(win.imzoPlugins)
1802
- });
1803
- }
1788
+ typeof process !== "undefined" && typeof process.versions === "object" && Boolean(process.versions.node);
1804
1789
  }
1805
1790
  }
1806
1791
  setupGlobalObjects();