diff --git a/package.json b/package.json index 8874741..4fdd717 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ }, "dependencies": { "hexo": "^5.0.0", - "hexo-algoliasearch": "^0.3.2", + "hexo-algolia": "^1.3.2", + "hexo-algoliasearch": "^1.0.0", "hexo-asset-image": "^1.0.0", "hexo-blog-encrypt": "^3.1.6", "hexo-butterfly-clock": "^1.0.6", diff --git a/yarn.lock b/yarn.lock index b59aa64..2e61b71 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,6 +2,110 @@ # yarn lockfile v1 +"@algolia/cache-browser-local-storage@4.4.0": + "integrity" "sha512-2AiKgN7DpFypkRCRkpqH7waXXyFdcnsPWzmN8sLHrB/FfXqgmsQb3pGft+9YHZIDQ0vAnfgMxSGgMhMGW+0Qnw==" + "resolved" "https://registry.npmjs.org/@algolia/cache-browser-local-storage/-/cache-browser-local-storage-4.4.0.tgz" + "version" "4.4.0" + dependencies: + "@algolia/cache-common" "4.4.0" + +"@algolia/cache-common@4.4.0": + "integrity" "sha512-PrIgoMnXaDWUfwOekahro543pgcJfgRu/nd/ZQS5ffem3+Ow725eZY6HDpPaQ1k3cvLii9JH6V2sNJConjqUKA==" + "resolved" "https://registry.npmjs.org/@algolia/cache-common/-/cache-common-4.4.0.tgz" + "version" "4.4.0" + +"@algolia/cache-in-memory@4.4.0": + "integrity" "sha512-9+XlUB0baDU/Dp9URRHPp6Q37YmTO0QmgPWt9+n+wqZrRL0jR3Jezr4jCT7RemqGMxBiR+YpnqaUv0orpb0ptw==" + "resolved" "https://registry.npmjs.org/@algolia/cache-in-memory/-/cache-in-memory-4.4.0.tgz" + "version" "4.4.0" + dependencies: + "@algolia/cache-common" "4.4.0" + +"@algolia/client-account@4.4.0": + "integrity" "sha512-Kynu3cMEs0clTLf674rtrCF+FWR/JwlQxKlIWsPzvLBRmNXdvYej9YBcNaOr4OTQFCCZn9JVE8ib91Z7J4IL1Q==" + "resolved" "https://registry.npmjs.org/@algolia/client-account/-/client-account-4.4.0.tgz" + "version" "4.4.0" + dependencies: + "@algolia/client-common" "4.4.0" + "@algolia/client-search" "4.4.0" + "@algolia/transporter" "4.4.0" + +"@algolia/client-analytics@4.4.0": + "integrity" "sha512-GQyjQimKAc9sZbafxln9Wk7j4pEYiORv28MZkZ+0Bjt7WNXIeO7OgOOECVpQHm9buyV6hCKpNtJcbb5/syRzdQ==" + "resolved" "https://registry.npmjs.org/@algolia/client-analytics/-/client-analytics-4.4.0.tgz" + "version" "4.4.0" + dependencies: + "@algolia/client-common" "4.4.0" + "@algolia/client-search" "4.4.0" + "@algolia/requester-common" "4.4.0" + "@algolia/transporter" "4.4.0" + +"@algolia/client-common@4.4.0": + "integrity" "sha512-a3yr6UhzjWPHDG/8iGp9UvrDOm1aeHVWJIf0Nj/cIvqX5tNCEIo4IMe59ovApkDgLOIpt/cLsyhn9/FiPXRhJA==" + "resolved" "https://registry.npmjs.org/@algolia/client-common/-/client-common-4.4.0.tgz" + "version" "4.4.0" + dependencies: + "@algolia/requester-common" "4.4.0" + "@algolia/transporter" "4.4.0" + +"@algolia/client-recommendation@4.4.0": + "integrity" "sha512-sBszbQH46rko6w2fdEG77ma8+fAg0SDkLZGxWhv4trgcnYGUBFl2dcpEPt/6koto9b4XYlf+eh+qi6iGvYqRPg==" + "resolved" "https://registry.npmjs.org/@algolia/client-recommendation/-/client-recommendation-4.4.0.tgz" + "version" "4.4.0" + dependencies: + "@algolia/client-common" "4.4.0" + "@algolia/requester-common" "4.4.0" + "@algolia/transporter" "4.4.0" + +"@algolia/client-search@4.4.0": + "integrity" "sha512-jqWcxCUyPPHnHreoMb2PnN9iHTP+V/nL62R84XuTRDE3VgTnhm4ZnqyuRdzZQqaz+gNy5znav64TmQ9FN9WW5g==" + "resolved" "https://registry.npmjs.org/@algolia/client-search/-/client-search-4.4.0.tgz" + "version" "4.4.0" + dependencies: + "@algolia/client-common" "4.4.0" + "@algolia/requester-common" "4.4.0" + "@algolia/transporter" "4.4.0" + +"@algolia/logger-common@4.4.0": + "integrity" "sha512-2vjmSENLaKNuF+ytRDysfWxxgFG95WXCHwHbueThdPMCK3hskkwqJ0Y/pugKfzl+54mZxegb4BYfgcCeuaHVUw==" + "resolved" "https://registry.npmjs.org/@algolia/logger-common/-/logger-common-4.4.0.tgz" + "version" "4.4.0" + +"@algolia/logger-console@4.4.0": + "integrity" "sha512-st/GUWyKvr6YM72OOfF+RmpdVGda3BPXbQ+chpntUq1WyVkyZXGjSmH1IcBVlua27GzxabwOUYON39cF3x10/g==" + "resolved" "https://registry.npmjs.org/@algolia/logger-console/-/logger-console-4.4.0.tgz" + "version" "4.4.0" + dependencies: + "@algolia/logger-common" "4.4.0" + +"@algolia/requester-browser-xhr@4.4.0": + "integrity" "sha512-V3a4hXlNch355GnWaT1f5QfXhROpsjT6sd0Znq29gAhwLqfBExhLW6Khdkv5pENC0Qy7ClVhdXFrBL9QCQer1g==" + "resolved" "https://registry.npmjs.org/@algolia/requester-browser-xhr/-/requester-browser-xhr-4.4.0.tgz" + "version" "4.4.0" + dependencies: + "@algolia/requester-common" "4.4.0" + +"@algolia/requester-common@4.4.0": + "integrity" "sha512-jPinHlFJEFokxQ5b3JWyjQKKn+FMy0hH99PApzOgQAYOSiFRXiPEZp6LeIexDeLLu7Y3eRt/3nHvjPKa6PmRRw==" + "resolved" "https://registry.npmjs.org/@algolia/requester-common/-/requester-common-4.4.0.tgz" + "version" "4.4.0" + +"@algolia/requester-node-http@4.4.0": + "integrity" "sha512-b7HC9C/GHxiV4+0GpCRTtjscvwarPr3dGm4CAhb6AkNjgjRcFUNr1NfsF75w3WVmzmt79/7QZihddztDdVMGjw==" + "resolved" "https://registry.npmjs.org/@algolia/requester-node-http/-/requester-node-http-4.4.0.tgz" + "version" "4.4.0" + dependencies: + "@algolia/requester-common" "4.4.0" + +"@algolia/transporter@4.4.0": + "integrity" "sha512-Xxzq91DEEeKIzT3DU46n4LEyTGAKZNtSHc2H9wvIY5MYwhZwEribmXXZ6k8W1FvBvzggv3juu0SP+xwGoR7F0w==" + "resolved" "https://registry.npmjs.org/@algolia/transporter/-/transporter-4.4.0.tgz" + "version" "4.4.0" + dependencies: + "@algolia/cache-common" "4.4.0" + "@algolia/logger-common" "4.4.0" + "@algolia/requester-common" "4.4.0" + "@babel/helper-validator-identifier@^7.14.5": "integrity" "sha512-5lsetuxCLilmVGyiLEfoHBRX8UCFD+1m2x3Rj97WrW3V7H3u4RWRXA4evMjImCsin2J2YT0QaVDGf+z8ondbAg==" "resolved" "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.5.tgz" @@ -78,10 +182,10 @@ "resolved" "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-2.2.0.tgz" "version" "2.2.0" -"algoliasearch@3.33.0": - "integrity" "sha512-9DaVmOd7cvcZeYyV0BWAeJHVWJmgOL2DNUEBY/DTR4MzD1wCWs4Djl7LAlfvkGwGBdRHZCG+l0HA1572w3T8zg==" - "resolved" "https://registry.npmjs.org/algoliasearch/-/algoliasearch-3.33.0.tgz" - "version" "3.33.0" +"algoliasearch@^3.35.1": + "integrity" "sha512-K4yKVhaHkXfJ/xcUnil04xiSrB8B8yHZoFEhWNpXg23eiCnqvTZw1tn/SqvdsANlYHLJlKl0qi3I/Q2Sqo7LwQ==" + "resolved" "https://registry.npmjs.org/algoliasearch/-/algoliasearch-3.35.1.tgz" + "version" "3.35.1" dependencies: "agentkeepalive" "^2.2.0" "debug" "^2.6.9" @@ -99,6 +203,26 @@ "semver" "^5.1.0" "tunnel-agent" "^0.6.0" +"algoliasearch@4.4.0": + "integrity" "sha512-Ag3wxe/nSodNl/1KbHibtkh7TNLptKE300/wnGVtszRjXivaWD6333nUpCumrYObHym/fHMHyLcmQYezXbAIWQ==" + "resolved" "https://registry.npmjs.org/algoliasearch/-/algoliasearch-4.4.0.tgz" + "version" "4.4.0" + dependencies: + "@algolia/cache-browser-local-storage" "4.4.0" + "@algolia/cache-common" "4.4.0" + "@algolia/cache-in-memory" "4.4.0" + "@algolia/client-account" "4.4.0" + "@algolia/client-analytics" "4.4.0" + "@algolia/client-common" "4.4.0" + "@algolia/client-recommendation" "4.4.0" + "@algolia/client-search" "4.4.0" + "@algolia/logger-common" "4.4.0" + "@algolia/logger-console" "4.4.0" + "@algolia/requester-browser-xhr" "4.4.0" + "@algolia/requester-common" "4.4.0" + "@algolia/requester-node-http" "4.4.0" + "@algolia/transporter" "4.4.0" + "align-text@^0.1.1", "align-text@^0.1.3": "integrity" "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=" "resolved" "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz" @@ -237,11 +361,6 @@ "resolved" "https://registry.npmjs.org/async/-/async-0.2.10.tgz" "version" "0.2.10" -"async@3.0.1": - "integrity" "sha512-ZswD8vwPtmBZzbn9xyi8XBQWXH3AvOQ43Za1KWYq7JeycrZuUYzx01KvHcVbXltjqH4y0MWrQ33008uLTqXuDw==" - "resolved" "https://registry.npmjs.org/async/-/async-3.0.1.tgz" - "version" "3.0.1" - "atob@^2.1.2": "integrity" "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==" "resolved" "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz" @@ -1277,15 +1396,21 @@ dependencies: "function-bind" "^1.1.1" -"hexo-algoliasearch@^0.3.2": - "integrity" "sha512-k3QuCrOQfPBaKyoTi1ckx5MGzS7aE8hEXwzhHRslBqub7fsHolWseS8g+bVrRxynqXyvilcZN1mtqx7j4PwC6g==" - "resolved" "https://registry.npmjs.org/hexo-algoliasearch/-/hexo-algoliasearch-0.3.2.tgz" - "version" "0.3.2" +"hexo-algolia@^1.3.2": + "integrity" "sha512-Aui+iHztgsNvNDC/9bW9FRAmjeikN29n5DUdwaQeA0QXCvDfquqYrr6af25cJCw9Ddgt8pIvxYqD0BVgFtTDRQ==" + "resolved" "https://registry.npmjs.org/hexo-algolia/-/hexo-algolia-1.3.2.tgz" + "version" "1.3.2" dependencies: - "algoliasearch" "3.33.0" - "async" "3.0.1" - "hexo-util" "0.6.3" - "lodash" "4.17.11" + "algoliasearch" "^3.35.1" + "p-each-series" "^1.0.0" + +"hexo-algoliasearch@^1.0.0": + "integrity" "sha512-JcJ4ecv23LDvKLOaqRSQP9eIDX82XSp24c6LzumThzE0XmhQpTPsIWj0PN4dHnAZFZxYu1axJfakKLqiNzLwXA==" + "resolved" "https://registry.npmjs.org/hexo-algoliasearch/-/hexo-algoliasearch-1.0.0.tgz" + "version" "1.0.0" + dependencies: + "algoliasearch" "4.4.0" + "striptags" "3.1.1" "hexo-asset-image@^1.0.0": "integrity" "sha512-jkuUJNPRMH6v7HqzP2BAwEZavMzVxNWhl8jZl9BmFYB22/aq2+zixGIhV4vedI9cLPydjn9DfII41/MMXtzJTA==" @@ -1587,18 +1712,6 @@ "prismjs" "^1.17.1" "strip-indent" "^3.0.0" -"hexo-util@0.6.3": - "integrity" "sha512-zPxaqCWZz3/25SAB4FlrRtWktJ+Pr+vBiv/nyHpXKgXPt1m70liViKlRwWLqDmRjJ72x6/k4qCEeXHajvcGHUw==" - "resolved" "https://registry.npmjs.org/hexo-util/-/hexo-util-0.6.3.tgz" - "version" "0.6.3" - dependencies: - "bluebird" "^3.4.0" - "camel-case" "^3.0.0" - "cross-spawn" "^4.0.0" - "highlight.js" "^9.4.0" - "html-entities" "^1.2.0" - "striptags" "^2.1.1" - "hexo-wordcount@^6.0.1": "integrity" "sha512-tbo2P9xRWEKQmRf7+XuPjx9It1MnaE26nA+EEb2DN39gK1x+26W7Nm4Iyp4AugQjBWYYDx7OLn4gp1WFxQpQew==" "resolved" "https://registry.npmjs.org/hexo-wordcount/-/hexo-wordcount-6.0.1.tgz" @@ -2164,11 +2277,6 @@ "resolved" "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz" "version" "4.17.21" -"lodash@4.17.11": - "integrity" "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==" - "resolved" "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz" - "version" "4.17.11" - "longest@^1.0.1": "integrity" "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=" "resolved" "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz" @@ -2584,6 +2692,13 @@ "resolved" "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz" "version" "1.0.0" +"p-each-series@^1.0.0": + "integrity" "sha1-kw89Et0fUOdDRFeiLNbwSsatf3E=" + "resolved" "https://registry.npmjs.org/p-each-series/-/p-each-series-1.0.0.tgz" + "version" "1.0.0" + dependencies: + "p-reduce" "^1.0.0" + "p-finally@^1.0.0": "integrity" "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=" "resolved" "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz" @@ -2608,6 +2723,11 @@ dependencies: "p-limit" "^2.0.0" +"p-reduce@^1.0.0": + "integrity" "sha1-GMKw3ZNqRpClKfgjH1ig/bakffo=" + "resolved" "https://registry.npmjs.org/p-reduce/-/p-reduce-1.0.0.tgz" + "version" "1.0.0" + "p-try@^2.0.0": "integrity" "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" "resolved" "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz" @@ -3329,6 +3449,11 @@ "resolved" "https://registry.npmjs.org/striptags/-/striptags-2.2.1.tgz" "version" "2.2.1" +"striptags@3.1.1": + "integrity" "sha1-yMPn/db7S7OjKjt1LltePjgJPr0=" + "resolved" "https://registry.npmjs.org/striptags/-/striptags-3.1.1.tgz" + "version" "3.1.1" + "stylus@^0.54.8": "integrity" "sha512-vr54Or4BZ7pJafo2mpf0ZcwA74rpuYCZbxrHBsH8kbcXOwSfvBFwsRfpGO5OD5fhG5HDCFW737PKaawI7OqEAg==" "resolved" "https://registry.npmjs.org/stylus/-/stylus-0.54.8.tgz"