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
6a8455e7
Commit
6a8455e7
authored
Mar 29, 2020
by
Guy Bedford
Committed by
Joe Haddad
Mar 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
escape-string-regexp
parent
a9a704e7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
4 deletions
+17
-4
index.ts
packages/next/build/index.ts
+1
-1
next-serverless-loader.ts
...ages/next/build/webpack/loaders/next-serverless-loader.ts
+1
-1
package.json
packages/next/package.json
+1
-1
taskfile.js
packages/next/taskfile.js
+10
-0
misc.d.ts
packages/next/types/misc.d.ts
+4
-1
No files found.
packages/next/build/index.ts
View file @
6a8455e7
...
@@ -2,7 +2,7 @@ import chalk from 'next/dist/compiled/chalk'
...
@@ -2,7 +2,7 @@ import chalk from 'next/dist/compiled/chalk'
import
ciEnvironment
from
'next/dist/compiled/ci-info'
import
ciEnvironment
from
'next/dist/compiled/ci-info'
import
crypto
from
'crypto'
import
crypto
from
'crypto'
import
devalue
from
'next/dist/compiled/devalue'
import
devalue
from
'next/dist/compiled/devalue'
import
escapeStringRegexp
from
'escape-string-regexp'
import
escapeStringRegexp
from
'
next/dist/compiled/
escape-string-regexp'
import
findUp
from
'find-up'
import
findUp
from
'find-up'
import
fs
from
'fs'
import
fs
from
'fs'
import
Worker
from
'jest-worker'
import
Worker
from
'jest-worker'
...
...
packages/next/build/webpack/loaders/next-serverless-loader.ts
View file @
6a8455e7
import
devalue
from
'next/dist/compiled/devalue'
import
devalue
from
'next/dist/compiled/devalue'
import
escapeRegexp
from
'escape-string-regexp'
import
escapeRegexp
from
'
next/dist/compiled/
escape-string-regexp'
import
{
join
}
from
'path'
import
{
join
}
from
'path'
import
{
parse
}
from
'querystring'
import
{
parse
}
from
'querystring'
import
{
loader
}
from
'webpack'
import
{
loader
}
from
'webpack'
...
...
packages/next/package.json
View file @
6a8455e7
...
@@ -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"
,
"escape-string-regexp"
:
"2.0.0"
,
"etag"
:
"1.8.1"
,
"etag"
:
"1.8.1"
,
"file-loader"
:
"4.2.0"
,
"file-loader"
:
"4.2.0"
,
"finally-polyfill"
:
"0.1.0"
,
"finally-polyfill"
:
"0.1.0"
,
...
@@ -193,6 +192,7 @@
...
@@ -193,6 +192,7 @@
"devalue"
:
"2.0.1"
,
"devalue"
:
"2.0.1"
,
"dotenv"
:
"8.2.0"
,
"dotenv"
:
"8.2.0"
,
"dotenv-expand"
:
"5.1.0"
,
"dotenv-expand"
:
"5.1.0"
,
"escape-string-regexp"
:
"2.0.0"
,
"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 @
6a8455e7
...
@@ -312,6 +312,15 @@ export async function ncc_dotenv_expand(task, opts) {
...
@@ -312,6 +312,15 @@ export async function ncc_dotenv_expand(task, opts) {
.
target
(
'dist/compiled/dotenv-expand'
)
.
target
(
'dist/compiled/dotenv-expand'
)
}
}
// eslint-disable-next-line camelcase
// eslint-disable-next-line camelcase
export
async
function
ncc_escape_string_regexp
(
task
,
opts
)
{
await
task
.
source
(
opts
.
src
||
relative
(
__dirname
,
require
.
resolve
(
'escape-string-regexp'
))
)
.
ncc
({
packageName
:
'escape-string-regexp'
})
.
target
(
'dist/compiled/escape-string-regexp'
)
}
// 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'
)))
...
@@ -375,6 +384,7 @@ export async function precompile(task) {
...
@@ -375,6 +384,7 @@ export async function precompile(task) {
'ncc_devalue'
,
'ncc_devalue'
,
'ncc_dotenv'
,
'ncc_dotenv'
,
'ncc_dotenv_expand'
,
'ncc_dotenv_expand'
,
'ncc_escape_string_regexp'
,
'ncc_nanoid'
,
'ncc_nanoid'
,
'ncc_resolve'
,
'ncc_resolve'
,
'ncc_text_table'
,
'ncc_text_table'
,
...
...
packages/next/types/misc.d.ts
View file @
6a8455e7
...
@@ -88,7 +88,10 @@ declare module 'next/dist/compiled/dotenv-expand' {
...
@@ -88,7 +88,10 @@ declare module 'next/dist/compiled/dotenv-expand' {
import
m
from
'dotenv-expand'
import
m
from
'dotenv-expand'
export
=
m
export
=
m
}
}
declare
module
'next/dist/compiled/escape-string-regexp'
{
import
m
from
'escape-string-regexp'
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