Skip to content

Commit 9ec658f

Browse files
committed
Update index.js
1 parent 5922d1e commit 9ec658f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dist/src/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ const deleteGist_1 = __importDefault(require("./deleteGist"));
88
const getGist_1 = __importDefault(require("./getGist"));
99
class Gist {
1010
constructor(token) {
11+
if (!token || token === 'token') {
12+
throw new Error('Token required');
13+
}
1114
this.token = token;
1215
}
1316
create(files, description, options) {

0 commit comments

Comments
 (0)