@salling-group/stores
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "@salling-group/stores", | ||
"version": "1.0.1", | ||
"description": "An SDK for Salling Group's Stores API ", | ||
@@ -19,3 +18,4 @@ "main": "index.js", | ||
"eslint": "^6.0.1" | ||
} | ||
}, | ||
"version": "1.0.2" | ||
} |
@@ -13,3 +13,3 @@ # Salling Group Stores SDK | ||
The following example gets names of all Netto stores in the ZIP code 8200. | ||
You will need to get a JWT secret or Bearer token with access to the Stores API from the [developer portal](https://developer.sallinggroup.com/). | ||
You will need to get a JWT secret or Bearer token with access to the Stores API from the [developer portal](https://developer.sallinggroup.com/). | ||
```js | ||
@@ -31,3 +31,3 @@ const Stores = require('@salling-group/stores'); | ||
traverser.get().then((page) => console.log(page)); | ||
``` | ||
``` | ||
This prints: | ||
@@ -50,3 +50,3 @@ ```json | ||
|`token`|`String`|If `type` is `'bearer'`.|The token associared with the bearer token credentials.| | ||
|`email`|`String`|If `type` is `'jwt'`.|The email associated with the JWT credentials.| | ||
|`issuer`|`String`|If `type` is `'jwt'`.|The issuer associated with the JWT credentials.| | ||
|`secret`|`String`|If `type` is `'jwt'`.|The secret associated with the JWT credentials.| | ||
@@ -112,4 +112,4 @@ | ||
### `query(params = {})` | ||
This queries the Stores API directly and returns a [Traverser](https://www.npmjs.com/package/@salling-group/pagination-traverser). | ||
This queries the Stores API directly and returns a [Traverser](https://www.npmjs.com/package/@salling-group/pagination-traverser). | ||
`params` is the search parameters. | ||
This is mostly used internally. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
44923