mirror of
https://github.com/scratchfoundation/scratch-analysis.git
synced 2025-05-10 21:00:45 -04:00
Keep the origin from the project meta tag around. For sb2s, make it always empty.
This commit is contained in:
parent
adb9c56f53
commit
26ff6d7265
5 changed files with 21 additions and 2 deletions
|
@ -238,6 +238,9 @@ module.exports = function (project, callback) {
|
|||
// Extensions
|
||||
meta.extensions = extensions(project);
|
||||
|
||||
// Metadata is only in sb3s so just fill in an empty object.
|
||||
meta.meta = {};
|
||||
|
||||
// Return all metadata
|
||||
return callback(null, meta);
|
||||
};
|
||||
|
|
|
@ -125,6 +125,12 @@ const extensions = function (list) {
|
|||
};
|
||||
};
|
||||
|
||||
const metadata = function (meta) {
|
||||
return {
|
||||
origin: meta.origin ? meta.origin : ''
|
||||
};
|
||||
};
|
||||
|
||||
module.exports = function (project, callback) {
|
||||
const meta = {
|
||||
scripts: scripts(project.targets),
|
||||
|
@ -136,7 +142,8 @@ module.exports = function (project, callback) {
|
|||
costumes: extract(project.targets, 'costumes', 'name', 'md5ext'),
|
||||
sprites: sprites(project.targets),
|
||||
blocks: blocks(project.targets),
|
||||
extensions: extensions(project.extensions)
|
||||
extensions: extensions(project.extensions),
|
||||
meta: metadata(project.meta)
|
||||
};
|
||||
|
||||
callback(null, meta);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue