@rspress/shared 1.9.3 → 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.
- package/dist/index.d.ts +1 -1
- package/dist/logger.d.ts +1 -1
- package/dist/logger.js +2 -2
- package/dist/logger.mjs +1 -1
- package/dist/node-utils.js +2 -2
- package/dist/node-utils.mjs +1 -1
- package/package.json +2 -3
package/dist/index.d.ts
CHANGED
@@ -726,4 +726,4 @@ declare function removeBase(url: string, base: string): string;
|
|
726
726
|
declare function withoutHash(url: string): string;
|
727
727
|
declare const mergeDocConfig: (...configs: UserConfig[]) => UserConfig;
|
728
728
|
|
729
|
-
export { APPEARANCE_KEY, AdditionalPage, BaseRuntimePageInfo, Config, DEFAULT_HIGHLIGHT_LANGUAGES, Config$1 as DefaultThemeConfig, DocFooter, EditLink, Feature, Footer, FrontMatterMeta, HASH_REGEXP, Header, Hero, Image, LocalSearchOptions, Locale, LocaleConfig, LocaleLink, LocaleLinks, MDX_REGEXP, MarkdownOptions, MdxRsOptions, Nav, NavItem, NavItemWithChildren, NavItemWithLink, NavItemWithLinkAndChildren, NormalizedConfig, NormalizedConfig as NormalizedDefaultThemeConfig, NormalizedLocales, NormalizedSidebar, NormalizedSidebarGroup, PageData, PageIndexInfo, PageModule, PageType, RspressPlugin as Plugin, QUERY_REGEXP, RSPRESS_TEMP_DIR, RemotePageInfo, RemoteSearchIndexInfo, RemoteSearchOptions, ReplaceRule, Route, RouteMeta, RouteOptions, RspressPlugin, SEARCH_INDEX_NAME, SearchHooks, SearchOptions, Sidebar, SidebarDivider, SidebarGroup, SidebarItem, SiteData, SocialLink, SocialLinkIcon, UserConfig, addLeadingSlash, addTrailingSlash, cleanUrl, inBrowser, isDataUrl, isDebugMode, isExternalUrl, isProduction, isSCM, mergeDocConfig, normalizeHref, normalizePosixPath, normalizeSlash, omit, parseUrl, removeBase, removeHash, removeLeadingSlash, removeTrailingSlash, replaceLang, replaceVersion, slash, withBase, withoutBase, withoutHash, withoutLang };
|
729
|
+
export { APPEARANCE_KEY, type AdditionalPage, type BaseRuntimePageInfo, type Config, DEFAULT_HIGHLIGHT_LANGUAGES, type Config$1 as DefaultThemeConfig, type DocFooter, type EditLink, type Feature, type Footer, type FrontMatterMeta, HASH_REGEXP, type Header, type Hero, type Image, type LocalSearchOptions, type Locale, type LocaleConfig, type LocaleLink, type LocaleLinks, MDX_REGEXP, type MarkdownOptions, type MdxRsOptions, type Nav, type NavItem, type NavItemWithChildren, type NavItemWithLink, type NavItemWithLinkAndChildren, type NormalizedConfig, type NormalizedConfig as NormalizedDefaultThemeConfig, type NormalizedLocales, type NormalizedSidebar, type NormalizedSidebarGroup, type PageData, type PageIndexInfo, type PageModule, type PageType, type RspressPlugin as Plugin, QUERY_REGEXP, RSPRESS_TEMP_DIR, type RemotePageInfo, type RemoteSearchIndexInfo, type RemoteSearchOptions, type ReplaceRule, type Route, type RouteMeta, type RouteOptions, type RspressPlugin, SEARCH_INDEX_NAME, type SearchHooks, type SearchOptions, type Sidebar, type SidebarDivider, type SidebarGroup, type SidebarItem, type SiteData, type SocialLink, type SocialLinkIcon, type UserConfig, addLeadingSlash, addTrailingSlash, cleanUrl, inBrowser, isDataUrl, isDebugMode, isExternalUrl, isProduction, isSCM, mergeDocConfig, normalizeHref, normalizePosixPath, normalizeSlash, omit, parseUrl, removeBase, removeHash, removeLeadingSlash, removeTrailingSlash, replaceLang, replaceVersion, slash, withBase, withoutBase, withoutHash, withoutLang };
|
package/dist/logger.d.ts
CHANGED
package/dist/logger.js
CHANGED
@@ -20,10 +20,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
20
20
|
// src/logger.ts
|
21
21
|
var logger_exports = {};
|
22
22
|
__export(logger_exports, {
|
23
|
-
logger: () =>
|
23
|
+
logger: () => import_core.logger
|
24
24
|
});
|
25
25
|
module.exports = __toCommonJS(logger_exports);
|
26
|
-
var
|
26
|
+
var import_core = require("@rsbuild/core");
|
27
27
|
// Annotate the CommonJS export names for ESM import in node:
|
28
28
|
0 && (module.exports = {
|
29
29
|
logger
|
package/dist/logger.mjs
CHANGED
package/dist/node-utils.js
CHANGED
@@ -39,7 +39,7 @@ var import_path = __toESM(require("path"));
|
|
39
39
|
var import_gray_matter = __toESM(require("gray-matter"));
|
40
40
|
|
41
41
|
// src/logger.ts
|
42
|
-
var
|
42
|
+
var import_core = require("@rsbuild/core");
|
43
43
|
|
44
44
|
// src/node-utils/loadFrontMatter.ts
|
45
45
|
function loadFrontMatter(source, filepath, root, outputWarning = false) {
|
@@ -49,7 +49,7 @@ function loadFrontMatter(source, filepath, root, outputWarning = false) {
|
|
49
49
|
({ data: frontmatter, content } = (0, import_gray_matter.default)(source));
|
50
50
|
} catch (e) {
|
51
51
|
if (outputWarning) {
|
52
|
-
|
52
|
+
import_core.logger.warn(
|
53
53
|
`Parse frontmatter error: ${e.message} in ${import_path.default.relative(
|
54
54
|
root,
|
55
55
|
filepath
|
package/dist/node-utils.mjs
CHANGED
@@ -3,7 +3,7 @@ import path from "path";
|
|
3
3
|
import grayMatter from "gray-matter";
|
4
4
|
|
5
5
|
// src/logger.ts
|
6
|
-
import { logger } from "
|
6
|
+
import { logger } from "@rsbuild/core";
|
7
7
|
|
8
8
|
// src/node-utils/loadFrontMatter.ts
|
9
9
|
function loadFrontMatter(source, filepath, root, outputWarning = false) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@rspress/shared",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.10.0",
|
4
4
|
"types": "./dist/index.d.ts",
|
5
5
|
"main": "./dist/index.js",
|
6
6
|
"module": "./dist/index.mjs",
|
@@ -42,10 +42,9 @@
|
|
42
42
|
}
|
43
43
|
},
|
44
44
|
"dependencies": {
|
45
|
-
"@rsbuild/core": "0.
|
45
|
+
"@rsbuild/core": "0.3.1",
|
46
46
|
"unified": "10.1.2",
|
47
47
|
"chalk": "4.1.2",
|
48
|
-
"rslog": "^1.1.0",
|
49
48
|
"execa": "5.1.1",
|
50
49
|
"fs-extra": "11.2.0",
|
51
50
|
"gray-matter": "4.0.3"
|