143 lines
5.2 KiB
JSON
143 lines
5.2 KiB
JSON
|
{
|
||
|
"name": "@ethersphere/bee-js",
|
||
|
"version": "4.1.1",
|
||
|
"description": "Javascript client for Bee",
|
||
|
"keywords": [
|
||
|
"bee",
|
||
|
"swarm",
|
||
|
"decentralised",
|
||
|
"storage",
|
||
|
"ethereum",
|
||
|
"typescript",
|
||
|
"p2p",
|
||
|
"browser",
|
||
|
"node"
|
||
|
],
|
||
|
"homepage": "https://github.com/ethersphere/bee-js",
|
||
|
"bugs": {
|
||
|
"url": "https://github.com/ethersphere/bee-js/issues/"
|
||
|
},
|
||
|
"license": "BSD-3-Clause",
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "https://github.com/ethersphere/bee-js.git"
|
||
|
},
|
||
|
"main": "dist/cjs/index.js",
|
||
|
"module": "dist/mjs/index.js",
|
||
|
"exports": {
|
||
|
".": {
|
||
|
"import": "./dist/mjs/index.js",
|
||
|
"require": "./dist/cjs/index.js"
|
||
|
}
|
||
|
},
|
||
|
"types": "dist/types/index.d.ts",
|
||
|
"browser": {
|
||
|
"stream": false,
|
||
|
"./src/utils/data.ts": "./src/utils/data.browser.ts",
|
||
|
"./dist/cjs/utils/data.js": "./dist/cjs/utils/data.browser.js",
|
||
|
"./dist/mjs/utils/data.js": "./dist/mjs/utils/data.browser.js",
|
||
|
"./dist/cjs/utils/collection.node.js": "./dist/cjs/utils/collection.browser.js",
|
||
|
"./dist/mjs/utils/collection.node.js": "./dist/mjs/utils/collection.browser.js",
|
||
|
"./src/utils/collection.node.ts": "./src/utils/collection.browser.ts"
|
||
|
},
|
||
|
"files": [
|
||
|
"dist"
|
||
|
],
|
||
|
"scripts": {
|
||
|
"prepublishOnly": "cross-env NODE_ENV=production npm run build",
|
||
|
"build": "rimraf dist && npm run build:node && npm run build:types && npm run build:browser",
|
||
|
"build:node": "tsc -p tsconfig.json && tsc -p tsconfig-mjs.json && ./build-fixup && babel --plugins \"babel-plugin-add-import-extension\" --out-dir dist/mjs/ dist/mjs/",
|
||
|
"build:types": "tsc --emitDeclarationOnly --declaration --outDir dist/types",
|
||
|
"build:browser": "webpack --progress",
|
||
|
"mock-ci": "npm run lint:check && npm run check:types && npm run test",
|
||
|
"test": "npm run build:browser && jest --verbose --selectProjects=node:unit node:integration dom:integration --config=jest.config.ts",
|
||
|
"test:integration:browser": "npm run build:browser && jest --verbose --selectProjects=dom:integration --config=jest.config.ts",
|
||
|
"test:integration:node": "jest --verbose --selectProjects=node:integration --config=jest.config.ts",
|
||
|
"test:integration": "npm run build:browser && jest --verbose --selectProjects=node:integration dom:integration --config=jest.config.ts",
|
||
|
"test:unit": "jest --verbose --selectProjects=node:unit --config=jest.config.ts ",
|
||
|
"test:node": "jest --verbose --selectProjects=node:unit node:integration --config=jest.config.ts",
|
||
|
"test:browser": "npm run test:integration:browser",
|
||
|
"check:types": "tsc --project tsconfig.test.json",
|
||
|
"lint": "eslint --fix \"src/**/*.ts\" \"test/**/*.ts\" && prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
||
|
"lint:check": "eslint \"src/**/*.ts\" \"test/**/*.ts\" && prettier --check \"src/**/*.ts\" \"test/**/*.ts\"",
|
||
|
"depcheck": "depcheck .",
|
||
|
"bee": "bee-factory start"
|
||
|
},
|
||
|
"dependencies": {
|
||
|
"@ethersphere/swarm-cid": "^0.1.0",
|
||
|
"@types/readable-stream": "^2.3.13",
|
||
|
"bufferutil": "^4.0.6",
|
||
|
"elliptic": "^6.5.4",
|
||
|
"fetch-blob": "2.1.2",
|
||
|
"isomorphic-ws": "^4.0.1",
|
||
|
"js-sha3": "^0.8.0",
|
||
|
"ky": "^0.25.1",
|
||
|
"ky-universal": "^0.8.2",
|
||
|
"semver": "^7.3.5",
|
||
|
"tar-js": "^0.3.0",
|
||
|
"utf-8-validate": "^5.0.9",
|
||
|
"web-streams-polyfill": "^4.0.0-beta.1",
|
||
|
"ws": "^8.6.0"
|
||
|
},
|
||
|
"devDependencies": {
|
||
|
"@babel/cli": "^7.17.10",
|
||
|
"@babel/core": "^7.17.9",
|
||
|
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
||
|
"@babel/plugin-transform-runtime": "^7.17.0",
|
||
|
"@babel/preset-env": "^7.17.10",
|
||
|
"@babel/preset-typescript": "^7.14.5",
|
||
|
"@commitlint/cli": "^16.2.3",
|
||
|
"@commitlint/config-conventional": "^16.2.1",
|
||
|
"@ethersphere/bee-factory": "^0.4.1",
|
||
|
"@fluffy-spoon/substitute": "^1.208.0",
|
||
|
"@jest/test-sequencer": "^27.5.0",
|
||
|
"@jest/types": "^27.5.1",
|
||
|
"@types/content-disposition": "^0.5.4",
|
||
|
"@types/debug": "^4.1.7",
|
||
|
"@types/elliptic": "^6.4.14",
|
||
|
"@types/expect-puppeteer": "^4.4.7",
|
||
|
"@types/glob": "^7.2.0",
|
||
|
"@types/jest": "^26.0.23",
|
||
|
"@types/jest-environment-puppeteer": "^4.4.1",
|
||
|
"@types/node": "^15.12.4",
|
||
|
"@types/puppeteer": "^5.4.5",
|
||
|
"@types/semver": "^7.3.9",
|
||
|
"@types/ws": "^8.5.3",
|
||
|
"@typescript-eslint/eslint-plugin": "^5.10.0",
|
||
|
"@typescript-eslint/parser": "^5.26.0",
|
||
|
"babel-jest": "^28.1.0",
|
||
|
"babel-loader": "^8.2.5",
|
||
|
"babel-plugin-add-import-extension": "^1.6.0",
|
||
|
"cross-blob": "^2.0.1",
|
||
|
"cross-env": "^7.0.3",
|
||
|
"debug": "^4.3.4",
|
||
|
"depcheck": "^1.4.3",
|
||
|
"eslint": "^8.13.0",
|
||
|
"eslint-config-prettier": "^8.5.0",
|
||
|
"eslint-plugin-jest": "^25.7.0",
|
||
|
"eslint-plugin-prettier": "^4.0.0",
|
||
|
"eslint-plugin-unused-imports": "^2.0.0",
|
||
|
"glob": "^8.0.1",
|
||
|
"husky": "^8.0.1",
|
||
|
"jest": "^27.5.1",
|
||
|
"jest-puppeteer": "^6.1.0",
|
||
|
"nock": "^13.2.4",
|
||
|
"prettier": "^2.6.2",
|
||
|
"puppeteer": "^14.1.0",
|
||
|
"rimraf": "^3.0.2",
|
||
|
"terser-webpack-plugin": "^5.3.1",
|
||
|
"ts-node": "^10.7.0",
|
||
|
"typescript": "^4.5.4",
|
||
|
"webpack": "^5.72.0",
|
||
|
"webpack-bundle-analyzer": "^4.5.0",
|
||
|
"webpack-cli": "^4.9.2"
|
||
|
},
|
||
|
"engines": {
|
||
|
"node": ">=12.0.0",
|
||
|
"npm": ">=6.0.0",
|
||
|
"beeApiVersion": "3.0.1",
|
||
|
"beeDebugApiVersion": "2.0.1",
|
||
|
"bee": "1.6.0-6ceadd35"
|
||
|
}
|
||
|
}
|