@digipair/skill-microsoft 0.28.13 → 0.28.14
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
|
@@ -24979,10 +24979,10 @@ let MicrosoftService = class MicrosoftService {
|
|
|
24979
24979
|
Accept: 'application/json',
|
|
24980
24980
|
'Content-Type': 'application/json'
|
|
24981
24981
|
}, headers),
|
|
24982
|
-
body:
|
|
24982
|
+
body: method.toUpperCase() === 'GET' || method.toUpperCase() === 'HEAD' ? undefined : JSON.stringify(data)
|
|
24983
24983
|
});
|
|
24984
24984
|
if (!response.ok) throw new Error('[SKILL-MICROSOFT] REQUEST FAILED: ' + response.status);
|
|
24985
|
-
return response.headers.get('content-length') > 0 ? await response.json() : {};
|
|
24985
|
+
return !response.headers.has('content-length') || 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
|
@@ -24966,10 +24966,10 @@ let MicrosoftService = class MicrosoftService {
|
|
|
24966
24966
|
Accept: 'application/json',
|
|
24967
24967
|
'Content-Type': 'application/json'
|
|
24968
24968
|
}, headers),
|
|
24969
|
-
body:
|
|
24969
|
+
body: method.toUpperCase() === 'GET' || method.toUpperCase() === 'HEAD' ? undefined : JSON.stringify(data)
|
|
24970
24970
|
});
|
|
24971
24971
|
if (!response.ok) throw new Error('[SKILL-MICROSOFT] REQUEST FAILED: ' + response.status);
|
|
24972
|
-
return response.headers.get('content-length') > 0 ? await response.json() : {};
|
|
24972
|
+
return !response.headers.has('content-length') || 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
|
File without changes
|
|
File without changes
|