cordova-plugin-screen
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "cordova-plugin-screen", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -24,10 +24,2 @@ var exec = require('cordova/exec'); | ||
exports.setOrientation = function(orientation, success, error) { | ||
error = error || this.error; | ||
orientationMask = window.OrientationLockType[orientation]; | ||
exec(success, error, "ScreenOrientation", "setOrientation", [orientationMask, orientation]); | ||
}; | ||
exports.orientation = getOrientation(); | ||
var getOrientation = function () { | ||
@@ -55,4 +47,13 @@ var type = 'portrait-primary'; | ||
var error = function () { | ||
var errorFun = function () { | ||
return false; | ||
}; | ||
exports.setOrientation = function(orientation, success, error) { | ||
error = error || errorFun; | ||
orientationMask = window.OrientationLockType[orientation]; | ||
exec(success, error, "ScreenOrientation", "setOrientation", [orientationMask, orientation]); | ||
}; | ||
exports.orientation = getOrientation(); | ||
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
5539
0