UNPKG

@azure/core-rest-pipeline

Version:

Isomorphic client library for making HTTP requests in node.js and browser.

135 lines 4.71 kB
{ "name": "@azure/core-rest-pipeline", "version": "1.25.0", "description": "Isomorphic client library for making HTTP requests in node.js and browser.", "sdk-type": "client", "type": "module", "main": "./dist/commonjs/index.js", "browser": "./dist/browser/index.js", "react-native": "./dist/react-native/index.js", "types": "./dist/commonjs/index.d.ts", "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" } } }, "files": [ "dist/", "!dist/**/*.d.*ts.map", "LICENSE", "README.md" ], "repository": { "type": "git", "url": "git+https://github.com/Azure/azure-sdk-for-js", "directory": "sdk/core/core-rest-pipeline" }, "keywords": [ "azure", "cloud" ], "author": "Microsoft Corporation", "license": "MIT", "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "engines": { "node": ">=22.0.0" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/core-rest-pipeline/README.md", "sideEffects": false, "prettier": "@azure/eslint-plugin-azure-sdk/prettier.json", "//metadata": { "constantPaths": [ { "path": "src/constants.ts", "prefix": "SDK_VERSION" } ], "sampleConfiguration": { "skipFolder": true, "disableDocsMs": true, "productName": "Azure SDK Core", "productSlugs": [ "azure" ] }, "migrationDate": "2023-03-08T18:36:03.000Z" }, "dependencies": { "@azure/abort-controller": "^2.1.2", "@azure/core-auth": "^1.10.0", "@azure/core-tracing": "^1.3.0", "@azure/core-util": "^1.13.0", "@azure/logger": "^1.3.0", "@typespec/ts-http-runtime": "^0.3.4", "tslib": "^2.6.2" }, "devDependencies": { "@types/node": "^22.0.0", "@types/react": "^19.2.14", "@vitest/browser-playwright": "^4.1.2", "@vitest/coverage-istanbul": "^4.1.2", "cross-env": "^10.1.0", "eslint": "^9.39.1", "playwright": "^1.60.0", "prettier": "^3.9.1", "react-native": "^0.84.1", "rimraf": "^6.1.0", "typescript": "~6.0.2", "vitest": "^4.1.2", "@azure-tools/vite-plugin-browser-test-map": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", "@azure/dev-tool": "^1.0.0" }, "module": "./dist/esm/index.js", "imports": { "#platform/userAgent": { "browser": "./src/util/userAgentPlatform-browser.mts", "react-native": "./src/util/userAgentPlatform-react-native.mts", "default": "./src/util/userAgentPlatform.ts" }, "#platform/wrapAbortSignal": { "react-native": "./src/util/wrapAbortSignal-rn.mts", "default": "./src/util/wrapAbortSignal.ts" }, "#platform/createFile": { "browser": "./src/util/createFile-browser.mts", "react-native": "./src/util/createFile-browser.mts", "default": "./src/util/createFile.ts" } }, "scripts": { "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", "build:samples": "tsc -p config/tsconfig.samples.json", "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"", "clean": "rimraf --glob dist dist-* temp types *.tgz *.log", "execute:samples": "echo skipped", "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}\" \"*.{js,cjs,mjs,json}\"", "lint": "eslint package.json src test", "lint:fix": "eslint package.json src test --fix --fix-type [problem,suggestion]", "pack": "pnpm pack 2>&1", "test": "tsc -b --noEmit && npm run test:node && npm run test:browser && npm run test:react-native", "test:browser": "dev-tool run test:vitest --no-test-proxy --browser", "test:node": "dev-tool run test:vitest --no-test-proxy", "test:react-native": "dev-tool run test:vitest --no-test-proxy --browser -- -c vitest.react-native.config.ts", "update-snippets": "dev-tool run update-snippets" } }