Merge pull request #139 from MierenManz/update_deps

chore: update deps
This commit is contained in:
DjDeveloper 2021-04-30 12:20:37 +05:30 committed by GitHub
commit fee3e0cfa0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 8 deletions

View file

@ -1,6 +1,6 @@
export { EventEmitter } from 'https://deno.land/x/event@0.2.1/mod.ts'
export { EventEmitter } from 'https://deno.land/x/event@1.0.0/mod.ts'
export { unzlib } from 'https://denopkg.com/DjDeveloperr/denoflate@1.2/mod.ts'
export { fetchAuto } from 'https://deno.land/x/fetchbase64@1.0.0/mod.ts'
export { walk } from 'https://deno.land/std@0.86.0/fs/walk.ts'
export { join } from 'https://deno.land/std@0.86.0/path/mod.ts'
export { walk } from 'https://deno.land/std@0.95.0/fs/walk.ts'
export { join } from 'https://deno.land/std@0.95.0/path/mod.ts'
export { Mixin } from 'https://esm.sh/ts-mixer@5.4.0'

2
src/cache/redis.ts vendored
View file

@ -4,7 +4,7 @@ import {
connect,
Redis,
RedisConnectOptions
} from 'https://deno.land/x/redis@v0.14.1/mod.ts'
} from 'https://deno.land/x/redis@v0.22.0/mod.ts'
/** Redis Cache Adapter for using Redis as a cache-provider. */
export class RedisCacheAdapter implements ICacheAdapter {

View file

@ -399,7 +399,7 @@ export class Gateway extends HarmonyEventEmitter<GatewayTypedEvents> {
await this.cache.delete(`seq_${this.shards?.join('-') ?? '0'}`)
}
this.close(1000, RECONNECT_REASON)
this.closeGateway(1000, RECONNECT_REASON)
this.initWebsocket()
}
@ -418,7 +418,7 @@ export class Gateway extends HarmonyEventEmitter<GatewayTypedEvents> {
this.websocket.onerror = this.onerror.bind(this) as any
}
close(code: number = 1000, reason?: string): void {
closeGateway(code: number = 1000, reason?: string): void {
this.debug(
`Closing with code ${code}${
reason !== undefined && reason !== '' ? ` and reason ${reason}` : ''

2
test/deps.ts Normal file
View file

@ -0,0 +1,2 @@
export * from 'https://deno.land/std@0.95.0/testing/asserts.ts'
export * from 'https://deno.land/std@0.95.0/http/server.ts'

View file

@ -1,6 +1,6 @@
import { SlashClient } from '../mod.ts'
import { SLASH_ID, SLASH_PUB_KEY, SLASH_TOKEN } from './config.ts'
import { listenAndServe } from 'https://deno.land/std@0.90.0/http/server.ts'
import { listenAndServe } from './deps.ts'
const slash = new SlashClient({
id: SLASH_ID,

View file

@ -5,7 +5,7 @@ import { TOKEN } from '../src/test/config.ts'
import {
assertEquals,
assertExists
} from 'https://deno.land/std@0.84.0/testing/asserts.ts'
} from './deps.ts'
//#region Lib Tests
Deno.test({