@upstash/qstash
Advanced tools
Comparing version 2.1.7 to 2.1.8
@@ -91,7 +91,8 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
return _chunkEQTYEU4Ujs.__async.call(void 0, this, null, function* () { | ||
return yield this.http.request({ | ||
yield this.http.request({ | ||
method: "POST", | ||
path: ["v2", "topics", req.name, "endpoints"], | ||
headers: { "Content-Type": "application/json" }, | ||
body: JSON.stringify({ endpoints: req.endpoints }) | ||
body: JSON.stringify({ endpoints: req.endpoints }), | ||
parseResponseAsJson: false | ||
}); | ||
@@ -105,7 +106,8 @@ }); | ||
return _chunkEQTYEU4Ujs.__async.call(void 0, this, null, function* () { | ||
return yield this.http.request({ | ||
yield this.http.request({ | ||
method: "DELETE", | ||
path: ["v2", "topics", req.name, "endpoints"], | ||
headers: { "Content-Type": "application/json" }, | ||
body: JSON.stringify({ endpoints: req.endpoints }) | ||
body: JSON.stringify({ endpoints: req.endpoints }), | ||
parseResponseAsJson: false | ||
}); | ||
@@ -112,0 +114,0 @@ }); |
@@ -164,7 +164,7 @@ /** | ||
*/ | ||
addEndpoints(req: AddEndpointsRequest): Promise<Topic>; | ||
addEndpoints(req: AddEndpointsRequest): Promise<void>; | ||
/** | ||
* Remove endpoints from a topic. | ||
*/ | ||
removeEndpoints(req: RemoveEndpointsRequest): Promise<Topic>; | ||
removeEndpoints(req: RemoveEndpointsRequest): Promise<void>; | ||
/** | ||
@@ -171,0 +171,0 @@ * Get a list of all topics. |
@@ -91,7 +91,8 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
return _chunkEQTYEU4Ujs.__async.call(void 0, this, null, function* () { | ||
return yield this.http.request({ | ||
yield this.http.request({ | ||
method: "POST", | ||
path: ["v2", "topics", req.name, "endpoints"], | ||
headers: { "Content-Type": "application/json" }, | ||
body: JSON.stringify({ endpoints: req.endpoints }) | ||
body: JSON.stringify({ endpoints: req.endpoints }), | ||
parseResponseAsJson: false | ||
}); | ||
@@ -105,7 +106,8 @@ }); | ||
return _chunkEQTYEU4Ujs.__async.call(void 0, this, null, function* () { | ||
return yield this.http.request({ | ||
yield this.http.request({ | ||
method: "DELETE", | ||
path: ["v2", "topics", req.name, "endpoints"], | ||
headers: { "Content-Type": "application/json" }, | ||
body: JSON.stringify({ endpoints: req.endpoints }) | ||
body: JSON.stringify({ endpoints: req.endpoints }), | ||
parseResponseAsJson: false | ||
}); | ||
@@ -112,0 +114,0 @@ }); |
{ | ||
"name": "@upstash/qstash", | ||
"version": "2.1.7", | ||
"version": "2.1.8", | ||
"description": "Official Typescript client for QStash", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
Sorry, the diff of this file is not supported yet
166298
2243