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

assemble-streams

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assemble-streams - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

26

index.js

@@ -10,9 +10,10 @@ /*!

var handle = require('assemble-handle');
var through = require('through2');
var match = require('match-file');
var src = require('src-stream');
module.exports = function(options) {
var handle = require('assemble-handle');
var through = require('through2');
var src = require('src-stream');
return function fn(app) {
if (this.isRegistered('streams')) return;
if (this.isRegistered('assemble-streams')) return;

@@ -34,3 +35,3 @@ /**

app.mixin('toStream', function (name, filterFn) {
app.mixin('toStream', function(name, filterFn) {
var stream = through.obj();

@@ -51,3 +52,3 @@ stream.setMaxListeners(0);

setImmediate(function () {
setImmediate(function() {
for (var key in views) {

@@ -72,2 +73,13 @@ if (!filter(key, views[key], filterFn)) {

function filter(key, view, fn) {
if (Array.isArray(fn)) {
var len = fn.length;
var idx = -1;
while (++idx < len) {
var name = fn[idx];
if (match(name, view)) {
return true;
}
}
return false;
}
if (typeof fn === 'function') {

@@ -74,0 +86,0 @@ return fn(key, view);

{
"name": "assemble-streams",
"description": "Assemble pipeline plugin for pushing a view collection into a vinyl stream.",
"version": "0.4.1",
"version": "0.4.2",
"homepage": "https://github.com/assemble/assemble-streams",

@@ -24,2 +24,3 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

"assemble-handle": "^0.1.0",
"match-file": "^0.1.0",
"src-stream": "^0.1.1",

@@ -40,2 +41,11 @@ "through2": "^2.0.0"

"verb": {
"run": true,
"toc": false,
"layout": "default",
"tasks": [
"readme"
],
"plugins": [
"gulp-format-md"
],
"related": {

@@ -48,6 +58,2 @@ "list": [

},
"layout": "default",
"plugins": [
"gulp-format-md"
],
"reflinks": [

@@ -60,4 +66,7 @@ "base",

"templates"
]
],
"lint": {
"reflinks": true
}
}
}

@@ -5,12 +5,2 @@ # assemble-streams [![NPM version](https://img.shields.io/npm/v/assemble-streams.svg)](https://www.npmjs.com/package/assemble-streams) [![Build Status](https://img.shields.io/travis/assemble/assemble-streams.svg)](https://travis-ci.org/assemble/assemble-streams)

- [Install](#install)
- [Usage](#usage)
- [Related projects](#related-projects)
- [Running tests](#running-tests)
- [Contributing](#contributing)
- [Author](#author)
- [License](#license)
_(TOC generated by [verb](https://github.com/verbose/verb) using [markdown-toc](https://github.com/jonschlinkert/markdown-toc))_
## Install

@@ -21,3 +11,3 @@

```sh
$ npm i assemble-streams --save
$ npm install assemble-streams --save
```

@@ -51,2 +41,20 @@

## Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/assemble-streams/issues/new).
## Building docs
Generate readme and API documentation with [verb](https://github.com/verbose/verb):
```sh
$ npm install verb && npm run docs
```
Or, if [verb](https://github.com/verbose/verb) is installed globally:
```sh
$ verb
```
## Running tests

@@ -57,9 +65,5 @@

```sh
$ npm i -d && npm test
$ npm install -d && npm test
```
## Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/assemble-streams/issues/new).
## Author

@@ -75,7 +79,6 @@

Copyright © 2016 [Jon Schlinkert](https://github.com/jonschlinkert)
Released under the [MIT license](https://github.com/assemble/assemble-streams/blob/master/LICENSE).
Released under the MIT license.
***
_This file was generated by [verb](https://github.com/verbose/verb) on February 04, 2016._
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on March 06, 2016._
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