@azure/event-hubs

v5.11.1-alpha.20230619.1
Azure Event Hubs SDK for JS.
azure cloud event hubs events Azure

lint

eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js

pack

npm pack 2>&1

test

npm run build:test && npm run unit-test && npm run integration-test

audit

node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit

build

npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local && npm run build:types

clean

rimraf dist dist-* types *.tgz *.log

format

prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore "src/**/*.ts" "test/**/*.ts" "samples-dev/**/*.ts" "*.{js,json}"

lint:fix

eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js --fix --fix-type [problem,suggestion]

test:node

npm run build:test && npm run unit-test:node && npm run integration-test:node

unit-test

npm run unit-test:node && npm run unit-test:browser

build:node

tsc -p . && dev-tool run bundle

build:test

tsc -p . && rollup -c rollup.test.config.js 2>&1 && npm run generate-certs && copyfiles -f ./test/internal/node/partitionKeyHashMap.json ./dist-esm/test/internal/node

build:types

downlevel-dts types/latest types/3.1

extract-api

tsc -p . && api-extractor run --local

check-format

prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore "src/**/*.ts" "test/**/*.ts" "samples-dev/**/*.ts" "*.{js,json}"

test:browser

npm run build:test && npm run unit-test:browser && npm run integration-test:browser

build:browser

tsc -p . && dev-tool run bundle

build:samples

echo Obsolete.

generate-certs

node ./scripts/generateCerts.js

perf-test:node

tsc -p . --module "commonjs" && node dist-esm/test/perf/track-2/index.spec.js

unit-test:node

cross-env NODE_EXTRA_CA_CERTS="./certs/my-private-root-ca.crt.pem" TEST_TARGET=mock DISABLE_MULTI_VERSION_TESTING=true mocha -r esm -r ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace "test/internal/*.spec.ts" "test/public/*.spec.ts" "test/public/**/*.spec.ts" "test/internal/**/*.spec.ts"

build:test:node

tsc -p .

execute:samples

dev-tool samples run samples-dev

integration-test

npm run integration-test:node && npm run integration-test:browser

unit-test:browser

echo skipped

build:test:browser

tsc -p . && rollup -c rollup.test.config.js 2>&1

integration-test:node

cross-env TEST_TARGET=live DISABLE_MULTI_VERSION_TESTING=true nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 600000 --full-trace "dist-esm/test/internal/*.spec.js" "dist-esm/test/public/*.spec.js" "dist-esm/test/public/**/*.spec.js" "dist-esm/test/internal/**/*.spec.js"

integration-test:browser

cross-env TEST_TARGET=live DISABLE_MULTI_VERSION_TESTING=true karma start --single-run
npm i @azure/[email protected]

Metadata

  • MIT
  • >=14.0.0
  • Microsoft Corporation
  • released 6/19/2023

Downloads