New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 1.1.0 to 1.2.0

17

lib/index.js

@@ -108,5 +108,9 @@ 'use strict';

function conditionalHandler(inst) {
// jshint ignore: start
var condition = new Function('var context = this; with (context) { return ' + inst.args + '; }').call(data);
// jshint ignore: end
try {
// jshint ignore: start
var condition = new Function('var context = this; with (context) { return ' + inst.args + '; }').call(data);
// jshint ignore: end
} catch (error) {
throw new Error(error.message + ': ' + inst.args);
}

@@ -117,6 +121,11 @@ return condition ? inst.body : '';

function forHandler(inst) {
var condition = 'var context = this; with (context) { var result=""; for' + inst.args + ' { result+=`' + inst.body + '`; } return result; }';
var forLoop = 'for' + inst.args + ' { result+=`' + inst.body + '`; }';
var condition = 'var context = this; with (context) { var result=""; ' + forLoop + ' return result; }';
try {
// jshint ignore: start
var result = new Function(condition).call(data);
// jshint ignore: end
} catch (error) {
throw new Error(error.message + ': ' + forLoop);
}

@@ -123,0 +132,0 @@ return result;

{
"name": "gulp-file-include",
"version": "1.1.0",
"version": "1.2.0",
"description": "a gulp plugin for file include",

@@ -31,12 +31,12 @@ "main": "lib/index.js",

"devDependencies": {
"gulp": "3",
"istanbul": "0",
"markdown": "0",
"mocha": "3",
"should": "11"
"gulp": "^3.9.1",
"istanbul": "^0.4.5",
"markdown": "^0.5.0",
"mocha": "^3.5.0",
"should": "^11.2.1"
},
"dependencies": {
"balanced-match": "^0.4.2",
"balanced-match": "^1.0.0",
"concat-stream": "^1.6.0",
"extend": "^3.0.0",
"extend": "^3.0.1",
"flatnest": "^1.0.0",

@@ -43,0 +43,0 @@ "gulp-util": "^3.0.8",

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