UNPKG

@zeushq/nextjs-zidentity

Version:

Next.js SDK for signin in with Zeus Identity

162 lines (161 loc) 5.33 kB
{ "name": "@zeushq/nextjs-zidentity", "description": "Next.js SDK for signin in with Zeus Identity", "version": "1.0.8", "main": "dist/index.js", "types": "dist/index.d.ts", "browser": "dist/index.browser.js", "directories": { "test": "tests" }, "files": [ "dist", "src" ], "engines": { "node": "^10.13.0 || >=12.0.0" }, "scripts": { "clean": "rimraf dist", "pretty": "prettier --write \"src/**/*.{ts,tsx}\" \"src/*.ts\"", "pretty:basic": "prettier --write \"examples/basic-example/**/*.{ts,tsx}\" \"examples/basic-example/*.ts\"", "pretty:kitchen-sink": "prettier --write \"examples/kitchen-sink-example/**/*.{ts,tsx}\" \"examples/kitchen-sink-example/*.ts\"", "lint": "tsc --noEmit && eslint --fix --ext .ts ./src", "lint:basic": "tsc --noEmit && eslint --fix --ext .ts ./examples/basic-example", "lint:kitchen-sink": "tsc --noEmit && eslint --fix --ext .ts ./examples/kitchen-sink-example", "docs": "typedoc --options typedoc.js src", "prepack": "npm run build", "install:basic": "npm i --prefix=examples/basic-example --no-package-lock", "install:kitchen-sink": "npm i --prefix=examples/kitchen-sink-example --no-package-lock", "install:examples": "npm run install:basic && npm run install:kitchen-sink", "build": "npm run clean && tsc -p tsconfig.build.json", "build:test": "next build tests/fixtures/test-app", "build:basic": "npm run build --prefix=examples/basic-example", "build:kitchen-sink": "npm run build --prefix=examples/kitchen-sink-example", "build:examples": "npm run build:basic && npm run build:kitchen-sink", "build:vercel": "npm run install:kitchen-sink && npm run build && npm run build:kitchen-sink", "start:basic": "npm run dev --prefix=examples/basic-example", "start:kitchen-sink": "npm run dev --prefix=examples/kitchen-sink-example", "start:kitchen-sink-local": "npm run dev:local --prefix=examples/kitchen-sink-example", "test": "jest tests --coverage --maxWorkers=10", "test:watch": "jest --coverage --watch", "test:kitchen-sink": "start-server-and-test start:kitchen-sink http-get://localhost:3000 cypress:run", "test:kitchen-sink:watch": "start-server-and-test start:kitchen-sink 3000 cypress:open", "cypress:run": "cypress run", "cypress:open": "cypress open" }, "repository": { "type": "git", "url": "git+https://github.com/zeushq/nextjs-zidentity.git" }, "keywords": [ "zeus", "zidentity", "next.js", "react", "oidc", "authentication" ], "author": "Zeus (https://zeusdev.io)", "license": "MIT", "bugs": { "url": "https://github.com/zeushq/nextjs-zidentity/issues" }, "homepage": "https://github.com/zeushq/nextjs-zidentity#readme", "dependencies": { "base64url": "^3.0.1", "cookie": "^0.4.1", "debug": "^4.3.2", "futoin-hkdf": "^1.4.2", "http-errors": "^1.8.0", "joi": "^17.4.1", "jose": "^2.0.5", "on-headers": "^1.0.2", "openid-client": "^4.7.5", "tslib": "^2.3.1", "url-join": "^4.0.1" }, "peerDependencies": { "next": ">=12" }, "devDependencies": { "@testing-library/jest-dom": "^5.11.9", "@testing-library/react": "^11.2.3", "@testing-library/react-hooks": "^5.0.3", "@types/body-parser": "^1.19.0", "@types/clone": "^2.1.0", "@types/cookie": "^0.4.0", "@types/debug": "^4.1.5", "@types/http-errors": "^1.8.0", "@types/jest": "^27.0.1", "@types/jsonwebtoken": "^8.5.0", "@types/node": "^14.14.20", "@types/on-headers": "^1.0.0", "@types/react": "^17.0.20", "@types/react-dom": "^17.0.9", "@types/tough-cookie": "^4.0.0", "@types/url-join": "^4.0.0", "@types/webpack": "^4.41.26", "@typescript-eslint/eslint-plugin": "^4.13.0", "@typescript-eslint/parser": "^4.13.0", "body-parser": "^1.19.0", "browserstack-cypress-cli": "^1.8.1", "cypress": "^8.4.0", "eslint": "^7.17.0", "eslint-config-prettier": "^8.1.0", "eslint-import-resolver-typescript": "^2.3.0", "eslint-plugin-import": "^2.22.1", "eslint-plugin-jsx-a11y": "^6.4.1", "eslint-plugin-prettier": "^3.3.1", "eslint-plugin-react": "^7.22.0", "eslint-plugin-react-hooks": "^4.2.0", "jest": "^27.2.0", "next": "^12.2.2", "nock": "^13.0.5", "oidc-provider": "^7.6.0", "prettier": "^2.2.1", "react": "^18.2.0", "react-dom": "^18.2.0", "react-test-renderer": "^17.0.1", "rimraf": "^3.0.2", "start-server-and-test": "^1.11.7", "timekeeper": "^2.2.0", "tough-cookie": "^4.0.0", "ts-jest": "^27.0.5", "typedoc": "^0.20.14", "typescript": "^4.1.3" }, "jest": { "testEnvironment": "node", "rootDir": "tests", "moduleFileExtensions": [ "ts", "tsx", "js" ], "collectCoverageFrom": [ "src/**/*.*", "!src/index.browser.ts", "!src/index.ts", "!src/handlers/auth.ts" ], "coverageReporters": [ "lcov", "text", "text-summary" ], "coverageThreshold": { "global": { "branches": 100, "functions": 100, "lines": 100, "statements": 100 } }, "preset": "ts-jest", "globalSetup": "./global-setup.ts", "setupFilesAfterEnv": [ "./setup.ts" ] } }