@cycle/time
Advanced tools
Comparing version 0.8.0 to 0.9.0
import { Stream } from 'most'; | ||
import { Frame } from './dist/animation-frames'; | ||
import { Frame } from './src/animation-frames'; | ||
declare type Operator = <T>(stream: Stream<T>) => Stream<T>; | ||
@@ -19,3 +19,3 @@ interface TimeSource { | ||
declare function mockTimeSource(args?: Object): MockTimeSource; | ||
declare function timeDriver(_: any, adapter: any): TimeSource; | ||
declare function timeDriver(sink: any): TimeSource; | ||
export { Operator, TimeSource, timeDriver, MockTimeSource, mockTimeSource }; |
11
most.js
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var most = require("most"); | ||
var adapt_1 = require("@cycle/run/lib/adapt"); | ||
var mock_time_source_1 = require("./dist/mock-time-source"); | ||
var time_driver_1 = require("./dist/time-driver"); | ||
var mock_time_source_1 = require("./src/mock-time-source"); | ||
var time_driver_1 = require("./src/time-driver"); | ||
adapt_1.setAdapt(function (stream) { return most.from(stream); }); | ||
@@ -12,5 +12,6 @@ function mockTimeSource(args) { | ||
exports.mockTimeSource = mockTimeSource; | ||
function timeDriver(_, adapter) { | ||
return time_driver_1.timeDriver(_, adapter); | ||
function timeDriver(sink) { | ||
return time_driver_1.timeDriver(sink); | ||
} | ||
exports.timeDriver = timeDriver; | ||
//# sourceMappingURL=most.js.map |
{ | ||
"name": "@cycle/time", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"description": "A time driver designed to enable awesome testing and dev tooling", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"license": "MIT", | ||
"homepage": "https://cycle.js.org", | ||
"bugs": "https://github.com/cyclejs/cyclejs/issues", | ||
"repository": "https://github.com/cyclejs/cyclejs/tree/master/time", | ||
"author": "Nick Johnstone", | ||
"license": "MIT", | ||
"homepage": "https://github.com/cyclejs/time#readme", | ||
"main": "lib/index.js", | ||
"module": "lib/es6/index.js", | ||
"typings": "lib/index.d.ts", | ||
"types": "lib/index.d.ts", | ||
"dependencies": { | ||
"@cycle/run": "3.x", | ||
"combine-errors": "3.0.x", | ||
"performance-now": "^2.1.0", | ||
"raf": "3.3.x", | ||
"setimmediate": "1.0.x", | ||
"sorted-immutable-list": "1.1.x", | ||
"variable-diff": "1.1.x", | ||
"xstream": "*" | ||
}, | ||
"devDependencies": { | ||
"@cycle/dom": "17.6", | ||
"@cycle/rxjs-run": "7.0", | ||
"@types/mocha": "2.2.x", | ||
"@types/node": "7.0.x", | ||
"garnish": "5.2.x", | ||
"markdown-doctest": "0.9.x", | ||
"most": "1.5.x", | ||
"rxjs": "5.4.x", | ||
"snabbdom-selector": "1.2.x" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"files": [ | ||
@@ -17,48 +45,15 @@ "dist/", | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
"browserify-shim": { | ||
"xstream": "global:xstream" | ||
}, | ||
"scripts": { | ||
"start": "budo -d example example/index.ts:index.js --live -- -p tsify", | ||
"test": "mocha 'test/**/*.ts' --compilers ts:ts-node/register && npm run test/docs", | ||
"test/auto": "mocha 'test/**/*.ts' --compilers ts:ts-node/register --watch -R min", | ||
"test/docs": "npm run compile && markdown-doctest", | ||
"compile": "tsc && tsc rxjs.ts most.ts --declaration --lib DOM,ES5,ES6", | ||
"prepublish": "npm run compile", | ||
"postpublish": "greenkeeper-postpublish" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/cyclejs/time.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/cyclejs/time/issues" | ||
}, | ||
"dependencies": { | ||
"@cycle/run": "^1.0.0-rc.9", | ||
"combine-errors": "^3.0.3", | ||
"raf": "^3.3.0", | ||
"setimmediate": "^1.0.5", | ||
"sorted-immutable-list": "^1.1.0", | ||
"variable-diff": "^1.1.0", | ||
"xstream": "*" | ||
}, | ||
"devDependencies": { | ||
"@cycle/dom": "^15.0.0-rc.2", | ||
"@cycle/rxjs-run": "^4.0.0-rc.6", | ||
"@types/mocha": "^2.2.37", | ||
"@types/node": "^7.0.8", | ||
"browserify": "^14.0.0", | ||
"budo": "^9.2.2", | ||
"garnish": "^5.2.0", | ||
"greenkeeper-postpublish": "^1.0.1", | ||
"markdown-doctest": "^0.9.1", | ||
"mocha": "^3.1.2", | ||
"most": "^1.2.2", | ||
"rxjs": "^5.1.0", | ||
"snabbdom-selector": "^1.1.1", | ||
"ts-node": "^3.0.2", | ||
"tsify": "^3.0.0", | ||
"typescript": "^2.1.5" | ||
"start": "../node_modules/.bin/budo -d example example/index.ts:index.js --live -- -p tsify", | ||
"test-watch": "../node_modules/.bin/mocha 'test/**/*.ts' --compilers ts:ts-node/register --watch -R min", | ||
"test-node": "../node_modules/.bin/mocha 'test/**/*.ts' --compilers ts:ts-node/register", | ||
"test": "npm run test-node && npm run test-docs", | ||
"test-ci": "npm run test", | ||
"test-docs": "markdown-doctest", | ||
"browserify": "../node_modules/.bin/browserify lib/index.js --global-transform=browserify-shim --standalone CycleTime --exclude xstream --outfile dist/cycle-time.js", | ||
"uglify": "../node_modules/.bin/uglifyjs dist/cycle-time.js --compress --mangle -o dist/cycle-time.min.js" | ||
} | ||
} |
@@ -412,3 +412,3 @@ # @cycle/time | ||
#### `assertEqual(actualStream, expectedStream, comparator = assert.deepEqual)` | ||
Can be used to assert two streams are equivalent. This is useful when combine with `.diagram` for creating tests. | ||
Can be used to assert two streams are equivalent. This is useful when combined with `.diagram` for creating tests. | ||
@@ -478,3 +478,3 @@ ```js | ||
function comparator (actual, expected) { | ||
function mycomparator (actual, expected) { | ||
return actual.bar === expected.bar; | ||
@@ -486,3 +486,3 @@ } | ||
expected, | ||
comparator | ||
mycomparator | ||
); | ||
@@ -489,0 +489,0 @@ |
import { Observable } from 'rxjs/Observable'; | ||
import 'rxjs/add/observable/from'; | ||
import { Frame } from './dist/animation-frames'; | ||
import { Frame } from './src/animation-frames'; | ||
declare type Operator = <T>(observable: Observable<T>) => Observable<T>; | ||
@@ -20,3 +20,3 @@ interface TimeSource { | ||
declare function mockTimeSource(args?: Object): MockTimeSource; | ||
declare function timeDriver(_: any, adapter: any): TimeSource; | ||
declare function timeDriver(sink: any): TimeSource; | ||
export { Operator, TimeSource, timeDriver, MockTimeSource, mockTimeSource }; |
12
rxjs.js
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Observable_1 = require("rxjs/Observable"); | ||
// tslint:disable-next-line:no-import-side-effect | ||
require("rxjs/add/observable/from"); | ||
var adapt_1 = require("@cycle/run/lib/adapt"); | ||
var mock_time_source_1 = require("./dist/mock-time-source"); | ||
var time_driver_1 = require("./dist/time-driver"); | ||
var mock_time_source_1 = require("./src/mock-time-source"); | ||
var time_driver_1 = require("./src/time-driver"); | ||
adapt_1.setAdapt(function (stream) { return Observable_1.Observable.from(stream); }); | ||
@@ -13,5 +14,6 @@ function mockTimeSource(args) { | ||
exports.mockTimeSource = mockTimeSource; | ||
function timeDriver(_, adapter) { | ||
return time_driver_1.timeDriver(_, adapter); | ||
function timeDriver(sink) { | ||
return time_driver_1.timeDriver(sink); | ||
} | ||
exports.timeDriver = timeDriver; | ||
//# sourceMappingURL=rxjs.js.map |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
240306
9
6966
8
9
1
10
7
+ Addedperformance-now@^2.1.0
+ Added@cycle/run@3.4.0(transitive)
+ Addedraf@3.3.2(transitive)
- Removed@cycle/run@1.0.0(transitive)
- Removedraf@3.4.1(transitive)
- Removedsymbol-observable@1.2.0(transitive)
- Removedxstream@10.9.0(transitive)
Updated@cycle/run@3.x
Updatedcombine-errors@3.0.x
Updatedraf@3.3.x
Updatedsetimmediate@1.0.x
Updatedsorted-immutable-list@1.1.x
Updatedvariable-diff@1.1.x