gd-sprest-def 1.1.9 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/clean.js CHANGED
@@ -54,8 +54,20 @@ https.get("https://graph.microsoft.com/v1.0/$metadata", (res) => {
54
54
 
55
55
  // Wait for the read to complete
56
56
  res.on("end", function () {
57
+ // Fix TypeScript Issues
58
+ // Rename the "case" type
59
+ // Rename the "return" type
60
+ let content = data.toString()
61
+ .replace('Name="case"', 'Name="_case"')
62
+ .replace('Name="delete"', 'Name="_delete"')
63
+ .replace('Name="false"', 'Name="_false"')
64
+ .replace('Name="if"', 'Name="_if"')
65
+ .replace('Name="import"', 'Name="_import"')
66
+ .replace('Name="return"', 'Name="_return"')
67
+ .replace('Name="true"', 'Name="_true"');
68
+
57
69
  // Write the file
58
- fs.writeFileSync("graph.xml", data);
70
+ fs.writeFileSync("graph.xml", content);
59
71
 
60
72
  // Log
61
73
  console.log("Graph metadata updated.");