Skip to content

Commit

Permalink
chore!: esm only
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak committed Aug 22, 2024
1 parent 7f31743 commit 25f7b26
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 634 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ jobs:
node-version:
- 18
- 20
- 21
- 22
os:
- ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Run `smee --help` for usage.
### Node Client

```js
const SmeeClient = require('smee-client')
import SmeeClient from 'smee-client'

const smee = new SmeeClient({
source: 'https://smee.io/abc123',
Expand Down
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import validator from "validator";
import EventSource from "eventsource";
import { EventSource } from "undici";
import url from "url";
import querystring from "querystring";

Expand Down Expand Up @@ -111,4 +111,4 @@ class Client {
}
}

export = Client;
export default Client;
Loading

0 comments on commit 25f7b26

Please sign in to comment.