Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nativescript-dev-android-snapshot

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-dev-android-snapshot - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

2

hooks/after-prepare-hook.js

@@ -77,3 +77,3 @@ var path = require("path");

if (!common.isSnapshotEnabled(projectData, hookArgs)) {
var bundle = projectData.$options.bundle;
var bundle = hookArgs && hookArgs.appFilesUpdaterOptions ? hookArgs.appFilesUpdaterOptions.bundle : projectData.$options.bundle;
if (platformName === "android" && !bundle) {

@@ -80,0 +80,0 @@ // TODO: Fix this in the CLI if possible

@@ -16,6 +16,10 @@ var path = require("path");

exports.isSnapshotEnabled = function(projectData, hookArgs) {
if (hookArgs.platform !== "android") {
var isAndroidPlatform = hookArgs && hookArgs.platform && hookArgs.platform.toLowerCase() === "android";
if (!isAndroidPlatform) {
return false;
}
var isReleaseBuild = hookArgs && hookArgs.appFilesUpdaterOptions ? hookArgs.appFilesUpdaterOptions.release : projectData.$options.release;
var shouldBundle = hookArgs && hookArgs.appFilesUpdaterOptions ? hookArgs.appFilesUpdaterOptions.bundle : projectData.$options.bundle;
if (process.env[exports.environmentVariableToggleKey] === "0") {

@@ -25,7 +29,7 @@ return false;

if (projectData.$options.bundle) {
if (shouldBundle) {
return false;
}
if (projectData.$options.release || process.env[exports.environmentVariableToggleKey]) {
if (isReleaseBuild || process.env[exports.environmentVariableToggleKey]) {
return true;

@@ -32,0 +36,0 @@ }

{
"name": "nativescript-dev-android-snapshot",
"version": "0.0.7",
"version": "0.0.8",
"license": "Apache-2.0",

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

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