jfrog-workers 0.9.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +8 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -56,6 +56,14 @@ export interface PlatformHttpClient {
|
|
|
56
56
|
* @param {Record<string, string>} headers - additional headers used in the request
|
|
57
57
|
*/
|
|
58
58
|
delete(endpoint: string, headers?: Record<string, string>): Promise<IPlatformHttpResponse>;
|
|
59
|
+
/**
|
|
60
|
+
* Performs an HTTP request against the configured JFrog platform.
|
|
61
|
+
* @param {string} method - HTTP verb (GET, POST, PUT, PATCH, DELETE, etc.).
|
|
62
|
+
* @param {string} endpoint - Path relative to the client base URL (e.g. `/artifactory/api/repositories`).
|
|
63
|
+
* @param {Record<string, string>} headers - Optional extra headers merged with the client defaults.
|
|
64
|
+
* @param {any} data - Optional request body for methods that support one.
|
|
65
|
+
*/
|
|
66
|
+
request(method: string, endpoint: string, headers?: Record<string, string>, data?: any): Promise<IPlatformHttpResponse>;
|
|
59
67
|
}
|
|
60
68
|
export interface PlatformClients {
|
|
61
69
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jfrog-workers",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "JFrog workers interfaces",
|
|
5
5
|
"homepage": "https://github.com/jfrog/workers-sample",
|
|
6
6
|
"contributors": [
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"url": "git+https://github.com/jfrog/workers-sample.git"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"axios": "1.
|
|
36
|
+
"axios": "1.15.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"typescript": "^
|
|
39
|
+
"typescript": "^6.0.2"
|
|
40
40
|
}
|
|
41
41
|
}
|