nftstorage.link
Version:
Utilities for working with the NFT.Storage IPFS Edge Gateway
106 lines (105 loc) • 3.07 kB
JSON
{
"name": "nftstorage.link",
"version": "2.0.0",
"description": "Utilities for working with the NFT.Storage IPFS Edge Gateway",
"type": "module",
"types": "./dist/src/lib.d.ts",
"module": "./src/lib.js",
"main": "./dist/src/lib.cjs",
"files": [
"src",
"dist/src",
"dist/bundle*"
],
"exports": {
".": {
"browser": "./src/lib.js",
"require": "./dist/src/lib.cjs",
"node": "./src/lib.js"
},
"./src/gateway.js": {
"browser": "./src/gateway.js",
"require": "./dist/src/gateway.cjs",
"node": "./src/gateway.js"
},
"./src/perma-cache.js": {
"browser": "./src/perma-cache.js",
"require": "./dist/src/perma-cache.cjs",
"node": "./src/perma-cache.js"
},
"./dist/bundle.esm.min.js": {
"browser": "./dist/bundle.esm.min.js",
"require": "./dist/bundle.esm.min.js",
"node": "./dist/bundle.esm.min.js"
}
},
"scripts": {
"test": "npm-run-all -p -r mock:api test:all",
"test:all": "run-s test:web test:cjs test:es test:size",
"test:size": "bundlesize",
"test:web": "API_PORT=1337 playwright-test test/*.spec.js --cov && nyc report",
"test:es": "API_PORT=1337 hundreds mocha test/*.spec.js --exit",
"test:cjs": "npm run build:cjs && API_PORT=1337 mocha dist/**/*.spec.cjs --exit",
"mock:api": "smoke -p 1337 test/mocks/api",
"build": "run-s clean build:*",
"build:ts": "tsc --build",
"build:cjs": "rollup --config rollup.config.js",
"build:esm": "rollup --config rollup.esm.config.js",
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && npx codecov",
"prepare": "npm run build",
"clean": "rm -rf dist"
},
"keywords": [
"ipfs",
"gateway",
"edge",
"cache",
"cdn",
"nft",
"nftstorage",
"nft.storage"
],
"author": "Alan Shaw",
"license": "Apache-2.0 OR MIT",
"dependencies": {
"@web-std/fetch": "^4.1.0",
"p-settle": "^4.1.1",
"p-retry": "^4.5.0",
"throttled-queue": "^2.1.4"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^21.1.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"@types/assert": "^1.5.6",
"@types/mocha": "^9.0.0",
"@types/node": "^17.0.36",
"assert": "^2.0.0",
"bundlesize": "^0.18.1",
"c8": "^7.11.2",
"hundreds": "^0.0.9",
"mocha": "^9.1.0",
"npm-run-all": "^4.1.5",
"nyc": "15.1.0",
"playwright-test": "^7.4.1",
"rollup": "^2.70.2",
"rollup-plugin-multi-input": "^1.3.1",
"rollup-plugin-terser": "^7.0.2",
"smoke": "^3.1.1",
"throttled-queue": "^2.1.2",
"typescript": "^4.6.3"
},
"bundlesize": [
{
"path": "./dist/bundle.esm.min.js",
"maxSize": "30 kB"
}
],
"homepage": "https://github.com/nftstorage/nftstorage.link/tree/main/packages/client",
"bugs": "https://github.com/nftstorage/nftstorage.link/issues",
"repository": {
"type": "git",
"url": "https://github.com/nftstorage/nftstorage.link.git",
"directory": "packages/client"
}
}