@alauda/doom 0.23.10 → 0.23.11

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.
package/lib/cli/new.js CHANGED
@@ -107,7 +107,7 @@ export const newCommand = new Command('new')
107
107
  const source = path.resolve(base, render(layout.source, { parameters }));
108
108
  const target = path.resolve(render(layout.target, { parameters }));
109
109
  const when = layout.when && render(layout.when, { parameters });
110
- if (JS_STR_FALSY_VALUES.has(when)) {
110
+ if (when != null && JS_STR_FALSY_VALUES.has(when)) {
111
111
  continue;
112
112
  }
113
113
  switch (layout.type) {
@@ -90,7 +90,7 @@ export const translate = async ({ source, sourceContent, target, targetContent =
90
90
  terms = await resolveTerms();
91
91
  }
92
92
  const finalSystemPrompt = await render(systemPrompt?.trim() || DEFAULT_SYSTEM_PROMPT, { sourceLang, targetLang, userPrompt, additionalPrompts, terms }, { async: true });
93
- const { choices } = await openai.beta.chat.completions.parse({
93
+ const { choices } = await openai.chat.completions.parse({
94
94
  messages: [
95
95
  {
96
96
  role: 'system',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda/doom",
3
- "version": "0.23.10",
3
+ "version": "0.23.11",
4
4
  "type": "module",
5
5
  "description": "Doctor Doom making docs.",
6
6
  "repository": "git+https://github.com/alauda/doom.git",
@@ -33,27 +33,27 @@
33
33
  "rspress-plugins"
34
34
  ],
35
35
  "dependencies": {
36
- "@cspell/eslint-plugin": "^9.0.2",
37
- "@eslint-react/eslint-plugin": "^1.50.0",
36
+ "@cspell/eslint-plugin": "^8.19.4",
37
+ "@eslint-react/eslint-plugin": "^1.51.0",
38
38
  "@inquirer/prompts": "^7.5.3",
39
39
  "@openapi-contrib/openapi-schema-to-json-schema": "^5.1.0",
40
40
  "@playwright/browser-chromium": "^1.52.0",
41
41
  "@rsbuild/plugin-yaml": "^1.0.2",
42
42
  "@rspress/core": "1.44.0",
43
- "@shikijs/transformers": "^3.4.2",
43
+ "@shikijs/transformers": "^3.5.0",
44
44
  "chokidar": "^4.0.3",
45
45
  "cli-progress": "^3.12.0",
46
46
  "clsx": "^2.1.1",
47
47
  "commander": "^13.1.0",
48
48
  "ejs": "^3.1.10",
49
- "es-toolkit": "^1.38.0",
50
- "eslint": "^9.27.0",
49
+ "es-toolkit": "^1.39.0",
50
+ "eslint": "^9.28.0",
51
51
  "eslint-plugin-mdx": "^3.4.2",
52
52
  "html-tag-names": "^2.1.0",
53
53
  "mdast-util-mdx": "^2.0.1",
54
54
  "mdast-util-mdx-jsx": "^2.1.4",
55
55
  "mermaid": "^11.6.0",
56
- "openai": "^5.0.0-beta.0",
56
+ "openai": "^5.1.1",
57
57
  "openapi-types": "^12.1.3",
58
58
  "p-ratelimit": "^1.0.1",
59
59
  "pdf-lib": "^1.17.1",
@@ -67,12 +67,13 @@
67
67
  "remark-gfm": "^3.0.1",
68
68
  "remark-mdx": "^2.3.0",
69
69
  "remark-stringify": "^10.0.3",
70
- "shiki": "^3.4.2",
70
+ "shiki": "^3.6.0",
71
71
  "simple-git": "^3.27.0",
72
72
  "swagger2openapi": "^7.0.8",
73
73
  "tinyglobby": "^0.2.14",
74
74
  "type-fest": "^4.41.0",
75
- "typescript-eslint": "^8.33.0",
75
+ "typescript": "^5.8.3",
76
+ "typescript-eslint": "^8.33.1",
76
77
  "x-fetch": "^0.2.6",
77
78
  "yaml": "^2.8.0",
78
79
  "yoctocolors": "^2.1.1"