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
1
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.10 to 0.0.11

2

hooks/after-prepare-hook.js

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

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

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

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

if (!common.isSnapshotEnabled(projectData, hookArgs)) {
if (platformName === "android") {
var bundle = common.shouldBundle(projectData, hookArgs);
if (platformName === "android" && !bundle) {
cleanSnapshotData(platformAppDirectory, projectData, "tns-core-modules-snapshot");

@@ -46,0 +47,0 @@ cleanSnapshotData(platformAppDirectory, projectData, "nativescript-angular-snapshot");

@@ -7,2 +7,8 @@ var path = require("path");

function shouldBundle(projectData, hookArgs) {
return hookArgs && hookArgs.appFilesUpdaterOptions ? hookArgs.appFilesUpdaterOptions.bundle : projectData.$options.bundle;
}
exports.shouldBundle = shouldBundle;
exports.prepareDeletedModules = function(platformAppDirectory, projectDir) {

@@ -23,3 +29,2 @@ if (!shelljs.test("-e", path.join(platformAppDirectory, "tns_modules/application")) &&

var isReleaseBuild = hookArgs && hookArgs.appFilesUpdaterOptions ? hookArgs.appFilesUpdaterOptions.release : projectData.$options.release;
var shouldBundle = hookArgs && hookArgs.appFilesUpdaterOptions ? hookArgs.appFilesUpdaterOptions.bundle : projectData.$options.bundle;

@@ -30,3 +35,3 @@ if (process.env[exports.environmentVariableToggleKey] === "0") {

if (shouldBundle) {
if (shouldBundle(projectData, hookArgs)) {
return false;

@@ -33,0 +38,0 @@ }

{
"name": "nativescript-dev-android-snapshot",
"version": "0.0.10",
"version": "0.0.11",
"license": "Apache-2.0",

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

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

## Deprecated
The plugin is now deprecated. Please use webpack's `NativeScriptSnapshotPlugin` instead. For more information, check out the [documentation article](http://docs.nativescript.org/best-practices/bundling-with-webpack#v8-heap-snapshot).
## Installing

@@ -2,0 +6,0 @@

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