|
|
@ -89,6 +89,7 @@ class CompilerMetadata { |
|
|
|
if (!content) return callback() |
|
|
|
if (!content) return callback() |
|
|
|
try { |
|
|
|
try { |
|
|
|
var metadata = JSON.parse(content) |
|
|
|
var metadata = JSON.parse(content) |
|
|
|
|
|
|
|
medatada = metadata.deploy || {} |
|
|
|
return callback(null, metadata[name + ':' + id] || metadata[name] || metadata[id] || metadata[name.toLowerCase() + ':' + id] || metadata[name.toLowerCase()]) |
|
|
|
return callback(null, metadata[name + ':' + id] || metadata[name] || metadata[id] || metadata[name.toLowerCase() + ':' + id] || metadata[name.toLowerCase()]) |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
callback(e.message) |
|
|
|
callback(e.message) |
|
|
|