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