whatsapp-api-js
Version:
A TypeScript server agnostic Whatsapp's Official API framework
168 lines (167 loc) • 5.38 kB
JSON
{
"name": "whatsapp-api-js",
"version": "5.2.0",
"author": "Secreto31126",
"description": "A TypeScript server agnostic Whatsapp's Official API framework",
"license": "MIT",
"type": "module",
"sideEffects": false,
"engines": {
"node": ">=16"
},
"files": [
"lib/**/*"
],
"types": "lib/index.d.ts",
"module": "lib/index.js",
"exports": {
".": {
"types": "./lib/index.d.ts",
"import": "./lib/index.js",
"require": "./lib/index.js"
},
"./messages": {
"types": "./lib/messages/index.d.ts",
"import": "./lib/messages/index.js",
"require": "./lib/messages/index.js"
},
"./messages/*": {
"types": "./lib/messages/*.d.ts",
"import": "./lib/messages/*.js",
"require": "./lib/messages/*.js"
},
"./setup": null,
"./setup/index": null,
"./setup/*": {
"types": "./lib/setup/*.d.ts",
"import": "./lib/setup/*.js",
"require": "./lib/setup/*.js"
},
"./middleware": null,
"./middleware/index": null,
"./middleware/*": {
"types": "./lib/middleware/*.d.ts",
"import": "./lib/middleware/*.js",
"require": "./lib/middleware/*.js"
},
"./emitters": {
"types": "./lib/emitters.d.ts"
},
"./types": {
"types": "./lib/types.d.ts",
"import": "./lib/types.js",
"require": "./lib/types.js"
},
"./errors": {
"types": "./lib/errors.d.ts",
"import": "./lib/errors.js",
"require": "./lib/errors.js"
}
},
"//": [
"https://github.com/andrewbranch/example-subpath-exports-ts-compat/blob/main/examples/node_modules/types-versions-wildcards/package.json",
"Without this, IntelliSense will throw an error when importing subpaths ONLY on JS files, although it does run fine with Node.",
"Even more stunishing: if included, IntelliSense works even BETTER than with TS."
],
"typesVersions": {
"*": {
".": [
"lib/index.d.ts"
],
"messages": [
"lib/messages/index.d.ts"
],
"messages/*": [
"lib/messages/*.d.ts"
],
"setup/index": [],
"setup/*": [
"lib/setup/*.d.ts"
],
"middleware/index": [],
"middleware/*": [
"lib/middleware/*.d.ts"
],
"emitters": [
"lib/emitters.d.ts"
],
"types": [
"lib/types.d.ts"
],
"errors": [
"lib/errors.d.ts"
]
}
},
"scripts": {
"build": "npm run build:code && npm run build:types",
"build:dev": "npm run build:code:dev && npm run build:types:dev",
"build:code": "node -r dotenv/config build.js",
"build:code:dev": "npm run build:code",
"build:types": "tsc",
"build:types:dev": "tsc --noCheck",
"build:standalone": "esbuild src/standalone.ts --outfile=lib/standalone.js --bundle --platform=neutral --target=node10 --minify-syntax",
"test": "node --test --test-reporter=@reporters/github --test-reporter-destination=stdout --test-reporter=spec --test-reporter-destination=stdout",
"test:build": "npm run build && npm run test",
"test:watch": "node --test --watch",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"prettier": "prettier --check .",
"prettier:write": "prettier --write .",
"coverage": "c8 node --test --test-reporter=@reporters/silent",
"document": "typedoc && cp -r docs_statics/* docs/",
"clear": "rm -rf docs/ docs_temp/ lib/ coverage/"
},
"keywords": [
"whatsapp",
"cloud",
"api",
"framework",
"whatsapp-cloud",
"cloud-api",
"whatsapp-cloud-api",
"whatsapp-business",
"whatsapp-business-api",
"bot",
"whatsapp-bot",
"chatbot",
"bot-framework",
"typescript",
"server-agnostic",
"nodejs",
"deno",
"bun",
"bot-api",
"whatsapp-api",
"business-api"
],
"repository": {
"type": "git",
"url": "https://github.com/Secreto31126/whatsapp-api-js.git"
},
"devDependencies": {
"@adonisjs/http-server": "7.6.0",
"@azure/functions": "^4.7.0",
"@eslint/js": "9.23.0",
"@reporters/github": "1.7.2",
"@reporters/silent": "1.2.7",
"@types/express": "5.0.1",
"@types/node": "18.19.86",
"@vercel/node": "5.1.14",
"all-contributors-cli": "6.26.1",
"c8": "10.1.3",
"dotenv": "16.4.7",
"esbuild": "0.25.2",
"eslint": "9.23.0",
"eslint-config-prettier": "10.1.1",
"eslint-plugin-tsdoc": "0.4.0",
"glob": "11.0.1",
"globals": "16.0.0",
"prettier": "3.5.3",
"sinon": "20.0.0",
"typedoc": "0.28.1",
"typescript": "5.8.2",
"typescript-eslint": "8.29.0",
"undici": "7.7.0"
}
}