@vuepress/shared
Advanced tools
Comparing version 2.0.0-beta.60 to 2.0.0-beta.61
@@ -250,2 +250,7 @@ import { MarkdownItHeader } from '@mdit-vue/types'; | ||
/** | ||
* Omit properties from an object | ||
*/ | ||
declare const omit: <T extends Record<string, unknown>, U extends string[]>(obj: T, ...keys: U) => Omit<T, U[number]>; | ||
/** | ||
* Remove ending slash / from a string | ||
@@ -272,2 +277,2 @@ */ | ||
export { HeadAttrsConfig, HeadConfig, HeadTag, HeadTagEmpty, HeadTagNonEmpty, LocaleConfig, LocaleData, PageBase, PageData, PageFrontmatter, PageHeader, SiteData, SiteLocaleConfig, SiteLocaleData, VuepressSSRContext, dedupeHead, ensureEndingSlash, ensureLeadingSlash, formatDateString, isLinkExternal, isLinkFtp, isLinkHttp, isLinkMailto, isLinkTel, isPlainObject, removeEndingSlash, removeLeadingSlash, resolveHeadIdentifier, resolveLocalePath, resolveRoutePathFromUrl }; | ||
export { HeadAttrsConfig, HeadConfig, HeadTag, HeadTagEmpty, HeadTagNonEmpty, LocaleConfig, LocaleData, PageBase, PageData, PageFrontmatter, PageHeader, SiteData, SiteLocaleConfig, SiteLocaleData, VuepressSSRContext, dedupeHead, ensureEndingSlash, ensureLeadingSlash, formatDateString, isLinkExternal, isLinkFtp, isLinkHttp, isLinkMailto, isLinkTel, isPlainObject, omit, removeEndingSlash, removeLeadingSlash, resolveHeadIdentifier, resolveLocalePath, resolveRoutePathFromUrl }; |
@@ -79,2 +79,11 @@ // src/utils/index.ts | ||
// src/utils/omit.ts | ||
var omit = (obj, ...keys) => { | ||
const result = { ...obj }; | ||
for (const key of keys) { | ||
delete result[key]; | ||
} | ||
return result; | ||
}; | ||
// src/utils/removeEndingSlash.ts | ||
@@ -119,2 +128,3 @@ var removeEndingSlash = (str) => str.replace(/\/$/, ""); | ||
isString, | ||
omit, | ||
removeEndingSlash, | ||
@@ -121,0 +131,0 @@ removeLeadingSlash, |
{ | ||
"name": "@vuepress/shared", | ||
"version": "2.0.0-beta.60", | ||
"version": "2.0.0-beta.61", | ||
"description": "Utils that shared between VuePress node and client", | ||
@@ -32,4 +32,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@mdit-vue/types": "^0.11.0", | ||
"@vue/shared": "^3.2.45" | ||
"@mdit-vue/types": "^0.12.0", | ||
"@vue/shared": "^3.2.47" | ||
}, | ||
@@ -36,0 +36,0 @@ "publishConfig": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16071
5
489
+ Added@mdit-vue/types@0.12.0(transitive)
- Removed@mdit-vue/types@0.11.0(transitive)
Updated@mdit-vue/types@^0.12.0
Updated@vue/shared@^3.2.47