browserify-wrap
Advanced tools
Comparing version 1.0.1 to 1.0.2
11
index.js
"use strict"; | ||
const fs = require('fs'); | ||
const through = require('through2'); | ||
const fs = require('fs'); | ||
const Transform = require('stream').Transform; | ||
const wrapper = function(b, opts) { | ||
@@ -15,3 +16,3 @@ | ||
var write = function(buf, enc, next) { | ||
var transform = function(buf, enc, next) { | ||
if(!prefixed) | ||
@@ -25,3 +26,3 @@ this.push(opts.prefix); | ||
var end = function() { | ||
var flush = function() { | ||
if(opts.suffix) | ||
@@ -32,3 +33,3 @@ this.push(opts.suffix) | ||
b.pipeline.get("wrap").unshift(through(write, end)); | ||
b.pipeline.get("wrap").unshift(new Transform({transform, flush})); | ||
}) | ||
@@ -35,0 +36,0 @@ } |
{ | ||
"name": "browserify-wrap", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "browserify-wrap, a _very simple_ browserify plugin to wrap your output bundle with a prefix or a suffix (or both)", | ||
@@ -12,5 +12,6 @@ "main": "index.js", | ||
"license": "ISC", | ||
"dependencies": { | ||
"through2": "^2.0.1" | ||
"engines": { | ||
"node": ">=4.0.0" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
@@ -17,0 +18,0 @@ "browserify": "^13.0.0", |
[browserify-wrap](https://github.com/131/browserify-wrap) is a _very simple_ browserify plugin to wrap your output bundle with a prefix and/or a suffix | ||
[![Build Status](https://travis-ci.org/131/browserify-wrap.svg?branch=master)](https://travis-ci.org/131/browserify-wrap) | ||
[![Coverage Status](https://coveralls.io/repos/github/131/browserify-wrap/badge.svg?branch=master)](https://coveralls.io/github/131/browserify-wrap?branch=master) | ||
[![Version](https://img.shields.io/npm/v/browserify-wrap.svg)](https://www.npmjs.com/package/browserify-wrap) | ||
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT) | ||
# API | ||
@@ -42,3 +49,1 @@ ``` | ||
[![Build Status](https://travis-ci.org/131/browserify-wrap.svg?branch=master)](https://travis-ci.org/131/browserify-wrap) | ||
[![Coverage Status](https://coveralls.io/repos/github/131/browserify-wrap/badge.svg?branch=master)](https://coveralls.io/github/131/browserify-wrap?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
Mixed license
License(Experimental) Package contains multiple licenses.
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
4526
0
6
49
1
- Removedthrough2@^2.0.1
- Removedcore-util-is@1.0.3(transitive)
- Removedinherits@2.0.4(transitive)
- Removedisarray@1.0.0(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedthrough2@2.0.5(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedxtend@4.0.2(transitive)