gd-sprest-def 1.2.0 → 1.2.3

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,17 @@ 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
- // Rename the "case" type. It will cause issues w/ TypeScript
58
- let content = data.toString().replace('Name="case"', 'Name="_case"');
57
+ // Fix TypeScript Issues
58
+ // Rename the "case" type
59
+ // Rename the "return" type
60
+ let content = data.toString()
61
+ .replace('<Action Name="case"', '<Action Name="_case"')
62
+ .replace('<Action Name="delete"', '<Action Name="_delete"')
63
+ .replace('<Action Name="false"', '<Action Name="_false"')
64
+ .replace('<Action Name="if"', '<Action Name="_if"')
65
+ .replace('<Action Name="import"', '<Action Name="_import"')
66
+ .replace('<Action Name="return"', '<Action Name="_return"')
67
+ .replace('<Action Name="true"', '<Action Name="_true"');
59
68
 
60
69
  // Write the file
61
70
  fs.writeFileSync("graph.xml", content);