@logto/cli 1.0.0-rc.1 → 1.0.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/LICENSE +6 -0
  2. package/lib/commands/connector/add.d.ts +1 -0
  3. package/lib/commands/connector/add.js +13 -3
  4. package/lib/commands/connector/remove.js +1 -1
  5. package/lib/commands/connector/utils.d.ts +2 -2
  6. package/lib/commands/connector/utils.js +6 -5
  7. package/lib/commands/database/alteration/index.js +1 -1
  8. package/lib/commands/database/alteration/index.test.js +1 -1
  9. package/lib/commands/database/alteration/utils.js +1 -1
  10. package/lib/commands/database/alteration/version.js +1 -1
  11. package/lib/commands/database/config.js +39 -17
  12. package/lib/commands/database/index.js +2 -1
  13. package/lib/commands/database/seed/cloud.d.ts +10 -0
  14. package/lib/commands/database/seed/cloud.js +34 -0
  15. package/lib/commands/database/seed/index.d.ts +2 -4
  16. package/lib/commands/database/seed/index.js +24 -129
  17. package/lib/commands/database/seed/oidc-config.d.ts +2 -0
  18. package/lib/commands/database/seed/oidc-config.js +45 -2
  19. package/lib/commands/database/seed/tables.d.ts +4 -0
  20. package/lib/commands/database/seed/tables.js +109 -0
  21. package/lib/commands/database/seed/tenant.d.ts +5 -0
  22. package/lib/commands/database/seed/tenant.js +53 -0
  23. package/lib/commands/database/system.d.ts +3 -0
  24. package/lib/commands/database/system.js +63 -0
  25. package/lib/commands/database/{utilities.js → utils.js} +2 -2
  26. package/lib/commands/install/index.d.ts +2 -2
  27. package/lib/commands/install/index.js +9 -8
  28. package/lib/commands/install/utils.d.ts +1 -1
  29. package/lib/commands/install/utils.js +3 -3
  30. package/lib/connector/consts.d.ts +7 -0
  31. package/lib/connector/consts.js +10 -0
  32. package/lib/connector/factories.d.ts +2 -0
  33. package/lib/connector/factories.js +34 -0
  34. package/lib/connector/index.d.ts +4 -0
  35. package/lib/connector/index.js +4 -0
  36. package/lib/connector/loader.d.ts +2 -0
  37. package/lib/connector/loader.js +48 -0
  38. package/lib/connector/types.d.ts +12 -0
  39. package/lib/connector/types.js +1 -0
  40. package/lib/connector/utils.d.ts +303 -0
  41. package/lib/connector/utils.js +51 -0
  42. package/lib/database.js +3 -4
  43. package/lib/index.js +1 -1
  44. package/lib/package-json.d.ts +2 -3
  45. package/lib/package-json.js +10 -14
  46. package/lib/queries/database.d.ts +2 -0
  47. package/lib/queries/database.js +7 -0
  48. package/lib/queries/logto-config.d.ts +2 -2
  49. package/lib/queries/logto-config.js +6 -5
  50. package/lib/queries/system.d.ts +5 -0
  51. package/lib/queries/system.js +13 -4
  52. package/lib/queries/system.test.js +7 -3
  53. package/package.json +12 -16
  54. /package/lib/commands/database/{utilities.d.ts → utils.d.ts} +0 -0
  55. /package/lib/{test-utilities.d.ts → test-utils.d.ts} +0 -0
  56. /package/lib/{test-utilities.js → test-utils.js} +0 -0
  57. /package/lib/{utilities.d.ts → utils.d.ts} +0 -0
  58. /package/lib/{utilities.js → utils.js} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logto/cli",
3
- "version": "1.0.0-rc.1",
3
+ "version": "1.0.0-rc.3",
4
4
  "description": "Logto CLI.",
5
5
  "author": "Silverhand Inc. <contact@silverhand.io>",
6
6
  "homepage": "https://github.com/logto-io/logto#readme",
@@ -28,7 +28,7 @@
28
28
  "url": "https://github.com/logto-io/logto/issues"
29
29
  },
30
30
  "dependencies": {
31
- "@silverhand/essentials": "2.1.0",
31
+ "@silverhand/essentials": "^2.5.0",
32
32
  "chalk": "^5.0.0",
33
33
  "decamelize": "^6.0.0",
34
34
  "dotenv": "^16.0.0",
@@ -39,6 +39,7 @@
39
39
  "ora": "^6.1.2",
40
40
  "p-limit": "^4.0.0",
41
41
  "p-retry": "^5.1.2",
42
+ "pg-protocol": "^1.6.0",
42
43
  "roarr": "^7.11.0",
43
44
  "semver": "^7.3.8",
44
45
  "slonik": "^30.0.0",
@@ -47,35 +48,30 @@
47
48
  "tar": "^6.1.11",
48
49
  "yargs": "^17.6.0",
49
50
  "zod": "^3.20.2",
51
+ "@logto/connector-kit": "1.0.0-rc.3",
50
52
  "@logto/core-kit": "1.0.0-rc.0",
51
- "@logto/schemas": "1.0.0-rc.0",
52
- "@logto/shared": "1.0.0-rc.0"
53
+ "@logto/schemas": "1.0.0-rc.1",
54
+ "@logto/shared": "1.0.0-rc.1"
53
55
  },
54
56
  "devDependencies": {
55
- "@silverhand/eslint-config": "1.3.0",
56
- "@silverhand/ts-config": "1.2.1",
57
+ "@silverhand/eslint-config": "2.0.1",
58
+ "@silverhand/ts-config": "2.0.3",
57
59
  "@types/inquirer": "^9.0.0",
58
- "@types/jest": "^29.1.2",
60
+ "@types/jest": "^29.4.0",
59
61
  "@types/node": "^18.11.18",
60
62
  "@types/semver": "^7.3.12",
61
63
  "@types/sinon": "^10.0.13",
62
64
  "@types/tar": "^6.1.2",
63
65
  "@types/yargs": "^17.0.13",
64
- "eslint": "^8.21.0",
65
- "jest": "^29.3.1",
66
+ "eslint": "^8.34.0",
67
+ "jest": "^29.5.0",
66
68
  "lint-staged": "^13.0.0",
67
- "prettier": "^2.8.1",
69
+ "prettier": "^2.8.2",
68
70
  "sinon": "^15.0.0",
69
71
  "typescript": "^4.9.4"
70
72
  },
71
73
  "eslintConfig": {
72
74
  "extends": "@silverhand",
73
- "rules": {
74
- "complexity": [
75
- "error",
76
- 11
77
- ]
78
- },
79
75
  "ignorePatterns": [
80
76
  "src/package-json.ts"
81
77
  ]
File without changes
File without changes
File without changes
File without changes