UNPKG

@okta/okta-auth-js

Version:
246 lines (245 loc) 8.89 kB
{ "private": false, "name": "@okta/okta-auth-js", "description": "The Okta Auth SDK", "version": "7.13.1", "homepage": "https://github.com/okta/okta-auth-js", "license": "Apache-2.0", "main": "cjs/exports/default.js", "module": "esm/node/exports/exports/default.js", "browser": "umd/default.js", "react-native": "esm/browser/exports/exports/default.js", "types": "types/lib/exports/default.d.ts", "exports": { ".": { "node": { "types": "./types/lib/exports/default.d.ts", "import": "./esm/node/exports/exports/default.js", "require": "./cjs/exports/default.js" }, "default": { "types": "./types/lib/exports/default.d.ts", "import": "./esm/browser/exports/exports/default.js", "default": "./umd/default.js" } }, "./core": { "node": { "types": "./types/lib/exports/core.d.ts", "import": "./esm/node/exports/exports/core.js", "require": "./cjs/exports/core.js" }, "default": { "types": "./types/lib/exports/core.d.ts", "import": "./esm/browser/exports/exports/core.js", "require": "./umd/core.js", "default": "./umd/core.js" } }, "./authn": { "node": { "types": "./types/lib/exports/authn.d.ts", "import": "./esm/node/exports/exports/authn.js", "require": "./cjs/exports/authn.js" }, "default": { "types": "./types/lib/exports/authn.d.ts", "import": "./esm/browser/exports/exports/authn.js", "require": "./umd/authn.js", "default": "./umd/authn.js" } }, "./idx": { "node": { "types": "./types/lib/exports/idx.d.ts", "import": "./esm/node/exports/exports/idx.js", "require": "./cjs/exports/idx.js" }, "default": { "types": "./types/lib/exports/idx.d.ts", "import": "./esm/browser/exports/exports/idx.js", "require": "./umd/idx.js", "default": "./esm/browser/exports/exports/idx.js" } }, "./myaccount": { "node": { "types": "./types/lib/exports/myaccount.d.ts", "import": "./esm/node/exports/exports/myaccount.js", "require": "./cjs/exports/myaccount.js" }, "default": { "types": "./types/lib/exports/myaccount.d.ts", "import": "./esm/browser/exports/exports/myaccount.js", "require": "./umd/myaccount.js", "default": "./umd/myaccount.js" } }, "./package.json": "./package.json", "./polyfill": "./polyfill/index.js" }, "repository": { "type": "git", "url": "https://github.com/okta/okta-auth-js.git" }, "bugs": { "url": "https://github.com/okta/okta-auth-js/issues" }, "sideEffects": [ "./lib/server/serverStorage.ts", "./polyfill/index.js" ], "scripts": { "banners": "node ./scripts/buildtools/maintain-banners.js", "clean": "yarn clean:build", "clean:build": "rimraf build && rimraf build2", "clean:esm": "rimraf build/esm", "dev:esm": "NODE_ENV=development yarn build:esm --watch", "dev:web": "cross-env NODE_ENV=development webpack --config webpack.config.js --watch", "lint": "eslint --ext .js,.ts,.jsx .", "lint:report": "eslint -f checkstyle -o ./build2/reports/lint/eslint-checkstyle-result.xml --ext .js,.ts,.jsx .", "validate": "yarn tsc --noEmit && yarn lint && yarn workspace @okta/test.app validate && yarn test:types", "test": "yarn test:unit && yarn test:samples && yarn test:e2e", "test:unit": "yarn test:server && yarn test:browser", "test:e2e": "yarn workspace @okta/test.e2e start", "test:e2e:tokens": "export REFRESH_TOKEN=true && yarn test:e2e", "test:e2e:saucelabs": "export RUN_SAUCE_TESTS=true && yarn test:e2e", "test:e2e:cucumber": "RUN_CUCUMBER_TESTS=true yarn test:e2e", "test:browser": "jest --config ./jest.browser.js", "test:server": "jest --config ./jest.server.js", "test:report": "yarn test --ci --silent || true", "test:samples": "yarn workspace @okta/test.e2e.samples start", "test:integration": "jest --runInBand --config ./jest.integration.js", "test:bundle:esm:browser": "cross-env BUNDLE_ENV=browser NODE_OPTIONS=--experimental-vm-modules jest --config ./jest.esm.mjs", "test:bundle:esm:node": "cross-env BUNDLE_ENV=node NODE_OPTIONS=--experimental-vm-modules jest --config ./jest.esm.mjs", "test:bundle:cjs": "cross-env BUNDLE_ENV=node jest --config ./jest.cjs.js", "test:types": "yarn workspace @okta/test.types test", "build": "node scripts/buildtools/build.js", "build:cdn": "cross-env NODE_ENV=production webpack --config webpack.cdn.config.js", "build:web": "cross-env NODE_ENV=production webpack --config webpack.config.js", "build:cjs": "cross-env babel lib -d build/cjs --config-file ./babel.cjs.js --extensions \".ts\",\".js\" --source-maps", "build:esm": "rollup -c", "build:polyfill": "cross-env NODE_ENV=production webpack --config webpack.polyfill.config.js", "build:types": "tsc --emitDeclarationOnly", "docs:myaccount": "node typedoc.js", "generate:samples": "yarn workspace @okta/samples build && yarn install --ignore-scripts", "dev:samples": "yarn workspace @okta/samples dev", "start": "yarn workspace @okta/test.app start --open", "verify:package": "node scripts/verify-package.js", "clean:e2e": "./scripts/utils/foreach_workspace.sh \"git restore ./package.json\"" }, "author": "Okta", "keywords": [ "Okta", "authentication", "auth", "login" ], "browserslist": [ "> 0.1%", "not opera < 69", "not firefox < 53", "not safari < 7.1", "not ie < 11", "not IE_Mob 11" ], "engines": { "node": ">=14.0" }, "dependencies": { "@babel/runtime": "^7.27.0", "@peculiar/webcrypto": "^1.4.0", "Base64": "1.1.0", "atob": "^2.1.2", "broadcast-channel": "^7.1.0", "btoa": "^1.2.1", "core-js": "^3.39.0", "cross-fetch": "^3.1.5", "fast-text-encoding": "^1.0.6", "js-cookie": "^3.0.1", "node-cache": "^5.1.2", "p-cancelable": "^2.0.0", "tiny-emitter": "1.1.0", "webcrypto-shim": "^0.1.5", "xhr2": "0.1.3" }, "devDependencies": { "@babel/cli": "^7.17.0", "@babel/core": "^7.17.0", "@babel/plugin-proposal-class-properties": "^7.10.1", "@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.1", "@babel/plugin-transform-modules-commonjs": "^7.10.1", "@babel/plugin-transform-runtime": "^7.8.3", "@babel/plugin-transform-typescript": "^7.10.5", "@babel/preset-env": "^7.8.2", "@babel/preset-typescript": "^7.10.4", "@okta/okta-signin-widget": "6.0.0", "@rollup/plugin-alias": "^3.1.8", "@rollup/plugin-babel": "^5.3.0", "@rollup/plugin-replace": "^3.0.0", "@types/jest": "^27.5.1", "@types/node": "^14.0.3", "@typescript-eslint/eslint-plugin": "^5.18.0", "@typescript-eslint/parser": "^5.18.0", "babel-jest": "^27.5.1", "babel-loader": "^9.1.2", "babel-plugin-add-module-exports": "^1.0.2", "babel-plugin-inline-replace-variables": "^1.3.1", "chalk": "2.4.2", "cross-env": "^7.0.3", "eslint": "^8.12.0", "eslint-import-resolver-typescript": "^2.5.0", "eslint-plugin-compat": "^3.3.0", "eslint-plugin-import": "^2.25.4", "eslint-plugin-jasmine": "^2.10.1", "eslint-plugin-jsdoc": "^25.4.2", "eslint-plugin-node": "^11.1.0", "fake-indexeddb": "4.0.2", "globby": "^13.2.2", "husky": ">=6", "jasmine-ajax": "^4.0.0", "jest": "^28.1.0", "jest-environment-jsdom": "^28.1.0", "jest-jasmine2": "^28.1.0", "jest-junit": "^13.0.0", "jest-runner": "^28.1.0", "json-loader": "0.5.4", "lodash": "4.17.21", "rollup": "^2.70.2", "rollup-plugin-cleanup": "^3.2.1", "rollup-plugin-license": "^2.8.1", "rollup-plugin-multi-input": "^1.3.1", "rollup-plugin-typescript2": "^0.36.0", "rollup-plugin-visualizer": "~5.5.4", "shelljs": "0.8.5", "ts-jest": "^28.0.2", "tstyche": "^1.1.0", "typedoc": "^0.23.19", "typedoc-plugin-markdown": "^3.13.6", "typescript": "^4.7.3", "webpack": "^5.78.0", "webpack-bundle-analyzer": "^4.5.0", "webpack-cli": "^4.10.0", "webpack-dev-server": "^4.9.2" }, "jest-junit": { "outputDirectory": "./build2/reports/unit/", "outputName": "junit-result.xml" }, "resolutions": { "**/request/qs": "^6.10.5", "**/globule/minimatch": "^3.1.2", "**/cacheable-request/http-cache-semantics": "^4.0.0", "**/has-ansi/ansi-regex": "^4.1.1", "**/strip-ansi/ansi-regex": "^3.0.1", "**/download/got": "^11.8.5", "**/@babel/runtime": "^7.27.0" }, "tsd": { "directory": "test/types" }, "okta": { "commitSha": "b615ec1e38bf3ede697b17dfbb6fce5f8a581ae9", "fullVersion": "7.13.1-gb615ec1" } }