effects-as-data
Advanced tools
Comparing version 2.12.2 to 2.13.0
@@ -63,3 +63,5 @@ 'use strict'; | ||
} catch (e) { | ||
e.name = 'Error on Step ' + (index + 1); | ||
var stepError = 'Error on Step ' + (index + 1); | ||
e.name = stepError; | ||
e.stack = stepError + '\n\n' + e.stack; | ||
throw e; | ||
@@ -66,0 +68,0 @@ } |
{ | ||
"name": "effects-as-data", | ||
"version": "2.12.2", | ||
"description": "A micro abstraction layer for Javascript that makes writing, testing, and monitoring side-effects easy.", | ||
"version": "2.13.0", | ||
"description": | ||
"A micro abstraction layer for Javascript that makes writing, testing, and monitoring side-effects easy.", | ||
"main": "src/index.js", | ||
@@ -26,2 +27,3 @@ "repository": { | ||
"babel-preset-es2015": "^6.24.1", | ||
"jest": "^21.0.2", | ||
"jest-cli": "^20.0.0", | ||
@@ -28,0 +30,0 @@ "mocha": "^3.5.0" |
@@ -5,4 +5,4 @@ # Effects-as-data | ||
* Using effects-as-data can reduce the time you spend testing by 2-3 times (maybe more depending on who you ask). | ||
* Effects-as-data outputs a `command` log allowing you to see every side-effect (HTTP, Disk IO, etc), its latency, and its result giving you detailed insight into your code while it runs in development and production. | ||
* Using effects-as-data can dramatically reduce the time it takes to deliver tested code. | ||
* Effects-as-data outputs detailed telemetry, during runtime, allowing you to see every side-effect (HTTP, Disk IO, etc), its latency, and its result giving you insight into your code while it runs in development and production. | ||
* Effects-as-data is ~1kb minified+gzipped. | ||
@@ -12,2 +12,11 @@ * Effects-as-data has *almost* no performance overhead (see `npm run perf`). | ||
## Examples | ||
There are several working examples in `effects-as-data-examples`: [Open](https://github.com/orourkedd/effects-as-data-examples) | ||
## Usage in Node and the Browser (ES6 and ES5) | ||
When using in Node: `require('effects-as-data')` | ||
When using in the browser (or in an old version of node): `require('effects-as-data/es5')` | ||
## Effects-as-data by example | ||
@@ -14,0 +23,0 @@ |
@@ -54,3 +54,5 @@ const assert = require('assert') | ||
} catch (e) { | ||
e.name = `Error on Step ${index + 1}` | ||
const stepError = `Error on Step ${index + 1}` | ||
e.name = stepError | ||
e.stack = `${stepError}\n\n${e.stack}` | ||
throw e | ||
@@ -57,0 +59,0 @@ } |
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
239421
114
3879
286
6