gulp-file-include
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -14,3 +14,3 @@ 'use strict' | ||
const fs = require('fs') | ||
const JSON5 = require('json5'); | ||
const JSON5 = require('json5') | ||
@@ -177,8 +177,8 @@ module.exports = function(opts) { | ||
// clean filename var and define path | ||
var jsonPath = args[3].replace(/^('|")/, '').replace(/('|")$/, ''); | ||
var jsonfile = path.join(file.base, jsonPath); | ||
var jsonPath = args[3].replace(/^('|")/, '').replace(/('|")$/, '') | ||
var jsonfile = path.join(file.base, jsonPath) | ||
// check if json file exists | ||
if (fs.existsSync(jsonfile)) { | ||
// make sure we are getting the updated version of the json file | ||
delete require.cache[jsonfile]; | ||
delete require.cache[jsonfile] | ||
arr = require(jsonfile) | ||
@@ -185,0 +185,0 @@ } else { |
{ | ||
"name": "gulp-file-include", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "a gulp plugin for file include", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -297,4 +297,4 @@ [![NPM version][npm-img]][npm-url] | ||
[npm-url]: https://npmjs.org/package/gulp-file-include | ||
[travis-img]: https://img.shields.io/travis/coderhaoxin/gulp-file-include.svg?style=flat-square | ||
[travis-url]: https://travis-ci.org/coderhaoxin/gulp-file-include | ||
[travis-img]: https://img.shields.io/travis/haoxins/gulp-file-include.svg?style=flat-square | ||
[travis-url]: https://travis-ci.org/haoxins/gulp-file-include | ||
[coveralls-img]: https://img.shields.io/coveralls/coderhaoxin/gulp-file-include.svg?style=flat-square | ||
@@ -301,0 +301,0 @@ [coveralls-url]: https://coveralls.io/r/coderhaoxin/gulp-file-include?branch=master |
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
18689