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

nativescript-dev-assets

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-dev-assets - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

16

lib/utils.js

@@ -15,12 +15,10 @@ const fs = require('fs');

// [3, 4, 1]
return $projectData.$projectHelper.$staticConfig.version.split(".");
const version = $projectData.$projectHelper.$staticConfig.version;
return parseInt(version.replace(/(\.)/g, ""));
},
getPathToPlatformAssets(hookArgs, $projectData) {
let pathToPlatformAssets;
let currentNVersion = this.getNativeScriptVersion($projectData);
if (currentNVersion[0] >= 3 && currentNVersion[1] >= 4) {
pathToPlatformAssets = path.join($projectData.platformsDir, "/android/app/src/main/assets");
} else {
pathToPlatformAssets = path.join($projectData.platformsDir, "/android/src/main/assets");
}
const version = this.getNativeScriptVersion($projectData);
const assetsDir = `android/${ version >= 341 ? "app/src" : "src" }/main/assets`;
const pathToPlatformAssets = path.join($projectData.platformsDir, assetsDir);
return pathToPlatformAssets;

@@ -165,2 +163,2 @@ },

}
}
}
{
"name": "nativescript-dev-assets",
"version": "0.0.6",
"version": "0.0.7",
"description": "Simple hook allowing you to sync static files into the assets folder inside your Android app.",

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

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