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.2.0-1 to 2.2.0

2

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

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

@@ -100,4 +100,4 @@ const axios = require('axios');

getItem(table = requiredParam('table'), id = requiredParam('id')) {
return this._get(`tables/${table}/rows/${id}`);
getItem(table = requiredParam('table'), id = requiredParam('id'), params = {}) {
return this._get(`tables/${table}/rows/${id}`, params);
}

@@ -113,29 +113,2 @@

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}/rows/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}/rows/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}/rows/bulk`, {
rows: data
});
}
// Files

@@ -142,0 +115,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