Intial Commit
This commit is contained in:
13
nodered/rootfs/data/node_modules/node-telegram-bot-api/index.js
generated
vendored
Normal file
13
nodered/rootfs/data/node_modules/node-telegram-bot-api/index.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* If running on Nodejs 5.x and below, we load the transpiled code.
|
||||
* Otherwise, we use the ES6 code.
|
||||
* We are deprecating support for Node.js v5.x and below.
|
||||
*/
|
||||
const majorVersion = parseInt(process.versions.node.split('.')[0], 10);
|
||||
if (majorVersion <= 5) {
|
||||
const deprecate = require('depd')('node-telegram-bot-api');
|
||||
deprecate('Node.js v5.x and below will no longer be supported in the future');
|
||||
module.exports = require('./lib/telegram');
|
||||
} else {
|
||||
module.exports = require('./src/telegram');
|
||||
}
|
||||
Reference in New Issue
Block a user