Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-pack
Project
Project
Details
Activity
Releases
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
劳工
zeroing-pack
Commits
cd25a6b9
Commit
cd25a6b9
authored
Nov 23, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复没有序列化custom的问题
parent
4db91944
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
31 additions
and
11 deletions
+31
-11
index.es.js
dist/index.es.js
+7
-2
index.es.js.map
dist/index.es.js.map
+1
-1
index.js
dist/index.js
+7
-2
index.js.map
dist/index.js.map
+1
-1
index.umd.js
dist/index.umd.js
+7
-2
index.umd.js.map
dist/index.umd.js.map
+1
-1
index.js
src/index.js
+7
-2
No files found.
dist/index.es.js
View file @
cd25a6b9
...
...
@@ -73,13 +73,18 @@ async function packData(data, {getProcesses, getScripts, getCustoms}) {
}
}
newData
.
customs
=
data
.
customs
&&
data
.
customs
.
length
>
0
?
await
getCustoms
(
data
.
customs
)
:
[];
newData
.
customs
=
[];
if
(
data
.
customs
&&
data
.
customs
.
length
>
0
)
{
newData
.
customs
=
await
getCustoms
(
data
.
customs
).
map
(
item
=>
{
return
JSON
.
parse
(
item
);
});
}
return
JSON
.
stringify
(
newData
);
}
function
findDepPids
(
list
,
process
)
{
if
(
process
.
sub
)
{
if
(
process
.
sub
)
{
for
(
let
key
in
process
.
sub
)
{
let
p
=
process
.
sub
[
key
];
if
(
!
list
.
includes
(
p
.
meta
))
{
...
...
dist/index.es.js.map
View file @
cd25a6b9
This diff is collapsed.
Click to expand it.
dist/index.js
View file @
cd25a6b9
...
...
@@ -77,13 +77,18 @@ async function packData(data, {getProcesses, getScripts, getCustoms}) {
}
}
newData
.
customs
=
data
.
customs
&&
data
.
customs
.
length
>
0
?
await
getCustoms
(
data
.
customs
)
:
[];
newData
.
customs
=
[];
if
(
data
.
customs
&&
data
.
customs
.
length
>
0
)
{
newData
.
customs
=
await
getCustoms
(
data
.
customs
).
map
(
item
=>
{
return
JSON
.
parse
(
item
);
});
}
return
JSON
.
stringify
(
newData
);
}
function
findDepPids
(
list
,
process
)
{
if
(
process
.
sub
)
{
if
(
process
.
sub
)
{
for
(
let
key
in
process
.
sub
)
{
let
p
=
process
.
sub
[
key
];
if
(
!
list
.
includes
(
p
.
meta
))
{
...
...
dist/index.js.map
View file @
cd25a6b9
This diff is collapsed.
Click to expand it.
dist/index.umd.js
View file @
cd25a6b9
...
...
@@ -79,13 +79,18 @@
}
}
newData
.
customs
=
data
.
customs
&&
data
.
customs
.
length
>
0
?
await
getCustoms
(
data
.
customs
)
:
[];
newData
.
customs
=
[];
if
(
data
.
customs
&&
data
.
customs
.
length
>
0
)
{
newData
.
customs
=
await
getCustoms
(
data
.
customs
).
map
(
item
=>
{
return
JSON
.
parse
(
item
);
});
}
return
JSON
.
stringify
(
newData
);
}
function
findDepPids
(
list
,
process
)
{
if
(
process
.
sub
)
{
if
(
process
.
sub
)
{
for
(
let
key
in
process
.
sub
)
{
let
p
=
process
.
sub
[
key
];
if
(
!
list
.
includes
(
p
.
meta
))
{
...
...
dist/index.umd.js.map
View file @
cd25a6b9
This diff is collapsed.
Click to expand it.
src/index.js
View file @
cd25a6b9
...
...
@@ -73,13 +73,18 @@ async function packData(data, {getProcesses, getScripts, getCustoms}) {
}
}
newData
.
customs
=
data
.
customs
&&
data
.
customs
.
length
>
0
?
await
getCustoms
(
data
.
customs
)
:
[];
newData
.
customs
=
[];
if
(
data
.
customs
&&
data
.
customs
.
length
>
0
)
{
newData
.
customs
=
await
getCustoms
(
data
.
customs
).
map
(
item
=>
{
return
JSON
.
parse
(
item
);
})
}
return
JSON
.
stringify
(
newData
);
}
function
findDepPids
(
list
,
process
)
{
if
(
process
.
sub
)
{
if
(
process
.
sub
)
{
for
(
let
key
in
process
.
sub
)
{
let
p
=
process
.
sub
[
key
];
if
(
!
list
.
includes
(
p
.
meta
))
{
...
...
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