New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ltval

Package Overview
Dependencies
Maintainers
0
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ltval - npm Package Compare versions

Comparing version 2.3.44 to 2.3.46

21

deploy.js

@@ -1,16 +0,17 @@

// npm version <update_type>
const fs = require('fs');
const childProcess = require('child_process');
const logger = require('mii-logger.js');
const jsonPackageRaw = fs.readFileSync('./package.json', { encoding: 'utf8' });
const jsonPackage = JSON.parse(jsonPackageRaw);
const json_package = console.jsonFromFile('./package.json')
const new_version = json_package.version.split('.').map((v, index, data) => {
const newVersion = jsonPackage.version.split('.').map((v, index, data) => {
return index == 2 ? ((+v) + 1) : v;
});
const old_version = json_package.version;
json_package.version = new_version.join('.');
// console.json({old_version, new_version: json_package.version})
const oldVersion = jsonPackage.version;
jsonPackage.version = newVersion.join('.');
// console.json({oldVersion, newVersion: jsonPackage.version})
console.log(' #version: [' + old_version + '] => [' + json_package.version + ']');
console.jsonToFile('./package.json', json_package, true);
console.log(' #version: [' + oldVersion + '] => [' + jsonPackage.version + ']');
fs.writeFileSync('./package.json', JSON.stringify(jsonPackage, null, 2), { encoding: 'utf8' });

@@ -24,3 +25,3 @@ // return;

postCmds.map((C, index) => {
postCmds[index].res = console.shell.sync(C.cmd);
postCmds[index].res = childProcess.execSync(C.cmd);
});

@@ -27,0 +28,0 @@

"use strict";
const logger = require('mii-logger.js');
const json_package = console.jsonFromFile('./package.json');
const new_version = json_package.version.split('.').map((v, index, data) => {
const fs = require('fs');
const childProcess = require('child_process');
const jsonPackageRaw = fs.readFileSync('./package.json', { encoding: 'utf8' });
const jsonPackage = JSON.parse(jsonPackageRaw);
const newVersion = jsonPackage.version.split('.').map((v, index, data) => {
return index == 2 ? ((+v) + 1) : v;
});
const old_version = json_package.version;
json_package.version = new_version.join('.');
console.log(' #version: [' + old_version + '] => [' + json_package.version + ']');
console.jsonToFile('./package.json', json_package, true);
const oldVersion = jsonPackage.version;
jsonPackage.version = newVersion.join('.');
console.log(' #version: [' + oldVersion + '] => [' + jsonPackage.version + ']');
fs.writeFileSync('./package.json', JSON.stringify(jsonPackage, null, 2), { encoding: 'utf8' });
const postCmds = [

@@ -15,4 +17,4 @@ { name: 'publish', cmd: 'npm publish', res: '' },

postCmds.map((C, index) => {
postCmds[index].res = console.shell.sync(C.cmd);
postCmds[index].res = childProcess.execSync(C.cmd);
});
console.ok(' Done ...');

@@ -8,3 +8,3 @@ {

"description": "",
"version": "2.3.44",
"version": "2.3.46",
"scripts": {

@@ -11,0 +11,0 @@ "deploy": "node ./deploy.js",

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