@vuepress/shared
Advanced tools
Comparing version 2.0.0-alpha.19 to 2.0.0-alpha.20
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.0.0-alpha.20](https://github.com/vuepress/vuepress-next/compare/v2.0.0-alpha.19...v2.0.0-alpha.20) (2021-02-04) | ||
### Features | ||
* **core:** make language available in page data ([03bb09f](https://github.com/vuepress/vuepress-next/commit/03bb09fd51aeaff56d26820a1401b87ea8bdeb38)) | ||
# [2.0.0-alpha.19](https://github.com/vuepress/vuepress-next/compare/v2.0.0-alpha.18...v2.0.0-alpha.19) (2021-01-24) | ||
@@ -8,0 +19,0 @@ |
@@ -30,2 +30,6 @@ import type { HeadConfig } from './head'; | ||
/** | ||
* Language of the page | ||
*/ | ||
lang: string; | ||
/** | ||
* Front matter of the page | ||
@@ -32,0 +36,0 @@ */ |
@@ -13,4 +13,4 @@ /** | ||
const [, yearStr, monthStr, dayStr] = dateMatch; | ||
return [yearStr, `0${monthStr}`.slice(-2), `0${dayStr}`.slice(-2)].join('-'); | ||
return [yearStr, monthStr.padStart(2, '0'), dayStr.padStart(2, '0')].join('-'); | ||
}; | ||
//# sourceMappingURL=formatDateString.js.map |
@@ -30,2 +30,6 @@ import type { HeadConfig } from './head'; | ||
/** | ||
* Language of the page | ||
*/ | ||
lang: string; | ||
/** | ||
* Front matter of the page | ||
@@ -32,0 +36,0 @@ */ |
@@ -16,5 +16,5 @@ "use strict"; | ||
const [, yearStr, monthStr, dayStr] = dateMatch; | ||
return [yearStr, `0${monthStr}`.slice(-2), `0${dayStr}`.slice(-2)].join('-'); | ||
return [yearStr, monthStr.padStart(2, '0'), dayStr.padStart(2, '0')].join('-'); | ||
}; | ||
exports.formatDateString = formatDateString; | ||
//# sourceMappingURL=formatDateString.js.map |
{ | ||
"name": "@vuepress/shared", | ||
"version": "2.0.0-alpha.19", | ||
"version": "2.0.0-alpha.20", | ||
"description": "Utils that shared between VuePress node and client", | ||
@@ -36,3 +36,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "e552dec8e107b66196515c8245b5385de85e3dc3" | ||
"gitHead": "5c80ff3d24e4303734c87626b862ea04ff441ffa" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
237396
1092