@vuepress/shared 2.0.0-beta.41 → 2.0.0-beta.44

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.cjs CHANGED
@@ -33,7 +33,6 @@ __export(src_exports, {
33
33
  isLinkMailto: () => isLinkMailto,
34
34
  isLinkTel: () => isLinkTel,
35
35
  isPlainObject: () => isPlainObject,
36
- isPromise: () => import_shared.isPromise,
37
36
  isString: () => import_shared.isString,
38
37
  removeEndingSlash: () => removeEndingSlash,
39
38
  removeLeadingSlash: () => removeLeadingSlash,
@@ -132,7 +131,7 @@ var isLinkExternal = (link, base = "/") => {
132
131
  if (isLinkHttp(link) || isLinkFtp(link)) {
133
132
  return true;
134
133
  }
135
- if (link.startsWith("/") && !link.startsWith(base)) {
134
+ if (link.startsWith("/") && !link.startsWith(base) && !link.endsWith(".md")) {
136
135
  return true;
137
136
  }
138
137
  return false;
@@ -188,7 +187,6 @@ var resolveRoutePathFromUrl = (url, base = "/") => url.replace(/^(https?:)?\/\/[
188
187
  isLinkMailto,
189
188
  isLinkTel,
190
189
  isPlainObject,
191
- isPromise,
192
190
  isString,
193
191
  removeEndingSlash,
194
192
  removeLeadingSlash,
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { isArray, isFunction, isPromise, isString } from '@vue/shared';
1
+ export { isArray, isFunction, isString } from '@vue/shared';
2
2
 
3
3
  /**
4
4
  * Config for `<head>` tags
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/utils/index.ts
2
- import { isArray, isFunction, isPromise, isString } from "@vue/shared";
2
+ import { isArray, isFunction, isString } from "@vue/shared";
3
3
 
4
4
  // src/utils/resolveHeadIdentifier.ts
5
5
  var resolveHeadIdentifier = ([
@@ -87,7 +87,7 @@ var isLinkExternal = (link, base = "/") => {
87
87
  if (isLinkHttp(link) || isLinkFtp(link)) {
88
88
  return true;
89
89
  }
90
- if (link.startsWith("/") && !link.startsWith(base)) {
90
+ if (link.startsWith("/") && !link.startsWith(base) && !link.endsWith(".md")) {
91
91
  return true;
92
92
  }
93
93
  return false;
@@ -142,7 +142,6 @@ export {
142
142
  isLinkMailto,
143
143
  isLinkTel,
144
144
  isPlainObject,
145
- isPromise,
146
145
  isString,
147
146
  removeEndingSlash,
148
147
  removeLeadingSlash,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/shared",
3
- "version": "2.0.0-beta.41",
3
+ "version": "2.0.0-beta.44",
4
4
  "description": "Utils that shared between VuePress node and client",
5
5
  "keywords": [
6
6
  "vuepress",
@@ -51,6 +51,7 @@
51
51
  ],
52
52
  "outDir": "dist",
53
53
  "sourcemap": false,
54
+ "target": "es2020",
54
55
  "tsconfig": "tsconfig.dts.json"
55
56
  },
56
57
  "scripts": {