You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**For more advanced needs**, please check the examples.
47
47
48
-
## Pagination
48
+
###Pagination
49
49
50
50
We included some pagination helpers for the methods supporting the feature. Let's take `listNamespaces()` (Registry product) as an example:
51
51
@@ -67,42 +67,21 @@ for await (const page of api.listNamespaces()) {
67
67
}
68
68
```
69
69
70
-
## Types
70
+
###Types
71
71
72
72
The project is coded with Typescript, so don't hesitate to take advantage of it.
73
73
74
74
1. All **types of a product** are stored in the `Product.version` namespace. For instance, the `Image` interface of Registry v1 can be accessed with `Registry.v1.Image`.
75
75
76
76
2. We export **errors** in the namespace `Errors`, allowing you to differentiate the cases (e.g. `Errors.PermissionsDeniedError`).
77
77
78
-
## Dependencies
78
+
## Notes
79
79
80
-
This SDK is based on the [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) API and uses `Request`, `Response` & `Headers` interfaces. Those interfaces are native in modern browsers, node >=18 & [deno](https://deno.land/) environments.
81
-
82
-
For `node` < 18 & `React Native` environments, the commonJS build requires [cross-fetch](https://www.npmjs.com/package/cross-fetch) package, it is listed in `dependencies` but not used in esm build.
83
-
84
-
**Troubleshooting**
85
-
86
-
In node environment, the commonJS module defined in `dist/index.cjs` entry file is used by default, thanks to the "main" `package.json` field.
87
-
88
-
If you want to use the ES module from `dist/index.js` with node < 18 & `React Native` environments, we recommend you to explicitly import [cross-fetch](https://www.npmjs.com/package/cross-fetch) polyfill:
This repository is at its early stage and is still in active development.
104
83
If you are looking for a way to contribute please read [CONTRIBUTING.md](./CONTRIBUTING.md).
105
84
106
-
## Reach us
85
+
###Reach us
107
86
108
87
We love feedback. Feel free to reach us on [Scaleway Slack community](https://slack.scaleway.com/), we are waiting for you on [#opensource](https://scaleway-community.slack.com/app_redirect?channel=opensource).
0 commit comments