UNPKG

next-connect

Version:

The method routing and middleware layer for Next.js (and many others)

80 lines (79 loc) 2.01 kB
{ "name": "next-connect", "version": "1.0.0", "description": "The method routing and middleware layer for Next.js (and many others)", "keywords": [ "javascript", "nextjs", "middleware", "router", "connect" ], "type": "module", "files": [ "dist" ], "exports": { "import": { "types": "./dist/types/index.d.ts", "default": "./dist/esm/index.js" }, "require": { "types": "./dist/types/index.d.ts", "default": "./dist/commonjs/index.cjs" } }, "main": "./dist/commonjs/index.cjs", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "sideEffects": false, "scripts": { "build": "tscd --entry index.js", "test": "c8 tap", "prepublishOnly": "npm run clean && npm run test && npm run build", "coverage": "c8 report --reporter=lcov", "lint": "eslint ./src --ext json,ts --ignore-path .gitignore", "format": "prettier . -w --ignore-path ./.gitignore", "clean": "rm -rf ./dist" }, "repository": { "type": "git", "url": "git+https://github.com/hoangvvo/next-connect.git" }, "author": "Hoang Vo (https://www.hoangvvo.com)", "bugs": { "url": "https://github.com/hoangvvo/next-connect/issues" }, "homepage": "https://github.com/hoangvvo/next-connect#readme", "license": "MIT", "devDependencies": { "@types/node": "^18.16.3", "@types/tap": "^15.0.8", "@typescript-eslint/eslint-plugin": "^5.59.2", "@typescript-eslint/parser": "^5.59.2", "c8": "^7.13.0", "eslint": "^8.39.0", "eslint-config-prettier": "^8.8.0", "eslint-plugin-prettier": "^4.2.1", "prettier": "^2.8.8", "tap": "^16.3.4", "tinyspy": "^2.1.0", "ts-node": "^10.9.1", "tscd": "^0.0.5", "typescript": "^5.0.4" }, "tap": { "node-arg": [ "--loader", "ts-node/esm" ], "coverage": false }, "dependencies": { "@tsconfig/node16": "^1.0.3", "regexparam": "^2.0.1" }, "engines": { "node": ">=16" } }