zen-observable
Advanced tools
Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "zen-observable", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "An Implementation of ES Observables", | ||
"homepage": "https://github.com/zenparsing/zen-observable" | ||
} |
## zen-observable | ||
An implementation of [ES Observables](https://github.com/zenparsing/es-observable). | ||
``` | ||
npm install zen-observable | ||
``` | ||
Requires an ES6 Promise polyfill. |
@@ -291,3 +291,3 @@ // === Non-Promise Job Queueing === | ||
try { return fn(value) } | ||
catch (x) { reject(x) } | ||
catch (e) { reject(e) } | ||
}, | ||
@@ -412,7 +412,7 @@ | ||
} catch (x) { | ||
} catch (e) { | ||
// If observer.next throws an error, then the subscription will | ||
// be closed and the error method will simply rethrow | ||
observer.error(x); | ||
observer.error(e); | ||
return; | ||
@@ -419,0 +419,0 @@ } |
@@ -1,4 +0,4 @@ | ||
var runTests = require("./observable-tests.js").runTests; | ||
var runTests = require("es-observable-tests.js").runTests; | ||
var Observable = require("../zen-observable.js").Observable; | ||
runTests(Observable); |
@@ -291,3 +291,3 @@ /*=esdown=*/(function(fn, deps, name) { function obj() { return {} } if (typeof exports !== 'undefined') fn(require, exports, module); else if (typeof define === 'function' && define.amd) define(['require', 'exports', 'module'].concat(deps), fn); else if (typeof self !== 'undefined' && name) fn(obj, name === '*' ? self : (self[name] = {}), {}); else fn(obj, {}, {}); })(function(require, exports, module) { 'use strict'; function __load(p, l) { module.__es6 = !l; var e = require(p); if (e && e.constructor !== Object) e.default = e; return e; } // === Non-Promise Job Queueing === | ||
try { return fn(value) } | ||
catch (x) { reject(x) } | ||
catch (e) { reject(e) } | ||
}, | ||
@@ -412,7 +412,7 @@ | ||
} catch (x) { | ||
} catch (e) { | ||
// If observer.next throws an error, then the subscription will | ||
// be closed and the error method will simply rethrow | ||
observer.error(x); | ||
observer.error(e); | ||
return; | ||
@@ -419,0 +419,0 @@ } |
Sorry, the diff of this file is not supported yet
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
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 1 instance in 1 package
10
35593
935
2