@azure/event-hubs
Version:
Azure Event Hubs SDK for JS.
153 lines • 5.26 kB
JSON
{
"name": "@azure/event-hubs",
"sdk-type": "client",
"version": "6.0.4",
"description": "Azure Event Hubs SDK for JS.",
"author": "Microsoft Corporation",
"license": "MIT",
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventhub/event-hubs/",
"repository": "github:Azure/azure-sdk-for-js",
"sideEffects": false,
"keywords": [
"azure",
"cloud",
"event hubs",
"events",
"Azure"
],
"bugs": {
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"engines": {
"node": ">=20.0.0"
},
"main": "./dist/commonjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/commonjs/index.d.ts",
"files": [
"dist/",
"README.md",
"LICENSE"
],
"//metadata": {
"constantPaths": [
{
"path": "src/util/constants.ts",
"prefix": "version"
}
]
},
"//sampleConfiguration": {
"extraFiles": {
"./samples-browser": [
"browser"
],
"./samples-express": [
"express"
]
},
"skip": [
"useWithIotHub.js"
],
"productName": "Azure Event Hubs",
"productSlugs": [
"azure",
"azure-event-hubs"
],
"requiredResources": {
"Azure Event Hub": "https://learn.microsoft.com/azure/event-hubs/event-hubs-create"
}
},
"dependencies": {
"@azure/abort-controller": "^2.1.2",
"@azure/core-amqp": "^4.3.2",
"@azure/core-auth": "^1.3.0",
"@azure/core-tracing": "^1.1.2",
"@azure/core-util": "^1.9.1",
"@azure/logger": "^1.1.4",
"buffer": "^6.0.3",
"is-buffer": "^2.0.5",
"process": "^0.11.10",
"rhea-promise": "^3.0.0",
"tslib": "^2.8.1",
"util": "^0.12.5"
},
"devDependencies": {
"@azure-tools/mock-hub": "^1.0.0",
"@azure/identity": "4.13.0",
"@azure/keyvault-secrets": "^4.9.0",
"@rollup/plugin-inject": "^5.0.5",
"@types/chai-as-promised": "^8.0.2",
"@types/debug": "^4.1.12",
"@types/node": "^20.19.25",
"@types/node-forge": "^1.3.11",
"@types/ws": "^8.18.1",
"@vitest/browser-playwright": "^4.1.2",
"@vitest/coverage-istanbul": "^4.1.2",
"chai": "^6.2.2",
"chai-as-promised": "^8.0.2",
"chai-exclude": "^3.0.1",
"copyfiles": "^2.4.1",
"cross-env": "^10.1.0",
"debug": "^4.4.0",
"dotenv": "^16.6.1",
"eslint": "^9.39.1",
"https-proxy-agent": "^7.0.0",
"node-forge": "^1.3.2",
"playwright": "^1.58.2",
"prettier": "^3.6.2",
"rimraf": "^6.1.0",
"tsx": "^4.20.4",
"typescript": "~6.0.2",
"vitest": "^4.1.2",
"ws": "^8.2.0",
"@azure-tools/test-credential": "^2.1.2",
"@azure-tools/vite-plugin-browser-test-map": "^1.0.0",
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
"@azure-tools/test-utils-vitest": "^2.0.1",
"@azure/dev-tool": "^1.0.0"
},
"exports": {
"./package.json": "./package.json",
".": {
"browser": {
"types": "./dist/browser/index.d.ts",
"default": "./dist/browser/index.js"
},
"react-native": {
"types": "./dist/react-native/index.d.ts",
"default": "./dist/react-native/index.js"
},
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/commonjs/index.d.ts",
"default": "./dist/commonjs/index.js"
}
}
},
"type": "module",
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"build:samples": "tsc -p tsconfig.samples.json",
"build:test:browser": "dev-tool run build-package && dev-tool run build-test",
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"samples-dev/**/*.{ts,cts,mts}\" \"scripts/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"",
"clean": "rimraf --glob dist dist-* temp *.tgz *.log *.xml",
"execute:samples": "dev-tool samples run samples-dev",
"extract-api": "dev-tool run build-package && dev-tool run extract-api",
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"samples-dev/**/*.{ts,cts,mts}\" \"scripts/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"",
"generate-certs": "tsx scripts/generateCerts.mts",
"lint": "eslint package.json src test",
"lint:fix": "eslint package.json src test --fix --fix-type [problem,suggestion]",
"pack": "pnpm pack 2>&1",
"perf-test:node": "tsc -p . --module \"commonjs\" && node dist-esm/test/perf/track-2/index.spec.js",
"test": "npm run test:node && npm run test:browser",
"test:browser": "dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser --no-test-proxy",
"test:node": "npm run generate-certs && cross-env NODE_EXTRA_CA_CERTS=\"./certs/my-private-root-ca.crt.pem\" AZURE_LOG_LEVEL=\"info\" npm run vitest:node",
"test:node:live": "dev-tool run build-package && cross-env TEST_MODE=live npm run vitest:node",
"update-snippets": "dev-tool run update-snippets",
"vitest:node": "dev-tool run test:vitest --no-test-proxy"
}
}