Socket
Socket
Sign inDemoInstall

nativescript-imagepicker

Package Overview
Dependencies
1
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.5 to 3.0.6

2

package.json
{
"name": "nativescript-imagepicker",
"version": "3.0.5",
"version": "3.0.6",
"description": "A plugin for the NativeScript framework implementing multiple image picker",

@@ -5,0 +5,0 @@ "repository": {

@@ -8,18 +8,21 @@ var path = require("path"),

// check if either nativescript-telerik-ui or nativescript-telerik-ui-pro are installed
var telerikui = projectPackageJson.dependencies["nativescript-telerik-ui"];
var telerikuipro = projectPackageJson.dependencies["nativescript-telerik-ui-pro"];
if(projectPackageJson.dependencies) {
// check if either nativescript-telerik-ui or nativescript-telerik-ui-pro are installed
var telerikui = projectPackageJson.dependencies["nativescript-telerik-ui"];
var telerikuipro = projectPackageJson.dependencies["nativescript-telerik-ui-pro"];
// if neither are installed, add nativescript-telerik-ui to the project package.json as a dependency,
// so the user can always later decide to upgrade to nativescript-telerik-ui-pro.
if (telerikui === undefined && telerikuipro === undefined) {
// if neither are installed, add nativescript-telerik-ui to the project package.json as a dependency,
// so the user can always later decide to upgrade to nativescript-telerik-ui-pro.
if (telerikui === undefined && telerikuipro === undefined) {
// we want to install the same version this plugin is tested with, so grab it from the devDependencies.
var pluginPackageJson = require(path.join(__dirname, "..", "package.json"));
var telerikuiversion = pluginPackageJson.devDependencies["nativescript-telerik-ui"];
// we want to install the same version this plugin is tested with, so grab it from the devDependencies.
var pluginPackageJson = require(path.join(__dirname, "..", "package.json"));
var telerikuiversion = pluginPackageJson.devDependencies["nativescript-telerik-ui"];
// give the user a bit of feedback as installing this dependency take a while to complete.
console.log("The nativescript-imagepicker plugin requires nativescript-telerik-ui. Please wait while it's being added to your project...");
require('child_process').execSync('npm i --save nativescript-telerik-ui@' + telerikuiversion, { cwd: path.join(__dirname, "..", "..")});
console.log("nativescript-telerik-ui@" + telerikuiversion + " has been successfully installed and was added to your app's package.json.");
}
// give the user a bit of feedback as installing this dependency take a while to complete.
console.log("The nativescript-imagepicker plugin requires nativescript-telerik-ui. Please wait while it's being added to your project...");
require('child_process').execSync('npm i --save nativescript-telerik-ui@' + telerikuiversion, { cwd: path.join(__dirname, "..", "..")});
console.log("nativescript-telerik-ui@" + telerikuiversion + " has been successfully installed and was added to your app's package.json.");
}
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc