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.3 to 2.13.3

4

package.json
{
"name": "directus-sdk-javascript",
"version": "2.12.3",
"version": "2.13.3",
"description": "WIP - Directus SDK for JavaScript (Node and Browser)",

@@ -29,3 +29,3 @@ "main": "index.js",

"dependencies": {
"axios": "^0.16.2",
"axios": "^0.18.0",
"qs": "^6.5.2"

@@ -32,0 +32,0 @@ },

@@ -6,3 +6,3 @@ const axios = require('axios');

constructor(options) {
const {accessToken, url, headers, accessTokenType, version} = options;
const {accessToken, url, headers, accessTokenType, version, maxFileSize} = options;

@@ -13,2 +13,3 @@ this.accessTokenType = accessTokenType || 'header';

this.version = version || '1.1';
this.maxFileSize = maxFileSize;

@@ -69,3 +70,3 @@ if (!url) {

return new Promise((resolve, reject) => {
axios.post(url + endpoint, data, {headers, params})
axios.post(url + endpoint, data, {headers, params, maxContentLength: this.maxFileSize})
.then(res => resolve(res.data))

@@ -83,3 +84,3 @@ .catch(err => this._onCaughtError(resolve, reject, err));

return new Promise((resolve, reject) => {
axios.put(url + endpoint, data, {headers, params})
axios.put(url + endpoint, data, {headers, params, maxContentLength: this.maxFileSize})
.then(res => resolve(res.data))

@@ -86,0 +87,0 @@ .catch(err => this._onCaughtError(resolve, reject, err));

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