@azure/core-paging 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/LICENSE +17 -17
- package/README.md +2 -2
- package/package.json +1 -1
- package/types/corePaging.d.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
+
## 1.1.1 (2020-04-02)
|
|
4
|
+
|
|
5
|
+
- The generic argument `PageT` now has default type of `T[]`. (PR #7569)
|
|
6
|
+
|
|
3
7
|
## 1.1.0 (2020-02-28)
|
|
4
8
|
|
|
5
9
|
- Added new generic argument to `PagedAsyncIterableIterator` for custom `PageSettings` for services that use client-driven paging or other paging patterns.
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Copyright (c) 2020 Microsoft
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ Example of building with the types:
|
|
|
26
26
|
```typescript
|
|
27
27
|
public listSecrets(
|
|
28
28
|
options: ListSecretsOptions = {}
|
|
29
|
-
): PagedAsyncIterableIterator<SecretAttributes
|
|
29
|
+
): PagedAsyncIterableIterator<SecretAttributes> {
|
|
30
30
|
const iter = this.listSecretsAll(options);
|
|
31
31
|
return {
|
|
32
32
|
async next() { return iter.next(); },
|
|
@@ -64,7 +64,7 @@ When you submit a pull request, a CLA-bot will automatically determine whether y
|
|
|
64
64
|
a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
|
|
65
65
|
provided by the bot. You will only need to do this once across all repos using our CLA.
|
|
66
66
|
|
|
67
|
-
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/tree/
|
|
67
|
+
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/tree/5b8bf138e3733e4e6ca8b2ed113e7315645d601c/CONTRIBUTING.md) to learn more about how to build and test the code.
|
|
68
68
|
|
|
69
69
|
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
|
|
70
70
|
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
|
package/package.json
CHANGED
package/types/corePaging.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export interface PageSettings {
|
|
|
17
17
|
* @interface
|
|
18
18
|
* An interface that allows async iterable iteration both to completion and by page.
|
|
19
19
|
*/
|
|
20
|
-
export interface PagedAsyncIterableIterator<T, PageT =
|
|
20
|
+
export interface PagedAsyncIterableIterator<T, PageT = T[], PageSettingsT = PageSettings> {
|
|
21
21
|
/**
|
|
22
22
|
* @member {Promise} [next] The next method, part of the iteration protocol
|
|
23
23
|
*/
|
|
@@ -32,5 +32,5 @@ export interface PagedAsyncIterableIterator<T, PageT = never, PageSettingsT = Pa
|
|
|
32
32
|
/**
|
|
33
33
|
* @member {Function} [byPage] Return an AsyncIterableIterator that works a page at a time
|
|
34
34
|
*/
|
|
35
|
-
byPage: (settings?: PageSettingsT) => AsyncIterableIterator<PageT
|
|
35
|
+
byPage: (settings?: PageSettingsT) => AsyncIterableIterator<PageT>;
|
|
36
36
|
}
|