diff --git a/package.json b/package.json index 9cbb8cb..113f172 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,8 @@ "dependencies": { "hexo": "^5.0.0", "hexo-asset-image": "^1.0.0", + "hexo-deployer-ftpsync": "^0.1.1", + "hexo-deployer-sftp": "^0.4.1", "hexo-generator-archive": "^1.0.0", "hexo-generator-baidu-sitemap": "^0.1.9", "hexo-generator-category": "^1.0.0", diff --git a/yarn.lock b/yarn.lock index 9ad4594..b402f2b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -20,6 +20,31 @@ "@babel/helper-validator-identifier" "^7.14.5" "to-fast-properties" "^2.0.0" +"@types/minimatch@^3.0.3": + "integrity" "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==" + "resolved" "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz" + "version" "3.0.5" + +"@types/node@*", "@types/node@^9.4.1": + "integrity" "sha512-/aKAdg5c8n468cYLy2eQrcR5k6chlbNwZNGUj3TboyPa2hcO2QAJcfymlqPzMiRj8B6nYKXjzQz36minFE0RwQ==" + "resolved" "https://registry.npmjs.org/@types/node/-/node-9.6.61.tgz" + "version" "9.6.61" + +"@types/ssh2-streams@*", "@types/ssh2-streams@^0.1.2": + "integrity" "sha512-I2J9jKqfmvXLR5GomDiCoHrEJ58hAOmFrekfFqmCFd+A6gaEStvWnPykoWUwld1PNg4G5ag1LwdA+Lz1doRJqg==" + "resolved" "https://registry.npmjs.org/@types/ssh2-streams/-/ssh2-streams-0.1.9.tgz" + "version" "0.1.9" + dependencies: + "@types/node" "*" + +"@types/ssh2@^0.5.33": + "integrity" "sha512-ZhqJg8BRV7OsCi0KVqPr27lUMMmLEeHYw1VXUNGGDlQEDq9HTsKx+wYvi8E6oNC6gRZ7PV99ZMZmMr5vztcYYA==" + "resolved" "https://registry.npmjs.org/@types/ssh2/-/ssh2-0.5.47.tgz" + "version" "0.5.47" + dependencies: + "@types/node" "*" + "@types/ssh2-streams" "*" + "a-sync-waterfall@^1.0.0": "integrity" "sha512-RYTOHHdWipFUliRFMCS4X2Yn2X8M87V/OpSqWzKKOGhzqyUxzyVmhHDH9sAvG+ZuQf/TAOFsLCpMw09I1ufUnA==" "resolved" "https://registry.npmjs.org/a-sync-waterfall/-/a-sync-waterfall-1.0.1.tgz" @@ -159,6 +184,13 @@ "resolved" "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz" "version" "2.0.6" +"asn1@~0.2.0": + "integrity" "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==" + "resolved" "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz" + "version" "0.2.4" + dependencies: + "safer-buffer" "~2.1.0" + "assert-never@^1.2.1": "integrity" "sha512-TaTivMB6pYI1kXwrFlEhLeGfOqoDNdTxjCdwRfFFkEA30Eu+k48W34nlok2EYWJfFFzqaEmichdNM7th6M5HNw==" "resolved" "https://registry.npmjs.org/assert-never/-/assert-never-1.2.1.tgz" @@ -174,7 +206,12 @@ "resolved" "https://registry.npmjs.org/async-each/-/async-each-1.0.3.tgz" "version" "1.0.3" -"async@~0.2.6": +"async@^1.5.1": + "integrity" "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=" + "resolved" "https://registry.npmjs.org/async/-/async-1.5.2.tgz" + "version" "1.5.2" + +"async@~0.2.6", "async@~0.2.9": "integrity" "sha1-trvgsGdLnXGXCMo43owjfLUmw9E=" "resolved" "https://registry.npmjs.org/async/-/async-0.2.10.tgz" "version" "0.2.10" @@ -352,6 +389,15 @@ "strip-ansi" "^3.0.0" "supports-color" "^2.0.0" +"chalk@^2.3.0": + "integrity" "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==" + "resolved" "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz" + "version" "2.4.2" + dependencies: + "ansi-styles" "^3.2.1" + "escape-string-regexp" "^1.0.5" + "supports-color" "^5.3.0" + "chalk@^2.4.1", "chalk@^2.4.2": "integrity" "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==" "resolved" "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz" @@ -513,6 +559,11 @@ "resolved" "https://registry.npmjs.org/command-exists/-/command-exists-1.2.9.tgz" "version" "1.2.9" +"commander@^2.9.0": + "integrity" "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + "resolved" "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz" + "version" "2.20.3" + "commander@^5.1.0": "integrity" "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==" "resolved" "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz" @@ -833,6 +884,11 @@ "dom-serializer" "0" "domelementtype" "1" +"duplexer@~0.1.1": + "integrity" "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==" + "resolved" "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz" + "version" "0.1.2" + "ee-first@1.1.1": "integrity" "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" "resolved" "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz" @@ -895,6 +951,19 @@ "resolved" "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz" "version" "1.8.1" +"event-stream@~3.0.14": + "integrity" "sha1-A4u7LqnqkDhbJvvBhU0LU58qvqM=" + "resolved" "https://registry.npmjs.org/event-stream/-/event-stream-3.0.20.tgz" + "version" "3.0.20" + dependencies: + "duplexer" "~0.1.1" + "from" "~0" + "map-stream" "~0.0.3" + "pause-stream" "0.0.11" + "split" "0.2" + "stream-combiner" "~0.0.3" + "through" "~2.3.1" + "execa@^1.0.0": "integrity" "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==" "resolved" "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz" @@ -1017,6 +1086,11 @@ "resolved" "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz" "version" "0.5.2" +"from@~0": + "integrity" "sha1-g8YK/Fi5xWmXAH7Rp2izqzA6RP4=" + "resolved" "https://registry.npmjs.org/from/-/from-0.1.7.tgz" + "version" "0.1.7" + "fs.realpath@^1.0.0": "integrity" "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" "resolved" "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" @@ -1030,6 +1104,17 @@ "bindings" "^1.5.0" "nan" "^2.12.1" +"ftpsync@^0.1.5": + "integrity" "sha1-VX+h8EQZpzXwTaMJdXvM1hrcM4M=" + "resolved" "https://registry.npmjs.org/ftpsync/-/ftpsync-0.1.10.tgz" + "version" "0.1.10" + dependencies: + "async" "^1.5.1" + "commander" "^2.9.0" + "jsftp" "1.1.1" + "minimatch" "^3.0.0" + "touch" "^1.0.0" + "function-bind@^1.1.1": "integrity" "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" "resolved" "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz" @@ -1226,6 +1311,20 @@ "resolve" "^1.11.0" "tildify" "^2.0.0" +"hexo-deployer-ftpsync@^0.1.1": + "integrity" "sha1-uNHv/8lgYptKivUlNvvRQlym9Hc=" + "resolved" "https://registry.npmjs.org/hexo-deployer-ftpsync/-/hexo-deployer-ftpsync-0.1.1.tgz" + "version" "0.1.1" + dependencies: + "ftpsync" "^0.1.5" + +"hexo-deployer-sftp@^0.4.1": + "integrity" "sha512-Ve72oEbLCHteGCMZVZU4p8EwDnC5tLqdAE4DpbHr9XVIJ2hTjIX/wobeGrKSScrcEn9aCteePTfKMF67wWlTMA==" + "resolved" "https://registry.npmjs.org/hexo-deployer-sftp/-/hexo-deployer-sftp-0.4.1.tgz" + "version" "0.4.1" + dependencies: + "sftp-sync-deploy" "^0.8.0" + "hexo-front-matter@^0.2.3": "integrity" "sha1-x8qO9CDqNr2F6ECKLoyb9J76YF4=" "resolved" "https://registry.npmjs.org/hexo-front-matter/-/hexo-front-matter-0.2.3.tgz" @@ -1824,6 +1923,15 @@ dependencies: "argparse" "^2.0.1" +"jsftp@1.1.1": + "integrity" "sha1-fPUHBHBcume2wA0s/ljb2ApvQrI=" + "resolved" "https://registry.npmjs.org/jsftp/-/jsftp-1.1.1.tgz" + "version" "1.1.1" + dependencies: + "async" "~0.2.9" + "event-stream" "~3.0.14" + "parse-listing" "~1.0.0" + "jsonparse@^1.2.0": "integrity" "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=" "resolved" "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz" @@ -2010,6 +2118,11 @@ "resolved" "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz" "version" "0.2.2" +"map-stream@~0.0.3": + "integrity" "sha1-ih8HiW2CsQkmvTdEokIACfiJdKg=" + "resolved" "https://registry.npmjs.org/map-stream/-/map-stream-0.0.7.tgz" + "version" "0.0.7" + "map-visit@^1.0.0": "integrity" "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=" "resolved" "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz" @@ -2097,7 +2210,7 @@ "resolved" "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz" "version" "1.0.1" -"minimatch@^3.0.2", "minimatch@^3.0.4", "minimatch@2 || 3": +"minimatch@^3.0.0", "minimatch@^3.0.2", "minimatch@^3.0.3", "minimatch@^3.0.4", "minimatch@2 || 3": "integrity" "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==" "resolved" "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz" "version" "3.0.4" @@ -2252,6 +2365,13 @@ "resolved" "https://registry.npmjs.org/node-fingerprint/-/node-fingerprint-0.0.2.tgz" "version" "0.0.2" +"nopt@~1.0.10": + "integrity" "sha1-bd0hvSoxQXuScn3Vhfim83YI6+4=" + "resolved" "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz" + "version" "1.0.10" + dependencies: + "abbrev" "1" + "nopt@~2.1.1": "integrity" "sha1-bMzZd7gBMqB3MdbozljCyDA8+a8=" "resolved" "https://registry.npmjs.org/nopt/-/nopt-2.1.2.tgz" @@ -2410,6 +2530,13 @@ "resolved" "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz" "version" "2.2.0" +"parse-listing@~1.0.0": + "integrity" "sha1-SIqz+oW1W7Ht/Obdu0K4/NJVURQ=" + "resolved" "https://registry.npmjs.org/parse-listing/-/parse-listing-1.0.1.tgz" + "version" "1.0.1" + dependencies: + "async" "~0.2.9" + "parseurl@~1.3.3": "integrity" "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" "resolved" "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz" @@ -2463,6 +2590,13 @@ "resolved" "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz" "version" "1.0.7" +"pause-stream@0.0.11": + "integrity" "sha1-/lo0sMvOErWqaitAPuLnO2AvFEU=" + "resolved" "https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz" + "version" "0.0.11" + dependencies: + "through" "~2.3" + "picomatch@^2.0.4", "picomatch@^2.2.1", "picomatch@^2.2.3": "integrity" "sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==" "resolved" "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz" @@ -2611,6 +2745,13 @@ "end-of-stream" "^1.1.0" "once" "^1.3.1" +"queue@^5.0.0": + "integrity" "sha512-c3KGXGbjY5KMHfemu1HN57Fz/7ECA4TPgCJ3u0io25z2vBpgppHo5SQOkScDRU5iXP4HWE7hKk+Cteb6+p/wew==" + "resolved" "https://registry.npmjs.org/queue/-/queue-5.0.1.tgz" + "version" "5.0.1" + dependencies: + "inherits" "~2.0.3" + "range-parser@~1.2.1": "integrity" "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" "resolved" "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz" @@ -2756,7 +2897,7 @@ dependencies: "ret" "~0.1.10" -"safer-buffer@^2.1.2": +"safer-buffer@^2.1.2", "safer-buffer@~2.1.0": "integrity" "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" "resolved" "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz" "version" "2.1.2" @@ -2771,6 +2912,11 @@ "resolved" "https://registry.npmjs.org/sax/-/sax-0.5.8.tgz" "version" "0.5.8" +"semver@^5.1.0": + "integrity" "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" + "resolved" "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz" + "version" "5.7.1" + "semver@^5.5.0": "integrity" "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" "resolved" "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz" @@ -2830,6 +2976,20 @@ "resolved" "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz" "version" "1.1.1" +"sftp-sync-deploy@^0.8.0": + "integrity" "sha512-EVB3lcUrp9wYnCGc6Xi5X+/AxdO7H8I8jWM+wKpPVgRlqIxX7pLYXp9Q6J68uXUrm0OJFBPf4xhLdFtW/6DEug==" + "resolved" "https://registry.npmjs.org/sftp-sync-deploy/-/sftp-sync-deploy-0.8.0.tgz" + "version" "0.8.0" + dependencies: + "@types/minimatch" "^3.0.3" + "@types/node" "^9.4.1" + "@types/ssh2" "^0.5.33" + "@types/ssh2-streams" "^0.1.2" + "chalk" "^2.3.0" + "minimatch" "^3.0.3" + "queue" "^5.0.0" + "ssh2" "^0.5.4" + "shebang-command@^1.2.0": "integrity" "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=" "resolved" "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz" @@ -2939,6 +3099,13 @@ dependencies: "extend-shallow" "^3.0.0" +"split@0.2": + "integrity" "sha1-Zwl8YB1pfOE2j0GPBs0gHPBSGlc=" + "resolved" "https://registry.npmjs.org/split/-/split-0.2.10.tgz" + "version" "0.2.10" + dependencies: + "through" "2" + "sprintf-js@^1.0.2", "sprintf-js@~1.0.2": "integrity" "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" "resolved" "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz" @@ -2949,6 +3116,22 @@ "resolved" "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz" "version" "1.1.2" +"ssh2-streams@~0.1.18": + "integrity" "sha1-URGNFUVV31Rp7h9n4M8efoosDjo=" + "resolved" "https://registry.npmjs.org/ssh2-streams/-/ssh2-streams-0.1.20.tgz" + "version" "0.1.20" + dependencies: + "asn1" "~0.2.0" + "semver" "^5.1.0" + "streamsearch" "~0.1.2" + +"ssh2@^0.5.4": + "integrity" "sha1-x3gezS7OcwSiU89iD6taXCK7IjU=" + "resolved" "https://registry.npmjs.org/ssh2/-/ssh2-0.5.5.tgz" + "version" "0.5.5" + dependencies: + "ssh2-streams" "~0.1.18" + "static-extend@^0.1.1": "integrity" "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=" "resolved" "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz" @@ -2962,6 +3145,18 @@ "resolved" "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz" "version" "1.5.0" +"stream-combiner@~0.0.3": + "integrity" "sha1-TV5DPBhSYd3mI8o/RMWGvPXErRQ=" + "resolved" "https://registry.npmjs.org/stream-combiner/-/stream-combiner-0.0.4.tgz" + "version" "0.0.4" + dependencies: + "duplexer" "~0.1.1" + +"streamsearch@~0.1.2": + "integrity" "sha1-gIudDlb8Jz2Am6VzOOkpkZoanxo=" + "resolved" "https://registry.npmjs.org/streamsearch/-/streamsearch-0.1.2.tgz" + "version" "0.1.2" + "string_decoder@^1.1.1": "integrity" "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==" "resolved" "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz" @@ -3113,7 +3308,7 @@ "resolved" "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz" "version" "0.2.0" -"through@>=2.2.7 <3": +"through@>=2.2.7 <3", "through@~2.3", "through@~2.3.1", "through@2": "integrity" "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=" "resolved" "https://registry.npmjs.org/through/-/through-2.3.8.tgz" "version" "2.3.8" @@ -3187,6 +3382,13 @@ "resolved" "https://registry.npmjs.org/token-stream/-/token-stream-1.0.0.tgz" "version" "1.0.0" +"touch@^1.0.0": + "integrity" "sha1-RJy+LbrlqMgDjjDXH6D/RklHxN4=" + "resolved" "https://registry.npmjs.org/touch/-/touch-1.0.0.tgz" + "version" "1.0.0" + dependencies: + "nopt" "~1.0.10" + "transliteration@^1.6.2": "integrity" "sha1-in6KswRK0Z8jP1DBWJTL9p5dIF4=" "resolved" "https://registry.npmjs.org/transliteration/-/transliteration-1.6.6.tgz"