{
  "name": "@dwn-protocol/id",
  "version": "0.1.6",
  "description": "ID Dwn Protocol - https://identity.foundation/decentralized-web-node/spec/",
  "packageManager": "bun@1.3.1",
  "type": "module",
  "engines": {
    "node": ">=20.3.0"
  },
  "main": "./dist/cjs/index.js",
  "module": "./dist/esm/src/index.js",
  "types": "./dist/types/src/index.d.ts",
  "exports": {
    ".": {
      "types": "./dist/types/src/index.d.ts",
      "browser": "./dist/bundles/dwn.js",
      "import": "./dist/esm/src/index.js",
      "require": "./dist/cjs/index.js"
    },
    "./stores": {
      "import": "./dist/esm/src/index-stores.js",
      "require": "./dist/cjs/index-stores.js",
      "types": "./dist/types/src/index-stores.d.ts"
    },
    "./tests": {
      "import": "./dist/esm/tests/test-suite.js",
      "types": "./dist/types/tests/test-suite.d.ts"
    }
  },
  "@comment files": [
    "the files property informs npm about which files included in the published package.",
    "dist will include all transpiled js."
  ],
  "files": [
    "dist"
  ],
  "@comment react-native": [
    "directive for metro (react native build tool)."
  ],
  "react-native": "./dist/cjs/index.js",
  "resolutions": {
    "multiformats": "11.0.2",
    "interface-blockstore": "5.2.3",
    "interface-store": "5.1.2",
    "make-dir": "^4.0.0"
  },
  "scripts": {
    "build:esm": "tsc",
    "build:cjs": "bun run build:esm && node build/create-cjs-bundle.cjs && echo '{\"type\": \"commonjs\"}' > ./dist/cjs/package.json",
    "build": "bun run clean && bun run compile-validators && bun run build:esm && bun run build:cjs && bun run bundle",
    "bundle": "node ./build/create-browser-bundle.cjs",
    "clean": "rimraf dist && rimraf generated/*",
    "compile-validators": "node ./build/compile-validators.js",
    "lint": "eslint . --ext .ts --max-warnings 0",
    "lint:fix": "eslint . --ext .ts --fix",
    "make-coverage-badges": "istanbul-badges-readme",
    "make-coverage-badges:ci": "bun run make-coverage-badges -- --ci",
    "test:node": "bun run compile-validators && tsc && c8 mocha \"dist/esm/tests/**/*.spec.js\" && bun run make-coverage-badges",
    "test:node:ci": "bun run compile-validators && tsc && c8 mocha \"dist/esm/tests/**/*.spec.js\"",
    "test:browser": "bun run compile-validators && cross-env karma start karma.conf.cjs",
    "test:browser-debug": "bun 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",
    "docs": "rimraf docs && bunx typedoc src/index.ts --out docs/"
  },
  "dependencies": {
    "@ipld/dag-cbor": "9.0.3",
    "@js-temporal/polyfill": "0.4.4",
    "@noble/ed25519": "2.0.0",
    "@noble/secp256k1": "2.0.0",
    "@scure/base": "1.1.1",
    "@swc/helpers": "0.3.8",
    "abstract-level": "1.0.3",
    "ajv": "8.12.0",
    "blockstore-core": "4.2.0",
    "cross-fetch": "4.0.0",
    "dns-packet": "5.6.1",
    "eciesjs": "0.4.5",
    "flat": "5.0.2",
    "interface-blockstore": "5.2.3",
    "interface-store": "5.1.2",
    "ipfs-unixfs-exporter": "13.1.5",
    "ipfs-unixfs-importer": "15.1.5",
    "jose": "^4.14.4",
    "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.4.0",
    "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": "2.3.15",
    "@types/secp256k1": "4.0.3",
    "@types/sinon": "10.0.11",
    "@types/uuid": "^9.0.1",
    "@types/varint": "6.0.0",
    "@typescript-eslint/eslint-plugin": "^5.61.0",
    "@typescript-eslint/parser": "^5.61.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": "^8.43.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",
    "mkdirp": "1.0.4",
    "mocha": "10.1.0",
    "mockdate": "3.0.5",
    "node-stdlib-browser": "1.2.0",
    "playwright": "1.29.2",
    "rimraf": "^3.0.2",
    "search-index": "3.4.0",
    "sinon": "13.0.1",
    "ts-sinon": "^2.0.2",
    "typedoc": "^0.24.3",
    "typescript": "^5.1.6",
    "util": "0.12.4"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/d-protocol/id.git"
  },
  "author": {
    "name": "John",
    "email": "john@dwn.id"
  },
  "contributors": [],
  "license": "Apache-2.0",
  "bugs": {
    "url": "https://github.com/d-protocol/id/issues"
  },
  "homepage": "https://github.com/d-protocol/id#readme"
}
