@lynker-desktop/electron-window-manager 0.0.9-alpha.41 → 0.0.9-alpha.43

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/src/preload/index.ts"],"sourcesContent":["import { ipcRenderer, contextBridge } from 'electron';\nimport remote from '@electron/remote';\nimport '@lynker-desktop/electron-ipc/preload'\n\n// @ts-ignore\nif (window.__ELECTRON_WINDOW_MANAGER__) {\n // eslint-disable-next-line no-console\n console.log('electron-window-manager Electron preload has already been run');\n} else {\n const config = {\n ipcRenderer: {\n ...ipcRenderer,\n emit: ipcRenderer.emit.bind(ipcRenderer),\n prependListener: ipcRenderer.prependListener.bind(ipcRenderer),\n prependOnceListener: ipcRenderer.prependOnceListener.bind(ipcRenderer),\n once: ipcRenderer.once.bind(ipcRenderer),\n on: ipcRenderer.on.bind(ipcRenderer),\n off: ipcRenderer.off.bind(ipcRenderer),\n send: ipcRenderer.send.bind(ipcRenderer),\n sendSync: ipcRenderer.sendSync.bind(ipcRenderer),\n sendTo: ipcRenderer.sendTo.bind(ipcRenderer),\n sendToHost: ipcRenderer.sendToHost.bind(ipcRenderer),\n invoke: ipcRenderer.invoke.bind(ipcRenderer),\n addListener: ipcRenderer.addListener.bind(ipcRenderer),\n removeAllListeners: ipcRenderer.removeAllListeners.bind(ipcRenderer),\n removeListener: ipcRenderer.removeListener.bind(ipcRenderer),\n },\n remote,\n }\n // @ts-ignore\n window.__ELECTRON_WINDOW_MANAGER__ = config;\n if (contextBridge) {\n // This will fail if contextIsolation is not enabled\n try {\n contextBridge.exposeInMainWorld('__ELECTRON_WINDOW_MANAGER__', config);\n } catch (e) {\n // console.error(e)\n }\n }\n}\n"],"names":["ipcRenderer","contextBridge"],"mappings":";;;;AAIA;AACA,IAAI,MAAM,CAAC,2BAA2B,EAAE;;AAEtC,IAAA,OAAO,CAAC,GAAG,CAAC,+DAA+D,CAAC,CAA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AA,sBAAa,CAAC,iBAAiB,CAAC,6BAA6B,EAAE,MAAM,CAAC,CAAC;SACxE;QAAC,OAAO,CAAC,EAAE;;SAEX;KACF;AACH;;"}
1
+ {"version":3,"file":"index.js","sources":["../src/src/preload/index.ts"],"sourcesContent":["import { ipcRenderer, contextBridge } from 'electron';\nimport remote from '@electron/remote';\nimport '@lynker-desktop/electron-ipc/preload'\n\n// @ts-ignore\nif (window.__ELECTRON_WINDOW_MANAGER__) {\n // eslint-disable-next-line no-console\n console.log('electron-window-manager Electron preload has already been run');\n} else {\n const config = {\n ipcRenderer: {\n ...ipcRenderer,\n emit: ipcRenderer.emit.bind(ipcRenderer),\n prependListener: ipcRenderer.prependListener.bind(ipcRenderer),\n prependOnceListener: ipcRenderer.prependOnceListener.bind(ipcRenderer),\n once: ipcRenderer.once.bind(ipcRenderer),\n on: ipcRenderer.on.bind(ipcRenderer),\n off: ipcRenderer.off.bind(ipcRenderer),\n send: ipcRenderer.send.bind(ipcRenderer),\n sendSync: ipcRenderer.sendSync.bind(ipcRenderer),\n sendToHost: ipcRenderer.sendToHost.bind(ipcRenderer),\n invoke: ipcRenderer.invoke.bind(ipcRenderer),\n addListener: ipcRenderer.addListener.bind(ipcRenderer),\n removeAllListeners: ipcRenderer.removeAllListeners.bind(ipcRenderer),\n removeListener: ipcRenderer.removeListener.bind(ipcRenderer),\n },\n remote,\n }\n // @ts-ignore\n window.__ELECTRON_WINDOW_MANAGER__ = config;\n if (contextBridge) {\n // This will fail if contextIsolation is not enabled\n try {\n contextBridge.exposeInMainWorld('__ELECTRON_WINDOW_MANAGER__', config);\n } catch (e) {\n // console.error(e)\n }\n }\n}\n"],"names":["ipcRenderer","contextBridge"],"mappings":";;;;AAIA;AACA,IAAI,MAAM,CAAC,2BAA2B,EAAE;;AAEtC,IAAA,OAAO,CAAC,GAAG,CAAC,+DAA+D,CAAC,CAAC;AAC/E,CAAC;KAAM;AACL,IAAA,MAAM,MAAM,GAAG;AACb,QAAA,WAAW,EA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