@ionic-native/core
Advanced tools
Comparing version 5.25.0 to 5.26.0
@@ -17,5 +17,3 @@ import { fromEvent, Observable } from 'rxjs'; | ||
var doc = window.document; | ||
var injector = window.angular | ||
.element(doc.querySelector('[ng-app]') || doc.body) | ||
.injector(); | ||
var injector = window.angular.element(doc.querySelector('[ng-app]') || doc.body).injector(); | ||
if (injector) { | ||
@@ -131,3 +129,6 @@ var $q = injector.get('$q'); | ||
function wrapEventObservable(event, element) { | ||
element = (typeof window !== 'undefined' && element) ? get(window, element) : element || (typeof window !== 'undefined' ? window : {}); | ||
element = | ||
typeof window !== 'undefined' && element | ||
? get(window, element) | ||
: element || (typeof window !== 'undefined' ? window : {}); | ||
return fromEvent(element, event); | ||
@@ -161,4 +162,3 @@ } | ||
export function instanceAvailability(pluginObj, methodName) { | ||
return (pluginObj._objectInstance && | ||
(!methodName || typeof pluginObj._objectInstance[methodName] !== 'undefined')); | ||
return pluginObj._objectInstance && (!methodName || typeof pluginObj._objectInstance[methodName] !== 'undefined'); | ||
} | ||
@@ -270,9 +270,3 @@ export function setIndex(args, opts, resolve, reject) { | ||
if (method) { | ||
console.warn('Native: tried calling ' + | ||
pluginName + | ||
'.' + | ||
method + | ||
', but the ' + | ||
pluginName + | ||
' plugin is not installed.'); | ||
console.warn('Native: tried calling ' + pluginName + '.' + method + ', but the ' + pluginName + ' plugin is not installed.'); | ||
} | ||
@@ -279,0 +273,0 @@ else { |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"ERR_CORDOVA_NOT_AVAILABLE":{"error":"cordova_not_available"},"ERR_PLUGIN_NOT_INSTALLED":{"error":"plugin_not_installed"},"getPromise":{"__symbolic":"function"},"wrapPromise":{"__symbolic":"function"},"checkAvailability":{"__symbolic":"function"},"instanceAvailability":{"__symbolic":"function","parameters":["pluginObj","methodName"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"pluginObj"},"member":"_objectInstance"},"right":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"reference","name":"methodName"}},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":207,"character":20},"right":"undefined"}}}},"setIndex":{"__symbolic":"function"},"callCordovaPlugin":{"__symbolic":"function"},"callInstance":{"__symbolic":"function"},"getPlugin":{"__symbolic":"function"},"get":{"__symbolic":"function"},"pluginWarn":{"__symbolic":"function"},"cordovaWarn":{"__symbolic":"function"},"WrapFn":{"__symbolic":"interface"},"wrap":{"__symbolic":"error","message":"Lambda not supported","line":378,"character":20},"wrapInstance":{"__symbolic":"function","parameters":["pluginObj","methodName","opts"],"value":{"__symbolic":"error","message":"Lambda not supported","line":399,"character":9},"defaults":[null,null,{}]}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"ERR_CORDOVA_NOT_AVAILABLE":{"error":"cordova_not_available"},"ERR_PLUGIN_NOT_INSTALLED":{"error":"plugin_not_installed"},"getPromise":{"__symbolic":"function"},"wrapPromise":{"__symbolic":"function"},"checkAvailability":{"__symbolic":"function"},"instanceAvailability":{"__symbolic":"function","parameters":["pluginObj","methodName"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"pluginObj"},"member":"_objectInstance"},"right":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"reference","name":"methodName"}},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":197,"character":54},"right":"undefined"}}}},"setIndex":{"__symbolic":"function"},"callCordovaPlugin":{"__symbolic":"function"},"callInstance":{"__symbolic":"function"},"getPlugin":{"__symbolic":"function"},"get":{"__symbolic":"function"},"pluginWarn":{"__symbolic":"function"},"cordovaWarn":{"__symbolic":"function"},"WrapFn":{"__symbolic":"interface"},"wrap":{"__symbolic":"error","message":"Lambda not supported","line":361,"character":20},"wrapInstance":{"__symbolic":"function","parameters":["pluginObj","methodName","opts"],"value":{"__symbolic":"error","message":"Lambda not supported","line":382,"character":9},"defaults":[null,null,{}]}}}] |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"cordova":{"__symbolic":"function","parameters":["pluginObj","methodName","config","args"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"./common","name":"wrap","line":9,"character":9},"arguments":[{"__symbolic":"reference","name":"pluginObj"},{"__symbolic":"reference","name":"methodName"},{"__symbolic":"reference","name":"config"}]},"member":"apply"},"arguments":[{"__symbolic":"error","message":"Expression form not supported","line":9,"character":51},{"__symbolic":"reference","name":"args"}]}}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"cordova":{"__symbolic":"function","parameters":["pluginObj","methodName","config","args"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"./common","name":"wrap","line":4,"character":9},"arguments":[{"__symbolic":"reference","name":"pluginObj"},{"__symbolic":"reference","name":"methodName"},{"__symbolic":"reference","name":"config"}]},"member":"apply"},"arguments":[{"__symbolic":"error","message":"Expression form not supported","line":4,"character":51},{"__symbolic":"reference","name":"args"}]}}}}] |
@@ -18,3 +18,3 @@ /** | ||
return funcs; | ||
} | ||
}, | ||
]); | ||
@@ -21,0 +21,0 @@ })(serviceName, cls, name_1); |
@@ -1,1 +0,1 @@ | ||
{"description":"Ionic Native - Native plugins for ionic apps","module":"index.js","typings":"index.d.ts","author":"ionic","license":"MIT","repository":{"type":"git","url":"https://github.com/ionic-team/ionic-native.git"},"name":"@ionic-native/core","dependencies":{"@types/cordova":"latest"},"peerDependencies":{"rxjs":"^5.5.0 || ^6.5.0"},"version":"5.25.0"} | ||
{"description":"Ionic Native - Native plugins for ionic apps","module":"index.js","typings":"index.d.ts","author":"ionic","license":"MIT","repository":{"type":"git","url":"https://github.com/ionic-team/ionic-native.git"},"name":"@ionic-native/core","dependencies":{"@types/cordova":"latest"},"peerDependencies":{"rxjs":"^5.5.0 || ^6.5.0"},"version":"5.26.0"} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
82238
851