dtable-sdk
Advanced tools
Comparing version 0.0.67 to 0.0.68
@@ -63,2 +63,19 @@ "use strict"; | ||
} | ||
}, { | ||
key: "getTableAssetUploadLink", | ||
value: function getTableAssetUploadLink(workspaceID, name) { | ||
var url = this.server + '/api/v2.1/workspace/' + workspaceID + '/dtable-asset-upload-link/?name=' + encodeURIComponent(name); | ||
return this.req.get(url); | ||
} | ||
}, { | ||
key: "uploadImage", | ||
value: function uploadImage(uploadLink, formData) { | ||
var onUploadProgress = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; | ||
return _axios["default"].create()({ | ||
method: "post", | ||
data: formData, | ||
url: uploadLink, | ||
onUploadProgress: onUploadProgress | ||
}); | ||
} | ||
}]); | ||
@@ -65,0 +82,0 @@ |
{ | ||
"name": "dtable-sdk", | ||
"version": "0.0.67", | ||
"version": "0.0.68", | ||
"description": "dtable sdk", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is too big to display
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
385317
9600