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

gulp-npm-script-sync

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-npm-script-sync - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

7

index.js
var fs = require('fs');
var detectIndent = require('detect-indent');

@@ -9,3 +10,5 @@ module.exports = function (gulp, config) {

var pkg = JSON.parse(fs.readFileSync(config.path || 'package.json'));
var file = fs.readFileSync(config.path || 'package.json', 'utf-8');
var pkg = JSON.parse(file);
var indent = detectIndent(file).indent || ' ';
var tasks = gulp.tasks;

@@ -19,4 +22,4 @@

fs.writeFileSync(config.path || 'package.json', JSON.stringify(pkg));
fs.writeFileSync(config.path || 'package.json', JSON.stringify(pkg, null, indent));
};
{
"name": "gulp-npm-script-sync",
"version": "1.0.0",
"version": "1.0.1",
"description": "gulp-npm-script-sync ====================",

@@ -26,3 +26,6 @@ "main": "index.js",

"mocha": "*"
},
"dependencies": {
"detect-indent": "^3.0.0"
}
}
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