nativescript-imagepicker
Advanced tools
Comparing version 2.5.1 to 3.0.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var ui_frame = require("ui/frame"); | ||
@@ -66,3 +67,3 @@ var page_1 = require("ui/page"); | ||
item.ios.position = "right"; | ||
item.on(action_bar_1.ActionItem.tapEvent, done); | ||
item.on("tap", done); | ||
actionBar.actionItems.addItem(item); | ||
@@ -84,2 +85,1 @@ page.actionBar = actionBar; | ||
exports.albumsPageFactory = albumsPageFactory; | ||
//# sourceMappingURL=albums.ios.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var application = require("application"); | ||
@@ -44,3 +45,3 @@ var platform = require("platform"); | ||
item.ios.position = "right"; | ||
item.on(action_bar_1.ActionItem.tapEvent, done); | ||
item.on("tap", done); | ||
actionBar.actionItems.addItem(item); | ||
@@ -64,2 +65,1 @@ page.actionBar = actionBar; | ||
exports.imagesPageFactory = imagesPageFactory; | ||
//# sourceMappingURL=images.ios.js.map |
@@ -8,18 +8,21 @@ { | ||
"name": "nativescript-imagepicker", | ||
"version": "2.5.1", | ||
"version": "3.0.0", | ||
"nativescript": { | ||
"platforms": { | ||
"android": "2.4.0", | ||
"ios": "2.4.0" | ||
"android": "3.0.0", | ||
"ios": "3.0.0" | ||
} | ||
}, | ||
"dependencies": { | ||
"tns-core-modules": ">=2.5.0", | ||
"nativescript-telerik-ui": "*" | ||
}, | ||
"author": "NativeScript Team", | ||
"main": "viewmodel", | ||
"devDependencies": { | ||
"tns-platform-declarations": "next", | ||
"typescript": "~2.0.10" | ||
"nativescript-telerik-ui": "^1.7.0 || ^1.7.0-2017.4.4.1", | ||
"tns-core-modules": "^3.0.0 || ^3.0.0-rc.1", | ||
"tns-platform-declarations": "^3.0.0 || ^3.0.0-rc.1", | ||
"typescript": "^2.2.2" | ||
}, | ||
"peerDependencies": { | ||
"nativescript-telerik-ui": "^1.7.0 || >=1.7.0-2017", | ||
"tns-core-modules": "^3.0.0 || ^3.0.0-rc.1 || >=3.0.0-2017" | ||
}, | ||
"scripts": { | ||
@@ -26,0 +29,0 @@ "tsc": "tsc", |
@@ -1,6 +0,2 @@ | ||
/// <reference path="node_modules/tns-core-modules/tns-core-modules.base.d.ts" /> | ||
/// <reference path="node_modules/tns-core-modules/lib.dom.d.ts" /> | ||
/// <reference path="node_modules/tns-core-modules/module.d.ts" /> | ||
/// <reference path="node_modules/tns-platform-declarations/android.d.ts" /> | ||
/// <reference path="node_modules/tns-platform-declarations/ios.d.ts" /> |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var imagesource = require("image-source"); | ||
@@ -14,5 +15,6 @@ var application = require("application"); | ||
function SelectedAsset(uri) { | ||
_super.call(this, SelectedAsset._calculateFileUri(uri)); | ||
this._uri = uri; | ||
this._thumbRequested = false; | ||
var _this = _super.call(this, SelectedAsset._calculateFileUri(uri)) || this; | ||
_this._uri = uri; | ||
_this._thumbRequested = false; | ||
return _this; | ||
} | ||
@@ -328,2 +330,1 @@ SelectedAsset.prototype.data = function () { | ||
exports.create = create; | ||
//# sourceMappingURL=viewmodel.android.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var data_observable = require("data/observable"); | ||
@@ -25,6 +26,7 @@ var data_observablearray = require("data/observable-array"); | ||
function ImagePicker(options) { | ||
_super.call(this); | ||
this._selection = new data_observablearray.ObservableArray(); | ||
this._albums = new data_observablearray.ObservableArray(); | ||
this._options = options; | ||
var _this = _super.call(this) || this; | ||
_this._selection = new data_observablearray.ObservableArray(); | ||
_this._albums = new data_observablearray.ObservableArray(); | ||
_this._options = options; | ||
return _this; | ||
} | ||
@@ -121,6 +123,7 @@ ImagePicker.prototype.authorize = function () { | ||
function Album(imagePicker, title) { | ||
_super.call(this); | ||
this._imagePicker = imagePicker; | ||
this._title = title; | ||
this._assets = new data_observablearray.ObservableArray(); | ||
var _this = _super.call(this) || this; | ||
_this._imagePicker = imagePicker; | ||
_this._title = title; | ||
_this._assets = new data_observablearray.ObservableArray(); | ||
return _this; | ||
} | ||
@@ -176,3 +179,3 @@ Object.defineProperty(Album.prototype, "imagePicker", { | ||
function SelectedAsset() { | ||
_super.apply(this, arguments); | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
@@ -212,5 +215,6 @@ Object.defineProperty(SelectedAsset.prototype, "thumb", { | ||
function Asset(album, asset) { | ||
_super.call(this, asset); | ||
this._album = album; | ||
this._image = null; | ||
var _this = _super.call(this, asset) || this; | ||
_this._album = album; | ||
_this._image = null; | ||
return _this; | ||
} | ||
@@ -283,11 +287,12 @@ Object.defineProperty(Asset.prototype, "album", { | ||
function ImagePickerPH(options) { | ||
_super.call(this, options); | ||
this._thumbRequestOptions = PHImageRequestOptions.alloc().init(); | ||
this._thumbRequestOptions.resizeMode = 2; | ||
this._thumbRequestOptions.synchronous = false; | ||
this._thumbRequestOptions.deliveryMode = 0; | ||
this._thumbRequestOptions.normalizedCropRect = CGRectMake(0, 0, 1, 1); | ||
this._thumbRequestSize = CGSizeMake(80, 80); | ||
this._options = options; | ||
this._initialized = false; | ||
var _this = _super.call(this, options) || this; | ||
_this._thumbRequestOptions = PHImageRequestOptions.alloc().init(); | ||
_this._thumbRequestOptions.resizeMode = 2; | ||
_this._thumbRequestOptions.synchronous = false; | ||
_this._thumbRequestOptions.deliveryMode = 0; | ||
_this._thumbRequestOptions.normalizedCropRect = CGRectMake(0, 0, 1, 1); | ||
_this._thumbRequestSize = CGSizeMake(80, 80); | ||
_this._options = options; | ||
_this._initialized = false; | ||
return _this; | ||
} | ||
@@ -390,5 +395,6 @@ ImagePickerPH.prototype.authorize = function () { | ||
function AlbumPH(imagePicker, title, options) { | ||
_super.call(this, imagePicker, title); | ||
this._setThumb = false; | ||
this._options = options; | ||
var _this = _super.call(this, imagePicker, title) || this; | ||
_this._setThumb = false; | ||
_this._options = options; | ||
return _this; | ||
} | ||
@@ -426,5 +432,6 @@ AlbumPH.prototype.addAssetsForFetchResult = function (result) { | ||
function AssetPH(album, phAsset, options) { | ||
_super.call(this, album, phAsset); | ||
this._phAsset = phAsset; | ||
this._initializeOptions(options); | ||
var _this = _super.call(this, album, phAsset) || this; | ||
_this._phAsset = phAsset; | ||
_this._initializeOptions(options); | ||
return _this; | ||
} | ||
@@ -507,2 +514,1 @@ Object.defineProperty(AssetPH.prototype, "ios", { | ||
}(Asset)); | ||
//# sourceMappingURL=viewmodel.ios.js.map |
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
spdx disjunction for an artifact's license information
Licensespdx disjunction for an artifact's license information
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found
Found 1 instance in 1 package
Floating dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
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
spdx disjunction for an artifact's license information
Licensespdx disjunction for an artifact's license information
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
1
1
45189
4
9
2
1059
- Removednativescript-telerik-ui@*
- Removedtns-core-modules@>=2.5.0