Comparing version 1.0.0-alpha-15 to 1.0.0-alpha-16
@@ -90,10 +90,10 @@ // Generated by CoffeeScript 1.9.1 | ||
return (function*(lines) { | ||
var Readable, promise, stream; | ||
var Readable, promise, s; | ||
Readable = require("stream").Readable; | ||
stream = new Readable; | ||
promise = read(stream); | ||
stream.push("one\n"); | ||
stream.push("two\n"); | ||
stream.push("three\n"); | ||
stream.push(null); | ||
s = new Readable; | ||
promise = read(s); | ||
s.push("one\n"); | ||
s.push("two\n"); | ||
s.push("three\n"); | ||
s.push(null); | ||
lines = ((yield promise)).split("\n"); | ||
@@ -150,15 +150,14 @@ assert(lines.length === 3); | ||
})(require("when")); | ||
context.test("stream", function() { | ||
var Readable; | ||
context.test("stream", function*() { | ||
var Readable, _s, s; | ||
Readable = require("stream").Readable; | ||
return (function*(s) { | ||
var _s; | ||
s.push("one\n"); | ||
s.push("two\n"); | ||
s.push("three\n"); | ||
_s = lines(s); | ||
assert(((yield read_block(_s))) === "one"); | ||
assert(((yield read_block(_s))) === "two"); | ||
return assert(((yield read_block(_s))) === "three"); | ||
})(new Readable); | ||
s = new Readable; | ||
_s = stream(lines(s)); | ||
s.push("one\n"); | ||
s.push("two\n"); | ||
s.push("three\n"); | ||
s.push(null); | ||
assert(((yield _s())) === "one"); | ||
assert(((yield _s())) === "two"); | ||
return assert(((yield _s())) === "three"); | ||
}); | ||
@@ -165,0 +164,0 @@ write = function(path, content) { |
{ | ||
"name": "fairmont", | ||
"version": "1.0.0-alpha-15", | ||
"version": "1.0.0-alpha-16", | ||
"description": "A collection of useful functions and utilities.", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
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
99009
1872