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 2.0.0 to 2.0.1

3

lib/useDCPWorker.d.ts

@@ -1,2 +0,1 @@

/// <reference types="react" />
import BigNumber from 'bignumber.js';

@@ -84,3 +83,3 @@ declare global {

*/
export declare function WorkerProvider(props: any): JSX.Element;
export declare function WorkerProvider(props: any): import("react/jsx-runtime").JSX.Element;
interface IUseDCPWorkerParams {

@@ -87,0 +86,0 @@ identity?: any;

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

const [worker, setWorker] = (0, react_1.useState)();
return ((0, jsx_runtime_1.jsx)(WorkerContext.Provider, Object.assign({ value: {
return ((0, jsx_runtime_1.jsx)(WorkerContext.Provider, { value: {
worker,

@@ -173,3 +173,3 @@ setWorker,

dispatchWorkerStats,
} }, { children: props.children })));
}, children: props.children }));
}

@@ -413,2 +413,8 @@ exports.WorkerProvider = WorkerProvider;

});
sandbox.on('end', () => {
dispatchWorkerState({
type: WorkerStateActions.SET_WORKER_SBX,
data: dcpWorker.workingSandboxes.length,
});
});
});

@@ -415,0 +421,0 @@ dcpWorker.on('payment', (payment) => {

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

@@ -34,16 +34,17 @@ "keywords": [

"clean": "tsc --build --clean",
"lint": "eslint --cache --cache-strategy=content --cache-location=.cache/eslint/ --ignore-path=.gitignore --ext=tsx .",
"prepare": "npm run build"
},
"dependencies": {
"bignumber.js": "^9.1.1"
},
"devDependencies": {
"@types/react": "^18.0.28",
"@typescript-eslint/eslint-plugin": "^5.53.0",
"@typescript-eslint/parser": "^5.53.0",
"eslint": "^8.35.0",
"eslint-plugin-react": "^7.32.2",
"typescript": "^4.9.5"
"@types/react": "^18.2.30",
"@typescript-eslint/eslint-plugin": "^6.8.0",
"@typescript-eslint/parser": "^6.8.0",
"eslint": "^8.51.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-react-refresh": "0.4.3",
"typescript": "^5.2.2"
},
"peerDependencies": {
"bignumber.js": ">=9",
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",

@@ -54,5 +55,5 @@ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"

"engines": {
"node": ">=16",
"node": ">=18",
"npm": ">=7"
}
}

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