Skip to content

Commit

Permalink
deps: Change request to @cypress/request (#1145)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielperez9430 authored Oct 25, 2023
1 parent f17e801 commit 12d4d25
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/polling.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

const TOKEN = process.env.TELEGRAM_TOKEN || 'YOUR_TELEGRAM_BOT_TOKEN';
const TelegramBot = require('..');
const request = require('request');
const request = require('@cypress/request');
const options = {
polling: true
};
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
"node": ">=0.12"
},
"dependencies": {
"@cypress/request": "^3.0.1",
"@cypress/request-promise": "^5.0.0",
"array.prototype.findindex": "^2.0.2",
"bl": "^1.2.3",
"debug": "^3.2.7",
"eventemitter3": "^3.0.0",
"file-type": "^3.9.0",
"mime": "^1.6.0",
"pump": "^2.0.0",
"request": "^2.83.0",
"request-promise": "^4.2.2"
"pump": "^2.0.0"
},
"devDependencies": {
"babel-cli": "^6.26.0",
Expand Down Expand Up @@ -71,4 +71,4 @@
"url": "https://github.com/yagop/node-telegram-bot-api/issues"
},
"homepage": "https://github.com/yagop/node-telegram-bot-api"
}
}
4 changes: 2 additions & 2 deletions src/telegram.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const TelegramBotPolling = require('./telegramPolling');
const debug = require('debug')('node-telegram-bot-api');
const EventEmitter = require('eventemitter3');
const fileType = require('file-type');
const request = require('request-promise');
const streamedRequest = require('request');
const request = require('@cypress/request-promise');
const streamedRequest = require('@cypress/request');
const qs = require('querystring');
const stream = require('stream');
const mime = require('mime');
Expand Down
2 changes: 1 addition & 1 deletion test/telegram.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const TelegramBot = require('..');
const request = require('request-promise');
const request = require('@cypress/request-promise');
const assert = require('assert');
const fs = require('fs');
const os = require('os');
Expand Down
2 changes: 1 addition & 1 deletion test/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ exports = module.exports = {

const assert = require('assert');
const http = require('http');
const request = require('request-promise');
const request = require('@cypress/request-promise');
const statics = require('node-static');

const servers = {};
Expand Down

0 comments on commit 12d4d25

Please sign in to comment.