gulp-embed-json
Advanced tools
Comparing version 1.5.5 to 1.5.6
@@ -52,3 +52,3 @@ const through = require('through2'); | ||
try { | ||
file.contents = new Buffer(embedJson(file.contents.toString(), options)); | ||
file.contents = Buffer.from(embedJson(file.contents.toString(), options), options.encoding); | ||
} catch (err) { | ||
@@ -55,0 +55,0 @@ return callback(new PluginError(PLUGIN_NAME, err)); |
{ | ||
"name": "gulp-embed-json", | ||
"version": "1.5.5", | ||
"version": "1.5.6", | ||
"description": "Gulp plugin to inline/embed JSON data into HTML files.", | ||
@@ -9,2 +9,3 @@ "main": "lib/index.js", | ||
"lint:ci": "eslint --format junit -o test-results/eslint/results.xml **/*.js", | ||
"prepare": "if [ ${NODE_ENV} != 'production' ]; then husky install; fi", | ||
"tdd": "mocha --watch", | ||
@@ -14,7 +15,2 @@ "test": "mocha", | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "npm test && npm run lint" | ||
} | ||
}, | ||
"eslintConfig": { | ||
@@ -70,3 +66,3 @@ "env": { | ||
"gulp": "^4.0.2", | ||
"husky": "^4.3.8", | ||
"husky": "^7.0.4", | ||
"mocha": "^9.0.3", | ||
@@ -73,0 +69,0 @@ "mocha-junit-reporter": "^2.0.0" |
Sorry, the diff of this file is not supported yet
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
11711