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

make-deps-exact

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

make-deps-exact - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

8

CHANGELOG.md

@@ -5,2 +5,10 @@ # Changelog

## [0.1.4](https://github.com/danielpza/make-deps-exact/compare/v0.1.3...v0.1.4) (2023-02-23)
### Features
* add eol to last line ([19ad91f](https://github.com/danielpza/make-deps-exact/commit/19ad91f18226baa5876667937a6d636b248ea4f2))
* detect indentation ([a475a4a](https://github.com/danielpza/make-deps-exact/commit/a475a4a96f011696e4189fea58c2c5bf7f79057f))
### [0.1.3](https://github.com/danielpza/make-deps-exact/compare/v0.1.2...v0.1.3) (2023-02-23)

@@ -7,0 +15,0 @@

14

dep.js

@@ -6,4 +6,3 @@ #!/usr/bin/env node

const pkg = JSON.parse(await readFile("package.json", "utf8"));
const pkgLock = JSON.parse(await readFile("package-lock.json", "utf8"));
import detectIndent from "detect-indent";

@@ -46,2 +45,10 @@ const HELP = `\

const pkgFile = await readFile("package.json", "utf8");
const pkgLockFile = await readFile("package-lock.json", "utf8");
const pkg = JSON.parse(pkgFile);
const pkgLock = JSON.parse(pkgLockFile);
const indent = detectIndent(pkgFile).indent ?? 2;
const modes = ["dependencies", "devDependencies", "optionalDependencies"];

@@ -64,2 +71,3 @@

if (!dry) await writeFile("package.json", JSON.stringify(pkg, null, 2));
if (!dry)
await writeFile("package.json", JSON.stringify(pkg, null, indent) + "\n");
{
"name": "make-deps-exact",
"version": "0.1.3",
"version": "0.1.4",
"description": "Remove version range from package.json",

@@ -24,4 +24,4 @@ "type": "module",

"devDependencies": {
"@types/node": "^18.11.9",
"commit-and-tag-version": "^10.1.0"
"@types/node": "^18.14.1",
"commit-and-tag-version": "^11.1.0"
},

@@ -35,3 +35,6 @@ "repository": {

},
"homepage": "https://github.com/danielpza/make-deps-exact#readme"
"homepage": "https://github.com/danielpza/make-deps-exact#readme",
"dependencies": {
"detect-indent": "^7.0.1"
}
}
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