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

use-dcp-worker

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-dcp-worker - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

2

lib/useDCPWorker.d.ts

@@ -71,3 +71,3 @@ import BigNumber from 'bignumber.js';

submitting: boolean;
error: Error | boolean;
error: Error | undefined;
}

@@ -74,0 +74,0 @@ interface IDefaultWorkerStats {

@@ -29,3 +29,3 @@ "use strict";

submitting: false,
error: false,
error: undefined,
};

@@ -83,3 +83,2 @@ let hasStartedWorkerInit = false, optionsError = false;

case WorkerStateActions.ERROR:
console.error('use-dcp-worker: Worker error occured:', action.data);
updatedState.error = action.data;

@@ -439,2 +438,4 @@ break;

return dispatchWorkerState({ type: WorkerStateActions.ERROR, data: payload });
// Successful fetch, so clear any errors from a previous fetch.
dispatchWorkerState({ type: WorkerStateActions.ERROR, data: undefined });
// extra delay for cleaner UI visual updates between quick fetching states

@@ -441,0 +442,0 @@ setTimeout(() => {

{
"name": "use-dcp-worker",
"version": "3.0.1",
"version": "3.0.2",
"description": "Embed the DCP Worker in a React app",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

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