ngx-electron-plus
Version:
This library is a fork of a great module created by Thorsten Hans located here: http://github.com/ThorstenHans/ngx-electron With more usefull tools fs-jetpack , node-powershell, notifier, ssh2.Client etc...
16 lines (14 loc) • 2.72 kB
JavaScript
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("ngx-electron-plus",["exports","@angular/core"],r):r((e=e||self)["ngx-electron-plus"]={},e.ng.core)}(this,(function(e,r){"use strict";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */function o(e,r,o,t){var n,i=arguments.length,c=i<3?r:null===t?t=Object.getOwnPropertyDescriptor(r,o):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,r,o,t);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(c=(i<3?n(c):i>3?n(r,o,c):n(r,o))||c);return i>3&&c&&Object.defineProperty(r,o,c),c}var t=function(){function e(){this.isElectron&&(this.ipcRenderer=window.require("electron").ipcRenderer,this.webFrame=window.require("electron").webFrame,this.remote=window.require("electron").remote,this.os=window.require("os"),this.powershell=window.require("node-powershell"),this.childProcess=window.require("child_process"),this.fs=window.require("fs-jetpack"),this.shell=window.require("electron").shell,this.desktopCapturer=window.require("electron").desktopCapturer,this.clipboard=window.require("electron").clipboard,this.screen=window.screen,this.nativeImage=window.require("electron").nativeImage,this.ssh=window.require("ssh2").Client,this.notifier=window.require("node-notifier"))}return Object.defineProperty(e.prototype,"isElectron",{get:function(){return!!(window&&window.process&&window.process.type)},enumerable:!0,configurable:!0}),e.ɵprov=r["ɵɵdefineInjectable"]({factory:function(){return new e},token:e,providedIn:"root"}),e=o([r.Injectable({providedIn:"root"})],e)}(),n=function(){function e(){}return e=o([r.NgModule({declarations:[],exports:[],providers:[t]})],e)}();e.NgxElectronPlusModule=n,e.NgxElectronPlusService=t,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=ngx-electron-plus.umd.min.js.map