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
fda5becf
Commit
fda5becf
authored
Mar 29, 2020
by
Guy Bedford
Committed by
Joe Haddad
Mar 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
etag
parent
6a8455e7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
2 deletions
+14
-2
send-html.ts
packages/next/next-server/server/send-html.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
-0
No files found.
packages/next/next-server/server/send-html.ts
View file @
fda5becf
import
{
IncomingMessage
,
ServerResponse
}
from
'http'
import
{
IncomingMessage
,
ServerResponse
}
from
'http'
import
generateETag
from
'etag'
import
generateETag
from
'
next/dist/compiled/
etag'
import
fresh
from
'fresh'
import
fresh
from
'fresh'
import
{
isResSent
}
from
'../lib/utils'
import
{
isResSent
}
from
'../lib/utils'
...
...
packages/next/package.json
View file @
fda5becf
...
@@ -65,7 +65,6 @@
...
@@ -65,7 +65,6 @@
"conf"
:
"5.0.0"
,
"conf"
:
"5.0.0"
,
"css-loader"
:
"3.3.0"
,
"css-loader"
:
"3.3.0"
,
"cssnano-simple"
:
"1.0.0"
,
"cssnano-simple"
:
"1.0.0"
,
"etag"
:
"1.8.1"
,
"file-loader"
:
"4.2.0"
,
"file-loader"
:
"4.2.0"
,
"finally-polyfill"
:
"0.1.0"
,
"finally-polyfill"
:
"0.1.0"
,
"find-up"
:
"4.0.0"
,
"find-up"
:
"4.0.0"
,
...
@@ -193,6 +192,7 @@
...
@@ -193,6 +192,7 @@
"dotenv"
:
"8.2.0"
,
"dotenv"
:
"8.2.0"
,
"dotenv-expand"
:
"5.1.0"
,
"dotenv-expand"
:
"5.1.0"
,
"escape-string-regexp"
:
"2.0.0"
,
"escape-string-regexp"
:
"2.0.0"
,
"etag"
:
"1.8.1"
,
"nanoid"
:
"2.0.3"
,
"nanoid"
:
"2.0.3"
,
"resolve"
:
"1.11.0"
,
"resolve"
:
"1.11.0"
,
"taskr"
:
"1.1.0"
,
"taskr"
:
"1.1.0"
,
...
...
packages/next/taskfile.js
View file @
fda5becf
...
@@ -321,6 +321,13 @@ export async function ncc_escape_string_regexp(task, opts) {
...
@@ -321,6 +321,13 @@ export async function ncc_escape_string_regexp(task, opts) {
.
target
(
'dist/compiled/escape-string-regexp'
)
.
target
(
'dist/compiled/escape-string-regexp'
)
}
}
// eslint-disable-next-line camelcase
// eslint-disable-next-line camelcase
export
async
function
ncc_etag
(
task
,
opts
)
{
await
task
.
source
(
opts
.
src
||
relative
(
__dirname
,
require
.
resolve
(
'etag'
)))
.
ncc
({
packageName
:
'etag'
})
.
target
(
'dist/compiled/etag'
)
}
// eslint-disable-next-line camelcase
export
async
function
ncc_nanoid
(
task
,
opts
)
{
export
async
function
ncc_nanoid
(
task
,
opts
)
{
await
task
await
task
.
source
(
opts
.
src
||
relative
(
__dirname
,
require
.
resolve
(
'nanoid'
)))
.
source
(
opts
.
src
||
relative
(
__dirname
,
require
.
resolve
(
'nanoid'
)))
...
@@ -385,6 +392,7 @@ export async function precompile(task) {
...
@@ -385,6 +392,7 @@ export async function precompile(task) {
'ncc_dotenv'
,
'ncc_dotenv'
,
'ncc_dotenv_expand'
,
'ncc_dotenv_expand'
,
'ncc_escape_string_regexp'
,
'ncc_escape_string_regexp'
,
'ncc_etag'
,
'ncc_nanoid'
,
'ncc_nanoid'
,
'ncc_resolve'
,
'ncc_resolve'
,
'ncc_text_table'
,
'ncc_text_table'
,
...
...
packages/next/types/misc.d.ts
View file @
fda5becf
...
@@ -92,6 +92,10 @@ declare module 'next/dist/compiled/escape-string-regexp' {
...
@@ -92,6 +92,10 @@ declare module 'next/dist/compiled/escape-string-regexp' {
import
m
from
'escape-string-regexp'
import
m
from
'escape-string-regexp'
export
=
m
export
=
m
}
}
declare
module
'next/dist/compiled/etag'
{
import
m
from
'etag'
export
=
m
}
declare
module
'next/dist/compiled/nanoid/index.js'
{
declare
module
'next/dist/compiled/nanoid/index.js'
{
function
nanoid
(
size
?:
number
):
string
function
nanoid
(
size
?:
number
):
string
export
=
nanoid
export
=
nanoid
...
...
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