2021-06-06 05:30:37 -05:00
|
|
|
{
|
2021-07-25 09:28:42 -05:00
|
|
|
"name": "@logto/core",
|
2024-11-22 04:04:11 -05:00
|
|
|
"version": "1.22.0",
|
2021-06-19 11:07:11 -05:00
|
|
|
"description": "The open source identity solution.",
|
|
|
|
"main": "build/index.js",
|
2022-04-24 22:26:41 -05:00
|
|
|
"author": "Silverhand Inc. <contact@silverhand.io>",
|
2021-08-11 09:12:36 -05:00
|
|
|
"license": "MPL-2.0",
|
2022-11-21 03:38:24 -05:00
|
|
|
"type": "module",
|
2021-06-19 11:07:11 -05:00
|
|
|
"private": true,
|
2022-11-21 06:18:32 -05:00
|
|
|
"imports": {
|
|
|
|
"#src/*": "./build/*"
|
|
|
|
},
|
2021-06-06 05:30:37 -05:00
|
|
|
"scripts": {
|
2021-07-25 09:27:51 -05:00
|
|
|
"precommit": "lint-staged",
|
2023-11-12 22:41:35 -05:00
|
|
|
"copy:apidocs": "rsync -a -m --include '*/' --include '*.openapi.json' --exclude '*' src/routes/ build/routes/",
|
2024-07-28 00:55:55 -05:00
|
|
|
"check": "tsc --noEmit",
|
2024-07-27 22:04:36 -05:00
|
|
|
"build": "tsup",
|
2023-11-12 22:41:35 -05:00
|
|
|
"build:test": "rm -rf build/ && tsc -p tsconfig.test.json --sourcemap && pnpm run copy:apidocs",
|
2023-12-01 05:28:49 -05:00
|
|
|
"lint": "eslint --ext .ts --ext .json src",
|
2022-05-05 05:26:30 -05:00
|
|
|
"lint:report": "pnpm lint --format json --output-file report.json",
|
2024-07-27 22:04:36 -05:00
|
|
|
"dev": "tsup --config tsup.dev.config.ts",
|
2023-02-21 23:38:30 -05:00
|
|
|
"start": "NODE_ENV=production node .",
|
2023-01-10 10:04:33 -05:00
|
|
|
"test:only": "NODE_OPTIONS=\"--experimental-vm-modules --max_old_space_size=4096\" jest --logHeapUsage",
|
2022-12-11 07:07:21 -05:00
|
|
|
"test": "pnpm build:test && pnpm test:only",
|
2023-01-10 10:04:33 -05:00
|
|
|
"test:ci": "pnpm test:only --coverage --silent",
|
2022-01-09 21:04:00 -05:00
|
|
|
"test:report": "codecov -F core"
|
2021-06-06 05:30:37 -05:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2023-11-07 08:12:29 -05:00
|
|
|
"@authenio/samlify-node-xmllint": "^2.0.0",
|
2024-04-18 01:32:12 -05:00
|
|
|
"@aws-sdk/client-s3": "^3.556.0",
|
|
|
|
"@azure/storage-blob": "^12.17.0",
|
|
|
|
"@google-cloud/storage": "^7.10.0",
|
2023-12-18 00:08:24 -05:00
|
|
|
"@koa/cors": "^5.0.0",
|
2023-08-16 09:34:54 -05:00
|
|
|
"@logto/affiliate": "^0.1.0",
|
2024-05-14 07:27:55 -05:00
|
|
|
"@logto/app-insights": "workspace:^2.0.0",
|
2024-11-22 04:04:11 -05:00
|
|
|
"@logto/cli": "workspace:^1.22.0",
|
|
|
|
"@logto/connector-kit": "workspace:^4.1.0",
|
2023-04-02 04:40:07 -05:00
|
|
|
"@logto/console": "workspace:*",
|
2024-05-31 10:48:43 -05:00
|
|
|
"@logto/core-kit": "workspace:^2.5.0",
|
2023-04-02 04:40:07 -05:00
|
|
|
"@logto/demo-app": "workspace:*",
|
2023-10-13 01:19:03 -05:00
|
|
|
"@logto/experience": "workspace:*",
|
2024-09-08 21:08:52 -05:00
|
|
|
"@logto/experience-legacy": "workspace:*",
|
2024-10-14 02:39:05 -05:00
|
|
|
"@logto/js": "^4.1.4",
|
2024-02-08 00:18:42 -05:00
|
|
|
"@logto/language-kit": "workspace:^1.1.0",
|
2024-11-22 04:04:11 -05:00
|
|
|
"@logto/phrases": "workspace:^1.15.0",
|
|
|
|
"@logto/phrases-experience": "workspace:^1.9.0",
|
|
|
|
"@logto/schemas": "workspace:^1.22.0",
|
2024-10-25 04:26:36 -05:00
|
|
|
"@logto/shared": "workspace:^3.1.2",
|
2024-05-17 03:02:05 -05:00
|
|
|
"@silverhand/essentials": "^2.9.1",
|
2024-04-11 02:16:53 -05:00
|
|
|
"@silverhand/slonik": "31.0.0-beta.2",
|
2024-05-12 22:05:08 -05:00
|
|
|
"@simplewebauthn/server": "^10.0.0",
|
2024-09-03 04:51:45 -05:00
|
|
|
"@withtyped/client": "^0.8.8",
|
2023-10-14 06:32:08 -05:00
|
|
|
"camelcase": "^8.0.0",
|
2024-07-12 07:53:42 -05:00
|
|
|
"camelcase-keys": "^9.1.3",
|
|
|
|
"chalk": "^5.3.0",
|
2022-09-27 02:36:03 -05:00
|
|
|
"clean-deep": "^3.4.0",
|
2022-11-07 01:33:47 -05:00
|
|
|
"date-fns": "^2.29.3",
|
2022-12-13 05:11:51 -05:00
|
|
|
"decamelize": "^6.0.0",
|
2022-04-25 22:31:07 -05:00
|
|
|
"deepmerge": "^4.2.2",
|
2024-07-12 07:53:42 -05:00
|
|
|
"dotenv": "^16.4.5",
|
2022-06-01 03:56:23 -05:00
|
|
|
"etag": "^1.8.1",
|
2024-04-18 01:32:12 -05:00
|
|
|
"fast-xml-parser": "^4.3.6",
|
2023-12-25 22:16:35 -05:00
|
|
|
"find-up": "^7.0.0",
|
2023-12-25 21:59:22 -05:00
|
|
|
"got": "^14.0.0",
|
2024-07-12 07:53:42 -05:00
|
|
|
"hash-wasm": "^4.11.0",
|
|
|
|
"helmet": "^7.1.0",
|
2024-08-25 22:21:37 -05:00
|
|
|
"http-errors": "^2.0.0",
|
2023-04-21 05:21:09 -05:00
|
|
|
"i18next": "^22.4.15",
|
2022-04-13 23:22:30 -05:00
|
|
|
"iconv-lite": "0.6.3",
|
2024-07-12 07:53:42 -05:00
|
|
|
"jose": "^5.6.3",
|
|
|
|
"koa": "^2.15.3",
|
2024-04-18 01:32:12 -05:00
|
|
|
"koa-body": "^6.0.1",
|
2022-06-02 02:32:46 -05:00
|
|
|
"koa-compose": "^4.1.0",
|
2024-07-12 07:53:42 -05:00
|
|
|
"koa-compress": "^5.1.1",
|
2021-06-25 12:39:02 -05:00
|
|
|
"koa-logger": "^3.2.1",
|
2021-06-19 09:53:34 -05:00
|
|
|
"koa-mount": "^4.0.0",
|
2024-04-18 01:32:12 -05:00
|
|
|
"koa-proxies": "^0.12.4",
|
2024-07-12 07:53:42 -05:00
|
|
|
"koa-router": "^12.0.1",
|
2022-06-01 00:12:15 -05:00
|
|
|
"koa-send": "^5.0.1",
|
2024-04-11 02:16:53 -05:00
|
|
|
"ky": "^1.2.3",
|
2024-07-09 00:25:53 -05:00
|
|
|
"lru-cache": "^11.0.0",
|
2024-12-11 04:35:47 -05:00
|
|
|
"nanoid": "^5.0.9",
|
2024-11-19 02:54:44 -05:00
|
|
|
"node-forge": "^1.3.1",
|
2024-12-04 02:37:16 -05:00
|
|
|
"oidc-provider": "github:logto-io/node-oidc-provider#de2d8fd68e91b76d71fb910d44142f9eccd844bc",
|
2023-12-03 06:05:12 -05:00
|
|
|
"openapi-types": "^12.1.3",
|
2023-09-26 01:18:26 -05:00
|
|
|
"otplib": "^12.0.1",
|
2024-05-08 22:19:01 -05:00
|
|
|
"p-map": "^7.0.2",
|
2023-08-29 04:43:17 -05:00
|
|
|
"p-retry": "^6.0.0",
|
2023-03-08 11:07:33 -05:00
|
|
|
"pg-protocol": "^1.6.0",
|
2023-11-15 22:19:54 -05:00
|
|
|
"pluralize": "^8.0.0",
|
2023-10-13 01:19:03 -05:00
|
|
|
"qrcode": "^1.5.3",
|
2024-12-04 02:37:16 -05:00
|
|
|
"raw-body": "^3.0.0",
|
2024-06-03 20:46:35 -05:00
|
|
|
"redis": "^4.6.14",
|
2022-04-26 01:07:28 -05:00
|
|
|
"roarr": "^7.11.0",
|
2024-04-10 09:49:55 -05:00
|
|
|
"samlify": "2.8.11",
|
2023-11-12 22:41:35 -05:00
|
|
|
"semver": "^7.3.8",
|
2024-03-28 06:11:20 -05:00
|
|
|
"snake-case": "^4.0.0",
|
2024-07-12 07:53:42 -05:00
|
|
|
"snakecase-keys": "^8.0.1",
|
2024-07-12 07:56:01 -05:00
|
|
|
"zod": "^3.23.8"
|
2021-06-06 05:30:37 -05:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2024-12-16 00:55:41 -05:00
|
|
|
"@logto/cloud": "0.2.5-aac51e9",
|
2024-04-18 07:26:37 -05:00
|
|
|
"@silverhand/eslint-config": "6.0.1",
|
|
|
|
"@silverhand/ts-config": "6.0.0",
|
2024-07-15 11:06:09 -05:00
|
|
|
"@types/adm-zip": "^0.5.5",
|
2022-06-01 00:12:15 -05:00
|
|
|
"@types/debug": "^4.1.7",
|
2022-06-01 03:56:23 -05:00
|
|
|
"@types/etag": "^1.8.1",
|
2024-08-25 22:21:37 -05:00
|
|
|
"@types/http-errors": "^2.0.4",
|
2023-03-07 01:54:57 -05:00
|
|
|
"@types/jest": "^29.4.0",
|
2024-07-12 07:53:42 -05:00
|
|
|
"@types/koa": "^2.15.0",
|
2022-06-02 02:32:46 -05:00
|
|
|
"@types/koa-compose": "^3.2.5",
|
2023-03-10 11:26:30 -05:00
|
|
|
"@types/koa-compress": "^4.0.3",
|
2021-06-25 12:39:02 -05:00
|
|
|
"@types/koa-logger": "^3.1.1",
|
2021-06-19 09:53:34 -05:00
|
|
|
"@types/koa-mount": "^4.0.0",
|
2022-06-01 00:12:15 -05:00
|
|
|
"@types/koa-send": "^4.1.3",
|
2024-01-10 21:33:52 -05:00
|
|
|
"@types/koa__cors": "^5.0.0",
|
2023-12-10 20:10:53 -05:00
|
|
|
"@types/node": "^20.9.5",
|
2024-11-19 02:54:44 -05:00
|
|
|
"@types/node-forge": "^1.3.1",
|
2024-12-04 02:37:16 -05:00
|
|
|
"@types/oidc-provider": "^8.5.2",
|
2023-11-15 22:19:54 -05:00
|
|
|
"@types/pluralize": "^0.0.33",
|
2023-10-13 01:19:03 -05:00
|
|
|
"@types/qrcode": "^1.5.2",
|
2023-01-01 05:36:46 -05:00
|
|
|
"@types/semver": "^7.3.12",
|
2023-12-25 23:10:21 -05:00
|
|
|
"@types/sinon": "^17.0.0",
|
2024-04-18 01:32:12 -05:00
|
|
|
"@types/supertest": "^6.0.2",
|
2024-07-15 11:06:09 -05:00
|
|
|
"adm-zip": "^0.5.14",
|
2024-04-18 07:26:37 -05:00
|
|
|
"eslint": "^8.56.0",
|
2023-12-22 02:16:49 -05:00
|
|
|
"jest": "^29.7.0",
|
2021-08-30 11:48:33 -05:00
|
|
|
"jest-matcher-specific-error": "^1.0.0",
|
2023-12-01 05:28:49 -05:00
|
|
|
"jsonc-eslint-parser": "^2.4.0",
|
2023-10-25 20:55:47 -05:00
|
|
|
"lint-staged": "^15.0.0",
|
2024-04-11 02:16:53 -05:00
|
|
|
"nock": "^14.0.0-beta.5",
|
2022-12-12 00:43:23 -05:00
|
|
|
"node-mocks-http": "^1.12.1",
|
2024-10-23 01:20:23 -05:00
|
|
|
"nodemon": "^3.1.7",
|
2023-07-07 12:17:21 -05:00
|
|
|
"prettier": "^3.0.0",
|
2024-10-23 01:42:51 -05:00
|
|
|
"sinon": "^19.0.0",
|
2024-04-24 22:53:00 -05:00
|
|
|
"supertest": "^7.0.0",
|
2024-10-28 00:42:11 -05:00
|
|
|
"tsup": "^8.3.0",
|
2024-07-20 09:04:56 -05:00
|
|
|
"typescript": "^5.5.3"
|
2021-06-19 09:53:34 -05:00
|
|
|
},
|
|
|
|
"engines": {
|
2023-12-10 20:10:53 -05:00
|
|
|
"node": "^20.9.0"
|
2021-06-27 12:21:57 -05:00
|
|
|
},
|
2021-07-19 12:07:49 -05:00
|
|
|
"eslintConfig": {
|
2023-04-10 12:48:19 -05:00
|
|
|
"extends": "@silverhand",
|
|
|
|
"rules": {
|
2023-06-09 08:55:15 -05:00
|
|
|
"no-console": "error",
|
|
|
|
"import/no-unused-modules": [
|
|
|
|
"error",
|
2023-06-28 05:57:43 -05:00
|
|
|
{
|
|
|
|
"unusedExports": true
|
|
|
|
}
|
2023-06-09 08:55:15 -05:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"files": [
|
|
|
|
"*.d.ts"
|
|
|
|
],
|
|
|
|
"rules": {
|
|
|
|
"import/no-unused-modules": "off"
|
|
|
|
}
|
2023-11-08 02:30:05 -05:00
|
|
|
},
|
2024-04-15 02:04:42 -05:00
|
|
|
{
|
|
|
|
"files": [
|
|
|
|
"*.openapi.json"
|
|
|
|
],
|
|
|
|
"rules": {
|
|
|
|
"max-lines": "off"
|
|
|
|
}
|
|
|
|
},
|
2023-11-08 02:30:05 -05:00
|
|
|
{
|
|
|
|
"files": [
|
|
|
|
"src/include.d/oidc-provider/**/*"
|
|
|
|
],
|
|
|
|
"rules": {
|
|
|
|
"unicorn/filename-case": "off"
|
|
|
|
}
|
2023-12-01 05:28:49 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": [
|
|
|
|
"*.json",
|
|
|
|
"*.json5",
|
|
|
|
"*.jsonc"
|
|
|
|
],
|
|
|
|
"parser": "jsonc-eslint-parser"
|
2023-06-09 08:55:15 -05:00
|
|
|
}
|
|
|
|
]
|
2021-07-19 12:07:49 -05:00
|
|
|
},
|
2021-09-16 03:54:32 -05:00
|
|
|
"prettier": "@silverhand/eslint-config/.prettierrc"
|
2021-06-06 05:30:37 -05:00
|
|
|
}
|