diff --git a/BaseThunderstoreService.html b/BaseThunderstoreService.html index 6058e28578..68c470708a 100644 --- a/BaseThunderstoreService.html +++ b/BaseThunderstoreService.html @@ -392,13 +392,13 @@
diff --git a/badge-maker_lib_index.js.html b/badge-maker_lib_index.js.html index df03fa221f..9ac6708ada 100644 --- a/badge-maker_lib_index.js.html +++ b/badge-maker_lib_index.js.html @@ -153,13 +153,13 @@ module.exports = {
diff --git a/badge-maker_lib_xml.js.html b/badge-maker_lib_xml.js.html index 4d81f07bc6..73d8b96689 100644 --- a/badge-maker_lib_xml.js.html +++ b/badge-maker_lib_xml.js.html @@ -132,13 +132,13 @@ module.exports = { escapeXml, stripXmlWhitespace, XmlElement, ElementList }
diff --git a/core_base-service_base-graphql.js.html b/core_base-service_base-graphql.js.html index efbc7ab9eb..620b4d2c70 100644 --- a/core_base-service_base-graphql.js.html +++ b/core_base-service_base-graphql.js.html @@ -142,13 +142,13 @@ export default BaseGraphqlService
diff --git a/core_base-service_base-json.js.html b/core_base-service_base-json.js.html index dd332a12d5..901e731a00 100644 --- a/core_base-service_base-json.js.html +++ b/core_base-service_base-json.js.html @@ -108,13 +108,13 @@ export default BaseJsonService
diff --git a/core_base-service_base-svg-scraping.js.html b/core_base-service_base-svg-scraping.js.html index 2ab52fb964..3c760d562b 100644 --- a/core_base-service_base-svg-scraping.js.html +++ b/core_base-service_base-svg-scraping.js.html @@ -139,13 +139,13 @@ export default BaseSvgScrapingService
diff --git a/core_base-service_base-toml.js.html b/core_base-service_base-toml.js.html index 71ddc79b2e..bb38e25587 100644 --- a/core_base-service_base-toml.js.html +++ b/core_base-service_base-toml.js.html @@ -122,13 +122,13 @@ export default BaseTomlService
diff --git a/core_base-service_base-xml.js.html b/core_base-service_base-xml.js.html index 0e4a93e94d..43c4ab553d 100644 --- a/core_base-service_base-xml.js.html +++ b/core_base-service_base-xml.js.html @@ -118,13 +118,13 @@ export default BaseXmlService
diff --git a/core_base-service_base-yaml.js.html b/core_base-service_base-yaml.js.html index 3a0ea4466a..83c6118eca 100644 --- a/core_base-service_base-yaml.js.html +++ b/core_base-service_base-yaml.js.html @@ -121,13 +121,13 @@ export default BaseYamlService
diff --git a/core_base-service_base.js.html b/core_base-service_base.js.html index 9c8dd00275..f83e5171cd 100644 --- a/core_base-service_base.js.html +++ b/core_base-service_base.js.html @@ -626,13 +626,13 @@ export default BaseService
diff --git a/core_base-service_errors.js.html b/core_base-service_errors.js.html index 226a4a636c..5266a2c25b 100644 --- a/core_base-service_errors.js.html +++ b/core_base-service_errors.js.html @@ -259,13 +259,13 @@ export {
diff --git a/core_base-service_graphql.js.html b/core_base-service_graphql.js.html index 2a4918e5de..143128b22e 100644 --- a/core_base-service_graphql.js.html +++ b/core_base-service_graphql.js.html @@ -87,13 +87,13 @@ export { mergeQueries }
diff --git a/core_base-service_openapi.js.html b/core_base-service_openapi.js.html index d7592f05aa..f17dc18ed5 100644 --- a/core_base-service_openapi.js.html +++ b/core_base-service_openapi.js.html @@ -394,13 +394,13 @@ export {
diff --git a/core_base-service_resource-cache.js.html b/core_base-service_resource-cache.js.html index 6c605e0d4d..14f81a3743 100644 --- a/core_base-service_resource-cache.js.html +++ b/core_base-service_resource-cache.js.html @@ -105,13 +105,13 @@ export { getCachedResource, clearResourceCache }
diff --git a/core_base-service_service-definitions.js.html b/core_base-service_service-definitions.js.html index ca02a917f7..b865f064c1 100644 --- a/core_base-service_service-definitions.js.html +++ b/core_base-service_service-definitions.js.html @@ -120,13 +120,13 @@ export {
diff --git a/core_server_prometheus-metrics.js.html b/core_server_prometheus-metrics.js.html index 6822e2c7c5..1590bb295e 100644 --- a/core_server_prometheus-metrics.js.html +++ b/core_server_prometheus-metrics.js.html @@ -121,13 +121,13 @@ export default class PrometheusMetrics {
diff --git a/core_server_server.js.html b/core_server_server.js.html index 5e31b24adf..2cda069f6a 100644 --- a/core_server_server.js.html +++ b/core_server_server.js.html @@ -648,13 +648,13 @@ export default Server
diff --git a/core_service-test-runner_create-service-tester.js.html b/core_service-test-runner_create-service-tester.js.html index 136e8fc5c5..4fe34fe382 100644 --- a/core_service-test-runner_create-service-tester.js.html +++ b/core_service-test-runner_create-service-tester.js.html @@ -68,13 +68,13 @@ export default createServiceTester
diff --git a/core_service-test-runner_icedfrisby-shields.js.html b/core_service-test-runner_icedfrisby-shields.js.html index ee29eb2f4b..b453e89909 100644 --- a/core_service-test-runner_icedfrisby-shields.js.html +++ b/core_service-test-runner_icedfrisby-shields.js.html @@ -140,13 +140,13 @@ export default factory
diff --git a/core_service-test-runner_runner.js.html b/core_service-test-runner_runner.js.html index 63c6d6aa80..49f38701b9 100644 --- a/core_service-test-runner_runner.js.html +++ b/core_service-test-runner_runner.js.html @@ -112,13 +112,13 @@ export default Runner
diff --git a/core_service-test-runner_service-tester.js.html b/core_service-test-runner_service-tester.js.html index ea43b99895..58f92b42e6 100644 --- a/core_service-test-runner_service-tester.js.html +++ b/core_service-test-runner_service-tester.js.html @@ -178,13 +178,13 @@ export default ServiceTester
diff --git a/core_service-test-runner_services-for-title.js.html b/core_service-test-runner_services-for-title.js.html index c872a16c56..675c95f4d2 100644 --- a/core_service-test-runner_services-for-title.js.html +++ b/core_service-test-runner_services-for-title.js.html @@ -69,13 +69,13 @@ export default servicesForTitle
diff --git a/core_token-pooling_token-pool.js.html b/core_token-pooling_token-pool.js.html index 906d6cf038..e48a8c0698 100644 --- a/core_token-pooling_token-pool.js.html +++ b/core_token-pooling_token-pool.js.html @@ -373,13 +373,13 @@ export { sanitizeToken, Token, TokenPool }
diff --git a/global.html b/global.html index 8822d7c35a..7f1b2df5aa 100644 --- a/global.html +++ b/global.html @@ -1870,13 +1870,13 @@ testAuth(StackExchangeReputation, QueryStringAuth, { items: [{ reputation: 8 }]
diff --git a/index.html b/index.html index 019750ece4..5601c7fce7 100644 --- a/index.html +++ b/index.html @@ -202,13 +202,13 @@ domain unless specified otherwise.


diff --git a/module-badge-maker.html b/module-badge-maker.html index 3af98edae2..7be5dd0478 100644 --- a/module-badge-maker.html +++ b/module-badge-maker.html @@ -492,13 +492,13 @@
diff --git a/module-badge-maker_lib_xml-ElementList.html b/module-badge-maker_lib_xml-ElementList.html index f97205822f..4fd2bdedc8 100644 --- a/module-badge-maker_lib_xml-ElementList.html +++ b/module-badge-maker_lib_xml-ElementList.html @@ -157,13 +157,13 @@ like an XmlElement but renders multiple XML tags (not wrapped in a ).


diff --git a/module-badge-maker_lib_xml-XmlElement.html b/module-badge-maker_lib_xml-XmlElement.html index bbbf1f8cf2..6de704f8aa 100644 --- a/module-badge-maker_lib_xml-XmlElement.html +++ b/module-badge-maker_lib_xml-XmlElement.html @@ -468,13 +468,13 @@ element will be rendered as a self-closing element.


diff --git a/module-badge-maker_lib_xml.html b/module-badge-maker_lib_xml.html index e3dc4fc483..1e97602d10 100644 --- a/module-badge-maker_lib_xml.html +++ b/module-badge-maker_lib_xml.html @@ -122,13 +122,13 @@
diff --git a/module-core_base-service_base-BaseService.html b/module-core_base-service_base-BaseService.html index 09ece5e3f3..4ef2990859 100644 --- a/module-core_base-service_base-BaseService.html +++ b/module-core_base-service_base-BaseService.html @@ -893,13 +893,13 @@ for a given route parameter


diff --git a/module-core_base-service_base-graphql-BaseGraphqlService.html b/module-core_base-service_base-graphql-BaseGraphqlService.html index 819119916c..1ae83d6f02 100644 --- a/module-core_base-service_base-graphql-BaseGraphqlService.html +++ b/module-core_base-service_base-graphql-BaseGraphqlService.html @@ -907,13 +907,13 @@ an InvalidResponse.


diff --git a/module-core_base-service_base-graphql.html b/module-core_base-service_base-graphql.html index 171f3dcdc7..0833d819dc 100644 --- a/module-core_base-service_base-graphql.html +++ b/module-core_base-service_base-graphql.html @@ -119,13 +119,13 @@
diff --git a/module-core_base-service_base-json-BaseJsonService.html b/module-core_base-service_base-json-BaseJsonService.html index 3a17a00578..eec21cf458 100644 --- a/module-core_base-service_base-json-BaseJsonService.html +++ b/module-core_base-service_base-json-BaseJsonService.html @@ -752,13 +752,13 @@ that will be logged (to sentry, if configured).


diff --git a/module-core_base-service_base-json.html b/module-core_base-service_base-json.html index 0062959e70..dd4fcd6191 100644 --- a/module-core_base-service_base-json.html +++ b/module-core_base-service_base-json.html @@ -119,13 +119,13 @@
diff --git a/module-core_base-service_base-svg-scraping-BaseSvgScrapingService.html b/module-core_base-service_base-svg-scraping-BaseSvgScrapingService.html index a565816cc7..e76e4e0fa8 100644 --- a/module-core_base-service_base-svg-scraping-BaseSvgScrapingService.html +++ b/module-core_base-service_base-svg-scraping-BaseSvgScrapingService.html @@ -843,13 +843,13 @@ that will be logged (to sentry, if configured).


diff --git a/module-core_base-service_base-svg-scraping.html b/module-core_base-service_base-svg-scraping.html index a37bead7f2..e61a2c5332 100644 --- a/module-core_base-service_base-svg-scraping.html +++ b/module-core_base-service_base-svg-scraping.html @@ -119,13 +119,13 @@
diff --git a/module-core_base-service_base-toml-BaseTomlService.html b/module-core_base-service_base-toml-BaseTomlService.html index 959c912c39..4959943aaa 100644 --- a/module-core_base-service_base-toml-BaseTomlService.html +++ b/module-core_base-service_base-toml-BaseTomlService.html @@ -593,13 +593,13 @@ that will be logged (to sentry, if configured).


diff --git a/module-core_base-service_base-toml.html b/module-core_base-service_base-toml.html index 86236135d4..33e9b6d945 100644 --- a/module-core_base-service_base-toml.html +++ b/module-core_base-service_base-toml.html @@ -119,13 +119,13 @@
diff --git a/module-core_base-service_base-xml-BaseXmlService.html b/module-core_base-service_base-xml-BaseXmlService.html index 91ffd469cf..8f5369441b 100644 --- a/module-core_base-service_base-xml-BaseXmlService.html +++ b/module-core_base-service_base-xml-BaseXmlService.html @@ -635,13 +635,13 @@ that will be logged (to sentry, if configured).


diff --git a/module-core_base-service_base-xml.html b/module-core_base-service_base-xml.html index f59a7aaafa..752aaed1bd 100644 --- a/module-core_base-service_base-xml.html +++ b/module-core_base-service_base-xml.html @@ -119,13 +119,13 @@
diff --git a/module-core_base-service_base-yaml-BaseYamlService.html b/module-core_base-service_base-yaml-BaseYamlService.html index e2c896cbab..d3f16e2e7f 100644 --- a/module-core_base-service_base-yaml-BaseYamlService.html +++ b/module-core_base-service_base-yaml-BaseYamlService.html @@ -632,13 +632,13 @@ that will be logged (to sentry, if configured).


diff --git a/module-core_base-service_base-yaml.html b/module-core_base-service_base-yaml.html index 42f0a9e53c..2a2736d3dd 100644 --- a/module-core_base-service_base-yaml.html +++ b/module-core_base-service_base-yaml.html @@ -119,13 +119,13 @@
diff --git a/module-core_base-service_base.html b/module-core_base-service_base.html index f8a5a2f4e9..a445569338 100644 --- a/module-core_base-service_base.html +++ b/module-core_base-service_base.html @@ -938,13 +938,13 @@ name: 'compact_message', schema: { type: 'boolean' }, example: null
diff --git a/module-core_base-service_errors-Deprecated.html b/module-core_base-service_errors-Deprecated.html index 9eb7f096a7..6b6ca22745 100644 --- a/module-core_base-service_errors-Deprecated.html +++ b/module-core_base-service_errors-Deprecated.html @@ -205,13 +205,13 @@
diff --git a/module-core_base-service_errors-ImproperlyConfigured.html b/module-core_base-service_errors-ImproperlyConfigured.html index b450cf7743..032f5660c5 100644 --- a/module-core_base-service_errors-ImproperlyConfigured.html +++ b/module-core_base-service_errors-ImproperlyConfigured.html @@ -205,13 +205,13 @@
diff --git a/module-core_base-service_errors-Inaccessible.html b/module-core_base-service_errors-Inaccessible.html index c0bce3b745..f372bb15a4 100644 --- a/module-core_base-service_errors-Inaccessible.html +++ b/module-core_base-service_errors-Inaccessible.html @@ -206,13 +206,13 @@ or to wrap a 5XX response


diff --git a/module-core_base-service_errors-InvalidParameter.html b/module-core_base-service_errors-InvalidParameter.html index 28967599f7..7ae613f25d 100644 --- a/module-core_base-service_errors-InvalidParameter.html +++ b/module-core_base-service_errors-InvalidParameter.html @@ -206,13 +206,13 @@ is invalid or unexpected


diff --git a/module-core_base-service_errors-InvalidResponse.html b/module-core_base-service_errors-InvalidResponse.html index 3155390ce5..0aa634641d 100644 --- a/module-core_base-service_errors-InvalidResponse.html +++ b/module-core_base-service_errors-InvalidResponse.html @@ -205,13 +205,13 @@
diff --git a/module-core_base-service_errors-NotFound.html b/module-core_base-service_errors-NotFound.html index 32fae25272..600ebbb79d 100644 --- a/module-core_base-service_errors-NotFound.html +++ b/module-core_base-service_errors-NotFound.html @@ -205,13 +205,13 @@
diff --git a/module-core_base-service_errors-ShieldsRuntimeError.html b/module-core_base-service_errors-ShieldsRuntimeError.html index 897bac6d42..a2ccb410c4 100644 --- a/module-core_base-service_errors-ShieldsRuntimeError.html +++ b/module-core_base-service_errors-ShieldsRuntimeError.html @@ -378,13 +378,13 @@ should override this method.


diff --git a/module-core_base-service_errors.html b/module-core_base-service_errors.html index 706d678b85..50b5cfea4c 100644 --- a/module-core_base-service_errors.html +++ b/module-core_base-service_errors.html @@ -337,13 +337,13 @@ for. Defaults to the cacheLength of the service class throwing the error
diff --git a/module-core_base-service_graphql.html b/module-core_base-service_graphql.html index 635b35df30..191973fcc8 100644 --- a/module-core_base-service_graphql.html +++ b/module-core_base-service_graphql.html @@ -290,13 +290,13 @@ but can't use that due to incorrect packaging.


diff --git a/module-core_base-service_openapi.html b/module-core_base-service_openapi.html index 5170ca1f24..a06d3248aa 100644 --- a/module-core_base-service_openapi.html +++ b/module-core_base-service_openapi.html @@ -1627,13 +1627,13 @@ Query params are usually strings. (Optional)


diff --git a/module-core_base-service_resource-cache.html b/module-core_base-service_resource-cache.html index cbb2764b8f..cd8650e5a0 100644 --- a/module-core_base-service_resource-cache.html +++ b/module-core_base-service_resource-cache.html @@ -562,13 +562,13 @@
diff --git a/module-core_base-service_service-definitions.html b/module-core_base-service_service-definitions.html index 54ef9b1594..2d8be165f5 100644 --- a/module-core_base-service_service-definitions.html +++ b/module-core_base-service_service-definitions.html @@ -185,13 +185,13 @@
diff --git a/module-core_server_server-Server.html b/module-core_server_server-Server.html index e141d637a4..76c7a6539c 100644 --- a/module-core_server_server-Server.html +++ b/module-core_server_server-Server.html @@ -675,13 +675,13 @@ Start listening for requests on this.baseUrl()


diff --git a/module-core_server_server.html b/module-core_server_server.html index 5b16d57fd4..2b2343f592 100644 --- a/module-core_server_server.html +++ b/module-core_server_server.html @@ -119,13 +119,13 @@
diff --git a/module-core_service-test-runner_create-service-tester.html b/module-core_service-test-runner_create-service-tester.html index f75134e66e..b6e9af99ab 100644 --- a/module-core_service-test-runner_create-service-tester.html +++ b/module-core_service-test-runner_create-service-tester.html @@ -230,13 +230,13 @@ service.


diff --git a/module-core_service-test-runner_icedfrisby-shields.html b/module-core_service-test-runner_icedfrisby-shields.html index 7032e2606e..cba7c7b275 100644 --- a/module-core_service-test-runner_icedfrisby-shields.html +++ b/module-core_service-test-runner_icedfrisby-shields.html @@ -286,13 +286,13 @@
diff --git a/module-core_service-test-runner_runner-Runner.html b/module-core_service-test-runner_runner-Runner.html index c9dfbac1dd..56b8eb2d7d 100644 --- a/module-core_service-test-runner_runner-Runner.html +++ b/module-core_service-test-runner_runner-Runner.html @@ -562,13 +562,13 @@ overridden on instances.


diff --git a/module-core_service-test-runner_runner.html b/module-core_service-test-runner_runner.html index dffa8d05ab..e6c9f80cf1 100644 --- a/module-core_service-test-runner_runner.html +++ b/module-core_service-test-runner_runner.html @@ -119,13 +119,13 @@
diff --git a/module-core_service-test-runner_service-tester-ServiceTester.html b/module-core_service-test-runner_service-tester-ServiceTester.html index 92da596a55..bd1b5690a4 100644 --- a/module-core_service-test-runner_service-tester-ServiceTester.html +++ b/module-core_service-test-runner_service-tester-ServiceTester.html @@ -1120,13 +1120,13 @@ the CLI, or directly on the tester.


diff --git a/module-core_service-test-runner_service-tester.html b/module-core_service-test-runner_service-tester.html index 9453d1b7d1..a8765e9009 100644 --- a/module-core_service-test-runner_service-tester.html +++ b/module-core_service-test-runner_service-tester.html @@ -119,13 +119,13 @@
diff --git a/module-core_service-test-runner_services-for-title.html b/module-core_service-test-runner_services-for-title.html index 304d8f111a..635c8721ae 100644 --- a/module-core_service-test-runner_services-for-title.html +++ b/module-core_service-test-runner_services-for-title.html @@ -278,13 +278,13 @@ as an array of strings.


diff --git a/module-core_token-pooling_token-pool-Token.html b/module-core_token-pooling_token-pool-Token.html index 4a200c5a76..de59f700cb 100644 --- a/module-core_token-pooling_token-pool-Token.html +++ b/module-core_token-pooling_token-pool-Token.html @@ -709,13 +709,13 @@ stable ordering for a valid priority queue.


diff --git a/module-core_token-pooling_token-pool-TokenPool.html b/module-core_token-pooling_token-pool-TokenPool.html index 8dbea7632c..838e0650ad 100644 --- a/module-core_token-pooling_token-pool-TokenPool.html +++ b/module-core_token-pooling_token-pool-TokenPool.html @@ -893,13 +893,13 @@ indicate it should not be reused.


diff --git a/module-core_token-pooling_token-pool.html b/module-core_token-pooling_token-pool.html index bd4839fea4..0886d1810f 100644 --- a/module-core_token-pooling_token-pool.html +++ b/module-core_token-pooling_token-pool.html @@ -285,13 +285,13 @@
diff --git a/module-services_build-status.html b/module-services_build-status.html index b546d1139c..cc188ef4ff 100644 --- a/module-services_build-status.html +++ b/module-services_build-status.html @@ -447,13 +447,13 @@ Determines the message and color of the badge according to the build status.


diff --git a/module-services_color-formatters.html b/module-services_color-formatters.html index 8a29bcf0d5..c5bc301937 100644 --- a/module-services_color-formatters.html +++ b/module-services_color-formatters.html @@ -1365,13 +1365,13 @@ The color defaults to red if the score does not matches with any of the grade va
diff --git a/module-services_contributor-count.html b/module-services_contributor-count.html index 37234c9428..fad3e21a45 100644 --- a/module-services_contributor-count.html +++ b/module-services_contributor-count.html @@ -530,13 +530,13 @@ Determines the message and color of the badge according to the contributor count
diff --git a/module-services_date.html b/module-services_date.html index f98000933a..bb5ec720e9 100644 --- a/module-services_date.html +++ b/module-services_date.html @@ -1081,13 +1081,13 @@ parseDate('2018 Enero 15', 'YYYY MMMM DD', 'es')
diff --git a/module-services_downloads.html b/module-services_downloads.html index 531ca1ad7b..89971da5a8 100644 --- a/module-services_downloads.html +++ b/module-services_downloads.html @@ -540,13 +540,13 @@ this value as the prefix for versioned badges, e.g. foobar@v1.23. D
diff --git a/module-services_dynamic-common.html b/module-services_dynamic-common.html index 971504dbdc..7b63e1cdb9 100644 --- a/module-services_dynamic-common.html +++ b/module-services_dynamic-common.html @@ -954,13 +954,13 @@ Sets the color of the badge to blue.


diff --git a/module-services_dynamic_json-path.html b/module-services_dynamic_json-path.html index f0e71172b0..bb68339488 100644 --- a/module-services_dynamic_json-path.html +++ b/module-services_dynamic_json-path.html @@ -417,13 +417,13 @@ This can be used to extend or override the
diff --git a/module-services_endpoint-common.html b/module-services_endpoint-common.html index 556eb86a9f..1ba944edd9 100644 --- a/module-services_endpoint-common.html +++ b/module-services_endpoint-common.html @@ -804,13 +804,13 @@ Optionally it prints those keys in the message to provide detailed feedback.


diff --git a/module-services_licenses.html b/module-services_licenses.html index 4f5e1dcdb8..fc0ca8ee21 100644 --- a/module-services_licenses.html +++ b/module-services_licenses.html @@ -644,13 +644,13 @@ Sets the badge color to the provided value, if not provided then the color is us
diff --git a/module-services_package-json-helpers.html b/module-services_package-json-helpers.html index 9aa0a4d77d..23cb6ae0ad 100644 --- a/module-services_package-json-helpers.html +++ b/module-services_package-json-helpers.html @@ -650,13 +650,13 @@ Checks if the object has all the dependency types and the dependency types are v
diff --git a/module-services_php-version.html b/module-services_php-version.html index 43b6bc9df0..252573db16 100644 --- a/module-services_php-version.html +++ b/module-services_php-version.html @@ -1466,13 +1466,13 @@ Return { numbers: [1,0,something big], modifier: 2, modifierCount: 1 }


diff --git a/module-services_pipenv-helpers.html b/module-services_pipenv-helpers.html index 23a25e986e..05ab47263a 100644 --- a/module-services_pipenv-helpers.html +++ b/module-services_pipenv-helpers.html @@ -610,13 +610,13 @@ Checks if the lock file object has required properties and the properties are va
diff --git a/module-services_route-builder.html b/module-services_route-builder.html index 217366b043..b1092d6c80 100644 --- a/module-services_route-builder.html +++ b/module-services_route-builder.html @@ -615,13 +615,13 @@
diff --git a/module-services_size.html b/module-services_size.html new file mode 100644 index 0000000000..ed50fa8d9e --- /dev/null +++ b/module-services_size.html @@ -0,0 +1,385 @@ + + + + + JSDoc: Module: services/size + + + + + + + + + + +
+ +

Module: services/size

+ + + + + + +
+ +
+ +
+ +
+
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + +

Methods

+ + + + + + + +

(inner) renderSizeBadge(bytes, units, labelopt) → {object}

+ + + + + + +
+

Creates a badge object that displays information about a size in bytes number. +It should usually be used to output a size badge.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDefaultDescription
bytes + + +number + + + + + + + + + + + +

Raw number of bytes to be formatted

units + + +'metric' +| + +'iec' + + + + + + + + + + + +

Either 'metric' (multiples of 1000) or 'iec' (multiples of 1024). +This should align with how the upstream displays sizes.

label + + +string + + + + + + <optional>
+ + + + + +
+ + 'size' + +

Custom label

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

A badge object that has three properties: label, message, and color

+
+ + + +
+
+ Type +
+
+ +object + + +
+
+ + + + + + + + + + + + + +
+ +
+ + + + +
+ + + +
+ + + + + + + \ No newline at end of file diff --git a/module-services_steam_steam-base-BaseSteamAPI.html b/module-services_steam_steam-base-BaseSteamAPI.html index 758312b1e9..b8da89c79d 100644 --- a/module-services_steam_steam-base-BaseSteamAPI.html +++ b/module-services_steam_steam-base-BaseSteamAPI.html @@ -374,13 +374,13 @@
diff --git a/module-services_steam_steam-base.html b/module-services_steam_steam-base.html index 29b3b3da75..a820af8e3f 100644 --- a/module-services_steam_steam-base.html +++ b/module-services_steam_steam-base.html @@ -119,13 +119,13 @@
diff --git a/module-services_text-formatters.html b/module-services_text-formatters.html index 6dc5a9519d..9e2c3b654c 100644 --- a/module-services_text-formatters.html +++ b/module-services_text-formatters.html @@ -1343,13 +1343,13 @@ The remaining stars are empty stars until the maximum number of stars is reached
diff --git a/module-services_validators.html b/module-services_validators.html index e631e1f14a..1fb2c948d9 100644 --- a/module-services_validators.html +++ b/module-services_validators.html @@ -773,13 +773,13 @@ Some invalid values for this validator are: abc, 1.a, 1.0-, .1


diff --git a/module-services_version.html b/module-services_version.html index a7dcdd2e21..eb59f45fe9 100644 --- a/module-services_version.html +++ b/module-services_version.html @@ -1987,13 +1987,13 @@ slice('2.4', 'patch') // returns null because the version string is not valid ac
diff --git a/module-services_website-status.html b/module-services_website-status.html index 626c91ab07..daa961fd2b 100644 --- a/module-services_website-status.html +++ b/module-services_website-status.html @@ -655,13 +655,13 @@ renderWebsiteStatus({ isUp: false }) // returns { message: 'down', color: 'red'
diff --git a/module-services_winget_version.html b/module-services_winget_version.html index ad223e29cb..fbb93dea59 100644 --- a/module-services_winget_version.html +++ b/module-services_winget_version.html @@ -958,13 +958,13 @@ if there is a digit before the split character, or no split characters exist.


diff --git a/services_build-status.js.html b/services_build-status.js.html index f4c07cd94c..2fd019745b 100644 --- a/services_build-status.js.html +++ b/services_build-status.js.html @@ -134,13 +134,13 @@ export { isBuildStatus, renderBuildStatusBadge }
diff --git a/services_color-formatters.js.html b/services_color-formatters.js.html index 28af9d2a5f..3fea0a8ea7 100644 --- a/services_color-formatters.js.html +++ b/services_color-formatters.js.html @@ -221,13 +221,13 @@ export {
diff --git a/services_contributor-count.js.html b/services_contributor-count.js.html index 5e494cee8e..40573232cb 100644 --- a/services_contributor-count.js.html +++ b/services_contributor-count.js.html @@ -79,13 +79,13 @@ export { contributorColor, renderContributorBadge }
diff --git a/services_crates_crates-base.js.html b/services_crates_crates-base.js.html index 407976f725..35a2f27b72 100644 --- a/services_crates_crates-base.js.html +++ b/services_crates_crates-base.js.html @@ -123,13 +123,13 @@ export { BaseCratesService, BaseCratesUserService, description }
diff --git a/services_date.js.html b/services_date.js.html index 37ec8cbf5c..a99cec77f0 100644 --- a/services_date.js.html +++ b/services_date.js.html @@ -144,13 +144,13 @@ export { parseDate, renderDateBadge, formatDate, formatRelativeDate, age }
diff --git a/services_downloads.js.html b/services_downloads.js.html index 5dcabec510..60be100d94 100644 --- a/services_downloads.js.html +++ b/services_downloads.js.html @@ -95,13 +95,13 @@ export { renderDownloadsBadge }
diff --git a/services_dynamic-common.js.html b/services_dynamic-common.js.html index ac5f20a219..70750ebef3 100644 --- a/services_dynamic-common.js.html +++ b/services_dynamic-common.js.html @@ -136,13 +136,13 @@ export {
diff --git a/services_dynamic_json-path.js.html b/services_dynamic_json-path.js.html index a0690cd28d..7a1602b0ea 100644 --- a/services_dynamic_json-path.js.html +++ b/services_dynamic_json-path.js.html @@ -105,13 +105,13 @@ export default superclass =>
diff --git a/services_endpoint-common.js.html b/services_endpoint-common.js.html index f4956271df..1d2b5aebe3 100644 --- a/services_endpoint-common.js.html +++ b/services_endpoint-common.js.html @@ -148,13 +148,13 @@ export { validateEndpointData, fetchEndpointData }
diff --git a/services_licenses.js.html b/services_licenses.js.html index 8cda776ab9..d0f0493489 100644 --- a/services_licenses.js.html +++ b/services_licenses.js.html @@ -195,13 +195,13 @@ export { licenseToColor, renderLicenseBadge }
diff --git a/services_package-json-helpers.js.html b/services_package-json-helpers.js.html index 2b6ab5a0b0..bc887da5d7 100644 --- a/services_package-json-helpers.js.html +++ b/services_package-json-helpers.js.html @@ -114,13 +114,13 @@ export { isDependencyMap, isPackageJsonWithDependencies, getDependencyVersion }
diff --git a/services_packagist_packagist-base.js.html b/services_packagist_packagist-base.js.html index 48becb20de..6c4084130c 100644 --- a/services_packagist_packagist-base.js.html +++ b/services_packagist_packagist-base.js.html @@ -223,13 +223,13 @@ export {
diff --git a/services_php-version.js.html b/services_php-version.js.html index 805ff46862..f9ae83b897 100644 --- a/services_php-version.js.html +++ b/services_php-version.js.html @@ -335,13 +335,13 @@ export {
diff --git a/services_pipenv-helpers.js.html b/services_pipenv-helpers.js.html index e7bbc39c98..c6646f422d 100644 --- a/services_pipenv-helpers.js.html +++ b/services_pipenv-helpers.js.html @@ -122,13 +122,13 @@ export { isLockfile, getDependencyVersion }
diff --git a/services_route-builder.js.html b/services_route-builder.js.html index 53f6a9834d..a8b91b1ca2 100644 --- a/services_route-builder.js.html +++ b/services_route-builder.js.html @@ -99,13 +99,13 @@ export default class RouteBuilder {
diff --git a/services_size.js.html b/services_size.js.html new file mode 100644 index 0000000000..52ae7d5ef3 --- /dev/null +++ b/services_size.js.html @@ -0,0 +1,76 @@ + + + + + JSDoc: Source: services/size.js + + + + + + + + + + +
+ +

Source: services/size.js

+ + + + + + +
+
+
/**
+ * @module
+ */
+
+import byteSize from 'byte-size'
+
+/**
+ * Creates a badge object that displays information about a size in bytes number.
+ * It should usually be used to output a size badge.
+ *
+ * @param {number} bytes - Raw number of bytes to be formatted
+ * @param {'metric'|'iec'} units - Either 'metric' (multiples of 1000) or 'iec' (multiples of 1024).
+ *   This should align with how the upstream displays sizes.
+ * @param {string} [label='size'] - Custom label
+ * @returns {object} A badge object that has three properties: label, message, and color
+ */
+function renderSizeBadge(bytes, units, label = 'size') {
+  return {
+    label,
+    message: byteSize(bytes, { units }).toString(),
+    color: 'blue',
+  }
+}
+
+export { renderSizeBadge }
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/services_steam_steam-base.js.html b/services_steam_steam-base.js.html index f73bbace11..190345c004 100644 --- a/services_steam_steam-base.js.html +++ b/services_steam_steam-base.js.html @@ -92,13 +92,13 @@ export default BaseSteamAPI
diff --git a/services_test-helpers.js.html b/services_test-helpers.js.html index 105adffd15..7c8ca04d4c 100644 --- a/services_test-helpers.js.html +++ b/services_test-helpers.js.html @@ -382,13 +382,13 @@ export {
diff --git a/services_test-validators.js.html b/services_test-validators.js.html index a1b29ce6f4..9c9731245e 100644 --- a/services_test-validators.js.html +++ b/services_test-validators.js.html @@ -134,9 +134,12 @@ const isPercentage = Joi.alternatives().try( isDecimalPercentageNegative, ) -const isFileSize = withRegex( +const isMetricFileSize = withRegex( /^[0-9]*[.]?[0-9]+\s(B|kB|KB|MB|GB|TB|PB|EB|ZB|YB)$/, ) +const isIecFileSize = withRegex( + /^[0-9]*[.]?[0-9]+\s(B|KiB|MiB|GiB|TiB|PiB|EiB|ZiB|YiB)$/, +) const isFormattedDate = Joi.alternatives().try( Joi.equal('today', 'yesterday'), @@ -230,7 +233,8 @@ export { isPercentage, isIntegerPercentage, isDecimalPercentage, - isFileSize, + isMetricFileSize, + isIecFileSize, isFormattedDate, isRelativeFormattedDate, isDependencyState, @@ -256,13 +260,13 @@ export {
diff --git a/services_text-formatters.js.html b/services_text-formatters.js.html index 51135be5de..bdcf9a6426 100644 --- a/services_text-formatters.js.html +++ b/services_text-formatters.js.html @@ -206,13 +206,13 @@ export {
diff --git a/services_thunderstore_thunderstore-base.js.html b/services_thunderstore_thunderstore-base.js.html index f6f5d19df0..885de00b9c 100644 --- a/services_thunderstore_thunderstore-base.js.html +++ b/services_thunderstore_thunderstore-base.js.html @@ -96,13 +96,13 @@ export { BaseThunderstoreService, description }
diff --git a/services_validators.js.html b/services_validators.js.html index 89dfc33529..821fe24d23 100644 --- a/services_validators.js.html +++ b/services_validators.js.html @@ -124,13 +124,13 @@ export const relativeUri = Joi.string().uri({ relativeOnly: true })
diff --git a/services_version.js.html b/services_version.js.html index d251a287e7..c962ee8673 100644 --- a/services_version.js.html +++ b/services_version.js.html @@ -301,13 +301,13 @@ export { latest, listCompare, slice, rangeStart, renderVersionBadge }
diff --git a/services_website-status.js.html b/services_website-status.js.html index 16021eb18f..404122f1ef 100644 --- a/services_website-status.js.html +++ b/services_website-status.js.html @@ -101,13 +101,13 @@ export { queryParamSchema, queryParams, renderWebsiteStatus }
diff --git a/services_winget_version.js.html b/services_winget_version.js.html index 96012754d0..869a4c583f 100644 --- a/services_winget_version.js.html +++ b/services_winget_version.js.html @@ -208,13 +208,13 @@ export { latest, compareVersion }
diff --git a/tutorial-TUTORIAL.html b/tutorial-TUTORIAL.html index b6a3d460a7..caaf91199f 100644 --- a/tutorial-TUTORIAL.html +++ b/tutorial-TUTORIAL.html @@ -418,13 +418,13 @@ will review your contribution.
diff --git a/tutorial-adding-new-config-values.html b/tutorial-adding-new-config-values.html index 0564f7b896..2c60dfb302 100644 --- a/tutorial-adding-new-config-values.html +++ b/tutorial-adding-new-config-values.html @@ -54,13 +54,13 @@
diff --git a/tutorial-authentication.html b/tutorial-authentication.html index d9241480c1..0660add9b5 100644 --- a/tutorial-authentication.html +++ b/tutorial-authentication.html @@ -42,13 +42,13 @@
diff --git a/tutorial-badge-urls.html b/tutorial-badge-urls.html index d811554942..20e0812210 100644 --- a/tutorial-badge-urls.html +++ b/tutorial-badge-urls.html @@ -77,13 +77,13 @@ badge is for issues, and the parameters are :user/:repo.
diff --git a/tutorial-code-walkthrough.html b/tutorial-code-walkthrough.html index 9679ce3f76..3172ebe0e7 100644 --- a/tutorial-code-walkthrough.html +++ b/tutorial-code-walkthrough.html @@ -229,13 +229,13 @@ result over the HTTPS connection.
diff --git a/tutorial-deprecating-badges.html b/tutorial-deprecating-badges.html index 8833f72095..995cff306f 100644 --- a/tutorial-deprecating-badges.html +++ b/tutorial-deprecating-badges.html @@ -149,13 +149,13 @@ t.create('no longer available (previously number of layers)')
diff --git a/tutorial-input-validation.html b/tutorial-input-validation.html index 144a569e5b..baa9672ccb 100644 --- a/tutorial-input-validation.html +++ b/tutorial-input-validation.html @@ -100,13 +100,13 @@
diff --git a/tutorial-json-format.html b/tutorial-json-format.html index 71b2ad1b51..48f02682a8 100644 --- a/tutorial-json-format.html +++ b/tutorial-json-format.html @@ -54,13 +54,13 @@ if you have any queries regarding the JSON format.


diff --git a/tutorial-performance-testing.html b/tutorial-performance-testing.html index 08a0c56941..3ffc698f42 100644 --- a/tutorial-performance-testing.html +++ b/tutorial-performance-testing.html @@ -70,13 +70,13 @@ node --prof-process --preprocess -j isolate-00000244AB6ED3B0-11920-v8.log | flam
diff --git a/tutorial-production-hosting.html b/tutorial-production-hosting.html index a037e27976..299c2fde0c 100644 --- a/tutorial-production-hosting.html +++ b/tutorial-production-hosting.html @@ -206,13 +206,13 @@ via local-shields-io-production.yml (see Home

Modules

Classes

Tutorials

Global

+

Home

Modules

Classes

Tutorials

Global


diff --git a/tutorial-releases.html b/tutorial-releases.html index b55cdc635c..fcf6862c0a 100644 --- a/tutorial-releases.html +++ b/tutorial-releases.html @@ -73,13 +73,13 @@
diff --git a/tutorial-self-hosting.html b/tutorial-self-hosting.html index 07e0547aed..f946a1d2d3 100644 --- a/tutorial-self-hosting.html +++ b/tutorial-self-hosting.html @@ -176,13 +176,13 @@ Set public.requireCloudflare: true.


diff --git a/tutorial-server-secrets.html b/tutorial-server-secrets.html index cdc9679868..7654f57b81 100644 --- a/tutorial-server-secrets.html +++ b/tutorial-server-secrets.html @@ -325,13 +325,13 @@ and create an API key for the YouTube Data API v3.


diff --git a/tutorial-service-tests.html b/tutorial-service-tests.html index 7695e936bd..c27a4d9ff5 100644 --- a/tutorial-service-tests.html +++ b/tutorial-service-tests.html @@ -223,13 +223,13 @@ comment there instead.


diff --git a/tutorial-static-badges.html b/tutorial-static-badges.html index 566732b301..570ab22114 100644 --- a/tutorial-static-badges.html +++ b/tutorial-static-badges.html @@ -36,13 +36,13 @@