Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoSign in
Socket

npm-scripts-versioning

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-scripts-versioning - npm Package Compare versions

Comparing version
1.0.0-beta.2
to
1.0.0-beta.3
+6
-3
lib/push-changed-version-ref-files.js

@@ -26,7 +26,10 @@ #!/usr/bin/env node

const fs = require('fs');
const { files, version } = require('./package.json');
const fs = require('fs');
const path = require('path');
const process = require('process');
const { files, version } = require(path.join(process.cwd(), 'package.json'));
const filePaths = pkg.files.filter((filePath) => (filePath.startsWith("!") === false));

@@ -36,3 +39,3 @@

if (fs.existsSync('./package-lock.json')) {
if (fs.existsSync('package-lock.json')) {
filePaths.push('package-lock.json');

@@ -39,0 +42,0 @@ }

@@ -26,6 +26,9 @@ #!/usr/bin/env node

const { version } = require('./package.json');
const path = require('path');
const process = require('process');
const { version } = require(path.join(process.cwd(), 'package.json'));
if (!which('git')) {

@@ -32,0 +35,0 @@ echo("git executable not found! Install git and try again.");

@@ -26,7 +26,10 @@ #!/usr/bin/env node

const escapeStringRegexp = require('escape-string-regexp');
const { name, files, version } = require('./package.json');
const escapeStringRegexp = require('escape-string-regexp');
const path = require('path');
const process = require('process');
const { name, files, version } = require(path.join(process.cwd(), 'package.json'));
const filePaths = files.filter((filePath) => (filePath.startsWith("!") === false));

@@ -33,0 +36,0 @@

{
"name": "npm-scripts-versioning",
"version": "1.0.0-beta.2",
"version": "1.0.0-beta.3",
"description": "",

@@ -5,0 +5,0 @@ "authors": [