@logto/cli 1.9.1 → 1.10.0

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.
@@ -1,6 +1,6 @@
1
1
  import { generateKeyPair } from 'node:crypto';
2
2
  import { promisify } from 'node:util';
3
- import { generateStandardId } from '@logto/shared';
3
+ import { generateStandardSecret } from '@logto/shared';
4
4
  export var PrivateKeyType;
5
5
  (function (PrivateKeyType) {
6
6
  PrivateKeyType["RSA"] = "rsa";
@@ -39,4 +39,4 @@ export const generateOidcPrivateKey = async (type = PrivateKeyType.EC) => {
39
39
  }
40
40
  throw new Error(`Unsupported private key ${String(type)}`);
41
41
  };
42
- export const generateOidcCookieKey = () => generateStandardId();
42
+ export const generateOidcCookieKey = () => generateStandardSecret();
@@ -109,7 +109,9 @@ export const parseLocaleFiles = (filePath) => {
109
109
  nestedObject[key] = [value, false];
110
110
  }
111
111
  else {
112
- consoleLog.fatal('Unsupported comment:', comment);
112
+ // eslint-disable-next-line @silverhand/fp/no-mutation
113
+ nestedObject[key] = [value, true];
114
+ consoleLog.warn('Unsupported comment:', comment);
113
115
  }
114
116
  }
115
117
  else {
@@ -1,6 +1,6 @@
1
1
  export const packageJson = {
2
2
  "name": "@logto/cli",
3
- "version": "1.9.1",
3
+ "version": "1.10.0",
4
4
  "description": "Logto CLI.",
5
5
  "author": "Silverhand Inc. <contact@silverhand.io>",
6
6
  "homepage": "https://github.com/logto-io/logto#readme",
@@ -44,12 +44,12 @@ export const packageJson = {
44
44
  },
45
45
  "dependencies": {
46
46
  "@logto/connector-kit": "workspace:^1.1.1",
47
- "@logto/core-kit": "workspace:^2.1.1",
47
+ "@logto/core-kit": "workspace:^2.2.0",
48
48
  "@logto/language-kit": "workspace:^1.0.0",
49
49
  "@logto/phrases": "workspace:^1.5.0",
50
50
  "@logto/phrases-experience": "workspace:^1.3.1",
51
- "@logto/schemas": "workspace:1.9.1",
52
- "@logto/shared": "workspace:^2.0.1",
51
+ "@logto/schemas": "workspace:1.10.0",
52
+ "@logto/shared": "workspace:^3.0.0",
53
53
  "@silverhand/essentials": "^2.8.4",
54
54
  "chalk": "^5.0.0",
55
55
  "decamelize": "^6.0.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logto/cli",
3
- "version": "1.9.1",
3
+ "version": "1.10.0",
4
4
  "description": "Logto CLI.",
5
5
  "author": "Silverhand Inc. <contact@silverhand.io>",
6
6
  "homepage": "https://github.com/logto-io/logto#readme",
@@ -29,12 +29,12 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@logto/connector-kit": "^1.1.1",
32
- "@logto/core-kit": "^2.1.1",
32
+ "@logto/core-kit": "^2.2.0",
33
33
  "@logto/language-kit": "^1.0.0",
34
34
  "@logto/phrases": "^1.5.0",
35
35
  "@logto/phrases-experience": "^1.3.1",
36
- "@logto/schemas": "1.9.1",
37
- "@logto/shared": "^2.0.1",
36
+ "@logto/schemas": "1.10.0",
37
+ "@logto/shared": "^3.0.0",
38
38
  "@silverhand/essentials": "^2.8.4",
39
39
  "chalk": "^5.0.0",
40
40
  "decamelize": "^6.0.0",