@ionic-native/screen-orientation
Advanced tools
Comparing version 3.1.0-alpha.3 to 3.1.0-rc.1
@@ -39,6 +39,5 @@ /** | ||
* See below for accepted values | ||
* @param orientation {string} The orientation which should be locked. Accepted values see table below. | ||
* @returns {Promise<any>} returns a promise that resolves when the screen orientation is locked, and rejects when an error occurs. | ||
* @param orientation {string} The orientation which should be locked. Accepted values see table above. | ||
*/ | ||
lockOrientation(orientation: string): Promise<string>; | ||
lockOrientation(orientation: string): void; | ||
/** | ||
@@ -51,3 +50,3 @@ * Unlock and allow all orientations. | ||
*/ | ||
static orientation: string; | ||
orientation: string; | ||
} |
11
index.js
@@ -52,6 +52,5 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
* See below for accepted values | ||
* @param orientation {string} The orientation which should be locked. Accepted values see table below. | ||
* @returns {Promise<any>} returns a promise that resolves when the screen orientation is locked, and rejects when an error occurs. | ||
* @param orientation {string} The orientation which should be locked. Accepted values see table above. | ||
*/ | ||
ScreenOrientation.prototype.lockOrientation = function (orientation) { return; }; | ||
ScreenOrientation.prototype.lockOrientation = function (orientation) { }; | ||
/** | ||
@@ -67,6 +66,6 @@ * Unlock and allow all orientations. | ||
__decorate([ | ||
Cordova({ otherPromise: true }), | ||
Cordova({ sync: true }), | ||
__metadata('design:type', Function), | ||
__metadata('design:paramtypes', [String]), | ||
__metadata('design:returntype', Promise) | ||
__metadata('design:returntype', void 0) | ||
], ScreenOrientation.prototype, "lockOrientation", null); | ||
@@ -82,3 +81,3 @@ __decorate([ | ||
__metadata('design:type', String) | ||
], ScreenOrientation, "orientation", void 0); | ||
], ScreenOrientation.prototype, "orientation", void 0); | ||
ScreenOrientation = __decorate([ | ||
@@ -85,0 +84,0 @@ Plugin({ |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":1,"metadata":{"ScreenOrientation":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Plugin"},"arguments":[{"pluginName":"ScreenOrientation","plugin":"cordova-plugin-screen-orientation","pluginRef":"window.screen","repo":"https://github.com/apache/cordova-plugin-screen-orientation","platforms":["Android","iOS","Windows Phone 8"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"lockOrientation":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}],"unlockOrientation":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"sync":true}]}]}],"orientation":[{"__symbolic":"property","decorators":[{"__symbolic":"reference","module":"@ionic-native/core","name":"CordovaProperty"}]}]},"statics":{"orientation":{"__symbolic":"error","message":"Variable not initialized","line":68,"character":9}}}}} | ||
{"__symbolic":"module","version":1,"metadata":{"ScreenOrientation":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Plugin"},"arguments":[{"pluginName":"ScreenOrientation","plugin":"cordova-plugin-screen-orientation","pluginRef":"window.screen","repo":"https://github.com/apache/cordova-plugin-screen-orientation","platforms":["Android","iOS","Windows Phone 8"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"lockOrientation":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"sync":true}]}]}],"unlockOrientation":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"sync":true}]}]}],"orientation":[{"__symbolic":"property","decorators":[{"__symbolic":"reference","module":"@ionic-native/core","name":"CordovaProperty"}]}]}}}} |
{ | ||
"name": "@ionic-native/screen-orientation", | ||
"version": "3.1.0-alpha.3", | ||
"version": "3.1.0-rc.1", | ||
"description": "Ionic Native - Native plugins for ionic apps", | ||
@@ -10,3 +10,3 @@ "module": "index.js", | ||
"peerDependencies": { | ||
"@ionic-native/core": "3.1.0-alpha.3", | ||
"@ionic-native/core": "3.1.0-rc.1", | ||
"@angular/core": "2.2.1", | ||
@@ -13,0 +13,0 @@ "rxjs": "5.0.0-beta.12" |
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
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
9505
5
0
34
141