UNPKG

@clerk/clerk-js

Version:
113 lines 4.26 kB
{ "name": "@clerk/clerk-js", "version": "5.79.0", "description": "Clerk JS library", "keywords": [ "clerk", "auth", "authentication", "passwordless", "session", "jwt" ], "homepage": "https://clerk.com/", "bugs": { "url": "https://github.com/clerk/javascript/issues" }, "repository": { "type": "git", "url": "git+https://github.com/clerk/javascript.git", "directory": "packages/clerk-js" }, "license": "MIT", "author": "Clerk", "main": "dist/clerk.js", "jsdelivr": "dist/clerk.browser.js", "module": "dist/clerk.mjs", "types": "dist/types/index.d.ts", "files": [ "dist", "headless", "no-rhc" ], "browserslist": "last 2 years", "dependencies": { "@coinbase/wallet-sdk": "4.3.0", "@emotion/cache": "11.11.0", "@emotion/react": "11.11.1", "@floating-ui/react": "0.27.12", "@floating-ui/react-dom": "^2.1.3", "@formkit/auto-animate": "^0.8.2", "@stripe/stripe-js": "5.6.0", "@swc/helpers": "^0.5.17", "@zxcvbn-ts/core": "3.0.4", "@zxcvbn-ts/language-common": "3.0.4", "browser-tabs-lock": "1.3.0", "copy-to-clipboard": "3.3.3", "core-js": "3.41.0", "crypto-js": "^4.2.0", "dequal": "2.0.3", "qrcode.react": "4.2.0", "regenerator-runtime": "0.14.1", "swr": "2.3.4", "@clerk/localizations": "^3.20.6", "@clerk/shared": "^3.17.0", "@clerk/types": "^4.72.0" }, "devDependencies": { "@emotion/jest": "^11.13.0", "@rsdoctor/rspack-plugin": "^0.4.13", "@rspack/cli": "^1.4.9", "@rspack/core": "^1.4.9", "@rspack/plugin-react-refresh": "^1.4.3", "@svgr/webpack": "^6.5.1", "@swc/jest": "0.2.39", "@types/cloudflare-turnstile": "^0.2.2", "@types/node": "^22.16.5", "@types/webpack-env": "^1.18.8", "jsdom": "^24.1.3", "webpack-merge": "^5.10.0", "@clerk/testing": "^1.10.9" }, "peerDependencies": { "react": "^18.0.0 || ^19.0.0 || ^19.0.0-0", "react-dom": "^18.0.0 || ^19.0.0 || ^19.0.0-0" }, "engines": { "node": ">=18.17.0" }, "publishConfig": { "access": "public" }, "browserslistLegacy": "Chrome > 73, Firefox > 66, Safari > 12, iOS > 12, Edge > 18, Opera > 58", "scripts": { "build": "pnpm build:bundle && pnpm build:declarations", "postbuild": "node ../../scripts/search-for-rhc.mjs file dist/clerk.no-rhc.mjs", "build:analyze": "rspack build --config rspack.config.js --env production --env variant=\"clerk.browser\" --env analysis --analyze", "build:bundle": "pnpm clean && rspack build --config rspack.config.js --env production", "build:declarations": "tsc -p tsconfig.declarations.json", "build:sandbox": "rspack build --config rspack.config.js --env production --env sandbox", "build:stats": "rspack build --config rspack.config.js --env production --json=stats.json --env variant=\"clerk.browser\"", "bundlewatch": "pnpm --package=bundlewatch -c dlx \"FORCE_COLOR=1 bundlewatch --config bundlewatch.config.json\"", "clean": "rimraf ./dist", "dev": "rspack serve --config rspack.config.js", "dev:headless": "rspack serve --config rspack.config.js --env variant=\"clerk.headless.browser\"", "dev:origin": "rspack serve --config rspack.config.js --env devOrigin=http://localhost:${PORT:-4000}", "dev:sandbox": "rspack serve --config rspack.config.js --env devOrigin=http://localhost:${PORT:-4000} --env sandbox=1", "format": "node ../../scripts/format-package.mjs", "format:check": "node ../../scripts/format-package.mjs --check", "lint": "eslint src", "lint:attw": "attw --pack . --profile node16 --ignore-rules named-exports", "lint:publint": "publint || true", "test": "jest && vitest --watch=false", "test:cache:clear": "jest --clearCache --useStderr", "test:ci": "jest --maxWorkers=70%", "test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html", "test:jest": "jest", "test:sandbox:integration": "playwright test", "test:sandbox:integration:ui": "playwright test --ui", "test:sandbox:integration:update-snapshots": "playwright test --update-snapshots", "test:vitest": "vitest", "watch": "rspack build --config rspack.config.js --env production --watch" } }