@poap-xyz/utils
Advanced tools
Comparing version
export * from './types'; | ||
export { PaginatedResult } from './types/pagination'; | ||
export { nextCursor } from './functions/nextCursor'; |
export * from './types'; | ||
export { PaginatedResult } from './types/pagination'; | ||
export { nextCursor } from './functions/nextCursor'; |
export * from './types'; | ||
export { PaginatedResult } from './types/pagination'; | ||
export { nextCursor } from './functions/nextCursor'; |
@@ -14,5 +14,11 @@ (function (global, factory) { | ||
function nextCursor(length, limit, offset) { | ||
const endIndex = offset + length; | ||
return endIndex < offset + limit ? null : endIndex; | ||
} | ||
exports.PaginatedResult = PaginatedResult; | ||
exports.nextCursor = nextCursor; | ||
})); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@poap-xyz/utils", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Utils module for the poap.js library", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -5,12 +5,13 @@ # @poap-xyz/utils | ||
@poap-xyz/utils is a [short description of the purpose of the package]. | ||
@poap-xyz/utils is a package that contains auxiliar functions. | ||
## Features | ||
- Feature 1 | ||
- Feature 2 | ||
- Feature 3 | ||
- PaginatedResult: A paginated interface that makes it easier to manage paginated results | ||
- SecureFetch: A wrapper for headers that inserts the authentication with POAP. | ||
## Installation | ||
### NPM | ||
```bash | ||
@@ -20,19 +21,15 @@ npm install @poap-xyz/utils | ||
## Usage | ||
### Yarn | ||
\```python | ||
from package_name import module | ||
```bash | ||
yarn add @poap-xyz/utils | ||
``` | ||
# Example usage | ||
result = module.function(parameter) | ||
print(result) | ||
\``` | ||
## Documentation | ||
For more detailed documentation, please visit [link to your documentation]. | ||
For more detailed documentation, please visit [this link](https://documentation.poap.tech/docs). | ||
## Examples | ||
For example scripts and usage, please check the `examples` folder. | ||
For example scripts and usage, please check the [examples](https://github.com/poap-xyz/poap.js/tree/main/examples). | ||
@@ -39,0 +36,0 @@ ## Contributing |
export * from './types'; | ||
export { PaginatedResult } from './types/pagination'; | ||
export { nextCursor } from './functions/nextCursor'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
10917
30.51%27
17.39%135
27.36%41
-6.82%