@azure/core-paging
Advanced tools
Comparing version 1.0.0-preview.1 to 1.0.0-preview.2
@@ -8,3 +8,4 @@ { | ||
}, | ||
"version": "1.0.0-preview.1", | ||
"sdk-type": "client", | ||
"version": "1.0.0-preview.2", | ||
"description": "Core types for paging async iterable iterators", | ||
@@ -41,10 +42,10 @@ "tags": [ | ||
"build:test": "echo skipped", | ||
"check-format": "prettier --list-different --config ../../.prettierrc.json \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", | ||
"check-format": "prettier --list-different --config ../../.prettierrc.json \"src/**/*.ts\" \"*.{js,json}\"", | ||
"clean": "echo skipped", | ||
"format": "prettier --write --config ../../.prettierrc.json \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", | ||
"format": "prettier --write --config ../../.prettierrc.json \"src/**/*.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": "eslint -c ../../.eslintrc.json src test --ext .ts -f node_modules/eslint-detailed-reporter/lib/detailed.js -o template-lintReport.html || exit 0", | ||
"lint:fix": "eslint \"src/**/*.ts\" \"test/**/*.ts\" -c ../../.eslintrc.json --fix --fix-type [problem,suggestion]", | ||
"lint": "eslint -c ../../.eslintrc.json src --ext .ts -f html -o template-lintReport.html || exit 0", | ||
"lint:fix": "eslint \"src/**/*.ts\" -c ../../.eslintrc.json --fix --fix-type [problem,suggestion]", | ||
"pack": "npm pack 2>&1", | ||
@@ -62,11 +63,10 @@ "prebuild": "npm run clean", | ||
"dependencies": { | ||
"@azure/core-asynciterator-polyfill": "^1.0.0-preview.1" | ||
"@azure/core-asynciterator-polyfill": "1.0.0-preview.1" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^8.0.0", | ||
"@typescript-eslint/eslint-plugin": "~1.9.0", | ||
"@typescript-eslint/parser": "^1.7.0", | ||
"eslint": "^5.16.0", | ||
"eslint-config-prettier": "^4.2.0", | ||
"eslint-detailed-reporter": "^0.8.0", | ||
"@typescript-eslint/eslint-plugin": "^2.0.0", | ||
"@typescript-eslint/parser": "^2.0.0", | ||
"eslint": "^6.1.0", | ||
"eslint-config-prettier": "^6.0.0", | ||
"eslint-plugin-no-null": "^1.0.2", | ||
@@ -73,0 +73,0 @@ "eslint-plugin-no-only-tests": "^2.3.0", |
@@ -62,3 +62,3 @@ # Azure Core Paging client library for JS | ||
This project welcomes contributions and suggestions. Most contributions require you to agree to a | ||
This project welcomes contributions and suggestions. Most contributions require you to agree to a | ||
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us | ||
@@ -71,4 +71,6 @@ the rights to use your contribution. For details, visit https://cla.microsoft.com. | ||
If you'd like to contribute to this library, please read the [contributing guide](../../../CONTRIBUTING.md) to learn more about how to build and test the code. | ||
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). | ||
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or | ||
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. |
@@ -1,2 +0,2 @@ | ||
Third Party Notices for ms-rest-js | ||
Third Party Notices for core-paging | ||
@@ -35,2 +35,2 @@ This project incorporates material from the project(s) listed below (collectively, Third Party Code). | ||
========================================= | ||
END OF uuid NOTICES AND INFORMATION | ||
END OF uuid NOTICES AND INFORMATION |
@@ -7,10 +7,10 @@ import "@azure/core-asynciterator-polyfill"; | ||
export interface PageSettings { | ||
/** | ||
* @member {string} [continuationToken] The token that keeps track of where to continue the iterator | ||
*/ | ||
continuationToken?: string; | ||
/** | ||
* @member {number} [pageSize] The size of the page during paged iteration | ||
*/ | ||
maxPageSize?: number; | ||
/** | ||
* @member {string} [continuationToken] The token that keeps track of where to continue the iterator | ||
*/ | ||
continuationToken?: string; | ||
/** | ||
* @member {number} [pageSize] The size of the page during paged iteration | ||
*/ | ||
maxPageSize?: number; | ||
} | ||
@@ -22,17 +22,17 @@ /** | ||
export interface PagedAsyncIterableIterator<T, PageT = never> { | ||
/** | ||
* @member {Promise} [next] The next method, part of the iteration protocol | ||
*/ | ||
next(): Promise<{ | ||
done: boolean; | ||
value: T; | ||
}>; | ||
/** | ||
* @member {Symbol} [asyncIterator] The connection to the async iterator, part of the iteration protocol | ||
*/ | ||
[Symbol.asyncIterator](): PagedAsyncIterableIterator<T, PageT>; | ||
/** | ||
* @member {Function} [byPage] Return an AsyncIterableIterator that works a page at a time | ||
*/ | ||
byPage: (settings?: PageSettings) => AsyncIterableIterator<PageT extends never ? T[] : PageT>; | ||
/** | ||
* @member {Promise} [next] The next method, part of the iteration protocol | ||
*/ | ||
next(): Promise<{ | ||
done?: boolean; | ||
value: T; | ||
}>; | ||
/** | ||
* @member {Symbol} [asyncIterator] The connection to the async iterator, part of the iteration protocol | ||
*/ | ||
[Symbol.asyncIterator](): PagedAsyncIterableIterator<T, PageT>; | ||
/** | ||
* @member {Function} [byPage] Return an AsyncIterableIterator that works a page at a time | ||
*/ | ||
byPage: (settings?: PageSettings) => AsyncIterableIterator<PageT extends never ? T[] : PageT>; | ||
} |
9849
10
7
75
+ Added@azure/core-asynciterator-polyfill@1.0.0-preview.1(transitive)
- Removed@azure/core-asynciterator-polyfill@1.0.2(transitive)