@ionic-native/file-opener
Advanced tools
Comparing version 3.0.0 to 3.1.0-alpha.1
@@ -8,3 +8,3 @@ /** | ||
* ``` | ||
* import {FileOpener} from 'ionic-native'; | ||
* import {FileOpener} from '@ionic-native/file-opener'; | ||
* | ||
@@ -22,3 +22,3 @@ * | ||
*/ | ||
static open(filePath: string, fileMIMEType: string): Promise<any>; | ||
open(filePath: string, fileMIMEType: string): Promise<any>; | ||
/** | ||
@@ -29,3 +29,3 @@ * Uninstalls a package | ||
*/ | ||
static uninstall(packageId: string): Promise<any>; | ||
uninstall(packageId: string): Promise<any>; | ||
/** | ||
@@ -36,3 +36,3 @@ * Check if an app is already installed | ||
*/ | ||
static appIsInstalled(packageId: string): Promise<any>; | ||
appIsInstalled(packageId: string): Promise<any>; | ||
} |
21
index.js
@@ -7,2 +7,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
}; | ||
import { Injectable } from '@angular/core'; | ||
import { Plugin, Cordova } from '@ionic-native/core'; | ||
@@ -16,3 +17,3 @@ /** | ||
* ``` | ||
* import {FileOpener} from 'ionic-native'; | ||
* import {FileOpener} from '@ionic-native/file-opener'; | ||
* | ||
@@ -32,3 +33,3 @@ * | ||
*/ | ||
FileOpener.open = function (filePath, fileMIMEType) { return; }; | ||
FileOpener.prototype.open = function (filePath, fileMIMEType) { return; }; | ||
/** | ||
@@ -39,3 +40,3 @@ * Uninstalls a package | ||
*/ | ||
FileOpener.uninstall = function (packageId) { return; }; | ||
FileOpener.prototype.uninstall = function (packageId) { return; }; | ||
/** | ||
@@ -46,3 +47,8 @@ * Check if an app is already installed | ||
*/ | ||
FileOpener.appIsInstalled = function (packageId) { return; }; | ||
FileOpener.prototype.appIsInstalled = function (packageId) { return; }; | ||
FileOpener.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
FileOpener.ctorParameters = function () { return []; }; | ||
__decorate([ | ||
@@ -54,3 +60,3 @@ Cordova({ | ||
}) | ||
], FileOpener, "open", null); | ||
], FileOpener.prototype, "open", null); | ||
__decorate([ | ||
@@ -62,3 +68,3 @@ Cordova({ | ||
}) | ||
], FileOpener, "uninstall", null); | ||
], FileOpener.prototype, "uninstall", null); | ||
__decorate([ | ||
@@ -70,3 +76,3 @@ Cordova({ | ||
}) | ||
], FileOpener, "appIsInstalled", null); | ||
], FileOpener.prototype, "appIsInstalled", null); | ||
FileOpener = __decorate([ | ||
@@ -82,2 +88,1 @@ Plugin({ | ||
}()); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@ionic-native/file-opener", | ||
"version": "3.0.0", | ||
"version": "3.1.0-alpha.1", | ||
"description": "Ionic Native - Native plugins for ionic apps", | ||
@@ -9,6 +9,6 @@ "module": "index.js", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@ionic-native/core": "3.0.0" | ||
}, | ||
"peerDependencies": { | ||
"@angular/core": "2.2.1", | ||
"@ionic-native/core": "3.1.0-alpha.1", | ||
"@ionic-native/utils": "3.1.0-alpha.1", | ||
"rxjs": "5.0.0-beta.12" | ||
@@ -19,3 +19,6 @@ }, | ||
"url": "https://github.com/driftyco/ionic-native.git" | ||
}, | ||
"scripts": { | ||
"postinstall": "node -e \"require('@ionic-native/utils').install(require('./plugin-config.json'))\"" | ||
} | ||
} |
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
6841
5
117
4
2
1
1
+ Added@angular/core@2.2.1(transitive)
+ Added@ionic-native/core@3.1.0-alpha.1(transitive)
+ Addedzone.js@0.6.26(transitive)
- Removed@ionic-native/core@3.0.0
- Removed@ionic-native/core@3.0.0(transitive)