@alessiofrittoli/next-api
Version:
Next.js API utility library
158 lines • 5.57 kB
JSON
{
"name": "@alessiofrittoli/next-api",
"version": "0.12.0",
"description": "Next.js API utility library",
"author": {
"name": "Alessio Frittoli",
"email": "info@alessiofrittoli.it",
"url": "https://alessiofrittoli.it"
},
"license": "MIT",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/alessiofrittoli"
}
],
"keywords": [
"next",
"next.js",
"next-server"
],
"homepage": "https://github.com/alessiofrittoli/next-api#readme",
"bugs": {
"url": "https://github.com/alessiofrittoli/next-api/issues",
"email": "info@alessiofrittoli.it"
},
"repository": {
"type": "git",
"url": "git+https://github.com/alessiofrittoli/next-api.git"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"scripts/postinstall"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./error": {
"types": "./dist/error/index.d.ts",
"import": "./dist/error/index.mjs",
"require": "./dist/error/index.js"
},
"./middlewares": {
"types": "./dist/middlewares/index.d.ts",
"import": "./dist/middlewares/index.mjs",
"require": "./dist/middlewares/index.js"
},
"./page-wrappers": {
"types": "./dist/page-wrappers/index.d.ts",
"import": "./dist/page-wrappers/index.mjs",
"require": "./dist/page-wrappers/index.js"
},
"./request": {
"types": "./dist/request/index.d.ts",
"import": "./dist/request/index.mjs",
"require": "./dist/request/index.js"
},
"./response": {
"types": "./dist/response/index.d.ts",
"import": "./dist/response/index.mjs",
"require": "./dist/response/index.js"
},
"./route-wrappers": {
"types": "./dist/route-wrappers/index.d.ts",
"import": "./dist/route-wrappers/index.mjs",
"require": "./dist/route-wrappers/index.js"
},
"./types": {
"types": "./dist/types/index.d.ts"
},
"./utils": {
"types": "./dist/utils/index.d.ts",
"import": "./dist/utils/index.mjs",
"require": "./dist/utils/index.js"
}
},
"sideEffects": false,
"peerDependencies": {
"@types/react": ">=19",
"@types/react-dom": ">=19",
"next": ">=15",
"react": ">=19",
"react-dom": ">=19"
},
"devDependencies": {
"@eslint/compat": "^1.2.9",
"@eslint/eslintrc": "^3.3.1",
"@jest/globals": "^29.7.0",
"@next/eslint-plugin-next": "^15.3.1",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.3.0",
"@types/jest": "^29.5.14",
"@types/node": "^22.15.3",
"@types/react": ">=19",
"@types/react-dom": ">=19",
"concurrently": "^9.1.2",
"dotenv": "^16.5.0",
"eslint": "^9.25.1",
"eslint-config-next": "^15.3.1",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-server-components": "^1.2.0",
"http-server": "^14.1.1",
"jest": "^29.7.0",
"next": ">=15.3.1",
"react": ">=19",
"react-dom": ">=19",
"ts-jest": "^29.3.2",
"ts-node": "^10.9.2",
"tsup": "^8.4.0",
"typescript": "^5.8.3"
},
"dependencies": {
"@alessiofrittoli/chain-functions": "^2.3.0",
"@alessiofrittoli/exception": "^3.2.0",
"@alessiofrittoli/node-scripts": "^2.5.0",
"@alessiofrittoli/stream-reader": "^2.5.0",
"@alessiofrittoli/type-utils": "^1.8.0",
"@alessiofrittoli/url-utils": "^3.4.0",
"@alessiofrittoli/web-utils": "^1.10.0"
},
"scripts": {
"//1a": "*********************************************************************",
"//1b": "******************** DEV - BUILD - LINT - RELEASE *******************",
"//1c": "*********************************************************************",
"dev": "NODE_ENV=development tsup --watch",
"build:prod": "NODE_ENV=production tsup",
"build": "pnpm lint && pnpm test:ci && pnpm build:prod",
"lint": "eslint",
"postinstall": "node scripts/postinstall/index.js",
"release": "node scripts/publish.js --verbose --npm",
"//2a": "*********************************************************************",
"//2b": "***************************** UNIT TESTS ****************************",
"//2c": "*********************************************************************",
"test": "jest --verbose",
"test:watch": "jest --watchAll --verbose",
"test:ci": "jest --ci --verbose",
"//3a": "*********************************************************************",
"//3b": "************************ UNIT TESTS COVERAGE ************************",
"//3c": "*********************************************************************",
"test:coverage": "pnpm test:watch --coverage",
"test:coverage:ci": "pnpm test:ci --coverage",
"test:serve-coverage": "http-server ./coverage/lcov-report --gzip true -p 0 -o --silent",
"test:coverage:serve": "concurrently --prefix none --kill-others \"pnpm test:coverage\" \"pnpm test:serve-coverage\"",
"//4a": "*********************************************************************",
"//4b": "************************ TARGETED UNIT TESTS ************************",
"//4c": "*********************************************************************",
"test:route-wrappers": "pnpm test:watch route-wrappers/*",
"test:utils": "pnpm test:watch utils/*",
"test:request": "pnpm test:watch request.test.ts",
"test:response": "pnpm test:watch response/*"
}
}