trufflesuite/truffle

View on GitHub
packages/db/package.json

Summary

Maintainability
Test Coverage
{
  "name": "@truffle/db",
  "description": "Smart contract data aggregation",
  "license": "MIT",
  "author": "g. nicholas d'andrea <gnidan@users.noreply.github.com>",
  "homepage": "https://github.com/trufflesuite/truffle/tree/master/packages/db#readme",
  "repository": {
    "type": "git",
    "url": "https://github.com/trufflesuite/truffle.git",
    "directory": "packages/db"
  },
  "bugs": {
    "url": "https://github.com/trufflesuite/truffle/issues"
  },
  "version": "2.0.36",
  "main": "dist/src/index.js",
  "files": [
    "dist",
    "types/schema.d.ts"
  ],
  "directories": {
    "dist": "dist"
  },
  "scripts": {
    "build": "yarn build:types && yarn build:dist && yarn build:docs",
    "build:dist": "ttsc",
    "build:docs": "typedoc",
    "build:types": "ts-node -r ./bin/register -r tsconfig-paths/register --project tsconfig.codegen.json ./bin/codegen.js",
    "clean": "rm -rf ./dist ./types/schema.d.ts",
    "madge": "madge ./src/index.ts",
    "prepare": "yarn build",
    "test": "jest --verbose --detectOpenHandles --forceExit"
  },
  "dependencies": {
    "@graphql-tools/delegate": "^8.4.3",
    "@graphql-tools/schema": "^8.3.1",
    "@truffle/abi-utils": "^1.0.3",
    "@truffle/code-utils": "^3.0.4",
    "@truffle/config": "^1.3.61",
    "abstract-leveldown": "^7.2.0",
    "apollo-server": "^3.11.0",
    "debug": "^4.3.1",
    "fs-extra": "^9.1.0",
    "graphql": "^15.3.0",
    "graphql-tag": "^2.12.6",
    "json-stable-stringify": "^1.0.1",
    "pascal-case": "^2.0.1",
    "pluralize": "^8.0.0",
    "pouchdb": "7.3.0",
    "pouchdb-adapter-memory": "^7.1.1",
    "pouchdb-debug": "^7.1.1",
    "pouchdb-find": "^7.0.0",
    "web3-utils": "1.10.0"
  },
  "devDependencies": {
    "@fast-check/jest": "^1.0.1",
    "@gql2ts/from-schema": "^2.0.0-4",
    "@graphql-tools/utils": "^8.5.5",
    "@truffle/compile-common": "^0.9.8",
    "@truffle/contract-schema": "^3.4.16",
    "@truffle/environment": "^0.2.160",
    "@truffle/resolver": "^9.0.53",
    "@types/debug": "^4.1.5",
    "@types/express": "^4.16.0",
    "@types/graphql": "^14.5.0",
    "@types/jest": "27.4.1",
    "@types/node": "~12.12.0",
    "@types/pluralize": "^0.0.29",
    "@types/pouchdb": "^6.4.0",
    "@types/pouchdb-adapter-leveldb": "^6.1.3",
    "@types/web3": "1.0.20",
    "change-case": "3.0.2",
    "fast-check": "3.1.1",
    "ganache": "7.9.1",
    "hkts": "^0.3.1",
    "jest": "29.1.2",
    "madge": "^6.1.0",
    "ts-jest": "29.0.3",
    "ts-node": "10.7.0",
    "tsconfig-paths": "^3.9.0",
    "ttypescript": "1.5.15",
    "typedoc": "0.24.8",
    "typescript": "^4.9.5",
    "typescript-transform-paths": "3.3.1",
    "web3": "1.10.0"
  },
  "keywords": [
    "database",
    "ethereum",
    "smart-contracts",
    "truffle"
  ],
  "publishConfig": {
    "access": "public"
  },
  "_moduleAliases": {
    "@truffle/db": "db/dist/src"
  },
  "jest": {
    "moduleFileExtensions": [
      "ts",
      "js",
      "json",
      "node"
    ],
    "testEnvironment": "node",
    "transform": {
      "^.+\\.ts$": "ts-jest"
    },
    "globals": {
      "ts-jest": {
        "tsconfig": "<rootDir>/tsconfig.json",
        "diagnostics": true
      }
    },
    "moduleNameMapper": {
      "^@truffle/db/(.*)": "<rootDir>/src/$1",
      "^@truffle/db$": "<rootDir>/src",
      "^test/(.*)": "<rootDir>/test/$1"
    },
    "testMatch": [
      "<rootDir>/src/**/test/index.(ts|js)",
      "<rootDir>/test/**/test/index.(ts|js)",
      "<rootDir>/src/**/test/*\\.(spec|test)\\.(ts|js)",
      "<rootDir>/test/**/test/*\\.(spec|test)\\.(ts|js)"
    ]
  },
  "engines": {
    "node": "^16.20 || ^18.16 || >=20"
  }
}