Skip to content

Commit

Permalink
generated docs for List and Show method
Browse files Browse the repository at this point in the history
  • Loading branch information
KnockOutEZ committed Mar 4, 2024
1 parent fff97f2 commit 30fa099
Show file tree
Hide file tree
Showing 17 changed files with 188 additions and 63 deletions.
20 changes: 19 additions & 1 deletion dist/index.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* prest-client v0.0.4
* prest-client v0.0.5
* (c) pgEdge
* Released under the MIT License.
*/
Expand Down Expand Up @@ -164,6 +164,24 @@ var PrestApiClient = /** @class */ (function () {
}
});
}); },
Show: function () { return __awaiter(_this, void 0, void 0, function () {
var response, error_2;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
_a.trys.push([0, 3, , 4]);
return [4 /*yield*/, this.client.get("".concat(this.options.base_url, "/show/").concat(this.database, "/").concat(schemaName, "/").concat(tableName))];
case 1:
response = _a.sent();
return [4 /*yield*/, response.json()];
case 2: return [2 /*return*/, _a.sent()];
case 3:
error_2 = _a.sent();
throw new Error("Failed to show data for ".concat(tableName, ": ").concat(error_2.message));
case 4: return [2 /*return*/];
}
});
}); },
};
};
Object.defineProperty(PrestApiClient.prototype, "database", {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.cjs.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 19 additions & 1 deletion dist/index.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 30fa099

Please sign in to comment.