UNPKG

@web3-storage/w3up-client

Version:

Client for the web3.storage w3up api

243 lines 6.97 kB
{ "name": "@web3-storage/w3up-client", "version": "17.3.0", "description": "Client for the web3.storage w3up api", "license": "Apache-2.0 OR MIT", "type": "module", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", "typesVersions": { "*": { "*": [ "*", "dist/*", "dist/src/*", "dist/src/*/index" ], "src/*": [ "*", "dist/*", "dist/src/*", "dist/src/*/index" ] } }, "exports": { ".": { "types": "./dist/src/index.d.ts", "node": "./dist/src/index.node.js", "import": "./dist/src/index.js" }, "./account": { "types": "./dist/src/account.d.ts", "import": "./dist/src/account.js" }, "./browser.min.js": { "default": "./browser.min.js" }, "./delegation": { "types": "./dist/src/delegation.d.ts", "import": "./dist/src/delegation.js" }, "./principal": { "types": "./dist/src/principal/index.d.ts", "import": "./dist/src/principal/index.js" }, "./principal/ed25519": { "types": "./dist/src/principal/ed25519.d.ts", "import": "./dist/src/principal/ed25519.js" }, "./principal/rsa": { "types": "./dist/src/principal/rsa.d.ts", "import": "./dist/src/principal/rsa.js" }, "./proof": { "types": "./dist/src/proof.d.ts", "import": "./dist/src/proof.js" }, "./space": { "types": "./dist/src/space.d.ts", "import": "./dist/src/space.js" }, "./result": { "types": "./dist/src/result.d.ts", "import": "./dist/src/result.js" }, "./client": { "types": "./dist/src/client.d.ts", "import": "./dist/src/client.js" }, "./capability/access": { "types": "./dist/src/capability/access.d.ts", "import": "./dist/src/capability/access.js" }, "./capability/blob": { "types": "./dist/src/capability/blob.d.ts", "import": "./dist/src/capability/blob.js" }, "./capability/index": { "types": "./dist/src/capability/index.d.ts", "import": "./dist/src/capability/index.js" }, "./capability/space": { "types": "./dist/src/capability/space.d.ts", "import": "./dist/src/capability/space.js" }, "./capability/store": { "types": "./dist/src/capability/store.d.ts", "import": "./dist/src/capability/store.js" }, "./capability/subscription": { "types": "./dist/src/capability/subscription.d.ts", "import": "./dist/src/capability/subscription.js" }, "./capability/upload": { "types": "./dist/src/capability/upload.d.ts", "import": "./dist/src/capability/upload.js" }, "./capability/usage": { "types": "./dist/src/capability/usage.d.ts", "import": "./dist/src/capability/usage.js" }, "./stores": { "types": "./dist/src/stores/index.d.ts", "import": "./dist/src/stores/index.js" }, "./stores/conf": { "types": "./dist/src/stores/conf.d.ts", "import": "./dist/src/stores/conf.js" }, "./stores/indexeddb": { "types": "./dist/src/stores/indexeddb.d.ts", "import": "./dist/src/stores/indexeddb.js" }, "./stores/memory": { "types": "./dist/src/stores/memory.d.ts", "import": "./dist/src/stores/memory.js" }, "./types": "./dist/src/types.js" }, "publishConfig": { "access": "public" }, "files": [ "dist", "*.min.js" ], "dependencies": { "@ipld/dag-ucan": "^3.4.0", "@ucanto/client": "^9.0.1", "@ucanto/core": "^10.0.1", "@ucanto/interface": "^10.0.1", "@ucanto/principal": "^9.0.1", "@ucanto/transport": "^9.1.1", "@web3-storage/access": "^20.2.0", "@web3-storage/capabilities": "^18.1.0", "@web3-storage/did-mailto": "^2.1.0", "@web3-storage/blob-index": "^1.0.5", "@web3-storage/filecoin-client": "^3.3.5", "@web3-storage/upload-client": "^17.1.4" }, "devDependencies": { "@ipld/car": "^5.1.1", "@ipld/unixfs": "^2.1.1", "@types/assert": "^1.5.6", "@types/mocha": "^10.0.1", "@types/node": "^20.8.4", "@ucanto/server": "^10.0.0", "@web3-storage/content-claims": "^4.0.4", "@web3-storage/data-segment": "^5.0.0", "assert": "^2.0.0", "c8": "^7.13.0", "esbuild": "^0.24.0", "hundreds": "^0.0.9", "mocha": "^10.1.0", "multiformats": "^12.1.2", "npm-run-all": "^4.1.5", "playwright-test": "^12.3.4", "typedoc": "^0.25.3", "typescript": "^5.2.2", "@web3-storage/upload-api": "^19.2.0", "@web3-storage/eslint-config-w3up": "^1.0.0" }, "eslintConfig": { "extends": [ "@web3-storage/eslint-config-w3up" ], "parserOptions": { "project": "./tsconfig.json" }, "env": { "es2022": true, "mocha": true, "browser": true, "node": true }, "ignorePatterns": [ "dist", "docs", "docs-generated", "coverage", "src/types.js", "*.min.js" ] }, "directories": { "test": "test" }, "repository": { "type": "git", "url": "https://github.com/storacha/w3up.git", "directory": "packages/w3up-client" }, "keywords": [ "web3", "storage", "upload", "store", "DAG", "IPLD", "UCAN", "IPFS" ], "author": "DAG House", "bugs": { "url": "https://github.com/storacha/w3up/issues" }, "homepage": "https://web3.storage", "depcheck": { "ignorePatterns": [ "dist" ], "ignores": [ "@typescript-eslint/eslint-plugin", "@typescript-eslint/parser", "assert", "c8" ] }, "engines": { "node": ">=18" }, "engineStrict": true, "scripts": { "attw": "attw --pack .", "lint": "tsc --build && eslint '**/*.{js,ts}' && prettier --check '**/*.{js,ts,yml,json}' --ignore-path ../../.gitignore", "build": "npm run build:tsc && npm run build:bundle:browser", "build:tsc": "tsc --build", "build:bundle:browser": "esbuild src/index.js --bundle --minify --target=chrome130 --format=iife --global-name=w3up --outfile=browser.min.js", "dev": "tsc --build --watch", "check": "tsc --build", "test": "npm-run-all -p -r mock:* test:all", "test:all": "run-s test:node test:browser", "test:node": "hundreds -r html -r text mocha 'test/**/!(*.browser).test.js' -n experimental-vm-modules -n no-warnings -n stack-trace-limit=1000 -t 10000", "test:browser": "playwright-test --runner mocha 'test/**/!(*.node).test.js'", "mock": "run-p mock:*", "mock:bucket-200": "PORT=8989 STATUS=200 node test/helpers/bucket-server.js", "mock:receipts-server": "PORT=9201 node test/helpers/receipts-server.js", "mock:gateway-server": "PORT=5001 node test/helpers/gateway-server.js", "coverage": "c8 report -r html && open coverage/index.html", "rc": "npm version prerelease --preid rc", "docs": "npm run build && typedoc --out docs-generated" } }