dtable-web-api
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -305,3 +305,3 @@ "use strict"; | ||
key: "createDTableShareLink", | ||
value: function createDTableShareLink(workspaceID, name, password, expireDays, permissions) { | ||
value: function createDTableShareLink(workspaceID, name, password, expireDays, permission) { | ||
var url = this.server + '/api/v2.1/dtables/share-links/'; | ||
@@ -312,4 +312,4 @@ var form = new _formData["default"](); | ||
if (permissions) { | ||
form.append('permissions', permissions); | ||
if (permission) { | ||
form.append('permission', permission); | ||
} | ||
@@ -316,0 +316,0 @@ |
{ | ||
"name": "dtable-web-api", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "an interface for dtable-web", | ||
@@ -5,0 +5,0 @@ "main": "lib/dtable-web-api.js", |
@@ -225,3 +225,3 @@ import axios from 'axios'; | ||
createDTableShareLink(workspaceID, name, password, expireDays, permissions) { | ||
createDTableShareLink(workspaceID, name, password, expireDays, permission) { | ||
var url = this.server + '/api/v2.1/dtables/share-links/'; | ||
@@ -231,4 +231,4 @@ var form = new FormData(); | ||
form.append('table_name', name); | ||
if (permissions) { | ||
form.append('permissions', permissions); | ||
if (permission) { | ||
form.append('permission', permission); | ||
} | ||
@@ -235,0 +235,0 @@ if (password) { |
40052