use-dcp-worker
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
71893
1196
8
1
- Removedbignumber.js@^9.1.1