Socket
Socket
Sign inDemoInstall

effects-as-data

Package Overview
Dependencies
Maintainers
1
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

effects-as-data - npm Package Compare versions

Comparing version 2.12.2 to 2.13.0

es5/specs/temp.spec.js

4

es5/test.js

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

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