{"name":"@smithy/core","version":"2.5.7","author":{"url":"https://smithy.io","name":"AWS Smithy Team"},"license":"Apache-2.0","_id":"@smithy/core@2.5.7","homepage":"https://github.com/awslabs/smithy-typescript/tree/main/packages/core","bugs":{"url":"https://github.com/awslabs/smithy-typescript/issues"},"dist":{"shasum":"b545649071905f064cb0407102f3b9159246f8d9","tarball":"http://registry-npm.ywwl.com/@smithy/core/download/@smithy/core-2.5.7.tgz","fileCount":122,"integrity":"sha512-8olpW6mKCa0v+ibCjoCzgZHQx1SQmZuW/WkrdZo73wiTprTH6qhmskT60QLFdT9DRa5mXxjz89kQPZ7ZSsoqqg==","signatures":[{"sig":"MEUCIA8ICn0G2mX61v7TbaK43DI4fJ7IlFXoU+qRyvVdI6THAiEA4lwBwD00uXtKlXOnFm2SOOU2/Z1VL3sla5nIb4QzRUM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":138079,"size":30442,"noattachment":false,"key":"/@smithy/core/-/@smithy/core-2.5.7.tgz"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","engines":{"node":">=16.0.0"},"exports":{".":{"node":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","import":"./dist-es/index.js","module":"./dist-es/index.js","require":"./dist-cjs/index.js"},"./cbor":{"node":"./dist-cjs/submodules/cbor/index.js","types":"./dist-types/submodules/cbor/index.d.ts","import":"./dist-es/submodules/cbor/index.js","module":"./dist-es/submodules/cbor/index.js","require":"./dist-cjs/submodules/cbor/index.js"},"./protocols":{"node":"./dist-cjs/submodules/protocols/index.js","types":"./dist-types/submodules/protocols/index.d.ts","import":"./dist-es/submodules/protocols/index.js","module":"./dist-es/submodules/protocols/index.js","require":"./dist-cjs/submodules/protocols/index.js"},"./package.json":{"node":"./package.json","import":"./package.json","module":"./package.json","require":"./package.json"}},"gitHead":"1f6565ea846dd8c5988363f12cf41074b5131e0a","scripts":{"lint":"npx eslint -c ../../.eslintrc.js \"src/**/*.ts\" --fix && node ./scripts/lint","test":"yarn g:vitest run","build":"yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0","format":"prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"","build:es":"yarn g:tsc -p tsconfig.es.json","build:cjs":"node ../../scripts/inline core","test:watch":"yarn g:vitest watch","build:types":"yarn g:tsc -p tsconfig.types.json","stage-release":"rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz","test:cbor:perf":"node ./scripts/cbor-perf.mjs","build:types:downlevel":"rimraf dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4"},"typedoc":{"entryPoint":"src/index.ts"},"_npmUser":{"name":"smithy-team","email":"aws-smithy-team+npm@amazon.com"},"repository":{"url":"git+https://github.com/awslabs/smithy-typescript.git","type":"git","directory":"packages/core"},"_npmVersion":"10.8.2","description":"[![NPM version](https://img.shields.io/npm/v/@smithy/core/latest.svg)](https://www.npmjs.com/package/@smithy/core) [![NPM downloads](https://img.shields.io/npm/dm/@smithy/core.svg)](https://www.npmjs.com/package/@smithy/core)","directories":{},"_nodeVersion":"18.20.5","dependencies":{"tslib":"^2.6.2","@smithy/types":"^3.7.2","@smithy/util-utf8":"^3.0.0","@smithy/util-stream":"^3.3.4","@smithy/protocol-http":"^4.1.8","@smithy/util-middleware":"^3.0.11","@smithy/middleware-serde":"^3.0.11","@smithy/util-body-length-browser":"^3.0.0"},"publishConfig":{"directory":".release/package"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"3.0.2","typedoc":"0.23.23","@types/node":"^16.18.96","json-bigint":"^1.0.0","concurrently":"7.0.0","downlevel-dts":"0.10.1"},"_npmOperationalInternal":{"tmp":"tmp/core_2.5.7_1735858318376_0.5841115257263152","host":"s3://npm-registry-packages-npm-production"},"readme":"# @smithy/core\n\n[![NPM version](https://img.shields.io/npm/v/@smithy/core/latest.svg)](https://www.npmjs.com/package/@smithy/core)\n[![NPM downloads](https://img.shields.io/npm/dm/@smithy/core.svg)](https://www.npmjs.com/package/@smithy/core)\n\n> An internal package. You probably shouldn't use this package, at least directly.\n\nThis package provides common or core functionality for generic Smithy clients.\n\nYou do not need to explicitly install this package, since it will be installed during code generation if used.\n\n## Development of `@smithy/core` submodules\n\nCore submodules are organized for distribution via the `package.json` `exports` field.\n\n`exports` is supported by default by the latest Node.js, webpack, and esbuild. For react-native, it can be\nenabled via instructions found at [reactnative.dev/blog](https://reactnative.dev/blog/2023/06/21/package-exports-support), but we also provide a compatibility redirect.\n\nThink of `@smithy/core` as a mono-package within the monorepo.\nIt preserves the benefits of modularization, for example to optimize Node.js initialization speed,\nwhile making it easier to have a consistent version of core dependencies, reducing package sprawl when\ninstalling a Smithy runtime client.\n\n### Guide for submodules\n\n- Each `index.ts` file corresponding to the pattern `./src/submodules/<MODULE_NAME>/index.ts` will be\n  published as a separate `dist-cjs` bundled submodule index using the `Inliner.js` build script.\n- create a folder as `./src/submodules/<SUBMODULE>` including an `index.ts` file and a `README.md` file.\n  - The linter will throw an error on missing submodule metadata in `package.json` and the various `tsconfig.json` files, but it will automatically fix them if possible.\n- a submodule is equivalent to a standalone `@smithy/<pkg>` package in that importing it in Node.js will resolve a separate bundle.\n- submodules may not relatively import files from other submodules. Instead, directly use the `@scope/pkg/submodule` name as the import.\n  - The linter will check for this and throw an error.\n- To the extent possible, correctly declaring submodule metadata is validated by the linter in `@smithy/core`.\n  The linter runs during `yarn build` and also as `yarn lint`.\n\n### When should I create an `@smithy/core/submodule` vs. `@smithy/new-package`?\n\nKeep in mind that the core package is installed by all downstream clients.\n\nIf the component functionality is upstream of multiple clients, it is\na good candidate for a core submodule. For example, if `middleware-retry` had been written\nafter the support for submodules was added, it would have been a submodule.\n\nIf the component's functionality is downstream of a client (rare), or only expected to be used by a very small\nsubset of clients, it could be written as a standalone package.\n","publish_time":1735858318589,"maintainers":[{"name":"trivikr-aws","email":"trivikr@amazon.com"},{"name":"smithy-team","email":"aws-javascript-sdk-team+npm@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js-automation@amazon.com"}],"_cnpm_publish_time":1735858318589,"dist-tags":{"latest":"3.41.1"}}