Skip to content

Commit 0e39916

Browse files
committed
Update index.js
1 parent 62a7d12 commit 0e39916

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dist/src/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
44
};
55
Object.defineProperty(exports, "__esModule", { value: true });
66
const createGist_1 = __importDefault(require("./createGist"));
7+
const deleteGist_1 = __importDefault(require("./deleteGist"));
8+
const getGist_1 = __importDefault(require("./getGist"));
79
class Gist {
810
constructor(token) {
911
this.token = token;
@@ -12,10 +14,10 @@ class Gist {
1214
return (0, createGist_1.default)(files, description, this.token, options);
1315
}
1416
delete(id) {
15-
throw new Error("Method not implemented.");
17+
return (0, deleteGist_1.default)(id, this.token);
1618
}
1719
get(id) {
18-
throw new Error("Method not implemented.");
20+
return (0, getGist_1.default)(id, this.token);
1921
}
2022
}
2123
exports.default = Gist;

0 commit comments

Comments
 (0)