Socket
Socket
Sign inDemoInstall

@neutralinojs/neu

Package Overview
Dependencies
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neutralinojs/neu - npm Package Compare versions

Comparing version 7.0.1 to 7.1.0

CHANGELOG.md

2

package.json
{
"name": "@neutralinojs/neu",
"version": "7.0.1",
"version": "7.1.0",
"description": "neu cli for Neutralinojs",

@@ -5,0 +5,0 @@ "main": "./bin/neu.js",

const chalk = require('chalk');
const commons = require('../commons');
const constants = require('../constants');
const package = require('../../package.json');

@@ -13,4 +12,2 @@ const config = require('../modules/config');

console.log('--- Global ---');
console.log(`Neutralinojs binaries: v${constants.remote.binaries.version}`);
console.log(`Neutralinojs client: v${constants.remote.client.version}`);
console.log(`neu CLI: v${package.version}`);

@@ -24,3 +21,3 @@ if(commons.isNeutralinojsProject()) {

else {
console.log(`${chalk.bgGreen.black('INFO')} Run this command inside your project directory` +
console.log(`${chalk.bgGreen.black('INFO')} Run this command inside your project directory` +
` to get project specific Neutralinojs version.`);

@@ -27,0 +24,0 @@ }

module.exports = {
remote: {
binaries: {
version: "3.0.0",
url: "https://github.com/neutralinojs/neutralinojs/releases/download/v{version}/neutralinojs-v{version}.zip"
},
client: {
version: "2.0.0",
url: "https://github.com/neutralinojs/neutralino.js/releases/download/v{version}/neutralino.js"

@@ -30,3 +28,3 @@ },

darwin: {
x64: 'neutralino-mac_x64'
x64: 'neutralino-mac_x64'
},

@@ -33,0 +31,0 @@ win32: {

@@ -8,8 +8,14 @@ const fs = require('fs');

let getUrlWithVersion = (remoteInfo) => {
let url = remoteInfo.url;
let version = remoteInfo.version;
return url.replace(/{version}/g, version);
let getBinaryDownloadUrl = () => {
const configObj = config.get();
let version = configObj.cli.binaryVersion;
return constants.remote.binaries.url.replace(/{version}/g, version);
}
let getClientDownloadUrl = () => {
const configObj = config.get();
let version = configObj.cli.clientVersion;
return constants.remote.client.url.replace(/{version}/g, version);
}
let downloadBinariesFromRelease = () => {

@@ -20,3 +26,3 @@ return new Promise((resolve, reject) => {

console.log('Downloading Neutralinojs binaries..');
https.get(getUrlWithVersion(constants.remote.binaries), function (response) {
https.get(getBinaryDownloadUrl(), function (response) {
response.pipe(file);

@@ -40,3 +46,3 @@ response.on('end', () => {

console.log('Downloading the Neutralinojs client..');
https.get(getUrlWithVersion(constants.remote.client), function (response) {
https.get(getClientDownloadUrl(), function (response) {
response.pipe(file);

@@ -83,3 +89,3 @@ file.on('finish', () => {

fse.mkdirSync('bin');
for(let platform in constants.files.binaries) {

@@ -91,8 +97,5 @@ for(let arch in constants.files.binaries[platform]) {

}
fse.copySync(`temp/${constants.files.dependencies.windows_webview2loader_x64}`,
fse.copySync(`temp/${constants.files.dependencies.windows_webview2loader_x64}`,
`bin/${constants.files.dependencies.windows_webview2loader_x64}`);
clearDownloadCache();
let version = constants.remote.binaries.version;
config.update('cli.binaryVersion', version);
}

@@ -106,7 +109,4 @@

fse.copySync(`temp/${constants.files.clientLibrary}`, `./${clientLibrary}`);
clearDownloadCache();
let version = constants.remote.client.version;
config.update('cli.clientVersion', version);
clearDownloadCache()
}
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