@digipair/skill-microsoft 0.28.8 → 0.28.10

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/index.cjs.js CHANGED
@@ -24982,7 +24982,7 @@ let MicrosoftService = class MicrosoftService {
24982
24982
  body: data ? JSON.stringify(data) : undefined
24983
24983
  });
24984
24984
  if (!response.ok) throw new Error('[SKILL-MICROSOFT] REQUEST FAILED: ' + response.status);
24985
- return await response.json();
24985
+ return response.headers.get('content-length') > 0 ? await response.json() : {};
24986
24986
  }
24987
24987
  async create(params, _pinsSettingsList, _context) {
24988
24988
  const { path, body = {}, version = 'v1.0', headers = {} } = params;
package/index.esm.js CHANGED
@@ -24969,7 +24969,7 @@ let MicrosoftService = class MicrosoftService {
24969
24969
  body: data ? JSON.stringify(data) : undefined
24970
24970
  });
24971
24971
  if (!response.ok) throw new Error('[SKILL-MICROSOFT] REQUEST FAILED: ' + response.status);
24972
- return await response.json();
24972
+ return response.headers.get('content-length') > 0 ? await response.json() : {};
24973
24973
  }
24974
24974
  async create(params, _pinsSettingsList, _context) {
24975
24975
  const { path, body = {}, version = 'v1.0', headers = {} } = params;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-microsoft",
3
- "version": "0.28.8",
3
+ "version": "0.28.10",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"
File without changes