Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
e7fcdd32
Commit
e7fcdd32
authored
Mar 29, 2020
by
Guy Bedford
Committed by
Joe Haddad
Mar 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
send
parent
9615bbd8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
3 deletions
+14
-3
serve-static.ts
packages/next/next-server/server/serve-static.ts
+1
-1
package.json
packages/next/package.json
+1
-1
taskfile.js
packages/next/taskfile.js
+8
-0
misc.d.ts
packages/next/types/misc.d.ts
+4
-1
No files found.
packages/next/next-server/server/serve-static.ts
View file @
e7fcdd32
import
{
IncomingMessage
,
ServerResponse
}
from
'http'
import
{
IncomingMessage
,
ServerResponse
}
from
'http'
import
send
from
'send'
import
send
from
'
next/dist/compiled/
send'
export
function
serveStatic
(
export
function
serveStatic
(
req
:
IncomingMessage
,
req
:
IncomingMessage
,
...
...
packages/next/package.json
View file @
e7fcdd32
...
@@ -85,7 +85,6 @@
...
@@ -85,7 +85,6 @@
"react-is"
:
"16.8.6"
,
"react-is"
:
"16.8.6"
,
"resolve-url-loader"
:
"3.1.1"
,
"resolve-url-loader"
:
"3.1.1"
,
"sass-loader"
:
"8.0.2"
,
"sass-loader"
:
"8.0.2"
,
"send"
:
"0.17.1"
,
"source-map"
:
"0.6.1"
,
"source-map"
:
"0.6.1"
,
"string-hash"
:
"1.1.3"
,
"string-hash"
:
"1.1.3"
,
"strip-ansi"
:
"5.2.0"
,
"strip-ansi"
:
"5.2.0"
,
...
@@ -195,6 +194,7 @@
...
@@ -195,6 +194,7 @@
"raw-body"
:
"2.4.0"
,
"raw-body"
:
"2.4.0"
,
"recast"
:
"0.18.5"
,
"recast"
:
"0.18.5"
,
"resolve"
:
"1.11.0"
,
"resolve"
:
"1.11.0"
,
"send"
:
"0.17.1"
,
"taskr"
:
"1.1.0"
,
"taskr"
:
"1.1.0"
,
"text-table"
:
"0.2.0"
,
"text-table"
:
"0.2.0"
,
"typescript"
:
"3.7.3"
,
"typescript"
:
"3.7.3"
,
...
...
packages/next/taskfile.js
View file @
e7fcdd32
...
@@ -496,6 +496,13 @@ export async function ncc_resolve(task, opts) {
...
@@ -496,6 +496,13 @@ export async function ncc_resolve(task, opts) {
.
target
(
'dist/compiled/resolve'
)
.
target
(
'dist/compiled/resolve'
)
}
}
// eslint-disable-next-line camelcase
// eslint-disable-next-line camelcase
export
async
function
ncc_send
(
task
,
opts
)
{
await
task
.
source
(
opts
.
src
||
relative
(
__dirname
,
require
.
resolve
(
'send'
)))
.
ncc
({
packageName
:
'send'
})
.
target
(
'dist/compiled/send'
)
}
// eslint-disable-next-line camelcase
export
async
function
ncc_text_table
(
task
,
opts
)
{
export
async
function
ncc_text_table
(
task
,
opts
)
{
await
task
await
task
.
source
(
opts
.
src
||
relative
(
__dirname
,
require
.
resolve
(
'text-table'
)))
.
source
(
opts
.
src
||
relative
(
__dirname
,
require
.
resolve
(
'text-table'
)))
...
@@ -564,6 +571,7 @@ export async function precompile(task) {
...
@@ -564,6 +571,7 @@ export async function precompile(task) {
'ncc_raw_body'
,
'ncc_raw_body'
,
'ncc_recast'
,
'ncc_recast'
,
'ncc_resolve'
,
'ncc_resolve'
,
'ncc_send'
,
'ncc_text_table'
,
'ncc_text_table'
,
'ncc_unistore'
,
'ncc_unistore'
,
])
])
...
...
packages/next/types/misc.d.ts
View file @
e7fcdd32
...
@@ -160,7 +160,10 @@ declare module 'next/dist/compiled/resolve/index.js' {
...
@@ -160,7 +160,10 @@ declare module 'next/dist/compiled/resolve/index.js' {
import
m
from
'resolve'
import
m
from
'resolve'
export
=
m
export
=
m
}
}
declare
module
'next/dist/compiled/send'
{
import
m
from
'send'
export
=
m
}
declare
module
'next/dist/compiled/text-table'
{
declare
module
'next/dist/compiled/text-table'
{
function
textTable
(
function
textTable
(
rows
:
Array
<
Array
<
{}
>>
,
rows
:
Array
<
Array
<
{}
>>
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment