Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

directus-sdk-javascript

Package Overview
Dependencies
Maintainers
3
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

directus-sdk-javascript - npm Package Compare versions

Comparing version 2.12.0 to 2.12.1

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc