mirror of
https://github.com/tribufu/node-gamedig
synced 2026-06-01 09:42:41 +00:00
Add support for running using deno (#362)
* Add missing CRLF line ending * Add support for running using deno Prefix node imports with "node:" and gate a socket API that is not implemented in [deno](https://deno.land) so that the library can be used there. This should not break node and doesn't in my brief testing.
This commit is contained in:
parent
150fa0035f
commit
01794f6339
11 changed files with 32 additions and 14 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { EventEmitter } from 'events'
|
||||
import * as net from 'net'
|
||||
import { EventEmitter } from 'node:events'
|
||||
import * as net from 'node:net'
|
||||
import Reader from '../lib/reader.js'
|
||||
import { debugDump } from '../lib/HexUtil.js'
|
||||
import Logger from '../lib/Logger.js'
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import Bzip2 from 'seek-bzip'
|
||||
import Core from './core.js'
|
||||
import { Buffer } from 'node:buffer'
|
||||
|
||||
const AppId = {
|
||||
Squad: 393380,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue