ngx-electron
Advanced tools
Comparing version 1.0.4 to 2.0.0
@@ -1,80 +0,1 @@ | ||
{ | ||
"name": "ngx-electron", | ||
"description": "access Electron Renderer APIs easily using an Angular Service", | ||
"version": "1.0.4", | ||
"main": "bundles/core.umd.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ThorstenHans/ngx-electron" | ||
}, | ||
"author": "Thorsten Hans <thorsten.hans@gmail.com>", | ||
"license": "MIT", | ||
"scripts": { | ||
"clean": "rimraf bundles coverage src/**/*.d.ts src/**/*.metadata.json src/**/*.js tests/**/*.d.ts tests/**/*.metadata.json tests/**/*.js index.d.ts index.metadata.json index.js", | ||
"test": "karma start", | ||
"test-watch": "karma start --singleRun=false --autoWatch=true", | ||
"commit": "npm run prepublish && npm test && git-cz", | ||
"prepublish": "ngc && npm run build", | ||
"build": "webpack", | ||
"semantic-release": "semantic-release pre && npm publish && semantic-release post" | ||
}, | ||
"keywords": [ | ||
"angular", | ||
"angular2", | ||
"ng", | ||
"ngx", | ||
"electron", | ||
"github-electron" | ||
], | ||
"bugs": { | ||
"url": "https://github.com/ThorstenHans/ngx-electron/issues" | ||
}, | ||
"module": "index.js", | ||
"typings": "index.d.ts", | ||
"peerDependencies": { | ||
"@angular/core": ">=2.0.0 || <=5.0.1" | ||
}, | ||
"devDependencies": { | ||
"@angular/animations": "5.0.0", | ||
"@angular/common": "5.0.0", | ||
"@angular/compiler": "5.0.0", | ||
"@angular/compiler-cli": "5.0.0", | ||
"@angular/core": "5.0.0", | ||
"@angular/platform-browser": "5.0.0", | ||
"@angular/platform-browser-dynamic": "5.0.0", | ||
"@angular/platform-server": "5.0.0", | ||
"@types/jasmine": "~2.5.53", | ||
"@types/jasminewd2": "~2.0.2", | ||
"@types/node": "~6.0.60", | ||
"awesome-typescript-loader": "^3.1.3", | ||
"clean-webpack-plugin": "^0.1.16", | ||
"codelyzer": "~4.0.0", | ||
"core-js": "^2.4.1", | ||
"istanbul-instrumenter-loader": "*", | ||
"jasmine-core": "~2.6.2", | ||
"karma": "^1.7.0", | ||
"karma-chrome-launcher": "^2.1.1", | ||
"karma-coverage": "^1.1.1", | ||
"karma-jasmine": "^1.1.0", | ||
"karma-mocha-reporter": "^2.2.3", | ||
"karma-remap-coverage": "^0.1.4", | ||
"karma-sinon": "^1.0.5", | ||
"karma-sourcemap-loader": "^0.3.7", | ||
"karma-webpack": "^2.0.3", | ||
"loader-utils": "^1.1.0", | ||
"reflect-metadata": "0.1.9", | ||
"rimraf": "^2.6.1", | ||
"rxjs": "^5.5.2", | ||
"zone.js": "^0.8.14", | ||
"semantic-release": "^6.3.6", | ||
"sinon": "^2.3.2", | ||
"source-map-loader": "^0.2.1", | ||
"ts-helpers": "^1.1.2", | ||
"ts-node": "~3.2.0", | ||
"tslint": "~5.7.0", | ||
"typescript": "~2.4.2", | ||
"tslint-loader": "^3.5.3", | ||
"webpack": "^2.6.1", | ||
"electron": "^1.7.9" | ||
} | ||
} | ||
{"name":"ngx-electron","description":"An Angular wrapper for Electron's Renderer APIs","author":"Thorsten Hans","keywords":["angular","angular 2","ng","electron","electron-js"],"license":"MIT","homepage":"https://github.com/ThorstenHans/ngx-electron","repository":{"type":"git","url":"git+https://github.com/ThorstenHans/ngx-electron.git"},"bugs":{"url":"https://github.com/ThorstenHans/ngx-electron/issues"},"peerDependencies":{"@angular/core":">=7.0.0","rxjs":">=6.3.0","electron":">=3.0.6"},"devDependencies":{"semantic-release":"8.2.3"},"scripts":{"semantic-release":"semantic-release pre && npm publish && semantic-release post"},"main":"bundles/ngx-electron.umd.js","module":"fesm5/ngx-electron.js","es2015":"fesm2015/ngx-electron.js","esm5":"esm5/ngx-electron.js","esm2015":"esm2015/ngx-electron.js","fesm5":"fesm5/ngx-electron.js","fesm2015":"fesm2015/ngx-electron.js","typings":"ngx-electron.d.ts","metadata":"ngx-electron.metadata.json","sideEffects":false,"dependencies":{"tslib":"^1.9.0"},"version":"2.0.0"} |
@@ -6,12 +6,10 @@ # ngx-electron | ||
`ngx-electron` provides an angular wrapper for Electron's APIs exposed as part of the renderer process. | ||
`ngx-electron` is a small Module for [Angular](http://angular.io) which makes calling [Electron]() APIs from the [Renderer Process]() easier. By adding it to your Angular projet, you'll get intelli sense and a simple Angular service which acts as facade for Electron API's. | ||
Besides taking away the pain of correctly loading the APIs, it's also providing strongly typed APIs using `@types/electron` as a dependency. | ||
`ngx-electron` is licensed under [MIT](https://opensource.org/licenses/MIT). | ||
## Introduction | ||
Checkout the introduction post on my [blog](https://medium.com/@ThorstenHans/integrating-angular-and-electron-using-ngx-electron-9c36affca25e#.4scol1nli) for more details. | ||
## Breaking changes | ||
With version `1.0.1` static properties like `isElectronApp` and `runningInElectron` have been removed. Use instance property `isElectronApp` instead. | ||
## Installation | ||
@@ -21,16 +19,18 @@ | ||
``` | ||
$ yarn add ngx-electron --save | ||
```bash | ||
yarn add ngx-electron --save | ||
# or | ||
$ npm install ngx-electron --save | ||
npm install ngx-electron --save | ||
``` | ||
`ngx-electron` is exposing a module called `NgxElectronModule` which needs to be imported in your `AppModule`. | ||
The `NgxElectronModule` needs to be import in your `root` Angular module (eg `AppModule`). | ||
``` typescript | ||
import {NgModule} from '@angular/core'; | ||
import {BrowserModule} from '@angular/platform-browser'; | ||
import {NgxElectronModule} from 'ngx-electron'; | ||
import {AppComponent} from './app.component'; | ||
import { NgModule } from '@angular/core'; | ||
import { BrowserModule } from '@angular/platform-browser'; | ||
import { AppComponent } from './app.component'; | ||
import { NgxElectronModule } from 'ngx-electron'; | ||
@NgModule({ | ||
@@ -49,7 +49,7 @@ declarations: [], | ||
Once the module has been imported, you can easily use angular DI to ask for `ElectronService`. | ||
Once the module has been imported, you can easily use dependency injection to get an instance of `ElectronService`. | ||
``` typescript | ||
import {Component} from '@angular/core'; | ||
import {ElectronService} from 'ngx-electron'; | ||
import { Component } from '@angular/core'; | ||
import { ElectronService } from 'ngx-electron'; | ||
@@ -90,8 +90,1 @@ @Component({ | ||
* `isElectronApp: boolean` - Indicates if app is being executed inside of electron or not | ||
### Static Properties | ||
**Have been removed in release** `1.0.1` | ||
* ~~runningInElectron: boolean~~ - **removed** see `isElectronApp` instance property instead | ||
* ~~isElectronApp: boolean~~ - **removed** see `isElectronApp` instance property |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
122501
1
26
901
0
4
87
+ Addedtslib@^1.9.0
+ Added@electron/get@2.0.3(transitive)
+ Added@sindresorhus/is@4.6.0(transitive)
+ Added@szmarczak/http-timer@4.0.6(transitive)
+ Added@types/cacheable-request@6.0.3(transitive)
+ Added@types/http-cache-semantics@4.0.4(transitive)
+ Added@types/keyv@3.1.4(transitive)
+ Added@types/node@20.17.6(transitive)
+ Added@types/responselike@1.0.3(transitive)
+ Added@types/yauzl@2.10.3(transitive)
+ Addedboolean@3.2.0(transitive)
+ Addedbuffer-crc32@0.2.13(transitive)
+ Addedcacheable-lookup@5.0.4(transitive)
+ Addedcacheable-request@7.0.4(transitive)
+ Addedclone-response@1.0.3(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addeddecompress-response@6.0.0(transitive)
+ Addeddefer-to-connect@2.0.1(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddefine-properties@1.2.1(transitive)
+ Addeddetect-node@2.1.0(transitive)
+ Addedelectron@33.2.0(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addedenv-paths@2.2.1(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedes6-error@4.1.1(transitive)
+ Addedescape-string-regexp@4.0.0(transitive)
+ Addedextract-zip@2.0.1(transitive)
+ Addedfd-slicer@1.1.0(transitive)
+ Addedfs-extra@8.1.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedget-stream@5.2.0(transitive)
+ Addedglobal-agent@3.0.0(transitive)
+ Addedglobalthis@1.0.4(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedgot@11.8.6(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedhttp-cache-semantics@4.1.1(transitive)
+ Addedhttp2-wrapper@1.0.3(transitive)
+ Addedjson-buffer@3.0.1(transitive)
+ Addedjson-stringify-safe@5.0.1(transitive)
+ Addedjsonfile@4.0.0(transitive)
+ Addedkeyv@4.5.4(transitive)
+ Addedlowercase-keys@2.0.0(transitive)
+ Addedmatcher@3.0.0(transitive)
+ Addedmimic-response@1.0.13.1.0(transitive)
+ Addedms@2.1.3(transitive)
+ Addednormalize-url@6.1.0(transitive)
+ Addedobject-keys@1.1.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedp-cancelable@2.1.1(transitive)
+ Addedpend@1.2.0(transitive)
+ Addedprogress@2.0.3(transitive)
+ Addedpump@3.0.2(transitive)
+ Addedquick-lru@5.1.1(transitive)
+ Addedresolve-alpn@1.2.1(transitive)
+ Addedresponselike@2.0.1(transitive)
+ Addedroarr@2.15.4(transitive)
+ Addedsemver@6.3.17.6.3(transitive)
+ Addedsemver-compare@1.0.0(transitive)
+ Addedserialize-error@7.0.1(transitive)
+ Addedsprintf-js@1.1.3(transitive)
+ Addedsumchecker@3.0.1(transitive)
+ Addedtslib@1.14.1(transitive)
+ Addedtype-fest@0.13.1(transitive)
+ Addedundici-types@6.19.8(transitive)
+ Addeduniversalify@0.1.2(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedyauzl@2.10.0(transitive)