@rspress/shared 1.42.1-canary-20240226 → 1.42.1-canary-20240227
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/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -35,9 +35,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
35
35
|
removeLeadingSlash: ()=>removeLeadingSlash,
|
36
36
|
withoutBase: ()=>withoutBase,
|
37
37
|
replaceVersion: ()=>replaceVersion,
|
38
|
-
MDX_REGEXP: ()=>MDX_REGEXP,
|
39
38
|
HASH_REGEXP: ()=>HASH_REGEXP,
|
40
39
|
isSCM: ()=>isSCM,
|
40
|
+
MDX_OR_MD_REGEXP: ()=>MDX_OR_MD_REGEXP,
|
41
41
|
normalizeHref: ()=>normalizeHref,
|
42
42
|
normalizeSlash: ()=>normalizeSlash,
|
43
43
|
normalizePosixPath: ()=>normalizePosixPath,
|
@@ -60,7 +60,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
60
60
|
});
|
61
61
|
const QUERY_REGEXP = /\?.*$/s;
|
62
62
|
const HASH_REGEXP = /#.*$/s;
|
63
|
-
const
|
63
|
+
const MDX_OR_MD_REGEXP = /\.mdx?$/;
|
64
64
|
const APPEARANCE_KEY = 'rspress-theme-appearance';
|
65
65
|
const SEARCH_INDEX_NAME = 'search_index';
|
66
66
|
const RSPRESS_TEMP_DIR = '.rspress';
|
package/dist/index.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
const QUERY_REGEXP = /\?.*$/s;
|
2
2
|
const HASH_REGEXP = /#.*$/s;
|
3
|
-
const
|
3
|
+
const MDX_OR_MD_REGEXP = /\.mdx?$/;
|
4
4
|
const APPEARANCE_KEY = 'rspress-theme-appearance';
|
5
5
|
const SEARCH_INDEX_NAME = 'search_index';
|
6
6
|
const RSPRESS_TEMP_DIR = '.rspress';
|
@@ -156,4 +156,4 @@ function withBase(url, base) {
|
|
156
156
|
function removeBase(url, base) {
|
157
157
|
return addLeadingSlash(url).replace(new RegExp(`^${normalizeSlash(base)}`), '');
|
158
158
|
}
|
159
|
-
export { APPEARANCE_KEY, DEFAULT_HIGHLIGHT_LANGUAGES, HASH_REGEXP,
|
159
|
+
export { APPEARANCE_KEY, DEFAULT_HIGHLIGHT_LANGUAGES, HASH_REGEXP, MDX_OR_MD_REGEXP, QUERY_REGEXP, RSPRESS_TEMP_DIR, SEARCH_INDEX_NAME, addLeadingSlash, addTrailingSlash, runtime_utils_cleanUrl as cleanUrl, inBrowser, isDataUrl, isDebugMode, isDevDebugMode, isExternalUrl, isProduction, isSCM, normalizeHref, normalizePosixPath, normalizeSlash, parseUrl, removeBase, removeHash, removeLeadingSlash, removeTrailingSlash, replaceLang, replaceVersion, slash, withBase, withoutBase, withoutLang };
|