{"name":"@azure/core-paging","version":"1.6.1","keywords":["microsoft","clientruntime","azure","cloud"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/core-paging@1.6.1","homepage":"https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/core-paging/README.md","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"7aba429374effc95b8801de3e0eef4a4ba0a2457","tarball":"http://registry-npm.ywwl.com/@azure/core-paging/download/@azure/core-paging-1.6.1.tgz","fileCount":57,"integrity":"sha512-3tKIQXSU3mlN+ITz0m2pXLnKK3oQ6/EVcW8ud011Iq+M0rx6Wnm7NUEpoMeOAEedeKlPtemrQzO6YWoDR71O5w==","signatures":[{"sig":"MEUCIARgNVb7mPKrdn1cjktGRf/VYNJfHRWbhv50srZeXR92AiEApOZg+kmYLc7iOO2t77aDV+F+h965hM5t4eFIXVJFFFo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":70427,"size":8486,"noattachment":false,"key":"/@azure/core-paging/-/@azure/core-paging-1.6.1.tgz"},"main":"./dist/commonjs/index.js","tags":["microsoft","clientruntime"],"tshy":{"exports":{".":"./src/index.ts","./package.json":"./package.json"},"dialects":["esm","commonjs"],"selfLink":false,"esmDialects":["browser","react-native"]},"type":"module","_from":"file:/mnt/vss/_work/1/packages/azure-core-paging/azure-core-paging-1.6.1.tgz","types":"./dist/commonjs/index.d.ts","browser":"./dist/browser/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"browser":{"types":"./dist/browser/index.d.ts","default":"./dist/browser/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"},"react-native":{"types":"./dist/react-native/index.d.ts","default":"./dist/react-native/index.js"}},"./package.json":"./package.json"},"private":false,"scripts":{"lint":"eslint package.json src --ext .ts --ext .cts --ext .mts","pack":"npm pack 2>&1","test":"npm run clean && tshy && npm run unit-test:node && dev-tool run build-test && npm run unit-test:browser && npm run integration-test","build":"npm run clean && tshy && api-extractor run --local","clean":"rimraf --glob dist dist-* temp *.tgz types *.log","format":"dev-tool run vendored 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:fix":"eslint package.json src --ext .ts --ext .cts --ext .mts --fix --fix-type [problem,suggestion]","test:node":"npm run clean && tshy && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:test":"npm run clean && tshy && dev-tool run build-test","extract-api":"tshy && api-extractor run --local","check-format":"dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,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":"dev-tool run test:vitest --no-test-proxy","execute:samples":"echo skipped","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"npm run build:test && dev-tool run test:vitest --no-test-proxy --browser","integration-test:node":"echo skipped","integration-test:browser":"echo skipped"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-core-paging/azure-core-paging-1.6.1.tgz","//metadata":{"migrationDate":"2023-03-08T18:36:03.000Z","sampleConfiguration":{"skipFolder":true,"productName":"Azure SDK Core","productSlugs":["azure"],"disableDocsMs":true}},"_integrity":"sha512-3tKIQXSU3mlN+ITz0m2pXLnKK3oQ6/EVcW8ud011Iq+M0rx6Wnm7NUEpoMeOAEedeKlPtemrQzO6YWoDR71O5w==","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"10.2.4","description":"Core types for paging async iterable iterators","directories":{},"sideEffects":true,"_nodeVersion":"18.19.1","dependencies":{"tslib":"^2.6.2"},"_hasShrinkwrap":false,"devDependencies":{"tshy":"^1.11.1","eslint":"^8.56.0","rimraf":"^5.0.5","vitest":"^1.3.1","prettier":"^3.2.5","playwright":"^1.41.2","typescript":"~5.3.3","@types/node":"^18.0.0","@azure/dev-tool":"^1.0.0","@vitest/browser":"^1.3.1","@microsoft/api-extractor":"^7.40.3","@vitest/coverage-istanbul":"^1.3.1","@azure/eslint-plugin-azure-sdk":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/core-paging_1.6.1_1710970586485_0.481231203532291","host":"s3://npm-registry-packages"},"readme":"# Azure Core Paging client library for JavaScript\n\nThis library provides core types for paging async iterable iterators.\n\n## Getting started\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/ms-rest-js/blob/master/docs/architectureOverview.md).\n\n## Examples\n\nExample of building with the types:\n\n```typescript snippet:ReadmePagingSample\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\n\nfunction listSecrets(\n  options: ListSecretsOptions = {},\n): PagedAsyncIterableIterator<SecretAttributes> {\n  const iter = listSecretsAll(options);\n  return {\n    async next() {\n      return iter.next();\n    },\n    [Symbol.asyncIterator]() {\n      return this;\n    },\n    byPage: (settings: PageSettings = {}) => listSecretsPage(settings, options),\n  };\n}\n\nfor await (const page of listSecrets().byPage({ maxPageSize: 2 })) {\n  for (const secret of page) {\n    console.log(\"secret: \", secret);\n  }\n}\n```\n\nAnd using the types:\n\n```\n  for await (let page of client.listSecrets().byPage({ maxPageSize: 2 })) {\n    for (const secret of page) {\n      console.log(\"secret: \", secret);\n    }\n  }\n```\n\n## Next steps\n\nTry out this package in your application when dealing with async iterable iterators and provide feedback!\n\n## Troubleshooting\n\nLog an issue at https://github.com/Azure/azure-sdk-for-js/issues\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","publish_time":1710970586654,"maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"_cnpm_publish_time":1710970586654,"dist-tags":{"dev":"1.6.3-alpha.20260311.2","latest":"1.7.0"}}