Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dtable-web-api

Package Overview
Dependencies
Maintainers
1
Versions
405
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dtable-web-api - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

23

lib/dtable-web-api.js

@@ -428,2 +428,25 @@ "use strict";

}
}, {
key: "getTableFormShareLink",
value: function getTableFormShareLink(workspaceID, dtableName, formId) {
var params = 'workspace_id=' + workspaceID + '&name=' + encodeURIComponent(dtableName) + '&form_id=' + formId;
var url = this.server + '/api/v2.1/dtable-form-links/?' + params;
return this.req.get(url);
}
}, {
key: "createTableFormShareLink",
value: function createTableFormShareLink(workspaceID, dtableName, formId) {
var url = this.server + '/api/v2.1/dtable-form-links/';
var form = new _formData["default"]();
form.append('workspace_id', workspaceID);
form.append('name', dtableName);
form.append('form_id', formId);
return this._sendPostRequest(url, form);
}
}, {
key: "deleteTableFormShareLink",
value: function deleteTableFormShareLink(token) {
var url = this.server + '/api/v2.1/dtable-form-links/' + token + '/';
return this.req["delete"](url);
}
}]);

@@ -430,0 +453,0 @@

2

package.json
{
"name": "dtable-web-api",
"version": "1.0.1",
"version": "1.0.2",
"description": "an interface for dtable-web",

@@ -5,0 +5,0 @@ "main": "lib/dtable-web-api.js",

@@ -329,4 +329,25 @@ import axios from 'axios';

getTableFormShareLink(workspaceID, dtableName, formId) {
let params = 'workspace_id=' + workspaceID + '&name=' + encodeURIComponent(dtableName) + '&form_id=' + formId;
let url = this.server + '/api/v2.1/dtable-form-links/?' + params;
return this.req.get(url);
}
createTableFormShareLink(workspaceID, dtableName, formId) {
let url = this.server + '/api/v2.1/dtable-form-links/';
let form = new FormData();
form.append('workspace_id', workspaceID);
form.append('name', dtableName);
form.append('form_id', formId);
return this._sendPostRequest(url, form);
}
deleteTableFormShareLink(token) {
let url = this.server + '/api/v2.1/dtable-form-links/' + token + '/';
return this.req.delete(url);
}
}
export default DTableWebAPI;
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