UNPKG

next-firebase-auth

Version:

Simple Firebase authentication for all Next.js rendering strategies

141 lines (140 loc) 4.87 kB
{ "name": "next-firebase-auth", "version": "1.4.0", "description": "Simple Firebase authentication for all Next.js rendering strategies", "keywords": [ "Next", "Next.js", "Firebase", "authentication", "ssr", "token" ], "browser": "build/index.browser.js", "main": "build/index.node.js", "types": "build/index.d.ts", "bin": { "codemod": "./build/codemod/codemod.js" }, "repository": "git@github.com:gladly-team/next-firebase-auth.git", "author": "Gladly Team", "license": "MIT", "scripts": { "build": "npm-run-all -s build:clean build:src build:types-declaration", "build:clean": "rm -rf ./build", "build:src": "NODE_ENV=production webpack", "build:types-declaration": "dts-bundle-generator ./src/index.server.ts --out-file ./build/index.d.ts", "lint": "tsc --noEmit && eslint ./", "bundlesize": "npm-run-all -s build bundlesize:no-build", "bundlesize:no-build": "bundlesize", "bundlesize:comment": "Uninstalled bundlesize for now because of https://github.com/siddharthkp/bundlesize/pull/370", "test": "npm-run-all -s install-example-deps lint test:coverage", "test:run": "jest --env=jsdom", "test:coverage": "yarn run test:run --coverage", "test:watch": "yarn run test:run --watch", "install-example-deps": "cd example && yarn", "dev:publish": "npm-run-all -s build dev:yalc-publish-push", "dev:yalc-publish-push": "yalc publish --push", "analyze-bundle": "WEBPACK_ANALYZE_BUNDLE=true yarn run build", "publish:experimental": "npm-run-all -s test build publish:experimental:version publish:experimental:release", "publish:experimental:release": "npm publish --tag experimental", "publish:experimental:version": "npm version $(echo $(echo $npm_package_version | cut -d \"-\" -f 1)-experimental.$(git rev-parse --short HEAD))" }, "scriptsComments": { "publish:experimental": "Be sure to run with npm, not yarn." }, "devDependencies": { "@babel/cli": "^7.23.4", "@babel/core": "^7.23.7", "@babel/plugin-transform-runtime": "^7.23.7", "@babel/preset-env": "^7.23.7", "@babel/preset-react": "^7.23.3", "@testing-library/react": "^14.1.2", "@testing-library/react-hooks": "^8.0.1", "@types/cookies": "^0.7.10", "@types/hoist-non-react-statics": "^3.3.5", "@types/jest": "^29.5.11", "@types/keygrip": "^1.0.6", "@types/set-cookie-parser": "^2.4.7", "@typescript-eslint/eslint-plugin": "^6.16.0", "@typescript-eslint/parser": "^6.16.0", "babel-jest": "^29.6.1", "babel-loader": "^9.1.3", "babel-plugin-module-resolver": "^5.0.0", "copy-webpack-plugin": "^11.0.0", "core-js": "^3.35.0", "datwd": "^0.2.0", "dts-bundle-generator": "^9.2.1", "eslint": "^8.56.0", "eslint-config-airbnb": "^19.0.4", "eslint-config-prettier": "^9.1.0", "eslint-import-resolver-alias": "^1.1.2", "eslint-import-resolver-typescript": "^3.5.5", "eslint-plugin-import": "^2.29.1", "eslint-plugin-jest": "^27.2.2", "eslint-plugin-jsx-a11y": "^6.6.1", "eslint-plugin-prettier": "^5.1.2", "eslint-plugin-react": "^7.30.1", "eslint-plugin-react-hooks": "^4.6.0", "firebase": "^10.0.0", "firebase-admin": "~11.4.0", "jest": "^29.6.1", "jest-environment-jsdom": "^29.6.1", "jscodeshift": "^0.15.0", "lodash": "^4.17.21", "mockdate": "^3.0.2", "moment": "^2.30.1", "next": "~13.3.0", "next-test-api-route-handler": "^3.1.6", "npm-run-all": "^4.1.5", "prettier": "^3.1.1", "react": "^18.2.0", "react-dom": "^18.2.0", "react-test-renderer": "^18.2.0", "regenerator-runtime": "^0.14.1", "set-cookie-parser": "^2.5.0", "source-map-loader": "^4.0.2", "ts-jest": "^29.1.1", "ts-loader": "^9.5.1", "tsconfig-paths-webpack-plugin": "^4.0.1", "typescript": "^5.3.3", "webpack": "^5.73.0", "webpack-bundle-analyzer": "^4.10.1", "webpack-cli": "^5.1.4", "webpack-node-externals": "^3.0.0", "yargs": "^17.7.2" }, "devDependenciesComments": { "firebase-admin": "v11.5.0 breaks Jest tests. Unknown why. Problem: `jest.requireActual('firebase-admin/auth')`", "next": "v13.4.x breaks tests. Unknown why. May need to wait for updates to next-test-api-route-handler." }, "peerDependencies": { "firebase": ">=9.0.0 <12", "firebase-admin": ">=10.0.0 <12", "next": ">=9.5.0 <16", "react": ">=16.8.0 <20", "react-dom": ">=16.8.0 <20" }, "peerDependenciesMeta": { "firebase": { "optional": true }, "next": { "optional": true }, "react": { "optional": true }, "react-dom": { "optional": true } }, "dependencies": { "@babel/runtime": "^7.23.7", "cookies": "^0.8.0", "hoist-non-react-statics": "^3.3.2" }, "files": [ "/build" ] }