Skip to content

Commit

Permalink
npm run package
Browse files Browse the repository at this point in the history
  • Loading branch information
SnowCait committed May 1, 2022
1 parent 9ead93c commit 7074fe7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15485,7 +15485,7 @@ const twitter_1 = __importDefault(__webpack_require__(50));
const util_1 = __webpack_require__(669);
function tweet(status, mediaIds = []) {
return __awaiter(this, void 0, void 0, function* () {
return new Promise(resolve => {
return new Promise((resolve, reject) => {
if (!(0, util_1.isString)(status)) {
throw new Error('status not a string');
}
Expand All @@ -15507,9 +15507,9 @@ function tweet(status, mediaIds = []) {
: {
status
};
client.post('statuses/update', parameters, (error, data, response) => {
if (error) {
throw error;
client.post('statuses/update', parameters, (errors, data, response) => {
if (errors) {
reject(errors);
}
resolve(response.body);
});
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

0 comments on commit 7074fe7

Please sign in to comment.