{ "name": "@tbd54566975/dwn-sdk-js", "version": "0.3.5", "description": "A reference implementation of https://identity.foundation/decentralized-web-node/spec/", "repository": { "type": "git", "url": "git+https://github.com/TBD54566975/dwn-sdk-js.git" }, "license": "Apache-2.0", "homepage": "https://github.com/TBD54566975/dwn-sdk-js#readme", "bugs": { "url": "https://github.com/TBD54566975/dwn-sdk-js/issues" }, "contributors": [ { "name": "Daniel Buchner", "url": "https://github.com/csuwildcat" }, { "name": "Diane Huxley", "url": "https://github.com/diehuxx" }, { "name": "Henry Tsai", "url": "https://github.com/thehenrytsai" }, { "name": "Moe Jangda", "url": "https://github.com/mistermoe" }, { "name": "Liran Cohen", "url": "https://github.com/LiranCohen" } ], "type": "module", "@comment files": [ "the files property informs npm about which files we want to include in our published package.", "dist will include all transpiled js. There's no point in including .ts files" ], "files": [ "dist", "src" ], "engines": { "node": ">= 18" }, "main": "./dist/cjs/index.js", "module": "./dist/esm/src/index.js", "types": "./dist/types/src/index.d.ts", "exports": { ".": { "import": "./dist/esm/src/index.js", "require": "./dist/cjs/index.js", "types": "./dist/types/src/index.d.ts" }, "./tests": { "import": "./dist/esm/tests/test-suite.js", "types": "./dist/types/tests/test-suite.d.ts" } }, "react-native": "./dist/esm/src/index.js", "dependencies": { "@ipld/dag-cbor": "9.0.3", "@js-temporal/polyfill": "0.4.4", "@noble/ciphers": "0.5.3", "@noble/ed25519": "2.0.0", "@noble/secp256k1": "2.0.0", "@web5/dids": "1.1.0", "abstract-level": "1.0.3", "ajv": "8.12.0", "blockstore-core": "4.2.0", "cross-fetch": "4.0.0", "eciesjs": "0.4.5", "interface-blockstore": "5.2.3", "interface-store": "5.1.2", "ipfs-unixfs-exporter": "13.1.5", "ipfs-unixfs-importer": "15.1.5", "level": "8.0.0", "lodash": "4.17.21", "lru-cache": "9.1.2", "ms": "2.1.3", "multiformats": "11.0.2", "randombytes": "2.1.0", "readable-stream": "4.5.2", "ulidx": "2.1.0", "uuid": "8.3.2", "varint": "6.0.0" }, "devDependencies": { "@types/chai": "4.3.0", "@types/chai-as-promised": "7.1.5", "@types/flat": "^5.0.2", "@types/karma": "^6.3.3", "@types/lodash": "4.14.179", "@types/mocha": "9.1.0", "@types/ms": "0.7.31", "@types/node": "^18.13.0", "@types/randombytes": "2.0.0", "@types/readable-stream": "4.0.10", "@types/secp256k1": "4.0.3", "@types/sinon": "10.0.11", "@types/uuid": "^9.0.1", "@types/varint": "6.0.0", "@typescript-eslint/eslint-plugin": "^7.8.0", "@typescript-eslint/parser": "^7.8.0", "c8": "^8.0.0", "chai": "4.3.6", "chai-as-promised": "7.1.1", "cross-env": "7.0.3", "esbuild": "0.16.17", "eslint": "^9.2.0", "eslint-plugin-todo-plz": "1.3.0", "events": "3.3.0", "istanbul-badges-readme": "1.8.1", "karma": "6.4.1", "karma-chai": "0.1.0", "karma-chrome-launcher": "3.1.1", "karma-esbuild": "2.2.5", "karma-firefox-launcher": "2.1.2", "karma-mocha": "2.0.1", "karma-mocha-reporter": "2.2.5", "karma-webkit-launcher": "2.1.0", "license-report": "6.3.0", "madge": "^6.1.0", "mkdirp": "1.0.4", "mocha": "10.1.0", "mockdate": "3.0.5", "ms": "2.1.3", "node-stdlib-browser": "1.2.0", "playwright": "^1.44.0", "rimraf": "^3.0.2", "search-index": "3.4.0", "sinon": "13.0.1", "ts-sinon": "^2.0.2", "typescript": "^5.1.6", "util": "0.12.4" }, "overrides": { "c8": { "istanbul-lib-report": { "make-dir": "^4.0.0" } }, "@typescript-eslint/eslint-plugin": { "eslint": "^9.2.0" } }, "scripts": { "build:esm": "tsc", "build:cjs": "npm run build:esm && node build/create-cjs-bundle.cjs && echo '{\"type\": \"commonjs\"}' > ./dist/cjs/package.json", "build": "npm run clean && npm run compile-validators && npm run build:esm && npm run build:cjs && npm run bundle", "bundle": "node ./build/create-browser-bundle.cjs", "clean": "rimraf dist && rimraf generated/*", "compile-validators": "node ./build/compile-validators.js", "lint": "eslint . --max-warnings 0", "lint:fix": "eslint . --fix", "madge": "madge --circular ./src/index.ts", "test:node": "npm run compile-validators && tsc && c8 mocha \"dist/esm/tests/**/*.spec.js\"", "test:browser": "npm run compile-validators && cross-env karma start karma.conf.cjs", "test:browser-debug": "npm run compile-validators && cross-env karma start karma.conf.debug.cjs", "license-check": "license-report --only=prod > license-report.json && node ./build/license-check.cjs", "publish:unstable": "./build/publish-unstable.sh" } }