Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit d1d9d9c

Browse files
author
v1rtl
committed
fix ipaddr.js dependency by swithing to skypack
1 parent d05bffe commit d1d9d9c

File tree

15 files changed

+25
-26
lines changed

15 files changed

+25
-26
lines changed

app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
import { Router, serve, Server, rg, pushMiddleware } from './deps.ts'
33
import { NextFunction, RHandler as Handler, Middleware, UseMethodParams } from './types.ts'
44
import { onErrorHandler, ErrorHandler } from './onError.ts'
5-
import { setImmediate } from 'https://deno.land/std@0.100.0/node/timers.ts'
5+
import { setImmediate } from 'https://deno.land/std@0.101.0/node/timers.ts'
66
import type { Request } from './request.ts'
77
import type { Response } from './response.ts'
88
import { getURLParams, getPathname } from './utils/parseUrl.ts'
99
import { extendMiddleware } from './extend.ts'
10-
import * as path from 'https://deno.land/std@0.100.0/path/mod.ts'
10+
import * as path from 'https://deno.land/std@0.101.0/path/mod.ts'
1111

1212
const lead = (x: string) => (x.charCodeAt(0) === 47 ? x : '/' + x)
1313

deps.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
1-
export { default as ipaddr, IPv4, IPv6 } from 'https://esm.sh/ipaddr.js'
21
import { default as parseRange, Options } from 'https://esm.sh/[email protected]'
32
export { parseRange }
43
export type { Options as ParseRangeOptions }
54
export { escapeHtml } from 'https://deno.land/x/[email protected]/mod.ts'
65
export { vary } from 'https://deno.land/x/[email protected]/mod.ts'
76
export { isIP } from 'https://deno.land/x/[email protected]/mod.ts'
8-
export { Accepts } from 'https://denopkg.com/talentlessguy/accepts@patch-1/mod.ts#='
7+
export { Accepts } from 'https://denopkg.com/talentlessguy/accepts@patch-1/mod.ts#=^'
98
export { encodeUrl } from 'https://deno.land/x/[email protected]/mod.ts'
10-
export { charset, contentType, lookup } from 'https://deno.land/x/[email protected].1/mod.ts'
9+
export { charset, contentType, lookup } from 'https://deno.land/x/[email protected].2/mod.ts'
1110
export { parse as rg } from 'https://deno.land/x/[email protected]/src/index.js'
12-
export { forwarded } from 'https://deno.land/x/[email protected].8/mod.ts'
13-
export * from 'https://deno.land/x/[email protected].9/mod.ts'
14-
import type { ServerRequest as Req, Response as ServerResponse } from 'https://deno.land/std@0.100.0/http/server.ts'
15-
11+
export { forwarded } from 'https://deno.land/x/[email protected].9/mod.ts'
12+
export * from 'https://deno.land/x/[email protected].15/mod.ts'
13+
import type { ServerRequest as Req, Response as ServerResponse } from 'https://deno.land/std@0.101.0/http/server.ts'
14+
export { default as ipaddr, IPv4, IPv6 } from 'https://cdn.skypack.dev/ipaddr.js'
1615
interface Res extends ServerResponse {
1716
headers: Headers
1817
}
1918

2019
export type { Req, Res }
2120

22-
export { serve, Server } from 'https://deno.land/std@0.100.0/http/server.ts'
21+
export { serve, Server } from 'https://deno.land/std@0.101.0/http/server.ts'
2322

2423
export { Router, pushMiddleware } from 'https://esm.sh/@tinyhttp/[email protected]'

examples/eta/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { App } from '../../app.ts'
2-
import { renderFile as eta } from 'https://deno.land/x/[email protected].2/mod.ts'
3-
import { EtaConfig } from 'https://deno.land/x/[email protected].2/config.ts'
2+
import { renderFile as eta } from 'https://deno.land/x/[email protected].3/mod.ts'
3+
import { EtaConfig } from 'https://deno.land/x/[email protected].3/config.ts'
44

55
const app = new App<EtaConfig>()
66

examples/jwt/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { App } from '../../mod.ts'
22
import { getNumericDate, Payload, Header, create, verify } from 'https://deno.land/x/[email protected]/mod.ts'
3-
import { readAll } from 'https://deno.land/std@0.100.0/io/util.ts'
3+
import { readAll } from 'https://deno.land/std@0.101.0/io/util.ts'
44

55
const SECRET = 'my_secret'
66

extensions/res/cookie.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Req, Res } from '../../deps.ts'
2-
import * as cookie from 'https://deno.land/std@0.100.0/http/cookie.ts'
2+
import * as cookie from 'https://deno.land/std@0.101.0/http/cookie.ts'
33

44
export const setCookie = <Request extends Req = Req, Response extends Res = Res>(req: Request, res: Response) => (
55
name: string,

extensions/res/download.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { contentDisposition } from 'https://esm.sh/@tinyhttp/content-disposition'
22
import { SendFileOptions, sendFile } from './send/sendFile.ts'
3-
import { extname } from 'https://deno.land/std@0.100.0/path/mod.ts'
3+
import { extname } from 'https://deno.land/std@0.101.0/path/mod.ts'
44
import { setContentType, setHeader } from './headers.ts'
55
import { Req, Res } from '../../deps.ts'
66

extensions/res/send/sendFile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Req, Res } from '../../../deps.ts'
2-
import { isAbsolute, join, extname } from 'https://deno.land/std@0.100.0/path/mod.ts'
2+
import { isAbsolute, join, extname } from 'https://deno.land/std@0.101.0/path/mod.ts'
33
import { contentType } from '../../../deps.ts'
44
import { createETag } from '../utils.ts'
55
import { send } from './send.ts'

extensions/res/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { format, parse } from 'https://deno.land/x/[email protected]/mod.ts'
2-
import { etag as eTag } from 'https://deno.land/x/opine@1.5.4/src/utils/etag.ts'
2+
import { etag as eTag } from 'https://deno.land/x/opine@1.6.0/src/utils/etag.ts'
33
import { lookup } from '../../deps.ts'
44

55
export const createETag = (body: Parameters<typeof eTag>[0]) => {

request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// deno-lint-ignore-file
2-
import { ServerRequest } from 'https://deno.land/std@0.100.0/http/server.ts'
2+
import { ServerRequest } from 'https://deno.land/std@0.101.0/http/server.ts'
33
import { App } from './app.ts'
44
import { QueryParams, Ranges, Protocol, AcceptsReturns, Middleware } from './types.ts'
55

response.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { SendFileOptions } from './extensions/res/send/sendFile.ts'
55
import type { TemplateEngineOptions, App } from './app.ts'
66
import type { FormatProps } from './extensions/res/format.ts'
77
import type { DownloadOptions } from './extensions/res/download.ts'
8-
import { Cookie } from 'https://deno.land/std@0.100.0/http/cookie.ts'
8+
import { Cookie } from 'https://deno.land/std@0.101.0/http/cookie.ts'
99

1010
export interface Response<O = any> extends ServerResponse, tinyhttp.Response {
1111
headers: Headers

0 commit comments

Comments
 (0)