Comparing version 1.0.0 to 2.0.0
'use strict'; | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
const semver = require('semver'); | ||
@@ -15,3 +14,3 @@ const detectIndent = require('detect-indent'); | ||
const readFile = (filePath, cb) => { | ||
fs.readFile(filePath, 'utf8', function(err, data) { | ||
fs.readFile(filePath, 'utf8', (err, data) => { | ||
if (err) return cb(err); | ||
@@ -50,3 +49,3 @@ let json = null; | ||
set(json, incVersion); | ||
fs.writeFile(filePath, new Buffer(JSON.stringify(json, null, indent) + '\n'), err => { | ||
fs.writeFile(filePath, Buffer.from(JSON.stringify(json, null, indent) + '\n'), err => { | ||
if (err) return reject(new BumpError(err.message)); | ||
@@ -53,0 +52,0 @@ resolve(json); |
{ | ||
"name": "bump-file", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"description": "Bump JSON files (e.g. package.json and friends)", | ||
@@ -47,4 +47,4 @@ "keywords": [ | ||
"engines": { | ||
"node": ">=4" | ||
"node": ">=6" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4976
67