gulp-file-include
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -70,2 +70,5 @@ 'use strict'; | ||
// need to double each `$` to escape it in the `replace` function | ||
includeContent = String(includeContent).replace(/\$/gi, '$$$$'); | ||
// apply filters on include content | ||
@@ -88,2 +91,3 @@ if (typeof filters === 'object') { | ||
} | ||
file.contents = new Buffer(text); | ||
@@ -108,3 +112,3 @@ return file; | ||
// And apply the composed function to the stringified content | ||
// and apply the composed function to the stringified content | ||
return filter(String(includeContent)); | ||
@@ -111,0 +115,0 @@ } |
{ | ||
"name": "gulp-file-include", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "a gulp plugin for file include", | ||
@@ -17,2 +17,3 @@ "main": "index.js", | ||
"include", | ||
"replace", | ||
"gulp", | ||
@@ -19,0 +20,0 @@ "plugin" |
@@ -1,3 +0,6 @@ | ||
[![NPM](https://nodei.co/npm/gulp-file-include.png?downloads=true)](https://nodei.co/npm/gulp-file-include/) | ||
[![NPM](https://nodei.co/npm/gulp-file-include.png?downloads=true)](https://nodei.co/npm/gulp-file-include) | ||
[![NPM version][npm-img]][npm-url] | ||
[![build status][travis-img]][travis-url] | ||
### gulp-file-include | ||
@@ -138,1 +141,6 @@ a plugin of gulp for file include | ||
MIT | ||
[npm-img]: https://img.shields.io/npm/v/gulp-file-include.svg?style=flat | ||
[npm-url]: https://www.npmjs.org/package/gulp-file-include | ||
[travis-img]: https://img.shields.io/travis/coderhaoxin/gulp-file-include.svg?style=flat | ||
[travis-url]: https://travis-ci.org/coderhaoxin/gulp-file-include |
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
6732
5
96
146