New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@bss-sbc/shopify-rest-api-rate-limiter

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bss-sbc/shopify-rest-api-rate-limiter - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

package.json
{
"name": "@bss-sbc/shopify-rest-api-rate-limiter",
"version": "1.0.5",
"version": "1.0.6",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -19,1 +19,31 @@ # Shopify REST API Rate Limiter

### Example
```javascript
// To bulk initialize
const shops = [
{ id: 1, domain: 'dev-mida-dean.myshopify.com' },
{ id: 2, domain: 'dev-mida-store.myshopify.com' },
]
const intialized = BucketManager.initializeAll(shops);
// To initialize
BucketManager.initializeOne({
id: 1,
domain: 'dev-mida-dean.myshopify.com',
});
// To get specific bucket
const bucket = BucketManager.get('dev-mida-dean.myshopify.com');
// To clean up specific bucket
BucketManager.clear('dev-mida-dean.myshopify.com');
// Auto initialize bucket,
// using safeFetch
const response = await safeFetch(domain, url, params);
```
### Roadmap
Because of numbers of `microservices`, it is difficult to listen to `app/uninstalled` webhook event. So, auto clear bucket is necessary
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc