raml-definition-system
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -21,4 +21,2 @@ var fs = require("fs"); | ||
fs.writeFileSync(jsonPath, JSON.stringify(arr, null, 2)); | ||
src = toModule(arr); | ||
return src; | ||
} | ||
@@ -43,17 +41,4 @@ function toModulesCollection(mod, map, arr) { | ||
} | ||
function toModule(arr) { | ||
var main = arr[0]; | ||
var map = {}; | ||
arr.forEach(function (x) { return map[x['name']] = x; }); | ||
arr.forEach(function (x) { | ||
var imports = x['imports']; | ||
Object.keys(imports).forEach(function (y) { | ||
var name = imports[y]; | ||
imports[y] = map[name]; | ||
}); | ||
}); | ||
return main; | ||
} | ||
getDecl("RAML08"); | ||
getDecl("RAML10"); | ||
//# sourceMappingURL=builder.js.map |
exports.universeDumps = { | ||
RAML08: require("../RAML08"), | ||
RAML10: require("../RAML10") | ||
RAML08: toModule(require("../RAML08")), | ||
RAML10: toModule(require("../RAML10")) | ||
}; | ||
function toModule(arr) { | ||
var main = arr[0]; | ||
var map = {}; | ||
arr.forEach(function (x) { return map[x['name']] = x; }); | ||
arr.forEach(function (x) { | ||
var imports = x['imports']; | ||
Object.keys(imports).forEach(function (y) { | ||
var name = imports[y]; | ||
imports[y] = map[name]; | ||
}); | ||
}); | ||
return main; | ||
} | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "raml-definition-system", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
430942
13243