Comparing version 1.0.7 to 1.0.8
@@ -58,2 +58,3 @@ 'use strict'; | ||
temp.name = this.name = 'BatchError'; | ||
this.stack = temp.stack; | ||
@@ -60,0 +61,0 @@ this.data = result; |
@@ -55,2 +55,3 @@ 'use strict'; | ||
temp.name = this.name = 'PageError'; | ||
this.stack = temp.stack; | ||
@@ -57,0 +58,0 @@ this.index = e.index; |
@@ -51,2 +51,3 @@ 'use strict'; | ||
temp.name = this.name = 'SequenceError'; | ||
this.stack = temp.stack; | ||
@@ -53,0 +54,0 @@ this.index = e.index; |
{ | ||
"name": "spex", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Specialized Promise Extensions", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -84,7 +84,7 @@ # Specialized Promise Extensions | ||
[Module]:https://github.com/vitaly-t/spex/blob/master/docs/code/module.md | ||
[batch]:https://github.com/vitaly-t/spex/blob/master/docs/code/batch.md | ||
[page]:https://github.com/vitaly-t/spex/blob/master/docs/code/page.md | ||
[sequence]:https://github.com/vitaly-t/spex/blob/master/docs/code/sequence.md | ||
[read]:https://github.com/vitaly-t/spex/blob/master/docs/code/stream/read.md | ||
[Module]:http://vitaly-t.github.io/spex/index.html | ||
[batch]:http://vitaly-t.github.io/spex/global.html#batch | ||
[page]:http://vitaly-t.github.io/spex/global.html#page | ||
[sequence]:http://vitaly-t.github.io/spex/global.html#sequence | ||
[read]:http://vitaly-t.github.io/spex/stream.html#.read | ||
[Promises/A+]:https://promisesaplus.com/ | ||
@@ -91,0 +91,0 @@ [Promise]:https://github.com/then/promise |
@@ -13,3 +13,3 @@ ### TypeScript for SPEX | ||
Or you can installing using [Typings]: | ||
Or you can install it using [Typings]: | ||
@@ -34,4 +34,6 @@ ``` | ||
var spex = spexLib(Promise); | ||
var spex:spexLib.ISpex = spexLib(Promise); | ||
type BatchError = typeof spex.errors.BatchError; | ||
spex.batch([1, 2, 3]) | ||
@@ -42,4 +44,3 @@ .then(data=> { | ||
.catch(error=> { | ||
var e = <typeof spex.errors.BatchError>error; | ||
var duration = e.stat.duration; | ||
// error type is either TypeError or BatchError | ||
}); | ||
@@ -46,0 +47,0 @@ ``` |
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
66052
1532