supertokens-auth-react
Version:
ReactJS SDK that provides login functionality with SuperTokens.
249 lines (248 loc) • 9.16 kB
JSON
{
"name": "supertokens-auth-react",
"version": "0.49.1",
"description": "ReactJS SDK that provides login functionality with SuperTokens.",
"main": "./index.js",
"engines": {
"node": ">=16.0.0",
"npm": ">=8"
},
"devDependencies": {
"@babel/core": "^7.23.2",
"@babel/plugin-transform-react-jsx": "^7.22.15",
"@babel/preset-env": "^7.23.2",
"@babel/preset-react": "^7.22.15",
"@babel/preset-typescript": "^7.23.2",
"@babel/register": "^7.22.15",
"@percy/cli": "^1.16.0",
"@percy/puppeteer": "^2.0.2",
"@rollup/plugin-commonjs": "^23.0.3",
"@rollup/plugin-json": "^5.0.0",
"@rollup/plugin-multi-entry": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/pluginutils": "^5.0.2",
"@size-limit/preset-small-lib": "^8.1.0",
"@storybook/addon-designs": "^7.0.7",
"@storybook/addon-essentials": "^7.5.2",
"@storybook/addon-interactions": "^7.5.2",
"@storybook/addon-links": "^7.5.2",
"@storybook/addon-onboarding": "^1.0.8",
"@storybook/blocks": "^7.5.2",
"@storybook/react": "^7.5.2",
"@storybook/react-webpack5": "^7.5.2",
"@storybook/testing-library": "^0.2.2",
"@testing-library/dom": "^8.19.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^14.4.3",
"@types/intl-tel-input": "^17.0.6",
"@types/jest": "^27.1.0",
"@types/node": "14.11.10",
"@types/react": "^18.3.18",
"@typescript-eslint/eslint-plugin": "4.6.0",
"@typescript-eslint/eslint-plugin-tslint": "4.6.0",
"@typescript-eslint/parser": "4.6.0",
"babel-jest": "^29.3.1",
"chokidar-cli": "^3.0.0",
"css-loader": "^6.9.1",
"eslint": "^6.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "4.2.0",
"eslint-plugin-storybook": "^0.6.15",
"eslint-plugin-supertokens-auth-react": "file:eslint",
"isomorphic-fetch": "^3.0.0",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"jsdom": "20.0.0",
"jsdom-global": "3.0.2",
"madge": "^5.0.1",
"mkdirp": "^1.0.4",
"mocha": "^10.2.0",
"mocha-junit-reporter": "^2.2.1",
"mocha-multi": "^1.1.7",
"mocha-split-tests": "github:rishabhpoddar/mocha-split-tests",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.19",
"postcss-import": "^15.0.0",
"postcss-preset-env": "^7.8.3",
"prettier": "^2.3.2",
"pretty-quick": "^3.1.1",
"prop-types": "^15.7.2",
"puppeteer": "^11.0.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-router-dom": "6.11.2",
"regenerator-runtime": "0.13.7",
"rollup": "^3.1.0",
"rollup-plugin-import-css": "^3.1.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-typescript2": "^0.34.1",
"rollup-plugin-visualizer": "^5.8.3",
"rollup-pluginutils": "^2.8.2",
"size-limit": "^8.1.0",
"storybook": "^7.5.2",
"to-string-loader": "^1.2.0",
"ts-jest": "^29.0.3",
"ts-prune": "^0.10.3",
"tslib": "^2.4.0",
"typedoc": "^0.22.5",
"typescript": "4.7.3"
},
"dependencies": {
"@simplewebauthn/types": "^12.0.0",
"intl-tel-input": "^17.0.19",
"prop-types": "*",
"react-qr-code": "^2.0.12",
"supertokens-js-override": "^0.0.4"
},
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0",
"supertokens-web-js": "^0.15"
},
"scripts": {
"init": "bash ./init.sh",
"start": "npm run build-pretty && npm-run-all --parallel front server",
"start-react-16": "npm run build-pretty && npm-run-all --parallel front-react-16 server watch",
"front": "(cd ./examples/for-tests/ && BROWSER=none PORT=3031 npm run start)",
"front-react-16": "(cd ./examples/for-tests-react-16/ && BROWSER=none PORT=3031 npm run start)",
"server": "cd test/server/ && START=true INSTALL_PATH=../../../supertokens-root NODE_PORT=8082 node .",
"test": "npm run test-unit && npm run test-e2e",
"test-with-non-node": "npm run test-unit && npm run test-e2e-with-non-node",
"test-e2e": "./test/startTestApp.sh 8082",
"test-e2e-react16": "RUN_REACT_16_TESTS=true ./test/startTestApp.sh 8082",
"test-e2e-with-non-node": "./test/startTestApp.sh 8083",
"test-unit": "TEST_MODE=testing jest --silent -c jest.config.js --runInBand",
"test-visual": "SPEC_FILES=test/visual/**/*.test.js npx percy exec -- npm run test-e2e",
"prep-test-app": "./test/prepTestApp.sh $SRC",
"build-check": "cd lib && npx tsc -p tsconfig.json --noEmit && cd ../test/with-typescript && npx tsc -p tsconfig.json",
"tsc": "cd lib && npx tsc -p tsconfig.json",
"build": "rm -rf lib/build && npx rollup -c",
"watch": "npx rollup -cw",
"watch-mac": "chokidar lib/ts/* -c 'npx rollup -c'",
"pretty": "npx pretty-quick .",
"build-pretty": "npm run build && npm run pretty && npm run pretty",
"lint": "node other/checkTranslationKeys.js && cd lib && eslint ./ts --ext .ts,.tsx",
"lint-fix": "cd lib && npx eslint ./ts --ext .ts,.tsx --fix",
"prune": "cd lib && ts-prune | grep -vE 'used in module| - default$| - package_version$|getSuperTokensRoutesForReactRouterDom$|supertokens-web-js|supertokens-website|dateProvider' && exit 1 || exit 0",
"pretty-check": "npx pretty-quick --staged --check .",
"set-up-hooks": "cp hooks/pre-commit.sh .git/hooks/pre-commit && chmod +x .git/hooks/pre-commit",
"build-docs": "rm -rf ./docs && npx typedoc --out ./docs --tsconfig ./lib/tsconfig.json ./lib/ts/index.ts ./lib/ts/**/index.ts ./lib/ts/**/*/index.ts",
"size": "size-limit",
"check-circular-dependencies": "npx madge --circular --extensions js ./lib/build/",
"storybook": "TEST_MODE=testing storybook dev -p 6006",
"build-storybook": "TEST_MODE=testing storybook build",
"chromatic": "npx chromatic"
},
"size-limit": [
{
"path": "lib/build/index.js",
"limit": "26kb"
},
{
"path": "recipe/session/index.js",
"limit": "27kb"
},
{
"path": "recipe/session/prebuiltui.js",
"limit": "32kb"
},
{
"path": "recipe/thirdparty/index.js",
"limit": "34kb"
},
{
"path": "recipe/emailpassword/index.js",
"limit": "30kb"
},
{
"path": "recipe/emailverification/index.js",
"limit": "9kb"
},
{
"path": "recipe/passwordless/index.js",
"limit": "17kb"
},
{
"path": "recipe/emailverification/prebuiltui.js",
"limit": "36kb"
},
{
"path": "recipe/thirdparty/prebuiltui.js",
"limit": "56kb"
},
{
"path": "recipe/emailpassword/prebuiltui.js",
"limit": "43kb"
},
{
"path": "recipe/passwordless/prebuiltui.js",
"limit": "133kb"
},
{
"path": "recipe/multitenancy/index.js",
"limit": "10kb"
},
{
"path": "recipe/multifactorauth/index.js",
"limit": "13kb"
},
{
"path": "recipe/multifactorauth/prebuiltui.js",
"limit": "35kb"
},
{
"path": "recipe/oauth2provider/index.js",
"limit": "12kb"
},
{
"path": "recipe/oauth2provider/prebuiltui.js",
"limit": "34kb"
},
{
"path": "recipe/webauthn/index.js",
"limit": "13kb"
},
{
"path": "recipe/webauthn/prebuiltui.js",
"limit": "61kb"
}
],
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/supertokens/supertokens-auth-react.git"
},
"keywords": [
"auth",
"authentication",
"authorisation",
"supertokens",
"chrome",
"firefox",
"IE",
"safari"
],
"contributors": [
"rishabhpoddar",
"NkxxkN",
"porcellus"
],
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/supertokens/supertokens-auth-react/issues"
},
"homepage": "https://github.com/supertokens/supertokens-auth-react#readme"
}