judedaryl / ieftool

MIT License
12 stars 7 forks source link

Generated JS code doesn't match the TS code #2

Closed hanshsieh closed 3 years ago

hanshsieh commented 3 years ago

Hello, First, thank you for reviewing my previous PR https://github.com/judedaryl/ieftool/pull/1 . I see you have promoted a new version to npm, but it looks like the JS code generated from TS is still the old one.

      ApiClient.prototype.uploadPolicy = function (policyId, content) {
          return __awaiter(this, void 0, void 0, function () {
              var err_1;
              return __generator(this, function (_a) {
                  switch (_a.label) {
                      case 0:
                          _a.trys.push([0, 2, , 3]);
                          return [4 /*yield*/, this.client.put("https://graph.microsoft.com/beta/trustFramework/policies/" + policyId + "/$value", content)];
                      case 1:
                          _a.sent();
                          return [3 /*break*/, 3];
                      case 2:
                          err_1 = _a.sent();
                          throw new Error(JSON.stringify(err_1.response.data.error.message, null, 3));
                      case 3: return [2 /*return*/];
                  }
              });
          });
      };

Maybe the code was uploaded to npm without generating JS again?

judedaryl commented 3 years ago

I should really write a pipeline for this thing. Should be updated now in a newer version

hanshsieh commented 3 years ago

Thanks! It's updated now.