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.9 to 0.0.10

2

hooks/before-prepare-hook.js

@@ -50,2 +50,4 @@ var path = require("path");

console.warn("*** nativescript-dev-android-snapshot will be deprecated in the near future in favour of nativescript-dev-webpack plugin. To learn more on how to setup Webpack bundling with V8 heap snapshot generation using nativescript-dev-webpack, read the following article: https://docs.nativescript.org/tooling/bundling-with-webpack ***");
var currentRuntimeVersion = common.getAndroidRuntimeVersion(projectData, androidPlatformData);

@@ -52,0 +54,0 @@ if (!currentRuntimeVersion) {

28

hooks/common.js

@@ -99,19 +99,19 @@ var path = require("path");

var proc = shelljs.exec("npm ls --json " + packageInfo.name + "@" + coreVersion, { silent: true });
var localPackageInfo = JSON.parse(proc.stdout.toString("utf8"));
if (localPackageInfo.dependencies) {
return true;
}
var packageJsonPath = "./node_modules/" + packageInfo.name + "/package.json";
if (fs.existsSync(packageJsonPath)) {
var packageJsonContent = JSON.parse(fs.readFileSync(packageJsonPath, "utf8"));
if (packageJsonContent.version == coreVersion) {
return true;
}
var publishedSnapshotPackageVersions = getSnapshotPackageTags(packageInfo.name);
var latestTagVersion = publishedSnapshotPackageVersions[packageInfo.version];
var publishedSnapshotPackageVersions = getSnapshotPackageTags(packageInfo.name);
var latestTagVersion = publishedSnapshotPackageVersions[packageInfo.version];
if (!latestTagVersion) {
return false;
}
if (!latestTagVersion) {
return false;
}
proc = shelljs.exec("npm ls --json " + packageInfo.name + "@" + latestTagVersion, { silent: true });
localPackageInfo = JSON.parse(proc.stdout.toString("utf8"));
if (localPackageInfo.dependencies) {
return true;
if (packageJsonContent.version == latestTagVersion) {
return true;
}
}

@@ -118,0 +118,0 @@

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

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

require('nativescript-hook')(__dirname).postinstall();
console.warn("*** nativescript-dev-android-snapshot will be deprecated in the near future in favour of nativescript-dev-webpack plugin. To learn more on how to setup Webpack bundling with V8 heap snapshot generation using nativescript-dev-webpack, read the following article: https://docs.nativescript.org/tooling/bundling-with-webpack ***");
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