Skip to content

Commit

Permalink
upgrade std from 0.205.0 to 0.217.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Sloaix committed Feb 25, 2024
1 parent b324627 commit 0f2aa3d
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 9 deletions.
2 changes: 1 addition & 1 deletion deno.json → deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"imports": {
"std/": "https://deno.land/std@0.205.0/"
"std/": "https://deno.land/std@0.217.0/"
},
"tasks": {
"test": "deno test --allow-read"
Expand Down
63 changes: 62 additions & 1 deletion deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/decoder.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Reader, Writer } from 'std/types.d.ts'
import { BufReader, Buffer } from './deps.ts'
import { BufReader, Buffer, Reader, Writer } from 'std/io/mod.ts'
import { logd } from './log.ts'
import { BencodeDict, BencodeInteger, BencodeList, BencodeString, BencodeType } from './type.ts'
import { isUtf8 } from './util.ts'
Expand Down
3 changes: 0 additions & 3 deletions src/deps.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/encoder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Buffer } from './deps.ts'
import { Buffer } from 'std/io/mod.ts'
import { logd } from './log.ts'

import {
Expand Down
2 changes: 1 addition & 1 deletion src/type.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Buffer } from './deps.ts'
import { Buffer } from 'std/io/mod.ts'

export type BencodeInteger = number
export type BencodeDict = { [key: string]: BencodeType }
Expand Down

0 comments on commit 0f2aa3d

Please sign in to comment.