{"id":25836060,"url":"https://github.com/bugsplat-git/bugsplat-deno","last_synced_at":"2025-06-22T18:35:05.345Z","repository":{"id":57675446,"uuid":"324894263","full_name":"BugSplat-Git/bugsplat-deno","owner":"BugSplat-Git","description":"Deprecated! Please use bugsplat from esm.sh","archived":true,"fork":false,"pushed_at":"2024-03-01T18:35:55.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-01T01:38:56.188Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BugSplat-Git.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-12-28T02:37:51.000Z","updated_at":"2024-06-26T22:25:26.000Z","dependencies_parsed_at":"2025-06-22T18:34:10.576Z","dependency_job_id":null,"html_url":"https://github.com/BugSplat-Git/bugsplat-deno","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/BugSplat-Git/bugsplat-deno","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BugSplat-Git%2Fbugsplat-deno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BugSplat-Git%2Fbugsplat-deno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BugSplat-Git%2Fbugsplat-deno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BugSplat-Git%2Fbugsplat-deno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BugSplat-Git","download_url":"https://codeload.github.com/BugSplat-Git/bugsplat-deno/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BugSplat-Git%2Fbugsplat-deno/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261344489,"owners_count":23144873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-01T01:38:59.545Z","updated_at":"2025-06-22T18:35:00.292Z","avatar_url":"https://github.com/BugSplat-Git.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![bugsplat-github-banner-basic-outline](https://user-images.githubusercontent.com/20464226/149019306-3186103c-5315-4dad-a499-4fd1df408475.png)](https://bugsplat.com)\n\u003cbr/\u003e\n# \u003cdiv align=\"center\"\u003eBugSplat\u003c/div\u003e \n### **\u003cdiv align=\"center\"\u003eCrash and error reporting built for busy developers.\u003c/div\u003e**\n\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"https://twitter.com/BugSplatCo\"\u003e\n        \u003cimg alt=\"Follow @bugsplatco on Twitter\" src=\"https://img.shields.io/twitter/follow/bugsplatco?label=Follow%20BugSplat\u0026style=social\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://discord.gg/K4KjjRV5ve\"\u003e\n        \u003cimg alt=\"Join BugSplat on Discord\" src=\"https://img.shields.io/discord/664965194799251487?label=Join%20Discord\u0026logo=Discord\u0026style=social\"\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\n## ⚠️ Deprecated!\n\nBugSplat's [bugsplat-js](https://github.com/BugSplat-Git/bugsplat-js?tab=readme-ov-file#deno) package is now Deno-compatible via [esm.sh](https://esm.sh/). Please see our [my-deno-crasher](https://github.com/BugSplat-Git/my-deno-crasher) example for instructions on how to integrate your [Deno](https://deno.com) application with BugSplat.\n\nThe most recent README file at the time of writing has been copied below.\n\n# bugsplat-deno\n\nThis sample project demonstrates how to use the [bugsplat](https://github.com/BugSplat-Git/bugsplat-js) package to report TypeScript errors in [Deno](https://deno.com) applications. Before continuing with the tutorial please make sure you have completed the following checklist:\n\n* [Sign Up](https://app.bugsplat.com/v2/sign-up) as a new BugSplat user.\n* [Log In](https://app.bugsplat.com/cognito/login) using your email address.\n\n## ⚙️ Integrating\n\nAdd an import from [bugsplat-js](https://github.com/BugSplat-Git/bugsplat-js) via [esm.sh](https://esm.sh/):\n\n```typescript\nimport { BugSplat } from 'https://esm.sh/bugsplat@8.0.1';\n```\n\nCreate a new instance of the `BugSplat` class with the name of your BugSplat database, the name of your application, and the version of your application:\n\n```typescript\nconst bugsplat = new BugSplat('DatabaseName', 'AppName', '1.0.0');\n```\n\nUse the `bugsplat` instance to capture errors that originate inside of try-catch blocks:\n\n```typescript\ntry {\n  throw new Error(\"BugSplat\");\n} catch (error) {\n  await bugsplat.post(error);\n}\n```\n\nUse `bugsplat` to post errors from promise rejections:\n\n```typescript\nPromise.reject(new Error(\"BugSplat!\")).catch(error =\u003e bugsplat.post(error, {}));\n```\n\nYou can also attach a file to your error post by passing a `BugSplatOptions` object containing with a value for `additionalFormDataParams` property.\n\n```typescript\nawait bugsplat.post(error, getAdditionalOptionsWithLogFile());\n\nfunction getAdditionalOptionsWithLogFile() {\n  const filename = 'log.txt';\n  return {\n    additionalFormDataParams: [{\n      key: 'file',\n      value: new File([Deno.readFileSync(filename)], filename),\n      filename: filename,\n    }],\n  };\n}\n```\n\n## 🧪 Sample\n\nClone the [my-deno-crasher](https://github.com/BugSplat-Git/my-deno-crasher) repository:\n\n```bash\ngit clone https://github.com/BugSplat-Git/my-deno-crasher\n```\n\nSet your current directory to `my-deno-crasher`.\n\n```bash\ncd my-deno-crasher\n```\n\nRun the sample with the `--allow-net` and `--allow-read` flags to allow BugSplat to post an error to our backend and read the log file respectively.\n\n```bash\ndeno run --allow-net --allow-read main.ts\n```\n\n## 📈 Viewing Reports\n\nAfter posting an error, navigate to the [Crashes](https://app.bugsplat.com/v2/crashes) page. You should see a new crash report for the application you just configured. Click the link in the ID column to see details about your crash on the [Crashes](https://app.bugsplat.com/v2/crashes) page:\n\n\u003cfigure\u003e\u003cimg src=\"../../../../.gitbook/assets/image (33).png\" alt=\"\"\u003e\u003cfigcaption\u003e\u003cp\u003eDeno Error Reports\u003c/p\u003e\u003c/figcaption\u003e\u003c/figure\u003e\n\n\u003cfigure\u003e\u003cimg src=\"../../../../.gitbook/assets/image (32).png\" alt=\"\"\u003e\u003cfigcaption\u003e\u003cp\u003eDeno Error Report\u003c/p\u003e\u003c/figcaption\u003e\u003c/figure\u003e\n\nThat’s it! Your application is now configured to post error reports to BugSplat.\n\n## API\n\nIn addition to the configuration demonstrated above, there are a few public methods that can be used to customize your BugSplat integration:\n\n```typescript\nbugsplat.setDefaultAppKey(appKey); // Additional metadata that can be queried via BugSplats web application\nbugsplat.setDefaultUser(user); // The name or id of your user\nbugsplat.setDefaultEmail(email); // The email of your user\nbugsplat.setDefaultDescription(description); // Additional info about your crash that gets reset after every post\nasync bugsplat.post(error, options); // Posts an arbitrary Error object to BugSplat\n// If the values options.appKey, options.user, options.email, options.description are set the corresponding default values will be overwritten\n// Returns a promise that resolves with properties: error (if there was an error posting to BugSplat), response (the response from the BugSplat crash post API), and original (the error passed by bugsplat.post)\n```\n\n## Contributing\n\nBugSplat loves open-source software! Please check out our project on [GitHub](https://github.com/BugSplat-Git/bugsplat-js) and send us a Pull Request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugsplat-git%2Fbugsplat-deno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbugsplat-git%2Fbugsplat-deno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugsplat-git%2Fbugsplat-deno/lists"}