We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae3f260 commit 0e79211Copy full SHA for 0e79211
merge-protocol-files.js
@@ -14,8 +14,12 @@ const protocol1 = JSON.parse(protocol1Text);
14
const protocol2Text = fs.readFileSync(args[1]);
15
const protocol2 = JSON.parse(protocol2Text);
16
17
+var mergedDomains = [];
18
+protocol1.domains.forEach(domain => mergedDomains.push(domain))
19
+protocol2.domains.forEach(domain => mergedDomains.push(domain))
20
+
21
const protocolMerged = {
- domains: Object.assign(protocol1.domains, protocol2.domains)
22
+ domains: mergedDomains
23
};
24
25
console.log(JSON.stringify(protocolMerged, null, ' '));
0 commit comments