skapi-js 1.0.51 → 1.0.52
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/dist/skapi.js +1 -1
- package/dist/skapi.js.map +1 -1
- package/dist/skapi.module.js +1 -1
- package/dist/skapi.module.js.map +1 -1
- package/js/main/skapi.js +1 -1
- package/js/methods/request.js +0 -3
- package/package.json +1 -1
package/js/main/skapi.js
CHANGED
package/js/methods/request.js
CHANGED
|
@@ -549,9 +549,6 @@ export function clientSecretRequest(params) {
|
|
|
549
549
|
return v;
|
|
550
550
|
}
|
|
551
551
|
}, ['clientSecretName', 'method', 'url']);
|
|
552
|
-
if (!params.data && !params.params) {
|
|
553
|
-
throw new SkapiError(`${params.method.toLowerCase() === 'post' ? '"data"' : '"params"'} is required.`, { code: 'INVALID_PARAMETER' });
|
|
554
|
-
}
|
|
555
552
|
if (!hasSecret) {
|
|
556
553
|
throw new SkapiError(`At least one parameter value should include "$CLIENT_SECRET" in ${params.method.toLowerCase() === 'post' ? '"data"' : '"params"'} or "headers".`, { code: 'INVALID_PARAMETER' });
|
|
557
554
|
}
|