directus-sdk-javascript
Advanced tools
Comparing version 1.1.1 to 1.1.2
17
index.js
@@ -54,3 +54,3 @@ module.exports = function(e) { | ||
"use strict"; | ||
var i = r(4), a = i.buildPath, o = i.performRequest, s = r(8), n = s.createItem, l = s.getItems, c = s.getItem, u = s.updateItem, d = s.deleteItem, p = r(10), f = p.createFile, m = p.getFiles, b = p.getFile, T = p.updateFile, h = r(11), k = h.getTables, v = h.getTable, g = h.createTable, O = r(12), N = O.createColumn, R = O.getColumns, I = O.getColumn, q = O.updateColumn, C = O.deleteColumn, E = r(13), y = E.createPrivilege, F = E.getGroupPrivilege, B = E.getTablePrivilege, G = E.updatePrivilege, U = r(14), P = U.getPreference, S = U.updatePreference, j = r(15), x = j.getMessages, J = j.getMessage, L = r(16), w = L.getActivity, _ = r(17), V = _.getBookmarks, D = _.getUserBookmarks, A = _.getBookmark, M = _.createBookmark, z = _.deleteBookmark, H = r(18), Y = H.getSettings, K = H.getSettingsByCollection, Q = H.updateSettings; | ||
var i = r(4), a = i.buildPath, o = i.performRequest, s = r(8), n = s.createItem, l = s.getItems, c = s.getItem, u = s.updateItem, d = s.deleteItem, p = r(10), f = p.createFile, m = p.getFiles, b = p.getFile, T = p.updateFile, h = r(11), k = h.getTables, v = h.getTable, g = h.createTable, O = r(12), N = O.createColumn, R = O.getColumns, I = O.getColumn, q = O.updateColumn, C = O.deleteColumn, E = r(13), y = E.createPrivilege, F = E.getGroupPrivilege, B = E.getTablePrivilege, U = E.updatePrivilege, G = r(14), P = G.getPreference, S = G.updatePreference, j = r(15), x = j.getMessages, J = j.getMessage, L = r(16), w = L.getActivity, _ = r(17), V = _.getBookmarks, D = _.getUserBookmarks, A = _.getBookmark, M = _.createBookmark, z = _.deleteBookmark, H = r(18), Y = H.getSettings, K = H.getSettingsByCollection, Q = H.updateSettings; | ||
e.exports = { | ||
@@ -79,3 +79,3 @@ buildPath: a, | ||
getTablePrivilege: B, | ||
updatePrivilege: G, | ||
updatePrivilege: U, | ||
getPreference: P, | ||
@@ -156,2 +156,15 @@ updatePreference: S, | ||
case "PUT": | ||
a.put({ | ||
auth: { | ||
bearer: this.accessToken | ||
}, | ||
headers: { | ||
"Content-Type": "application/json" | ||
}, | ||
body: JSON.stringify(e.paramsOrBody), | ||
url: t | ||
}, r); | ||
break; | ||
case "DELETE": | ||
@@ -158,0 +171,0 @@ a.delete({ |
{ | ||
"name": "directus-sdk-javascript", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "WIP - Directus SDK for JavaScript (Node and Browser)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -74,2 +74,15 @@ const vsprintf = require('sprintf-js').vsprintf; | ||
case 'PUT': | ||
request.put({ | ||
auth: { | ||
bearer: this.accessToken | ||
}, | ||
headers: { | ||
'Content-Type': 'application/json', | ||
}, | ||
body: JSON.stringify(args.paramsOrBody), | ||
url, | ||
}, errorHandler); | ||
break; | ||
case 'DELETE': | ||
@@ -76,0 +89,0 @@ request.delete({ |
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
88193
1398