@alauda/doom 1.12.3 → 1.12.4
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,8 +1,8 @@
|
|
|
1
1
|
import { logger } from '@rspress/core';
|
|
2
|
+
import { isProduction } from '@rspress/shared';
|
|
2
3
|
import { render } from 'ejs';
|
|
3
4
|
import { ResponseError, xfetch } from 'x-fetch';
|
|
4
5
|
import { cyan, red } from 'yoctocolors';
|
|
5
|
-
import { isCI } from './utils.js';
|
|
6
6
|
const releaseCache = new Map();
|
|
7
7
|
const FIELD_MAPPER = {
|
|
8
8
|
zh: 'customfield_13800',
|
|
@@ -69,7 +69,7 @@ const resolveRelease_ = async (releaseTemplates, releaseQuery, isMdx) => {
|
|
|
69
69
|
}
|
|
70
70
|
warned = true;
|
|
71
71
|
const message = `\`${cyan('JIRA_USERNAME')}\` and \`${cyan('JIRA_PASSWORD')}\` environments must be set for fetching Jira issues`;
|
|
72
|
-
if (
|
|
72
|
+
if (isProduction()) {
|
|
73
73
|
throw new Error(message);
|
|
74
74
|
}
|
|
75
75
|
logger.warn(message);
|
|
@@ -83,7 +83,7 @@ const resolveRelease_ = async (releaseTemplates, releaseQuery, isMdx) => {
|
|
|
83
83
|
data[key] = value;
|
|
84
84
|
}
|
|
85
85
|
const jql = await render(template, data, { async: true });
|
|
86
|
-
logger.info(`Fetching release notes for query \`${cyan(releaseQuery)}\``);
|
|
86
|
+
logger.info(`Fetching release notes for query \`${cyan(releaseQuery)}\`, JQL: \`${cyan(jql)}\``);
|
|
87
87
|
let issues;
|
|
88
88
|
try {
|
|
89
89
|
;
|
|
@@ -94,6 +94,9 @@ const resolveRelease_ = async (releaseTemplates, releaseQuery, isMdx) => {
|
|
|
94
94
|
const error = err;
|
|
95
95
|
logger.error(`Failed to fetch release notes for query \`${red(releaseQuery)}\` with status \`${error.response.status}\` and ${error.data ? `data ${JSON.stringify(error.data, null, 2)}` : `message \`${error.message}\``}`);
|
|
96
96
|
}
|
|
97
|
+
if (isProduction()) {
|
|
98
|
+
throw err;
|
|
99
|
+
}
|
|
97
100
|
return;
|
|
98
101
|
}
|
|
99
102
|
return ['en', 'zh'].reduce((acc, lang) => Object.assign(acc, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alauda/doom",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Doctor Doom making docs.",
|
|
6
6
|
"repository": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@alauda/doom-export": "^0.1.0",
|
|
44
44
|
"@cspell/eslint-plugin": "^8.19.4 || ^9.2.0",
|
|
45
|
-
"@eslint-react/eslint-plugin": "^1.52.
|
|
45
|
+
"@eslint-react/eslint-plugin": "^1.52.9",
|
|
46
46
|
"@inquirer/prompts": "^7.8.4",
|
|
47
47
|
"@openapi-contrib/openapi-schema-to-json-schema": "^5.1.0",
|
|
48
48
|
"@playwright/browser-chromium": "^1.55.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@rspress/plugin-llms": "2.0.0-beta.29",
|
|
56
56
|
"@rspress/plugin-sitemap": "2.0.0-beta.29",
|
|
57
57
|
"@rspress/shared": "2.0.0-beta.29",
|
|
58
|
-
"@shikijs/transformers": "^3.12.
|
|
58
|
+
"@shikijs/transformers": "^3.12.1",
|
|
59
59
|
"@total-typescript/ts-reset": "^0.6.1",
|
|
60
60
|
"ab64": "^0.1.6",
|
|
61
61
|
"chokidar": "^4.0.3",
|
|
@@ -93,10 +93,10 @@
|
|
|
93
93
|
"remark-lint-no-chinese-punctuation-in-number": "^0.1.2",
|
|
94
94
|
"remark-lint-no-duplicate-headings-in-section": "^4.0.1",
|
|
95
95
|
"remark-lint-no-hidden-table-cell": "^1.0.1",
|
|
96
|
-
"remark-mdx": "^3.1.
|
|
96
|
+
"remark-mdx": "^3.1.1",
|
|
97
97
|
"remark-message-control": "^8.0.0",
|
|
98
98
|
"remark-stringify": "^11.0.0",
|
|
99
|
-
"shiki": "^3.12.
|
|
99
|
+
"shiki": "^3.12.1",
|
|
100
100
|
"simple-git": "^3.28.0",
|
|
101
101
|
"string-width": "^7.2.0",
|
|
102
102
|
"swagger2openapi": "^7.0.8",
|