Initial Conversion to typescript

This commit is contained in:
Adhiraj Singh
2020-06-30 20:57:49 +05:30
parent 0cf6ca66d0
commit e50c1cbaf1
42 changed files with 31850 additions and 4016 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@adiwajshing/baileys",
"version": "1.1.1",
"version": "2.0.0",
"description": "WhatsApp Web API",
"main": "WhatsAppWeb.js",
"homepage": "https://github.com/adiwajshing/Baileys",
@@ -16,19 +16,39 @@
"automation"
],
"scripts": {
"test": "node test.js"
"test": "mocha --timeout 30000 -r ts-node/register */Tests.ts",
"lint": "eslint '*/*.ts' --quiet --fix",
"tsc": "tsc",
"dev": "ts-node-dev --respawn --transpileOnly ./app/app.ts",
"prod": "tsc && node ./build/app.js"
},
"author": "Adhiraj Singh",
"license": "MIT",
"publishConfig": { "registry": "https://npm.pkg.github.com/" },
"repository": {
"url": "git@github.com:adiwajshing/baileys.git"
},
"dependencies": {
"curve25519-js": "0.0.4",
"futoin-hkdf": "^1.3.2",
"node-fetch": "^2.6.0",
"protobufjs": "^6.9.0",
"qrcode-terminal": "^0.12.0",
"sharp": "^0.25.3",
"video-thumb": "0.0.3",
"sharp": "^0.25.4",
"ws": "^7.3.0"
},
"devDependencies": {
"@types/mocha": "^7.0.2",
"@types/node": "^14.0.14",
"@types/sharp": "^0.25.0",
"@typescript-eslint/eslint-plugin": "^3.5.0",
"@typescript-eslint/parser": "^3.5.0",
"assert": "^2.0.0",
"eslint": "^7.3.1",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.4",
"mocha": "^8.0.1",
"prettier": "^2.0.5",
"ts-node-dev": "^1.0.0-pre.49",
"typescript": "^3.9.5"
}
}