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

ic-use-actor

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ic-use-actor - npm Package Compare versions

Comparing version 0.0.10 to 0.1.0

10

CHANGELOG.md

@@ -10,5 +10,12 @@ # Changelog

## 0.1.0 - 2024-10-16
### Changed
- Upgraded minimum required versions of @dfinity/xxx dependencies to >=v2.1.2
## [0.0.10] - 2024-07-11
### Changed
- Upgraded minimum required versions of @dfinity/xxx dependencies

@@ -19,5 +26,7 @@

### Changed
- Moved @dfinity/xxx dependencies from dependencies to peerDependencies to reduce package size.
## Fixed
- Don't allow the actor context to be undefined as this can lead to unpredictable behaviour.

@@ -28,2 +37,3 @@

### Changed
- Upgraded @dfinity/xxx dependencies to latest versions.

@@ -30,0 +40,0 @@

11

dist/index.js

@@ -108,11 +108,4 @@ // src/index.tsx

return;
const agent = new HttpAgent({ identity, ...httpAgentOptions });
if (process.env.DFX_NETWORK !== "ic") {
agent.fetchRootKey().catch((err) => {
console.warn(
"Unable to fetch root key. Check to ensure that your local replica is running"
);
console.error(err);
});
}
const shouldFetchRootKey = process.env.DFX_NETWORK !== "ic";
const agent = await HttpAgent.create({ identity, ...httpAgentOptions, shouldFetchRootKey });
const _actor = Actor.createActor(idlFactory, {

@@ -119,0 +112,0 @@ agent,

{
"name": "ic-use-actor",
"version": "0.0.10",
"version": "0.1.0",
"description": "React Hook and context provider to make interacting with Internet Computer canisters more fun!",

@@ -30,8 +30,8 @@ "author": "Kristofer Lund <kristofer@kristoferlund.se>",

"dev:tsc": "tsc --watch --preserveWatchOutput",
"dev:esbuild": "npm run build --watch"
"dev:esbuild": "pnpm run build --watch"
},
"peerDependencies": {
"react": ">=18.0.0",
"@dfinity/agent": ">=1.2.1",
"@dfinity/candid": ">=1.2.1"
"@dfinity/agent": ">=2.1.2",
"@dfinity/candid": ">=2.1.2"
},

@@ -38,0 +38,0 @@ "devDependencies": {

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