Skip to content

Commit

Permalink
Add basic JSR support
Browse files Browse the repository at this point in the history
  • Loading branch information
fershad authored Sep 10, 2024
2 parents 8f9097c + ed2d8ab commit 6c0f991
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@greenweb/co2js",
"version": "0.16.0",
"version": "0.16.1",
"exports": "./dist/esm/index.js",
"exclude": [
"!dist/**"
Expand Down
1 change: 1 addition & 0 deletions mod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./src/index.js";
8 changes: 5 additions & 3 deletions src/hosting.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -17,6 +21,4 @@ function check(domain, optionsOrAgentId) {
return hostingAPI.check(domain, optionsOrAgentId);
}

export default {
check,
};
export default check;

0 comments on commit 6c0f991

Please sign in to comment.