diff --git a/jsr.json b/jsr.json index abfd594..7777bc2 100644 --- a/jsr.json +++ b/jsr.json @@ -1,6 +1,6 @@ { "name": "@greenweb/co2js", - "version": "0.16.0", + "version": "0.16.1", "exports": "./dist/esm/index.js", "exclude": [ "!dist/**" diff --git a/mod.ts b/mod.ts new file mode 100644 index 0000000..e258df1 --- /dev/null +++ b/mod.ts @@ -0,0 +1 @@ +export * from "./src/index.js"; diff --git a/src/hosting.js b/src/hosting.js index b8e3da5..4d783f2 100644 --- a/src/hosting.js +++ b/src/hosting.js @@ -2,6 +2,10 @@ import hostingAPI from "./hosting-api.js"; +/** + * @module hosting + */ + /** * Check if a domain is hosted by a green web host. * @param {string|array} domain - The domain to check, or an array of domains to be checked. @@ -17,6 +21,4 @@ function check(domain, optionsOrAgentId) { return hostingAPI.check(domain, optionsOrAgentId); } -export default { - check, -}; +export default check;