{
  "name": "megalodon",
  "version": "10.3.0",
  "description": "Fediverse API client for node.js and browser",
  "type": "module",
  "main": "./lib/cjs/index.js",
  "module": "./lib/esm/index.js",
  "types": "./lib/esm/index.d.ts",
  "scripts": {
    "build": "yarn build:cjs && yarn build:esm",
    "build:cjs": "tsc -p tsconfig.cjs.json",
    "build:esm": "tsc -p tsconfig.esm.json",
    "lint": "eslint src --ext .ts,.js",
    "doc": "typedoc --out ../docs ./src --tsconfig tsconfig.cjs.json",
    "test": "NODE_ENV=test jest -u --maxWorkers=3"
  },
  "engines": {
    "node": ">=22.21.1"
  },
  "files": [
    "/lib"
  ],
  "exports": {
    ".": {
      "require": {
        "types": "./lib/cjs/index.d.ts",
        "default": "./lib/cjs/index.js"
      },
      "import": {
        "types": "./lib/esm/index.d.ts",
        "default": "./lib/esm/index.js"
      }
    }
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/h3poteto/megalodon.git"
  },
  "keywords": [
    "mastodon",
    "client",
    "api",
    "streaming",
    "rest",
    "activitypub",
    "federated",
    "fediverse"
  ],
  "author": "h3poteto",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/h3poteto/megalodon/issues"
  },
  "jest": {
    "moduleFileExtensions": [
      "ts",
      "js"
    ],
    "extensionsToTreatAsEsm": [
      ".ts"
    ],
    "moduleNameMapper": {
      "^@/(.+)": "<rootDir>/src/$1",
      "^~/(.+)": "<rootDir>/$1"
    },
    "testMatch": [
      "**/test/**/*.spec.ts"
    ],
    "preset": "ts-jest/presets/default",
    "transform": {
      "^.+\\.(ts|tsx)$": [
        "ts-jest",
        {
          "useESM": true,
          "tsconfig": "tsconfig.test.json"
        }
      ]
    },
    "testEnvironment": "node",
    "resolver": "ts-jest-resolver"
  },
  "homepage": "https://github.com/h3poteto/megalodon#readme",
  "dependencies": {
    "@badgateway/oauth2-client": "^2.4.2",
    "@types/ws": "^8.18.1",
    "axios": "1.15.0",
    "dayjs": "^1.11.13",
    "events": "^3.3.0",
    "form-data": "^4.0.5",
    "isomorphic-ws": "^5.0.0",
    "object-assign-deep": "^0.4.0",
    "uuid": "^11.1.0",
    "ws": "8.19.0"
  },
  "devDependencies": {
    "@eslint/eslintrc": "^3.3.1",
    "@eslint/js": "^9.39.1",
    "@types/jest": "^30.0.0",
    "@types/object-assign-deep": "^0.4.3",
    "@typescript-eslint/eslint-plugin": "^8.36.0",
    "@typescript-eslint/parser": "^8.36.0",
    "eslint": "^9.39.1",
    "eslint-config-prettier": "^10.1.8",
    "eslint-plugin-prettier": "^5.5.4",
    "globals": "^16.5.0",
    "jest": "^30.0.4",
    "jest-worker": "^30.0.2",
    "lodash": "^4.17.21",
    "prettier": "^3.6.2",
    "ts-jest": "^29.4.0",
    "ts-jest-resolver": "^2.0.1",
    "typedoc": "^0.28.14",
    "typescript": "5.4.5"
  }
}