New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

can-stream-kefir

Package Overview
Dependencies
Maintainers
12
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-stream-kefir - npm Package Compare versions

Comparing version

to
1.2.1

42

can-stream-kefir_test.js

@@ -9,3 +9,3 @@ var QUnit = require('steal-qunit');

test('Compute changes can be streamed', function () {
QUnit.test('Compute changes can be streamed', function(assert) {
var c = compute(0);

@@ -19,12 +19,12 @@ var stream = canStream.toStream(c);

QUnit.equal(computeVal, 0);
assert.equal(computeVal, 0);
c(1);
QUnit.equal(computeVal, 1);
assert.equal(computeVal, 1);
c(2);
QUnit.equal(computeVal, 2);
assert.equal(computeVal, 2);
c(3);
QUnit.equal(computeVal, 3);
assert.equal(computeVal, 3);
});

@@ -41,3 +41,3 @@

test('Compute stream values can be piped into a compute', function () {
QUnit.test('Compute stream values can be piped into a compute', function(assert) {
var expected = 0;

@@ -50,3 +50,3 @@ var c1 = compute(0);

resultCompute.onValue(function (val) {
QUnit.equal(val, expected);
assert.equal(val, expected);
});

@@ -66,3 +66,3 @@

test('Computed streams fire change events', function () {
QUnit.test('Computed streams fire change events', function(assert) {
var expected = 0;

@@ -75,3 +75,3 @@ var c1 = compute(expected);

resultCompute.onValue(function (newVal) {
QUnit.equal(expected, newVal);
assert.equal(expected, newVal);
});

@@ -93,3 +93,3 @@

test('Create a stream from a compute with shorthand method: toStream', function() {
QUnit.test('Create a stream from a compute with shorthand method: toStream', function(assert) {
var expected = 0;

@@ -101,3 +101,3 @@ var c1 = compute(0);

resultCompute.onValue(function (val) {
QUnit.equal(val, expected);
assert.equal(val, expected);
});

@@ -112,3 +112,3 @@

test("toCompute(streamMaker) can-define-stream#17", function(){
QUnit.test("toCompute(streamMaker) can-define-stream#17", function(assert) {
var c = compute("a");

@@ -125,14 +125,14 @@ var letterStream = canStream.toStream(c);

QUnit.deepEqual( streamedCompute(), "a" );
assert.deepEqual( streamedCompute(), "a" );
c(1);
QUnit.deepEqual( streamedCompute(), 1 );
assert.deepEqual( streamedCompute(), 1 );
c("b");
QUnit.deepEqual( streamedCompute(), "b" );
assert.deepEqual( streamedCompute(), "b" );
});
test("setting test", function(){
QUnit.test("setting test", function(assert) {

@@ -148,7 +148,7 @@ var c = canStream.toCompute(function(setStream){

// immediate value
QUnit.equal( c(), 5);
assert.equal( c(), 5);
});
test('Stream on DefineList', function() {
QUnit.test('Stream on DefineList', function(assert) {
var expectedLength;

@@ -168,3 +168,3 @@

stream.onValue(function(newLength) {
QUnit.equal(newLength, expectedLength, 'List size changed');
assert.equal(newLength, expectedLength, 'List size changed');
});

@@ -183,3 +183,3 @@

test('Computes with an initial value of undefined do not emit', function() {
QUnit.test('Computes with an initial value of undefined do not emit', function(assert) {
var expectedLength;

@@ -199,3 +199,3 @@

stream.onValue(function(event) {
QUnit.equal(event.args[0], expectedLength, 'List size changed');
assert.equal(event.args[0], expectedLength, 'List size changed');
});

@@ -202,0 +202,0 @@

{
"name": "can-stream-kefir",
"version": "1.2.0",
"version": "1.2.1",
"description": "Stream values into and out of computes",

@@ -49,8 +49,8 @@ "homepage": "http://canjs.com",

"detect-cyclic-packages": "^1.1.0",
"done-serve": "^2.0.0",
"done-serve": "^3.0.0",
"jshint": "^2.9.1",
"steal": "^1.5.4",
"steal-qunit": "^1.0.1",
"steal-qunit": "^2.0.0",
"steal-tools": "^1.3.6",
"testee": "^0.8.0"
"testee": "^0.9.0"
},

@@ -57,0 +57,0 @@ "repository": {

# can-stream-kefir
[![Join the chat at https://gitter.im/canjs/canjs](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/canjs/canjs?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Join our Slack](https://img.shields.io/badge/slack-join%20chat-611f69.svg)](https://www.bitovi.com/community/slack?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Join our Discourse](https://img.shields.io/discourse/https/forums.bitovi.com/posts.svg)](https://forums.bitovi.com/?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/canjs/can-stream-kefir/blob/master/LICENSE)

@@ -13,3 +14,3 @@ [![npm version](https://badge.fury.io/js/can-stream-kefir.svg)](https://www.npmjs.com/package/can-stream-kefir)

Read the [API docs on CanJS.com](https://canjs.com/doc/can-stream-kefir.html).
Read the [can-stream-kefir API docs on CanJS.com](https://canjs.com/doc/can-stream-kefir.html).

@@ -27,2 +28,1 @@ ## Changelog

[MIT](https://github.com/canjs/can-stream-kefir/blob/master/LICENSE)