{
  "name": "@magicnewton/newton-protocol-sdk",
  "version": "0.9.0",
  "description": "Official SDK for the Newton Protocol.",
  "author": "Newton Protocol <https://x.com/newton_xyz> (https://newton.xyz)",
  "private": false,
  "publishConfig": {
    "access": "public"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/newt-foundation/newton-sdk.git"
  },
  "license": "Apache-2.0",
  "homepage": "https://newton.xyz",
  "type": "commonjs",
  "target": "browser",
  "cdnGlobalName": "NewtonSdk",
  "main": "./dist/cjs/index.js",
  "module": "./dist/es/index.mjs",
  "types": "./dist/types/index.d.ts",
  "exports": {
    ".": {
      "types": {
        "import": "./dist/types/index.d.mts",
        "require": "./dist/types/index.d.ts"
      },
      "import": "./dist/es/index.mjs",
      "require": "./dist/cjs/index.js"
    },
    "./types": {
      "types": {
        "import": "./dist/types/types/index.d.mts",
        "require": "./dist/types/types/index.d.ts"
      },
      "import": "./dist/es/types/index.mjs",
      "require": "./dist/cjs/types/index.js"
    }
  },
  "files": [
    "dist"
  ],
  "engines": {
    "node": ">=20",
    "pnpm": ">=9"
  },
  "scripts": {
    "preinstall": "npx only-allow pnpm",
    "prepare": "simple-git-hooks",
    "build": "rollup -c rollup.config.mjs",
    "lint": "biome check src/",
    "lint:fix": "biome check --write src/",
    "format": "biome format --write src/",
    "format:check": "biome format src/",
    "typecheck": "tsc --noEmit",
    "test": "vitest run --passWithNoTests",
    "test:typecheck": "vitest --config vitest.typecheck.config.ts --passWithNoTests",
    "test:watch": "vitest",
    "test:coverage": "vitest run --coverage",
    "sync-abis": "./scripts/sync-abis.sh",
    "clean": "rimraf dist && rimraf node_modules",
    "check:exports": "publint",
    "check:size": "size-limit",
    "check:unused": "knip",
    "check:types-resolution": "attw --pack . --entrypoints . --ignore-rules=unexpected-module-syntax",
    "check:all": "pnpm check:exports && pnpm check:size && pnpm check:types-resolution",
    "docs:dev": "cd site && mintlify dev",
    "docs:check": "./scripts/check-docs-twoslash.sh",
    "docs:broken-links": "cd site && mintlify broken-links"
  },
  "auto": {
    "plugins": [
      "npm",
      "released",
      "conventional-commits"
    ]
  },
  "devDependencies": {
    "@arethetypeswrong/cli": "^0.17.4",
    "@auto-it/conventional-commits": "^11.3.0",
    "@biomejs/biome": "^1.9.4",
    "@rollup/plugin-node-resolve": "^16.0.1",
    "@size-limit/file": "^11.2.0",
    "@types/rimraf": "^4.0.5",
    "auto": "^11.3.0",
    "builtin-modules": "^4.0.0",
    "knip": "^5.86.0",
    "publint": "^0.3.18",
    "rimraf": "^6.0.1",
    "rollup": "^4.48.1",
    "rollup-plugin-esbuild": "^6.1.1",
    "rollup-plugin-node-externals": "^8.1.0",
    "rollup-plugin-tsc-alias": "^1.1.4",
    "rollup-plugin-typescript2": "^0.36.0",
    "simple-git-hooks": "^2.11.1",
    "size-limit": "^11.2.0",
    "ts-node": "^10.9.2",
    "twoslash-cli": "^1.3.24",
    "typescript": "^5.4.5",
    "vitest": "^3.1.1"
  },
  "dependencies": {
    "@hpke/chacha20poly1305": "^1.7.1",
    "@hpke/core": "^1.8.0",
    "@hpke/dhkem-x25519": "^1.7.0",
    "@noble/curves": "^2.0.1",
    "eventemitter3": "^4.0.4",
    "jose": "^6.0.13",
    "viem": "^2.35.1"
  },
  "simple-git-hooks": {
    "pre-commit": "pnpm lint"
  },
  "externals": {
    "exclude": [
      "eventemitter3",
      "localforage"
    ]
  },
  "pnpm": {
    "overrides": {
      "vite": "^6.0.0"
    }
  },
  "size-limit": [
    {
      "path": "dist/es/index.mjs",
      "limit": "50 kB"
    },
    {
      "path": "dist/cjs/index.js",
      "limit": "50 kB"
    }
  ]
}
