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.1.0 to 2.2.0-0

2

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

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -112,2 +112,29 @@ const axios = require('axios');

createBulk(table = requiredParam('table'), data = requiredParam('data')) {
if (Array.isArray(data) === false)
throw new Error(`Parameter data should be an array of objects`);
return this._post(`tables/${table}/bulk`, {
rows: data
});
}
updateBulk(table = requiredParam('table'), data = requiredParam('data')) {
if (Array.isArray(data) === false)
throw new Error(`Parameter data should be an array of objects`);
return this._put(`tables/${table}/bulk`, {
rows: data
});
}
deleteBulk(table = requiredParam('table'), data = requiredParam('data')) {
if (Array.isArray(data) === false)
throw new Error(`Parameter data should be an array of objects`);
return this._delete(`tables/${table}/bulk`, {
rows: data
});
}
// Files

@@ -114,0 +141,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