@dfinity/assets
Version:
JavaScript and TypeScript library to manage assets on the Internet Computer
85 lines (84 loc) • 2.12 kB
JSON
{
"name": "@dfinity/assets",
"version": "2.4.1",
"author": "DFINITY Stiftung <sdk@dfinity.org>",
"license": "Apache-2.0",
"description": "JavaScript and TypeScript library to manage assets on the Internet Computer",
"homepage": "https://internetcomputer.org",
"repository": {
"type": "git",
"url": "https://github.com/dfinity/agent-js.git",
"directory": "packages/assets"
},
"bugs": {
"url": "https://github.com/dfinity/agent-js/issues"
},
"keywords": [
"internet computer",
"internet-computer",
"ic",
"dfinity",
"assets",
"asset",
"file",
"upload",
"agent",
"actor",
"dfx",
"canister",
"motoko",
"javascript",
"typescript",
"blockchain",
"crypto",
"distributed",
"api",
"sdk"
],
"main": "./lib/cjs/index.js",
"module": "./lib/esm/index.js",
"unpkg": "./lib/esm/index",
"scripts": {
"build": "tsc -b && tsc -p tsconfig-cjs.json",
"bundle": "esbuild --bundle src/index.ts --outfile=dist/index.js",
"size-limit": "size-limit",
"lint": "eslint 'src' --ext '.js,.jsx,.ts,.tsx'",
"lint:fix": "npm run lint -- --fix",
"make:docs/reference": "typedoc src/index.ts --out ../../docs/assets",
"test": "jest",
"test:coverage": "jest --collectCoverage"
},
"peerDependencies": {
"@dfinity/agent": "^2.4.1",
"@dfinity/principal": "^2.4.1",
"@noble/hashes": "^1.3.1"
},
"dependencies": {
"base64-arraybuffer": "^1.0.2",
"mime": "^3.0.0"
},
"devDependencies": {
"@peculiar/webcrypto": "^1.4.0",
"@types/jest": "^29.5.5",
"@types/mime": "^2.0.3",
"@typescript-eslint/eslint-plugin": "^5.30.5",
"@typescript-eslint/parser": "^5.30.5",
"@web-std/file": "^3.0.2",
"esbuild": "^0.25.1",
"eslint": "^8.19.0",
"jest": "^29.7.0",
"size-limit": "^8.2.6",
"typedoc": "^0.22.11"
},
"browser": {
"fs": "./lib/cjs/utils/browserShim.js",
"path": "./lib/cjs/utils/browserShim.js"
},
"size-limit": [
{
"path": "./dist/index.js",
"limit": "100 kB",
"webpack": false
}
]
}