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

hookstore-error

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hookstore-error - npm Package Compare versions

Comparing version 0.1.3 to 0.2.0

6

package.json
{
"name": "hookstore-error",
"version": "0.1.3",
"version": "0.2.0",
"description": "simple error handler middleware for hookstore",

@@ -11,3 +11,3 @@ "main": "lib/index.js",

"@babel/runtime": "^7.0.0",
"hookstore": "^0.1.6"
"hookstore": "^0.2.0"
},

@@ -37,3 +37,3 @@ "keywords": [

"license": "MIT",
"gitHead": "19dda90efbf416872b77bc8be31ec309fd3fe162"
"gitHead": "cee440d63147d06d56240829dc41e9a5238420fc"
}

@@ -25,3 +25,3 @@ # hookstore-error

const model = {
namespace: 'foo',
name: 'foo',
state: {},

@@ -53,5 +53,5 @@ actions: {},

function handleError(err) {
const { namespace, action, state } = this.ctx;
const { name, action, state } = this.ctx;
console.error(`${namespace}/${action} error`, err);
console.error(`${name}/${action} error`, err);
}

@@ -58,0 +58,0 @@

@@ -14,3 +14,3 @@ import { Context, Next, Middleware } from 'hookstore';

} catch(e) {
// const { namespace, action } = ctx;
// const { name, action } = ctx;

@@ -20,3 +20,3 @@ if (options.error) {

} else {
// console.error(`[hookstore-error] ${namespace}/${action}\n`, e);
// console.error(`[hookstore-error] ${name}/${action}\n`, e);
throw e;

@@ -23,0 +23,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