diff --git a/packages/api-types/CHANGELOG.md b/packages/api-types/CHANGELOG.md index 0487e33..04f8c64 100644 --- a/packages/api-types/CHANGELOG.md +++ b/packages/api-types/CHANGELOG.md @@ -1,6 +1,6 @@ # @biscuitland/api-types -## 2.0.1 +## 2.0.2 ### Major Changes diff --git a/packages/api-types/README.md b/packages/api-types/README.md index ef9490b..26cfadd 100644 --- a/packages/api-types/README.md +++ b/packages/api-types/README.md @@ -25,7 +25,7 @@ import type { DiscordUser } from '@biscuitland/api-types'; ## Example for [Deno](https://deno.land/) ```ts -import type { DiscordUser } from "https://unpkg.com/@biscuitland/api-types@2.0.1/dist/index.d.ts"; +import type { DiscordUser } from "https://unpkg.com/@biscuitland/api-types@2.0.2/dist/index.d.ts"; ``` We deliver this package through [unpkg](https://unpkg.com/) and it does contain constants and routes too diff --git a/packages/api-types/package.json b/packages/api-types/package.json index 4af5361..ae33c31 100644 --- a/packages/api-types/package.json +++ b/packages/api-types/package.json @@ -1,6 +1,6 @@ { "name": "@biscuitland/api-types", - "version": "2.0.1", + "version": "2.0.2", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", diff --git a/packages/api-types/src/utils/constants.ts b/packages/api-types/src/utils/constants.ts index 4cb0bd7..3774bac 100644 --- a/packages/api-types/src/utils/constants.ts +++ b/packages/api-types/src/utils/constants.ts @@ -5,7 +5,7 @@ export const BASE_URL = 'https://discord.com/api'; export const API_VERSION = 10; /** https://github.com/oasisjs/biscuit/releases */ -export const BISCUIT_VERSION = '2.0.1'; +export const BISCUIT_VERSION = '2.0.2'; /** https://discord.com/developers/docs/reference#user-agent */ export const USER_AGENT = `DiscordBot (https://github.com/oasisjs/biscuit, v${BISCUIT_VERSION})`; diff --git a/packages/cache/CHANGELOG.md b/packages/cache/CHANGELOG.md index 5249454..ad867fa 100644 --- a/packages/cache/CHANGELOG.md +++ b/packages/cache/CHANGELOG.md @@ -1,6 +1,6 @@ # @biscuitland/cache -## 2.0.1 +## 2.0.2 ### Major Changes @@ -9,4 +9,4 @@ ### Patch Changes - Updated dependencies - - @biscuitland/api-types@2.0.1 + - @biscuitland/api-types@2.0.2 diff --git a/packages/cache/package.json b/packages/cache/package.json index 1c91db3..f4045f3 100644 --- a/packages/cache/package.json +++ b/packages/cache/package.json @@ -1,6 +1,6 @@ { "name": "@biscuitland/cache", - "version": "2.0.1", + "version": "2.0.2", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", @@ -23,7 +23,7 @@ } }, "dependencies": { - "@biscuitland/api-types": "^2.0.1", + "@biscuitland/api-types": "^2.0.2", "ioredis": "^5.2.2" }, "devDependencies": { diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 08b0139..cb58dbb 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,6 +1,6 @@ # @biscuitland/core -## 2.0.1 +## 2.0.2 ### Major Changes @@ -9,6 +9,6 @@ ### Patch Changes - Updated dependencies - - @biscuitland/api-types@2.0.1 - - @biscuitland/rest@2.0.1 - - @biscuitland/ws@2.0.1 + - @biscuitland/api-types@2.0.2 + - @biscuitland/rest@2.0.2 + - @biscuitland/ws@2.0.2 diff --git a/packages/core/package.json b/packages/core/package.json index 0c5b17b..f22933e 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@biscuitland/core", - "version": "2.0.1", + "version": "2.0.2", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", @@ -23,9 +23,9 @@ } }, "dependencies": { - "@biscuitland/api-types": "^2.0.1", - "@biscuitland/rest": "^2.0.1", - "@biscuitland/ws": "^2.0.1" + "@biscuitland/api-types": "^2.0.2", + "@biscuitland/rest": "^2.0.2", + "@biscuitland/ws": "^2.0.2" }, "devDependencies": { "tsup": "^6.1.3" diff --git a/packages/helpers/CHANGELOG.md b/packages/helpers/CHANGELOG.md index b5d06e9..9ac7d49 100644 --- a/packages/helpers/CHANGELOG.md +++ b/packages/helpers/CHANGELOG.md @@ -1,9 +1,9 @@ # @biscuitland/helpers -## 2.0.1 +## 2.0.2 ### Patch Changes - Updated dependencies - - @biscuitland/api-types@2.0.1 - - @biscuitland/core@2.0.1 + - @biscuitland/api-types@2.0.2 + - @biscuitland/core@2.0.2 diff --git a/packages/helpers/package.json b/packages/helpers/package.json index 5d547f2..085258f 100644 --- a/packages/helpers/package.json +++ b/packages/helpers/package.json @@ -1,6 +1,6 @@ { "name": "@biscuitland/helpers", - "version": "2.0.1", + "version": "2.0.2", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", @@ -23,8 +23,8 @@ } }, "dependencies": { - "@biscuitland/api-types": "^2.0.1", - "@biscuitland/core": "^2.0.1" + "@biscuitland/api-types": "^2.0.2", + "@biscuitland/core": "^2.0.2" }, "devDependencies": { "tsup": "^6.1.3" diff --git a/packages/rest/CHANGELOG.md b/packages/rest/CHANGELOG.md index dc21694..a59b89b 100644 --- a/packages/rest/CHANGELOG.md +++ b/packages/rest/CHANGELOG.md @@ -1,6 +1,6 @@ # @biscuitland/rest -## 2.0.1 +## 2.0.2 ### Major Changes @@ -9,4 +9,4 @@ ### Patch Changes - Updated dependencies - - @biscuitland/api-types@2.0.1 + - @biscuitland/api-types@2.0.2 diff --git a/packages/rest/package.json b/packages/rest/package.json index dc59849..7c61838 100644 --- a/packages/rest/package.json +++ b/packages/rest/package.json @@ -1,6 +1,6 @@ { "name": "@biscuitland/rest", - "version": "2.0.1", + "version": "2.0.2", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", @@ -23,7 +23,7 @@ } }, "dependencies": { - "@biscuitland/api-types": "^2.0.1" + "@biscuitland/api-types": "^2.0.2" }, "devDependencies": { "tsup": "^6.1.3" diff --git a/packages/ws/CHANGELOG.md b/packages/ws/CHANGELOG.md index 3c68104..77bebfc 100644 --- a/packages/ws/CHANGELOG.md +++ b/packages/ws/CHANGELOG.md @@ -1,6 +1,6 @@ # @biscuitland/ws -## 2.0.1 +## 2.0.2 ### Major Changes @@ -9,4 +9,4 @@ ### Patch Changes - Updated dependencies - - @biscuitland/api-types@2.0.1 + - @biscuitland/api-types@2.0.2 diff --git a/packages/ws/package.json b/packages/ws/package.json index 500ad3a..288edf5 100644 --- a/packages/ws/package.json +++ b/packages/ws/package.json @@ -1,6 +1,6 @@ { "name": "@biscuitland/ws", - "version": "2.0.1", + "version": "2.0.2", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", @@ -23,7 +23,7 @@ } }, "dependencies": { - "@biscuitland/api-types": "^2.0.1", + "@biscuitland/api-types": "^2.0.2", "ws": "^8.8.1" }, "devDependencies": { diff --git a/packages/ws/src/services/shard.ts b/packages/ws/src/services/shard.ts index f323dbd..6ce92ae 100644 --- a/packages/ws/src/services/shard.ts +++ b/packages/ws/src/services/shard.ts @@ -578,6 +578,8 @@ export class Shard { this.socket = socket; + socket.onerror = (event: any) => console.log(event); + socket.onclose = (event: any) => this.handleClose(event); socket.onmessage = (message: any) => {