{"name":"@azure/core-http","sdk-type":"client","author":{"name":"Microsoft Corporation","email":"azsdkteam@microsoft.com","url":"https://github.com/Azure/azure-sdk-for-js"},"version":"1.1.3-dev.20200529.1","description":"Isomorphic client Runtime for Typescript/node.js/browser javascript client libraries generated using AutoRest","tags":["isomorphic","browser","javascript","node","microsoft","autorest","clientruntime"],"keywords":["isomorphic","browser","javascript","node","microsoft","autorest","clientruntime"],"main":"./dist/coreHttp.node.js","module":"./es/src/coreHttp.js","types":"./types/latest/src/coreHttp.d.ts","typesVersions":{"<3.6":{"types/latest/src/*":["types/3.1/src/*"]}},"browser":{"./es/src/policies/msRestUserAgentPolicy.js":"./es/src/policies/msRestUserAgentPolicy.browser.js","./es/src/policies/disableResponseDecompressionPolicy.js":"./es/src/policies/disableResponseDecompressionPolicy.browser.js","./es/src/policies/proxyPolicy.js":"./es/src/policies/proxyPolicy.browser.js","./es/src/util/base64.js":"./es/src/util/base64.browser.js","./es/src/util/xml.js":"./es/src/util/xml.browser.js","./es/src/defaultHttpClient.js":"./es/src/defaultHttpClient.browser.js","./es/src/util/inspect.js":"./es/src/util/inspect.browser.js"},"license":"MIT","homepage":"https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/core/core-http","repository":{"type":"git","url":"git+ssh://git@github.com/Azure/azure-sdk-for-js.git"},"bugs":{"url":"http://github.com/Azure/azure-sdk-for-js/issues"},"scripts":{"audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"run-s build:tsc extract-api:nobuild build:types build:rollup","build:scripts":"tsc -p ./.scripts/","build:test":"run-s build build:test-browser","build:tsc":"tsc -p tsconfig.es.json","build:types":"downlevel-dts types/latest/ types/3.1/","build:rollup":"rollup -c 2>&1","build:test-browser":"rollup -c rollup.test.config.js 2>&1","check-format":"prettier --list-different --config ../../.prettierrc.json \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","clean":"rimraf ./es ./dist ./dist-test ./dist-browser ./types ./types3.1 ./coverage ./temp ./*.tgz","execute:samples":"echo skipped","extract-api":"tsc -p tsconfig.es.json && api-extractor run --local","extract-api:nobuild":"api-extractor run --local","format":"prettier --write --config ../../.prettierrc.json \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","integration-test:browser":"echo skipped","integration-test:node":"echo skipped","integration-test":"npm run integration-test:node && npm run integration-test:browser","lint:fix":"eslint package.json tsconfig.json \"src/**/*.ts\" \"test/**/*.ts\" --fix --fix-type [problem,suggestion]","lint":"eslint package.json tsconfig.json src test --ext .ts -f html -o core-http-lintReport.html || exit 0","pack":"npm pack 2>&1","prebuild":"npm run clean","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","test":"npm run build:test && npm run unit-test && npm run integration-test","unit-test":"npm run unit-test:node && npm run unit-test:browser","unit-test:browser":"node ./node_modules/karma/bin/karma start karma.conf.ts --browsers ChromeNoSecurity --single-run","unit-test:node":"cross-env TS_NODE_FILES=true nyc mocha --require ts-node/register --timeout 50000 --reporter ../../../common/tools/mocha-multi-reporter.js --colors --exclude \"test/**/*.browser.ts\" \"test/**/*.ts\"","check:packagejsonversion":"ts-node ./.scripts/checkPackageJsonVersion.ts","check:foronlycalls":"ts-node ./.scripts/checkForOnlyCalls.ts","check:everything":"ts-node ./.scripts/checkEverything.ts","dep:autorest.typescript":"npx ts-node .scripts/testDependentProjects.ts autorest.typescript 'gulp build' 'gulp regenerate' 'npm run local'","dep:ms-rest-azure-js":"npx ts-node .scripts/testDependentProjects.ts ms-rest-azure-js","publish-preview":"mocha --no-colors && shx rm -rf dist/test && node ./.scripts/publish","local":"ts-node ./.scripts/local.ts","latest":"ts-node ./.scripts/latest.ts"},"sideEffects":false,"nyc":{"extension":[".ts"],"exclude":["coverage/**/*","**/*.d.ts","**/*.js"],"reporter":["text","html","cobertura"],"all":true},"//metadata":{"constantPaths":[{"path":"src/util/constants.ts","prefix":"coreHttpVersion"}]},"dependencies":{"@azure/abort-controller":"^1.0.0","@azure/core-auth":"^1.1.2","@azure/core-tracing":"^1.0.0-dev","@azure/logger":"^1.0.0","@opentelemetry/api":"^0.6.1","form-data":"^3.0.0","node-fetch":"^2.6.0","process":"^0.11.10","tough-cookie":"^4.0.0","tslib":"^1.10.0","tunnel":"^0.0.6","uuid":"^8.1.0","xml2js":"^0.4.19"},"devDependencies":{"@azure/eslint-plugin-azure-sdk":"^2.0.1","@azure/logger-js":"^1.0.2","@microsoft/api-extractor":"7.7.11","@rollup/plugin-commonjs":"11.0.2","@rollup/plugin-json":"^4.0.0","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@types/chai":"^4.1.6","@types/express":"^4.16.0","@types/glob":"^7.1.1","@types/mocha":"^7.0.2","@types/node-fetch":"^2.5.0","@types/tunnel":"^0.0.1","@types/node":"^8.0.0","@types/sinon":"^9.0.4","@types/tough-cookie":"^4.0.0","@types/uuid":"^8.0.0","@types/xml2js":"^0.4.3","@typescript-eslint/eslint-plugin":"^2.0.0","@typescript-eslint/parser":"^2.0.0","babel-runtime":"^6.26.0","chai":"^4.2.0","cross-env":"^6.0.3","downlevel-dts":"~0.4.0","eslint":"^6.1.0","eslint-config-prettier":"^6.0.0","eslint-plugin-no-null":"^1.0.2","eslint-plugin-no-only-tests":"^2.3.0","eslint-plugin-promise":"^4.1.1","express":"^4.16.3","fetch-mock":"^8.0.0","glob":"^7.1.2","karma":"^4.0.1","karma-chai":"^0.1.0","karma-chrome-launcher":"^3.0.0","karma-edge-launcher":"^0.4.2","karma-firefox-launcher":"^1.1.0","karma-mocha":"^1.3.0","karma-rollup-preprocessor":"^7.0.0","karma-sourcemap-loader":"^0.3.7","mocha":"^7.1.1","mocha-junit-reporter":"^1.18.0","npm-run-all":"^4.1.5","nyc":"^14.0.0","prettier":"^1.16.4","puppeteer":"^2.0.0","regenerator-runtime":"^0.13.3","rimraf":"^3.0.0","rollup":"^1.16.3","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^3.1.1","shx":"^0.3.2","sinon":"^9.0.2","ts-loader":"^6.0.4","ts-node":"^8.3.0","typescript":"~3.8.3","uglify-js":"^3.4.9","xhr-mock":"^2.4.1"},"_resolved":"","_integrity":"","_from":"file:/home/vsts/work/1/packages/azure-core-http-1.1.3-dev.20200529.1.tgz","readme":"# Azure Core HTTP client library for JavaScript\n\nThis is the core HTTP pipeline for Azure SDK JavaScript libraries which work in the browser and Node.js. This library is primarily intended to be used in code generated by [AutoRest](https://github.com/Azure/Autorest) and [`autorest.typescript`](https://github.com/Azure/autorest.typescript).\n\n## Getting started\n\n### Requirements\n\n- [Node.js](https://nodejs.org) version > 8.x\n- Typescript compiler\n\n```shell\nnpm install -g typescript\n```\n\n### Installation\n\nThis package is primarily used in generated code and not meant to be consumed directly by end users.\n\n## Key concepts\n\nYou can find an explanation of how this repository's code works by going to our [architecture overview](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/core/core-http/docs/architectureOverview.md).\n\n## Examples\n\nExamples can be found in the `samples` folder.\n\n## Next steps\n\n- Build this library (`core-http`). For more information on how to build project in this repo, please refer to the [Contributing Guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md).\n\n- The code in `samples\\node-sample.ts` shows how to create a `ServiceClient` instance with a test `TokenCredential` implementation and use the client instance to perform a `GET` operation from the Azure management service endpoint for subscriptions. To run the code, first obtain an access token to the Azure management service.\n\nOne easy way to get an access token is using [Azure CLI](https://docs.microsoft.com/cli/azure/?view=azure-cli-latest)\n\n1. Sign in\n```shell\naz login\n```\n2. Select the subscription to use\n```shell\naz account set -s <subscription id>\n```\n3. Obtain an access token\n```shell\naz account get-access-token --resource=https://management.azure.com\n```\n\n### NodeJS\n\n- Set values of `subscriptionId` and `token` variable in `samples/node-sample.ts`\n\n- Change directory to samples folder, compile the TypeScript code, then run the sample\n\n```\ncd samples\ntsc node-sample.ts\nnode node-sample.js\n```\n\n### Browser\n\n- Set values of `subscriptionId` and `token` variable in `samples/index.js`\n- Follow the instructions of [JavaScript Bundling Guide using Parcel](https://github.com/Azure/azure-sdk-for-js/blob/master/documentation/Bundling.md#using-parcel) to build and run the code in the browser.\n\n## Troubleshooting\n\nIf you run into issues while using this library, please feel free to [file an issue](https://github.com/Azure/azure-sdk-for-js/issues/new).\n\n## Contributing\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n\n![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fcore%2Fcore-http%2FREADME.png)\n","readmeFilename":"README.md","_id":"@azure/core-http@1.1.3-dev.20200529.1","_nodeVersion":"12.16.3","_npmVersion":"6.14.5","dist":{"integrity":"sha512-jFeRvM6/0zvI7ulW3QV4u/Pnix49g27YO5dGn8eDunshV0cdEEfe7BJGkARrIZLO9S2Wi+t+lXpSJhueP8KCzA==","shasum":"2c86531d9b945751c9d05fd57d710aebdcde5218","tarball":"http://registry-npm.ywwl.com/@azure/core-http/download/@azure/core-http-1.1.3-dev.20200529.1.tgz","fileCount":312,"unpackedSize":1494302,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0V0GCRA9TVsSAnZWagAAOJsQAI9H4jiGhS8qV9KQG6vN\nfPbaS9OthjEr31qHQ8l3b1ujl+RCzURfhM84AdBkIqvFweJ2RmdcH8ktUcEJ\n3dCnMGA6Radv7t+MJnXx2x4g1e981fYGEesW8CGzt1vQR4DEGNRdhMWdVjG9\nDv7flyGmJDztp7MHN0WyI/KCN22BoMLRQ07I5g1tHTKd+m9uSlTjpuOMdUnx\n5sP6nKEEuZApETNvC0pLrIig3OvGj9xPA3ImzBSXaMwHUwQUGfBoQlJJ/hr/\nYXBwWVHVzisaZ/MDjzv34O8XBoB/UFTYLnZO9hNgwdjWZOac+OLE5H5lHHm6\n+W9h+tm/gzK9eekluwUKCHPgKjK6LUDzTOz93WSjTMLZXQP5AqzamiMr/oHQ\n/PTG0mYGxQFmi05EgXVud5XqlqMKGMuyRS2ElxjvxO9hp+R5w/0iMBtLzaNs\nmX/hcgIr2qi95jp/JaTcokw2pB78cXFvISnxRXmtCOdp8AVEeUfPfXTVddDJ\npo3dOq6edjv6RIQ9V60Tx/nWE6LSfIJ2cpcYTsH33+FHyfHGYWPWH1j3eh7o\nZT/Jy9jgFDfjZipKRoP1jWrmNGiD6Gl8LpkqqTB1w7ms+hHRKPAVUZxLEeML\nzNip9u6SjCc/4y3ZHDuj3Yo69ki/n3EEIH+pmLeHGsgHmf2hpEwOIymFyqbj\nJAw4\r\n=CGHY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/YwTY292fFiskRDEdfIZO/JmXfkQVVF4WzbA5/0v9VAIgFH5GcYfToPx2/zKFL23PAcQFIkFGGCxz79QgF8nLnN4="}],"size":307297,"noattachment":false,"key":"/@azure/core-http/-/@azure/core-http-1.1.3-dev.20200529.1.tgz"},"maintainers":[{"email":"azure-sdk-npmjs@microsoft.com","name":"azure-sdk"}],"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/core-http_1.1.3-dev.20200529.1_1590779141217_0.7287640516415008"},"_hasShrinkwrap":false,"publish_time":1590779141443,"deprecated":"This package is no longer supported. Please migrate to use @azure/core-rest-pipeline","_cnpm_publish_time":1590779141443,"dist-tags":{"dev":"3.0.2-alpha.20231205.2","latest":"3.0.5"}}