@coscine/api-connection
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -205,3 +205,3 @@ var axios = require('axios'); | ||
}; | ||
DataSourceApi$$1.Upload = function (resourceId, path, data, thenHandler, catchHandler) { | ||
DataSourceApi$$1.Upload = function (resourceId, path, mimetype, data, thenHandler, catchHandler) { | ||
apiConnection.setHeader(); | ||
@@ -212,3 +212,3 @@ axios$6({ | ||
headers: { | ||
'Content-Type': 'application/binary' | ||
'Content-Type': mimetype | ||
}, | ||
@@ -220,3 +220,3 @@ data: data | ||
}; | ||
DataSourceApi$$1.Update = function (resourceId, path, data, thenHandler, catchHandler) { | ||
DataSourceApi$$1.Update = function (resourceId, path, mimetype, data, thenHandler, catchHandler) { | ||
apiConnection.setHeader(); | ||
@@ -227,3 +227,3 @@ axios$6({ | ||
headers: { | ||
'Content-Type': 'application/binary' | ||
'Content-Type': mimetype | ||
}, | ||
@@ -230,0 +230,0 @@ data: data |
@@ -211,3 +211,3 @@ (function (global, factory) { | ||
}; | ||
DataSourceApi$$1.Upload = function (resourceId, path, data, thenHandler, catchHandler) { | ||
DataSourceApi$$1.Upload = function (resourceId, path, mimetype, data, thenHandler, catchHandler) { | ||
apiConnection.setHeader(); | ||
@@ -218,3 +218,3 @@ axios$6({ | ||
headers: { | ||
'Content-Type': 'application/binary' | ||
'Content-Type': mimetype | ||
}, | ||
@@ -226,3 +226,3 @@ data: data | ||
}; | ||
DataSourceApi$$1.Update = function (resourceId, path, data, thenHandler, catchHandler) { | ||
DataSourceApi$$1.Update = function (resourceId, path, mimetype, data, thenHandler, catchHandler) { | ||
apiConnection.setHeader(); | ||
@@ -233,3 +233,3 @@ axios$6({ | ||
headers: { | ||
'Content-Type': 'application/binary' | ||
'Content-Type': mimetype | ||
}, | ||
@@ -236,0 +236,0 @@ data: data |
@@ -46,3 +46,3 @@ "use strict"; | ||
}; | ||
DataSourceApi.Upload = function (resourceId, path, data, thenHandler, catchHandler) { | ||
DataSourceApi.Upload = function (resourceId, path, mimetype, data, thenHandler, catchHandler) { | ||
api_connection_1.default.setHeader(); | ||
@@ -53,3 +53,3 @@ axios({ | ||
headers: { | ||
'Content-Type': 'application/binary' | ||
'Content-Type': mimetype | ||
}, | ||
@@ -61,3 +61,3 @@ data: data | ||
}; | ||
DataSourceApi.Update = function (resourceId, path, data, thenHandler, catchHandler) { | ||
DataSourceApi.Update = function (resourceId, path, mimetype, data, thenHandler, catchHandler) { | ||
api_connection_1.default.setHeader(); | ||
@@ -68,3 +68,3 @@ axios({ | ||
headers: { | ||
'Content-Type': 'application/binary' | ||
'Content-Type': mimetype | ||
}, | ||
@@ -71,0 +71,0 @@ data: data |
@@ -6,4 +6,4 @@ export declare class DataSourceApi { | ||
static delete(resourceId: any, path: any, thenHandler: any, catchHandler: any): void; | ||
static Upload(resourceId: any, path: any, data: any, thenHandler: any, catchHandler: any): void; | ||
static Update(resourceId: any, path: any, data: any, thenHandler: any, catchHandler: any): void; | ||
static Upload(resourceId: any, path: any, mimetype: any, data: any, thenHandler: any, catchHandler: any): void; | ||
static Update(resourceId: any, path: any, mimetype: any, data: any, thenHandler: any, catchHandler: any): void; | ||
} |
{ | ||
"name": "@coscine/api-connection", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "This library provides methods to connect to CoScInE Apis with JavaScript.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
171340