Socket
Socket
Sign inDemoInstall

@ionic-native/camera

Package Overview
Dependencies
Maintainers
3
Versions
166
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ionic-native/camera - npm Package Compare versions

Comparing version 3.6.1 to 3.7.0

94

index.js

@@ -1,6 +0,11 @@

var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -52,10 +57,10 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

*/
export var Camera = (function (_super) {
var Camera = (function (_super) {
__extends(Camera, _super);
function Camera() {
_super.apply(this, arguments);
var _this = _super !== null && _super.apply(this, arguments) || this;
/**
* Constant for possible destination types
*/
this.DestinationType = {
_this.DestinationType = {
/** Return base64 encoded string. DATA_URL can be very memory intensive and cause app crashes or out of memory errors. Use FILE_URI or NATIVE_URI if possible */

@@ -71,3 +76,3 @@ DATA_URL: 0,

*/
this.EncodingType = {
_this.EncodingType = {
/** Return JPEG encoded image */

@@ -81,3 +86,3 @@ JPEG: 0,

*/
this.MediaType = {
_this.MediaType = {
/** Allow selection of still pictures only. DEFAULT. Will return format specified via DestinationType */

@@ -93,3 +98,3 @@ PICTURE: 0,

*/
this.PictureSourceType = {
_this.PictureSourceType = {
/** Choose image from picture library (same as SAVEDPHOTOALBUM for Android) */

@@ -105,3 +110,3 @@ PHOTOLIBRARY: 0,

*/
this.PopoverArrowDirection = {
_this.PopoverArrowDirection = {
ARROW_UP: 1,

@@ -116,3 +121,3 @@ ARROW_DOWN: 2,

*/
this.Direction = {
_this.Direction = {
/** Use the back-facing camera */

@@ -123,2 +128,3 @@ BACK: 0,

};
return _this;
}

@@ -138,35 +144,35 @@ /**

;
Camera.decorators = [
{ type: Injectable },
];
/** @nocollapse */
Camera.ctorParameters = function () { return []; };
__decorate([
Cordova({
callbackOrder: 'reverse'
}),
__metadata('design:type', Function),
__metadata('design:paramtypes', [Object]),
__metadata('design:returntype', Promise)
], Camera.prototype, "getPicture", null);
__decorate([
Cordova({
platforms: ['iOS']
}),
__metadata('design:type', Function),
__metadata('design:paramtypes', []),
__metadata('design:returntype', Promise)
], Camera.prototype, "cleanup", null);
Camera = __decorate([
Plugin({
pluginName: 'Camera',
plugin: 'cordova-plugin-camera',
pluginRef: 'navigator.camera',
repo: 'https://github.com/apache/cordova-plugin-camera',
platforms: ['Android', 'BlackBerry', 'Browser', 'Firefox', 'FireOS', 'iOS', 'Windows', 'Windows Phone 8', 'Ubuntu']
}),
__metadata('design:paramtypes', [])
], Camera);
return Camera;
}(IonicNativePlugin));
Camera.decorators = [
{ type: Injectable },
];
/** @nocollapse */
Camera.ctorParameters = function () { return []; };
__decorate([
Cordova({
callbackOrder: 'reverse'
}),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", Promise)
], Camera.prototype, "getPicture", null);
__decorate([
Cordova({
platforms: ['iOS']
}),
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", Promise)
], Camera.prototype, "cleanup", null);
Camera = __decorate([
Plugin({
pluginName: 'Camera',
plugin: 'cordova-plugin-camera',
pluginRef: 'navigator.camera',
repo: 'https://github.com/apache/cordova-plugin-camera',
platforms: ['Android', 'BlackBerry', 'Browser', 'Firefox', 'FireOS', 'iOS', 'Windows', 'Windows Phone 8', 'Ubuntu']
})
], Camera);
export { Camera };
//# sourceMappingURL=index.js.map

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":3,"metadata":{"Camera":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Plugin"},"arguments":[{"pluginName":"Camera","plugin":"cordova-plugin-camera","pluginRef":"navigator.camera","repo":"https://github.com/apache/cordova-plugin-camera","platforms":["Android","BlackBerry","Browser","Firefox","FireOS","iOS","Windows","Windows Phone 8","Ubuntu"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"getPicture":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"callbackOrder":"reverse"}]}]}],"cleanup":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"platforms":["iOS"]}]}]}]}}}},{"__symbolic":"module","version":1,"metadata":{"Camera":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Plugin"},"arguments":[{"pluginName":"Camera","plugin":"cordova-plugin-camera","pluginRef":"navigator.camera","repo":"https://github.com/apache/cordova-plugin-camera","platforms":["Android","BlackBerry","Browser","Firefox","FireOS","iOS","Windows","Windows Phone 8","Ubuntu"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"getPicture":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"callbackOrder":"reverse"}]}]}],"cleanup":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"platforms":["iOS"]}]}]}]}}}}]
[{"__symbolic":"module","version":3,"metadata":{"CameraOptions":{"__symbolic":"interface"},"CameraPopoverOptions":{"__symbolic":"interface"},"Camera":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Plugin"},"arguments":[{"pluginName":"Camera","plugin":"cordova-plugin-camera","pluginRef":"navigator.camera","repo":"https://github.com/apache/cordova-plugin-camera","platforms":["Android","BlackBerry","Browser","Firefox","FireOS","iOS","Windows","Windows Phone 8","Ubuntu"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"getPicture":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"callbackOrder":"reverse"}]}]}],"cleanup":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"platforms":["iOS"]}]}]}]}}}},{"__symbolic":"module","version":1,"metadata":{"CameraOptions":{"__symbolic":"interface"},"CameraPopoverOptions":{"__symbolic":"interface"},"Camera":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Plugin"},"arguments":[{"pluginName":"Camera","plugin":"cordova-plugin-camera","pluginRef":"navigator.camera","repo":"https://github.com/apache/cordova-plugin-camera","platforms":["Android","BlackBerry","Browser","Firefox","FireOS","iOS","Windows","Windows Phone 8","Ubuntu"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"getPicture":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"callbackOrder":"reverse"}]}]}],"cleanup":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"platforms":["iOS"]}]}]}]}}}}]
{
"name": "@ionic-native/camera",
"version": "3.6.1",
"version": "3.7.0",
"description": "Ionic Native - Native plugins for ionic apps",

@@ -5,0 +5,0 @@ "module": "index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc