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

gulp-inject

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-inject - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

2

package.json
{
"name": "gulp-inject",
"version": "1.1.1",
"version": "1.2.0",
"description": "A javascript, stylesheet and webcomponent injection plugin for Gulp, i.e. inject file references into your index.html",

@@ -5,0 +5,0 @@ "keywords": [

@@ -43,3 +43,3 @@ # gulp-inject [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][depstat-image]][depstat-url]

var gulp = require('gulp');
var inject = require("gulp-inject");
var inject = require('gulp-inject');

@@ -46,0 +46,0 @@ gulp.task('index', function () {

@@ -113,3 +113,3 @@ 'use strict';

function resolve (cb) {
process.nextTick(function () {
setImmediate(function () {
cb(collection);

@@ -187,3 +187,5 @@ });

function injector (match, starttag, indent, content, endtag) {
return [starttag]
var starttagArray = opt.removeTags ? [] : [starttag];
var endtagArray = opt.removeTags ? [] : [endtag];
return starttagArray
.concat(files.reduce(function transformFile (lines, file, i) {

@@ -197,3 +199,3 @@ var filepath = getFilepath(file, target, opt);

}, []))
.concat([endtag])
.concat(endtagArray)
.join(indent);

@@ -200,0 +202,0 @@ }

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