directus-sdk-javascript
Advanced tools
Comparing version 2.12.0 to 2.12.1
{ | ||
"name": "directus-sdk-javascript", | ||
"version": "2.12.0", | ||
"version": "2.12.1", | ||
"description": "WIP - Directus SDK for JavaScript (Node and Browser)", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -60,3 +60,3 @@ const axios = require('axios'); | ||
_post(endpoint, data = {}, isAPI = false, params = {}) { | ||
_post(endpoint, data = {}, params = {}, isAPI = false) { | ||
const headers = this._requestHeaders; | ||
@@ -366,4 +366,4 @@ const url = isAPI ? this.api : this.url; | ||
postApi(api_endpoint = requiredParam('api_endpoint'), data = requiredParam('data')) { | ||
return this._post(api_endpoint, data, true); | ||
postApi(api_endpoint = requiredParam('api_endpoint'), data = requiredParam('data'), params = {}) { | ||
return this._post(api_endpoint, data, params, true); | ||
} | ||
@@ -388,3 +388,3 @@ | ||
getRandom(params = {}) { | ||
return this._post('random', params); | ||
return this._post('random', {}, params); | ||
} | ||
@@ -391,0 +391,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85564