Socket
Socket
Sign inDemoInstall

@neutralinojs/neu

Package Overview
Dependencies
139
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 9.6.1 to 9.7.0

6

.tmprz/release_notes.md
## What's new
### Bugfixes/Improvements
- Fix the hot-reloading issue that occurs with newer Node runtime versions.
### Core: Downloader/bundler
- Download the TypeScript definition file for standalone client library mode. This won't include the TypeScript definition file to the final application bundle.
Install the latest (`v9.6.1`) [npm package](https://www.npmjs.com/package/@neutralinojs/neu):
Install the latest (`v9.7.0`) [npm package](https://www.npmjs.com/package/@neutralinojs/neu):

@@ -10,0 +10,0 @@ ```

@@ -9,2 +9,7 @@ # Changelog

## v9.7.0
### Core: Downloader/bundler
- Download the TypeScript definition file for standalone client library mode. This won't include the TypeScript definition file to the final application bundle.
## v9.6.1

@@ -11,0 +16,0 @@

{
"name": "@neutralinojs/neu",
"version": "9.6.1",
"version": "9.7.0",
"description": "neu CLI for Neutralinojs",

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

@@ -28,3 +28,7 @@ const fse = require('fs-extra');

if(clientLibrary) {
let typesFile = clientLibrary.replace(/.js$/, '.d.ts');
await fse.copy(`./${clientLibrary}`, `.tmp/${clientLibrary}`, {overwrite: true});
if(fs.existsSync(`.tmp/${typesFile}`)) {
fse.removeSync(`.tmp/${typesFile}`);
}
}

@@ -31,0 +35,0 @@ await fse.copy(`./${icon}`, `.tmp/${icon}`, {overwrite: true});

@@ -31,2 +31,10 @@ const fs = require('fs');

let getTypesDownloadUrl = () => {
const configObj = config.get();
let version = configObj.cli.clientVersion;
let scriptUrl = constants.remote.clientUrlPrefix + 'd.ts';
return scriptUrl
.replace(/{tag}/g, utils.getVersionTag(version));
}
let getRepoNameFromTemplate = (template) => {

@@ -69,2 +77,17 @@ return template.split('/')[1];

let downloadTypesFromRelease = () => {
return new Promise((resolve, reject) => {
fs.mkdirSync('.tmp', { recursive: true });
const file = fs.createWriteStream('.tmp/neutralino.d.ts');
utils.log('Downloading the Neutralinojs types..');
https.get(getTypesDownloadUrl(), function (response) {
response.pipe(file);
file.on('finish', () => {
file.close();
resolve();
});
});
});
}
module.exports.downloadTemplate = (template) => {

@@ -122,7 +145,10 @@ return new Promise((resolve, reject) => {

await downloadClientFromRelease();
await downloadTypesFromRelease();
utils.log('Finalizing and cleaning temp. files...');
fse.copySync(`.tmp/${constants.files.clientLibraryPrefix + getScriptExtension()}`
, `./${clientLibrary}`);
fse.copySync(`.tmp/neutralino.d.ts`
, `./${clientLibrary.replace(/[.][a-z]*$/, '.d.ts')}`);
utils.clearCache();
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc