@dfinity/agent
Version:
JavaScript and TypeScript library to interact with the Internet Computer
66 lines • 1.71 kB
JSON
{
"name": "@dfinity/agent",
"version": "3.1.0",
"author": "DFINITY Stiftung <sdk@dfinity.org>",
"license": "Apache-2.0",
"description": "JavaScript and TypeScript library to interact with the Internet Computer",
"homepage": "https://agent-js.icp.xyz/libs/agent",
"repository": {
"type": "git",
"url": "https://github.com/dfinity/agent-js.git",
"directory": "packages/agent"
},
"bugs": {
"url": "https://github.com/dfinity/agent-js/issues"
},
"keywords": [
"internet computer",
"internet-computer",
"ic",
"dfinity",
"agent",
"actor",
"dfx",
"canister",
"candid",
"motoko",
"javascript",
"typescript",
"blockchain",
"crypto",
"distributed",
"api",
"sdk"
],
"main": "./lib/cjs/index.js",
"module": "./lib/esm/index.js",
"default": "./lib/esm/index.js",
"types": "./lib/esm/index.d.ts",
"exports": {
"types": "./lib/esm/index.d.ts",
"import": "./lib/esm/index.js",
"node": "./lib/cjs/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/esm/index.js"
},
"peerDependencies": {
"@noble/hashes": "^1.8.0",
"@dfinity/candid": "3.1.0",
"@dfinity/principal": "3.1.0"
},
"dependencies": {
"@dfinity/cbor": "^0.2.2",
"@noble/curves": "^1.9.2"
},
"devDependencies": {
"@dfinity/identity": "3.1.0"
},
"scripts": {
"build": "tsc -b && tsc -p tsconfig.cjs.json && cp src/package.json lib/esm/package.json",
"build:watch": "tsc -b --watch",
"bundle": "esbuild --bundle src/index.ts --outfile=dist/index.js --platform=browser",
"attw": "attw --pack .",
"test": "jest",
"test:coverage": "jest --collectCoverage"
}
}