{"name":"@azure/core-client","version":"1.0.1-alpha.20210319.1","keywords":["azure","cloud"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/core-client@1.0.1-alpha.20210319.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/core/core-client/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"0227acc8b977d72064d12e8938da046ec565c8ed","tarball":"http://registry-npm.ywwl.com/@azure/core-client/download/@azure/core-client-1.0.1-alpha.20210319.1.tgz","fileCount":40,"integrity":"sha512-tiUbYaZzX0FZF4pDzBKQ96Db9dTP1+oNqcyMk/tYSceRfSbe1RtmIN7nr9Yx/INDrdLIGVo/P3tF0Jl7O3xh+A==","signatures":[{"sig":"MEQCICtCvT4yhCzVpJJJjLyqWyv8dvGhdvjwlmkXwsETyuthAiBu2ykfAW7px4/dViR1nGsekE3IxPZ4BUdZ8sUbEXrDhQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":541262,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgVO1fCRA9TVsSAnZWagAAc4UP/RoPLhJqaORH7saWgDDd\nATQ79RFDoo8+SiUWwr1kpVAnWp1FNKwJGwSB+Nl1YfEAomkyf4GPaJsu2yGZ\nyMkATCzIO8AEtOBPdM954F7HYhhnn8+x7uieYfjOc3bzaiMYpQk4e+lU64P+\n/Yt5fszBJHQNBhawgDwxX/n4b31N5JunAPFun+EdSxyQnh80cnoJZt9pj1R4\n0Jvs0CcuoY/chwqzsLArjjtpjxkwUHyZ/R6R1i6nqGB171TEOAt8l0X8Bez/\n6n3i4zEmgd59svyOVG8f/0qFUrk6/DcPenaGbhtrQcvL0EO0byiLQNh0kpN0\nKZCFooM2ocqPgd5fh90O7rRpoqYsjVpzpWJrpGFsmzgLKGdsXp6G+pSPxATP\nDODxLQb5G9wT6pZj3tAN8rY9Dx45KurOCN/L4gj03VJjOI1kKNV5GSKr1eXB\nQbBdxN2Pc8DcplfWa0lUPbnCy0IqYC2eLUAKWU+KuYe8phReyBY3Q85jtkqQ\ns5r8q4oaH2Byd0ET2ep+fdIL4Z2aQRu9k3zuOt4SoeejIzlz9zj801gHcHNn\nvHKNKtHuoNP7wyPZUym8Lw96jW4KCQduCsTGk1JiyjuU0O7NN5ekQsRwjzSb\nSg9g28lRZXZqwrzgeB3p83nZoV27aYai0YiV00Vnya5qdcAgwbR7QCFzHrhN\ngpZO\r\n=Ku85\r\n-----END PGP SIGNATURE-----\r\n","size":108014,"noattachment":false,"key":"/@azure/core-client/-/@azure/core-client-1.0.1-alpha.20210319.1.tgz"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-core-client-1.0.1-alpha.20210319.1.tgz","types":"types/latest/core-client.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Core Service client library for JavaScript (Experimental)\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### Requirements\n\n- [Node.js](https://nodejs.org) version > 8.x\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` folder.\n\n## Next steps\n\nYou can build and run the tests locally by executing `rushx test`. Explore the `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/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-client%2FREADME.png)\n","browser":{"./dist-esm/src/url.js":"./dist-esm/src/url.browser.js","./dist-esm/src/base64.js":"./dist-esm/src/base64.browser.js"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run clean && npm run build:ts && npm run bundle:test:node && npm run unit-test:node && npm run bundle:test:browser && npm run unit-test:browser && npm run integration-test:node && npm run integration-test:browser","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 build:ts && rollup -c 2>&1 && api-extractor run --local && npm run build:types","clean":"rimraf dist dist-* types *.tgz *.log","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","build:ts":"tsc -p .","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test:node && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"npm run build:ts && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"npm run build:ts && npm run bundle:test","build:types":"downlevel-dts types/latest/ types/3.1/","bundle:test":"rollup -c rollup.test.config.js 2>&1","extract-api":"npm run build:ts && api-extractor run --local","check-format":"prettier --list-different \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test:browser && npm run unit-test:browser && npm run integration-test:browser","build:browser":"npm run build:ts && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Skipped.","unit-test:node":"cross-env TS_NODE_FILES=true mocha -r esm -r ts-node/register --timeout 50000 --reporter ../../../common/tools/mocha-multi-reporter.js --colors --exclude \"test/**/*.browser.ts\" \"test/**/*.ts\"","build:test:node":"npm run build:ts && npm run bundle:test:node","execute:samples":"echo skipped","bundle:test:node":"cross-env ONLY_NODE=true rollup -c rollup.test.config.js 2>&1","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","build:test:browser":"npm run build:ts && npm run bundle:test:browser","bundle:test:browser":"cross-env ONLY_BROWSER=true rollup -c rollup.test.config.js 2>&1","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":"","_integrity":"","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.11","description":"Core library for interfacing with AutoRest generated code","directories":{},"sideEffects":false,"_nodeVersion":"14.16.0","dependencies":{"tslib":"^2.0.0","@azure/core-auth":"^1.2.0","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"^1.0.0-alpha","@azure/abort-controller":"^1.0.0","@azure/core-rest-pipeline":"^1.0.0","@azure/core-asynciterator-polyfill":"^1.0.0"},"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","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","typescript":"4.1.2","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","@types/sinon":"^9.0.4","downlevel-dts":"~0.4.0","karma-coverage":"^2.0.0","@azure/core-xml":"^1.0.0-alpha","karma-ie-launcher":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"_npmOperationalInternal":{"tmp":"tmp/core-client_1.0.1-alpha.20210319.1_1616178527237_0.5830841530063342","host":"s3://npm-registry-packages"},"publish_time":1616178527352,"_cnpm_publish_time":1616178527352,"dist-tags":{"dev":"1.10.2-alpha.20260311.2","latest":"1.11.2"}}