UNPKG

react-cookie-auth

Version:

Authentication library with HTTP-only cookies and Page Visibility API for handling sleep/wake cycles

101 lines (100 loc) 2.99 kB
{ "name": "react-cookie-auth", "version": "0.2.5", "description": "Authentication library with HTTP-only cookies and Page Visibility API for handling sleep/wake cycles", "main": "dist/index.js", "module": "dist/index.esm.js", "types": "index.d.ts", "type": "module", "files": [ "dist", "index.d.ts" ], "scripts": { "build": "rollup -c && node build-declarations.js", "test": "jest --passWithNoTests", "lint": "eslint src --ext .ts,.tsx", "lint:fix": "eslint src --ext .ts,.tsx --fix", "format": "prettier --write \"src/**/*.{ts,tsx}\"", "typecheck": "tsc --noEmit", "prepare": "husky install", "storybook": "storybook dev -p 6006", "build-storybook": "storybook build", "test-storybook": "test-storybook" }, "lint-staged": { "*.{ts,tsx}": [ "eslint --fix", "prettier --write" ] }, "dependencies": { "react-redux": "^8.0.5" }, "peerDependencies": { "@reduxjs/toolkit": "^2.0.0", "react": "^18.2.0", "react-dom": "^18.2.0", "redux": "^4.2.0 || ^5.0.0" }, "devDependencies": { "@babel/preset-env": "^7.27.1", "@babel/preset-react": "^7.27.1", "@babel/preset-typescript": "^7.27.1", "@mdx-js/loader": "^3.1.0", "@rollup/plugin-commonjs": "^28.0.3", "@rollup/plugin-node-resolve": "^16.0.1", "@rollup/plugin-typescript": "^12.1.2", "@storybook/addon-a11y": "^8.6.12", "@storybook/addon-actions": "^8.6.12", "@storybook/addon-controls": "^8.6.12", "@storybook/addon-docs": "^8.6.12", "@storybook/addon-essentials": "^8.6.12", "@storybook/addon-interactions": "^8.6.12", "@storybook/addon-links": "^8.6.12", "@storybook/react": "^8.6.12", "@storybook/react-webpack5": "^8.6.12", "@storybook/testing-library": "^0.2.1", "@types/react": "^18.2.0", "@types/react-dom": "^18.2.0", "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", "babel-loader": "^10.0.0", "css-loader": "^7.1.2", "eslint": "^8.57.1", "eslint-config-prettier": "^9.1.0", "eslint-plugin-react": "^7.37.5", "eslint-plugin-react-hooks": "^4.6.2", "husky": "^9.1.7", "jest": "^29.5.0", "lint-staged": "^15.5.1", "prettier": "^3.5.3", "rollup": "^3.29.5", "rollup-plugin-peer-deps-external": "^2.2.4", "rollup-plugin-typescript2": "^0.34.1", "storybook": "^8.6.12", "style-loader": "^4.0.0", "ts-jest": "^29.0.5", "ts-loader": "^9.5.2", "typescript": "^4.9.5" }, "keywords": [ "authentication", "auth", "react", "redux", "visibility-api", "cookie", "http-only-cookie" ], "author": "Alexander Standrik", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/astandrik/react-cookie-auth.git" }, "bugs": { "url": "https://github.com/astandrik/react-cookie-auth/issues" }, "homepage": "https://github.com/astandrik/react-cookie-auth#readme" }