Revision 3d6ffa57
Added by koszko over 1 year ago
html/install.js | ||
---|---|---|
211 | 211 |
delete response.json.api_schema_version; |
212 | 212 |
delete response.json.api_schema_revision; |
213 | 213 |
|
214 |
const files = response.json.source_copyright
|
|
215 |
.concat(item_type === "resource" ? response.json.scripts : []);
|
|
214 |
const scripts = item_type === "resource" && response.json.scripts;
|
|
215 |
const files = response.json.source_copyright.concat(scripts || []);
|
|
216 | 216 |
|
217 | 217 |
if (item_type === "mapping") { |
218 |
for (const res_ref of Object.values(response.json.payloads)) |
|
218 |
for (const res_ref of Object.values(response.json.payloads || {}))
|
|
219 | 219 |
process_item(work, "resource", res_ref.identifier); |
220 | 220 |
} else { |
221 |
for (const res_id of (response.json.dependencies || []))
|
|
222 |
process_item(work, "resource", res_id);
|
|
221 |
for (const res_ref of (response.json.dependencies || []))
|
|
222 |
process_item(work, "resource", res_ref.identifier);
|
|
223 | 223 |
} |
224 | 224 |
|
225 | 225 |
/* |
Also available in: Unified diff
make resource dependency specifier an object