UNPKG

supertokens-node

Version:
201 lines (200 loc) 6.85 kB
{ "name": "supertokens-node", "version": "24.0.0", "description": "NodeJS driver for SuperTokens core", "main": "index.js", "scripts": { "test": "TEST_MODE=testing npx ts-mocha -p lib/tsconfig.json -n loader=ts-node/esm --node-option no-experimental-fetch -r test/fetch-polyfill.mjs", "test-exports": "./test/testExports.sh", "build-check": "cd lib && npx tsc -p tsconfig.json --noEmit && cd ../test/with-typescript && npm run build", "build": "cd lib && rm -rf build && npx tsc -p tsconfig.json && cd ../test/with-typescript && npm run build && cd ../.. && npm run post-build", "pretty": "npx pretty-quick .", "post-build": "node add-ts-no-check.js", "build-pretty": "npm run build && npm run pretty && npm run pretty", "pretty-check": "npx pretty-quick --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", "build-core-types": "node scripts/generate-schema.js" }, "keywords": [ "auth", "authentication", "authorisation", "nodejs", "supertokens", "jwt", "refresh tokens" ], "repository": { "type": "git", "url": "git+https://github.com/supertokens/supertokens-node.git" }, "exports": { ".": { "types": "./index.d.ts", "default": "./index.js" }, "./index": { "types": "./index.d.ts", "default": "./index.js" }, "./index.js": { "types": "./index.d.ts", "default": "./index.js" }, "./framework/*": { "types": "./framework/*/index.d.ts", "default": "./framework/*/index.js" }, "./framework/*/index": { "types": "./framework/*/index.d.ts", "default": "./framework/*/index.js" }, "./framework/*/index.js": { "types": "./framework/*/index.d.ts", "default": "./framework/*/index.js" }, "./nextjs": { "types": "./nextjs/index.d.ts", "default": "./nextjs/index.js" }, "./nextjs/index": { "types": "./nextjs/index.d.ts", "default": "./nextjs/index.js" }, "./nextjs/index.js": { "types": "./nextjs/index.d.ts", "default": "./nextjs/index.js" }, "./custom": { "types": "./custom/index.d.ts", "default": "./custom/index.js" }, "./custom/index": { "types": "./custom/index.d.ts", "default": "./custom/index.js" }, "./custom/index.js": { "types": "./custom/index.d.ts", "default": "./custom/index.js" }, "./types": { "types": "./types/index.d.ts", "default": "./types/index.js" }, "./types/index": { "types": "./types/index.d.ts", "default": "./types/index.js" }, "./types/index.js": { "types": "./types/index.d.ts", "default": "./types/index.js" }, "./lib/*": { "types": "./lib/*.d.ts", "default": "./lib/*.js" }, "./lib/*.js": { "types": "./lib/*.d.ts", "default": "./lib/*.js" }, "./recipe/*": { "types": "./recipe/*/index.d.ts", "default": "./recipe/*/index.js" }, "./recipe/*/index": { "types": "./recipe/*/index.d.ts", "default": "./recipe/*/index.js" }, "./recipe/*/index.js": { "types": "./recipe/*/index.d.ts", "default": "./recipe/*/index.js" }, "./recipe/session/claims": { "types": "./recipe/session/claims.d.ts", "default": "./recipe/session/claims.js" }, "./recipe/session/claims.js": { "types": "./recipe/session/claims.d.ts", "default": "./recipe/session/claims.js" } }, "author": "rishabhpoddar", "license": "Apache-2.0", "bugs": { "url": "https://github.com/supertokens/supertokens-node/issues" }, "homepage": "https://github.com/supertokens/supertokens-node#readme", "dependencies": { "buffer": "^6.0.3", "content-type": "^1.0.5", "cookie": "^0.7.2", "cross-fetch": "^3.1.6", "debug": "^4.3.3", "jose": "^4.13.1", "libphonenumber-js": "^1.9.44", "nodemailer": "^6.7.2", "pako": "^2.1.0", "pkce-challenge": "^3.0.0", "process": "^0.11.10", "set-cookie-parser": "^2.7.1", "supertokens-js-override": "^0.0.4", "tldts": "^6.1.48", "twilio": "^4.19.3" }, "devDependencies": { "@hapi/hapi": "^20.2.0", "@koa/router": "^10.1.1", "@loopback/core": "2.16.2", "@loopback/repository": "3.7.1", "@loopback/rest": "9.3.0", "@types/aws-lambda": "8.10.77", "@types/brotli": "^1.3.4", "@types/co-body": "^5.1.1", "@types/content-type": "^1.1.5", "@types/cookie": "^0.6.0", "@types/express": "4.16.1", "@types/hapi__hapi": "20.0.8", "@types/inflation": "^2.0.1", "@types/koa": "^2.13.4", "@types/koa-bodyparser": "^4.3.3", "@types/nodemailer": "^6.4.4", "@types/pako": "^2.0.3", "@types/set-cookie-parser": "^2.4.9", "@types/sinon": "^17.0.4", "@types/validator": "10.11.0", "aws-sdk-mock": "^5.4.0", "body-parser": "1.20.1", "cookie-parser": "^1.4.5", "express": "^4.18.2", "fastify": "3.18.1", "glob": "7.1.7", "koa": "^2.13.3", "lambda-tester": "^4.0.1", "loopback-datasource-juggler": "^4.26.0", "mocha": "^10.2.0", "mocha-split-tests": "github:rishabhpoddar/mocha-split-tests", "mocha-json-output-reporter": "^2.1.0", "mocha-junit-reporter": "^2.2.1", "mocha-multi-reporters": "^1.5.1", "next": "^14.0.4", "next-test-api-route-handler": "^4.0.16", "nock": "11.7.0", "node-fetch": "^3.3.2", "nyc": "^15.1.0", "otpauth": "9.1.5", "prettier": "2.3.2", "pretty-quick": "^3.1.1", "react": "^18.2.0", "sinon": "^14.0.0", "supertest": "4.0.2", "ts-mocha": "^11.1.0", "ts-node": "^10.9.2", "tsconfig-paths": "^4.2.0", "typedoc": "0.28.2", "typescript": "^5.7.3" }, "browser": { "fs": false } }