zen-observable-ts
Advanced tools
Comparing version 0.8.7 to 0.8.8
@@ -5,3 +5,9 @@ # Change log | ||
### 0.8.8 | ||
- revert to zen-observable 0.7 | ||
### 0.8.7 | ||
- fixed typings | ||
### 0.8.6 | ||
- initial publishing mirrors `zen-observable`'s versioning |
@@ -8,3 +8,3 @@ import { ZenObservable } from './types'; | ||
new <T>(subscriber: Subscriber<T>): Observable<T>; | ||
from<R>(...args: Array<R>): Observable<R>; | ||
from<R>(observable: Observable<R> | ZenObservable.ObservableLike<R> | ArrayLike<R>): Observable<R>; | ||
of<R>(...args: Array<R>): Observable<R>; | ||
@@ -18,6 +18,5 @@ }; | ||
reduce<R = T>(fn: (previousValue: R | T, currentValue: T) => R | T, initialValue?: R | T): Observable<R | T>; | ||
concat(...sources: Array<Observable<T>>): any; | ||
flatMap<R>(fn: (value: T) => ZenObservable.ObservableLike<R>): Observable<R>; | ||
from<R>(...args: Array<R>): Observable<R>; | ||
from<R>(observable: Observable<R> | ZenObservable.ObservableLike<R> | ArrayLike<R>): Observable<R>; | ||
of<R>(...args: Array<R>): Observable<R>; | ||
} |
{ | ||
"name": "zen-observable-ts", | ||
"version": "0.8.7", | ||
"version": "0.8.8", | ||
"description": "An Implementation of ES Observables in Typescript", | ||
@@ -21,9 +21,13 @@ "author": "Evans Hauser <evanshauser@gmail.com>", | ||
"scripts": { | ||
"build:browser": "browserify ./lib/bundle.umd.js -o=./lib/bundle.js --i zen-observable && npm run minify:browser", | ||
"build:browser": | ||
"browserify ./lib/bundle.umd.js -o=./lib/bundle.js --i zen-observable && npm run minify:browser", | ||
"build": "tsc -p .", | ||
"bundle": "rollup -c", | ||
"clean": "rimraf lib/* && rimraf coverage/*", | ||
"coverage": "jest --coverage", | ||
"filesize": "npm run build && npm run build:browser", | ||
"lint": "tslint --type-check -p tsconfig.json -c ../../tslint.json src/*.ts", | ||
"minify:browser": "uglifyjs -c -m -o ./lib/bundle.min.js -- ./lib/bundle.js", | ||
"lint": | ||
"tslint --type-check -p tsconfig.json -c ../../tslint.json src/*.ts", | ||
"minify:browser": | ||
"uglifyjs -c -m -o ./lib/bundle.min.js -- ./lib/bundle.js", | ||
"postbuild": "npm run bundle", | ||
@@ -51,12 +55,7 @@ "prebuild": "npm run clean", | ||
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$", | ||
"moduleFileExtensions": [ | ||
"ts", | ||
"tsx", | ||
"js", | ||
"json" | ||
] | ||
"moduleFileExtensions": ["ts", "tsx", "js", "json"] | ||
}, | ||
"dependencies": { | ||
"zen-observable": "^0.8.6" | ||
"zen-observable": "^0.7.0" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
import Observable from '../zenObservable'; | ||
import { Observable } from '../zenObservable'; | ||
@@ -3,0 +3,0 @@ describe('filter ', () => { |
@@ -1,2 +0,2 @@ | ||
import Observable from '../zenObservable'; | ||
import { Observable } from '../zenObservable'; | ||
@@ -3,0 +3,0 @@ describe.skip('flatMap', () => { |
@@ -1,20 +0,14 @@ | ||
import Observable from '../zenObservable'; | ||
import { Observable } from '../zenObservable'; | ||
describe('forEach ', () => { | ||
it('throws on not a function', done => { | ||
it.skip('throws on not a function', done => { | ||
try { | ||
debugger; | ||
Observable.from([1, 2, 3, 4]) | ||
.forEach(<any>1) | ||
.then(() => done.fail()) | ||
.catch(e => { | ||
try { | ||
expect(e.message).toMatch(/not a function/); | ||
done(); | ||
} catch (e) { | ||
done.fail(e); | ||
} | ||
}); | ||
Observable.from([1, 2, 3, 4]).forEach(<any>1); | ||
} catch (e) { | ||
done.fail(e); | ||
try { | ||
expect(e.message).toMatch(/not a function/); | ||
done(); | ||
} catch (e) { | ||
done.fail(e); | ||
} | ||
} | ||
@@ -21,0 +15,0 @@ }); |
@@ -1,2 +0,2 @@ | ||
import Observable from '../zenObservable'; | ||
import { Observable } from '../zenObservable'; | ||
@@ -3,0 +3,0 @@ describe('map', () => { |
@@ -1,2 +0,2 @@ | ||
import Observable from '../zenObservable'; | ||
import { Observable } from '../zenObservable'; | ||
@@ -3,0 +3,0 @@ describe('of', () => { |
@@ -1,2 +0,2 @@ | ||
import Observable from '../zenObservable'; | ||
import { Observable } from '../zenObservable'; | ||
describe('reduce ', () => { | ||
@@ -3,0 +3,0 @@ it('No seed', () => { |
@@ -17,3 +17,5 @@ declare function require(name: string); | ||
new <T>(subscriber: Subscriber<T>): Observable<T>; | ||
from<R>(...args: Array<R>): Observable<R>; | ||
from<R>( | ||
observable: Observable<R> | ZenObservable.ObservableLike<R> | ArrayLike<R>, | ||
): Observable<R>; | ||
of<R>(...args: Array<R>): Observable<R>; | ||
@@ -40,9 +42,8 @@ } = require('zen-observable'); | ||
concat(...sources: Array<Observable<T>>); | ||
flatMap<R>(fn: (value: T) => ZenObservable.ObservableLike<R>): Observable<R>; | ||
from<R>(...args: Array<R>): Observable<R>; | ||
from<R>( | ||
observable: Observable<R> | ZenObservable.ObservableLike<R> | ArrayLike<R>, | ||
): Observable<R>; | ||
of<R>(...args: Array<R>): Observable<R>; | ||
} |
Sorry, the diff of this file is not supported yet
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
21350
25
554
+ Addedzen-observable@0.7.1(transitive)
- Removedzen-observable@0.8.15(transitive)
Updatedzen-observable@^0.7.0