git ssb

2+

Dominic / pull-stream



Commit 2b8ed0b778ffe06dbf19898b0cdeb8e009224087

make everything 'use strict'

Dominic Tarr committed on 5/19/2016, 8:25:37 PM
Parent: b97db9e7ed0815998c76014c59a9bfb764eae06d

Files changed

sources/count.jschanged
sources/empty.jschanged
sources/error.jschanged
sources/index.jschanged
sources/infinite.jschanged
sources/keys.jschanged
sources/once.jschanged
sources/values.jschanged
sources/count.jsView
@@ -1,4 +1,6 @@
1+'use strict'
2+
13 module.exports = function count (max) {
24 var i = 0; max = max || Infinity
35 return function (end, cb) {
46 if(end) return cb && cb(end)
sources/empty.jsView
@@ -1,4 +1,5 @@
1+'use strict'
12 //a stream that ends immediately.
23 module.exports = function empty () {
34 return function (abort, cb) {
45 cb(true)
sources/error.jsView
@@ -1,4 +1,5 @@
1+'use strict'
12 //a stream that errors immediately.
23 module.exports = function error (err) {
34 return function (abort, cb) {
45 cb(err)
sources/index.jsView
@@ -1,4 +1,5 @@
1+'use strict'
12 module.exports = {
23 keys: require('./keys'),
34 once: require('./once'),
45 values: require('./values'),
sources/infinite.jsView
@@ -1,4 +1,5 @@
1+'use strict'
12 module.exports = function infinite (generate) {
23 generate = generate || Math.random
34 return function (end, cb) {
45 if(end) return cb && cb(end)
sources/keys.jsView
@@ -1,4 +1,5 @@
1+'use strict'
12 var values = require('./values')
23 module.exports = function (object) {
34 return values(Object.keys(object))
45 }
sources/once.jsView
@@ -1,4 +1,5 @@
1+'use strict'
12 var abortCb = require('../util/abort-cb')
23
34 module.exports = function once (value, onAbort) {
45 return function (abort, cb) {
sources/values.jsView
@@ -1,4 +1,5 @@
1+'use strict'
12 var abortCb = require('../util/abort-cb')
23
34 module.exports = function values (array, onAbort) {
45 if(!array)

Built with git-ssb-web