{"name":"@azure/core-client","version":"1.6.1-alpha.20220506.2","keywords":["azure","cloud"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/core-client@1.6.1-alpha.20220506.2","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-client/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"8426a89d5db5191d8a068fc00f9c610fb4f04214","tarball":"http://registry-npm.ywwl.com/@azure/core-client/download/@azure/core-client-1.6.1-alpha.20220506.2.tgz","fileCount":42,"integrity":"sha512-4vR2EvJctxvi4XhhicoZ4X0c67dnnlBCdaRU0SOd7ja3xHpBdbuYtfyilUVU1t7mwj4Zp2LYyLEAGmVWQvLYyw==","signatures":[{"sig":"MEQCIEw3WpX7cDdn2ynlUAJXV1WEVdDaFUKqF0QTDtRcVGhkAiAzuWwIYNH+gfxkBzMqaxXsRK1sHkYbj/e1dJdPqPbLXg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":662945,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJidWVxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmraSA//VGXIlPTy6tb29vyu1ZU7aFAtqVsaFThrimONvkY7Vpfdu3KK\r\n8TFFs6typuL8kQ7MlUNGqMSoBjjCf3efmUiF5Gkz+Q0vS/6SFtjE7pSd2C9Y\r\nEYhaIjNeukKC1tRnHLJ/zuJ9X25ULVZVbnO4bVwSn/iegv1U7iKn2F7UBD2f\r\nzopbscvhcwShmAU1HLUxfRwN1GhARiL5btSxA5O5PYxab6xZGfcxadSiDawB\r\nfvN6UTmASIl/z2+H+VfYA3xi9LU/Ss3XMxJ6h3Q74tQzvZ7dsQgq5X2tGvzT\r\nMTYqudU4AawQ1JWHSz0gWWT+Nz9LGOdWMdt6JsZYhCeMl9qpRZxNE8z4MSwD\r\niFFZ/v7+AZCR5Bsi84zve4pUKYEwkx3mH12amNVBKNUHw7z2OzmMBHabdZfu\r\n8b8AVKethCPptXiz8cX1BBYjPyfW5rMjBu1zpTNwM+MjZaHw3Sc775jD3Awf\r\nfnSt3owh5vLrlCkHo42gUnozJY3tl+IHS4l00OLs4VvXbGknPf6kkXE6cAl5\r\n66U4Qk5vvYsIcdryfl0KmaxbbftDceIy003NJO/E6gnO1hG2NS5DC/miRMWS\r\ngwWHoB72TGKmvgINEwX+7E5APnYwX6jHt3XYWhtljRysS/63dMC6/erartmY\r\nmFd8hkTuAfq2kTThSRrIgQdpUoI92rjEyXQ=\r\n=d/ni\r\n-----END PGP SIGNATURE-----\r\n","size":136571,"noattachment":false,"key":"/@azure/core-client/-/@azure/core-client-1.6.1-alpha.20220506.2.tgz"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-core-client/azure-core-client-1.6.1-alpha.20220506.2.tgz","types":"types/latest/core-client.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Core Service client library for JavaScript\n\nThis 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### Currently supported environments\n\n- [LTS versions of Node.js](https://nodejs.org/about/releases/)\n- Latest versions of Safari, Chrome, Edge, and Firefox.\n\nSee our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.\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\n### ServiceClient\n\nThis is the common base class for generated clients. It provides the methods `sendOperationRequest` and `sendRequest`.\n\n`sendRequest` simply makes an HTTP request using a `Pipeline` (see `@azure/core-rest-pipeline` for details.)\n\n`sendOperationRequest` is used by generated code to make a request using an `OperationSpec` and `OperationArguments`. An `OperationSpec` is a translation of request requirements from the OpenAPI/Swagger file that describes the service.\n\n### createClientPipeline\n\nThis method is used to create a `Pipeline` instance that is customized with extra policies that perform serialization and deserialization. The bulk of the work is in converting requests into the right HTTP message that a service expects and then converting the HTTP response payload into the response shape described by the service's OpenAPI specification file.\n\n### Mappers / createSerializer\n\n`Mapper`s are used to encode and decode data into HTTP headers and bodies. They describe all request and response fields. They are referenced by `OperationSpec`s.\n\nThe method `createSerializer` creates a `Serializer` that is used to do the bulk of the work transforming data when making a request or processing a response. Given a corpus of `Mapper`s and the appropriate `OperationSpec` it can manufacture an HTTP request object from a user provided input or convert an HTTP response object into a user-friendly form.\n\n## Examples\n\nExamples can be found in the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/core-client/samples) folder.\n\n## Next steps\n\nYou can build and run the tests locally by executing `rushx test`. Explore the [test](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/core-client/test) folder to see advanced usage and behavior of the public classes.\n\nLearn more about [AutoRest](https://github.com/Azure/autorest) and the [autorest.typescript extension](https://github.com/Azure/autorest.typescript) for generating a compatible client on top of this package.\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/main/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-client%2FREADME.png)\n","browser":{"./dist-esm/src/base64.js":"./dist-esm/src/base64.browser.js"},"engines":{"node":">=12.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run clean && tsc -p . && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && 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-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run clean && tsc -p . && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:test":"tsc -p . && dev-tool run bundle","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\" \"*.{js,json}\"","test:browser":"npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:samples":"echo Obsolete","unit-test:node":"cross-env TS_NODE_FILES=true mocha -r esm -r ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 50000 --full-trace  --exclude \"test/**/browser/*.spec.ts\" \"test/**/*.spec.ts\"","execute:samples":"echo skipped","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"echo skipped","integration-test:browser":"echo skipped"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-core-client/azure-core-client-1.6.1-alpha.20220506.2.tgz","_integrity":"sha512-4vR2EvJctxvi4XhhicoZ4X0c67dnnlBCdaRU0SOd7ja3xHpBdbuYtfyilUVU1t7mwj4Zp2LYyLEAGmVWQvLYyw==","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"8.5.5","description":"Core library for interfacing with AutoRest generated code","directories":{},"sideEffects":false,"_nodeVersion":"16.15.0","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-util":"^1.0.0","@azure/core-tracing":"^1.0.0","@azure/abort-controller":"^1.0.0","@azure/core-rest-pipeline":"^1.5.0"},"react-native":{"./dist/index.js":"./dist-esm/src/index.js"},"typesVersions":{"<3.6":{"types/latest/*":["types/3.1/*"]}},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","sinon":"^9.0.2","eslint":"^7.15.0","rimraf":"^3.0.0","ts-node":"^10.0.0","inherits":"^2.0.3","prettier":"^2.5.1","cross-env":"^7.0.2","typescript":"~4.6.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","@types/sinon":"^9.0.4","downlevel-dts":"^0.8.0","karma-coverage":"^2.0.0","@azure/core-xml":"^1.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^2.0.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"7.18.11","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"_npmOperationalInternal":{"tmp":"tmp/core-client_1.6.1-alpha.20220506.2_1651860849372_0.4840995409832889","host":"s3://npm-registry-packages"},"publish_time":1651860849578,"_cnpm_publish_time":1651860849578,"dist-tags":{"dev":"1.10.2-alpha.20260311.2","latest":"1.11.2"}}