Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

spex

Package Overview
Dependencies
Maintainers
1
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spex - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

1

lib/errors/batch.js

@@ -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;

2

package.json
{
"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 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc