-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade vuepress & vuepress-theme-meteorlxy + fix "Invalid Date"
- Loading branch information
1 parent
b5c62ab
commit 9099ff3
Showing
3 changed files
with
95 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/node_modules/@vuepress/plugin-last-updated/index.js b/node_modules/@vuepress/plugin-last-updated/index.js | ||
index 72e4809..604bbf7 100644 | ||
--- a/node_modules/@vuepress/plugin-last-updated/index.js | ||
+++ b/node_modules/@vuepress/plugin-last-updated/index.js | ||
@@ -16,7 +16,8 @@ module.exports = (options = {}, context) => ({ | ||
}) | ||
|
||
function defaultTransformer (timestamp, lang, dateOptions) { | ||
- return new Date(timestamp).toLocaleString(lang, dateOptions) | ||
+ // return new Date(timestamp).toLocaleString(lang, dateOptions) | ||
+ return new Date(timestamp).toISOString() // TODO: FIX_ME: Tmp fix [Updated: Invalid Date] which could not be fixed by https://www.wkii.net/Tech/use-vuepress-push-blog.html#%E6%97%B6%E9%97%B4%E6%A0%BC%E5%BC%8F%E9%97%AE%E9%A2%98 | ||
} | ||
|
||
function getGitLastUpdatedTimeStamp (filePath) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1077,7 +1077,7 @@ | |
optionalDependencies: | ||
prettier "^1.18.2" | ||
|
||
"@vuepress/core@1.7.1": | ||
"@vuepress/core@^1.3.0": | ||
version "1.7.1" | ||
resolved "https://registry.npmjs.org/@vuepress/core/-/core-1.7.1.tgz#e92faad0e9445fdd775f8e0d65e927bc35e80571" | ||
integrity sha512-M5sxZq30Ke1vXa4ZZjk6185fwtpiJOqzXNnzcIe0GxtvtaF8Yij6b+KqQKlUJnnUXm+CKxiLCr8PTzDY26N7yw== | ||
|
@@ -1203,7 +1203,7 @@ | |
toml "^3.0.0" | ||
upath "^1.1.0" | ||
|
||
"@vuepress/theme-default@1.7.1": | ||
"@vuepress/theme-default@^1.3.0": | ||
version "1.7.1" | ||
resolved "https://registry.npmjs.org/@vuepress/theme-default/-/theme-default-1.7.1.tgz#36fee5bb5165798c0082c512cbf4d94352260d97" | ||
integrity sha512-a9HeTrlcWQj3ONHiABmlN2z9TyIxKfQtLsA8AL+WgjN3PikhFuZFIJGzfr+NLt67Y9oiI+S9ZfiaVyvWM+7bWQ== | ||
|
@@ -1373,6 +1373,11 @@ | |
resolved "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz#d291c6a4e97989b5c61d9acf396ae4fe133a718d" | ||
integrity sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ== | ||
|
||
"@yarnpkg/lockfile@^1.1.0": | ||
version "1.1.0" | ||
resolved "https://registry.npmjs.org/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz#e77a97fbd345b76d83245edcd17d393b1b41fb31" | ||
integrity sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ== | ||
|
||
abbrev@1: | ||
version "1.1.1" | ||
resolved "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" | ||
|
@@ -1963,7 +1968,7 @@ [email protected]: | |
resolved "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz#f6cf7933a360e0588fa9fde85651cdc7f805d1f6" | ||
integrity sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg== | ||
|
||
cac@^6.5.6: | ||
cac@^6.5.5: | ||
version "6.7.1" | ||
resolved "https://registry.npmjs.org/cac/-/cac-6.7.1.tgz#0609d28a31d887746de4b66a15e3914f106f880c" | ||
integrity sha512-LfGt47+ugCY65W4yUEyxnZKd/tJSBJD/gUAxQGiQjH7yqdhbaX2XN0Rli4+0W0DJiDONmYeh0TlJxMtXGZspIg== | ||
|
@@ -3537,6 +3542,14 @@ find-up@^4.0.0: | |
locate-path "^5.0.0" | ||
path-exists "^4.0.0" | ||
|
||
find-yarn-workspace-root@^1.2.1: | ||
version "1.2.1" | ||
resolved "https://registry.npmjs.org/find-yarn-workspace-root/-/find-yarn-workspace-root-1.2.1.tgz#40eb8e6e7c2502ddfaa2577c176f221422f860db" | ||
integrity sha512-dVtfb0WuQG+8Ag2uWkbG79hOUzEsRrhBzgfn86g2sJPkzmcpGdghbNTfUKGTxymFrY/tLIodDzLoW9nOJ4FY8Q== | ||
dependencies: | ||
fs-extra "^4.0.3" | ||
micromatch "^3.1.4" | ||
|
||
flush-write-stream@^1.0.0: | ||
version "1.1.1" | ||
resolved "https://registry.npmjs.org/flush-write-stream/-/flush-write-stream-1.1.1.tgz#8dd7d873a1babc207d94ead0c2e0e44276ebf2e8" | ||
|
@@ -3606,6 +3619,15 @@ from2@^2.1.0: | |
inherits "^2.0.1" | ||
readable-stream "^2.0.0" | ||
|
||
fs-extra@^4.0.3: | ||
version "4.0.3" | ||
resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-4.0.3.tgz#0d852122e5bc5beb453fb028e9c0c9bf36340c94" | ||
integrity sha512-q6rbdDd1o2mAnQreO7YADIxf/Whx4AHBiRf6d+/cVT8h44ss+lHgxf1FemcqDnQt9X3ct4McHr+JMGlYSsK7Cg== | ||
dependencies: | ||
graceful-fs "^4.1.2" | ||
jsonfile "^4.0.0" | ||
universalify "^0.1.0" | ||
|
||
fs-extra@^7.0.1: | ||
version "7.0.1" | ||
resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz#4f189c44aa123b895f722804f55ea23eadc348e9" | ||
|
@@ -4748,6 +4770,13 @@ kind-of@^6.0.0, kind-of@^6.0.2: | |
resolved "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" | ||
integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== | ||
|
||
klaw-sync@^6.0.0: | ||
version "6.0.0" | ||
resolved "https://registry.npmjs.org/klaw-sync/-/klaw-sync-6.0.0.tgz#1fd2cfd56ebb6250181114f0a581167099c2b28c" | ||
integrity sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ== | ||
dependencies: | ||
graceful-fs "^4.1.11" | ||
|
||
last-call-webpack-plugin@^3.0.0: | ||
version "3.0.0" | ||
resolved "https://registry.npmjs.org/last-call-webpack-plugin/-/last-call-webpack-plugin-3.0.0.tgz#9742df0e10e3cf46e5c0381c2de90d3a7a2d7555" | ||
|
@@ -5531,6 +5560,11 @@ os-browserify@^0.3.0: | |
resolved "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz#854373c7f5c2315914fc9bfc6bd8238fdda1ec27" | ||
integrity sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc= | ||
|
||
os-tmpdir@~1.0.2: | ||
version "1.0.2" | ||
resolved "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" | ||
integrity sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ= | ||
|
||
p-cancelable@^1.0.0: | ||
version "1.1.0" | ||
resolved "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz#d078d15a3af409220c886f1d9a0ca2e441ab26cc" | ||
|
@@ -5639,6 +5673,24 @@ pascalcase@^0.1.1: | |
resolved "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" | ||
integrity sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ= | ||
|
||
patch-package@^6.2.2: | ||
version "6.2.2" | ||
resolved "https://registry.npmjs.org/patch-package/-/patch-package-6.2.2.tgz#71d170d650c65c26556f0d0fbbb48d92b6cc5f39" | ||
integrity sha512-YqScVYkVcClUY0v8fF0kWOjDYopzIM8e3bj/RU1DPeEF14+dCGm6UeOYm4jvCyxqIEQ5/eJzmbWfDWnUleFNMg== | ||
dependencies: | ||
"@yarnpkg/lockfile" "^1.1.0" | ||
chalk "^2.4.2" | ||
cross-spawn "^6.0.5" | ||
find-yarn-workspace-root "^1.2.1" | ||
fs-extra "^7.0.1" | ||
is-ci "^2.0.0" | ||
klaw-sync "^6.0.0" | ||
minimist "^1.2.0" | ||
rimraf "^2.6.3" | ||
semver "^5.6.0" | ||
slash "^2.0.0" | ||
tmp "^0.0.33" | ||
|
||
[email protected]: | ||
version "0.0.1" | ||
resolved "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.1.tgz#e6c4ddd7ed3aa27c68a20cc4e50e1a4ee83bbc4a" | ||
|
@@ -6109,6 +6161,11 @@ postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.14, postcss@^7.0.26, postcss@^7.0.2 | |
source-map "^0.6.1" | ||
supports-color "^6.1.0" | ||
|
||
postinstall-postinstall@^2.1.0: | ||
version "2.1.0" | ||
resolved "https://registry.npmjs.org/postinstall-postinstall/-/postinstall-postinstall-2.1.0.tgz#4f7f77441ef539d1512c40bd04c71b06a4704ca3" | ||
integrity sha512-7hQX6ZlZXIoRiWNrbMQaLzUUfH+sSx39u8EJ9HYuDc1kLo9IXKWjM5RSquZN1ad5GnH8CGFM78fsAAQi3OKEEQ== | ||
|
||
prepend-http@^2.0.0: | ||
version "2.0.0" | ||
resolved "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897" | ||
|
@@ -7297,6 +7354,13 @@ tiny-emitter@^2.0.0: | |
resolved "https://registry.npmjs.org/tiny-emitter/-/tiny-emitter-2.1.0.tgz#1d1a56edfc51c43e863cbb5382a72330e3555423" | ||
integrity sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q== | ||
|
||
tmp@^0.0.33: | ||
version "0.0.33" | ||
resolved "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" | ||
integrity sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw== | ||
dependencies: | ||
os-tmpdir "~1.0.2" | ||
|
||
to-arraybuffer@^1.0.0: | ||
version "1.0.1" | ||
resolved "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466ca081180836a7aabff83f43" | ||
|
@@ -7876,7 +7940,7 @@ vuepress-plugin-zooming@^1.1.7: | |
dependencies: | ||
zooming "^2.1.1" | ||
|
||
vuepress-theme-meteorlxy@^1.5.0: | ||
vuepress-theme-meteorlxy@1.9.0: | ||
version "1.9.0" | ||
resolved "https://registry.npmjs.org/vuepress-theme-meteorlxy/-/vuepress-theme-meteorlxy-1.9.0.tgz#f19fce28661dcca4a414ec6c64e12520bd624773" | ||
integrity sha512-wrfhnVKn80U12oqYhbpjEizmwmQfV/W8vVyYLwVsVjtvG8uWiyJ+CmhdY89lGFl6pcSKfTcVeum3jOvttKcAyg== | ||
|
@@ -7901,14 +7965,14 @@ vuepress-theme-meteorlxy@^1.5.0: | |
vuepress-plugin-table-of-contents "^1.1.5" | ||
vuepress-plugin-zooming "^1.1.7" | ||
|
||
vuepress@^1.1.0: | ||
version "1.7.1" | ||
resolved "https://registry.npmjs.org/vuepress/-/vuepress-1.7.1.tgz#bb0e139d8c407a0b5aa962cf9577832a5808937e" | ||
integrity sha512-AdA3do1L4DNzeF8sMTE+cSUJ5hR/6f3YujU8DVowi/vFOg/SX2lJF8urvDkZUSXzaAT6aSgkI9L+B6D+i7SJjA== | ||
vuepress@1.3.0: | ||
version "1.3.0" | ||
resolved "https://registry.npmjs.org/vuepress/-/vuepress-1.3.0.tgz#88b4cba93e67c7272402c3dc0ca041651ce1ea62" | ||
integrity sha512-TmPmHiT70aq4xqy4XczUJmUdpGlMSheOGGVwA2nhYSIS9IEd4ngPbfT9oEcAFTsGHXsr5KH8EgEU7G+3wWzY/A== | ||
dependencies: | ||
"@vuepress/core" "1.7.1" | ||
"@vuepress/theme-default" "1.7.1" | ||
cac "^6.5.6" | ||
"@vuepress/core" "^1.3.0" | ||
"@vuepress/theme-default" "^1.3.0" | ||
cac "^6.5.5" | ||
envinfo "^7.2.0" | ||
opencollective-postinstall "^2.0.2" | ||
update-notifier "^4.0.0" | ||
|