Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-file-include

Package Overview
Dependencies
Maintainers
3
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-file-include - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

8

lib/index.js

@@ -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

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