@bizon/amazon-ids
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -12,3 +12,3 @@ const memoize = require('memoizee') | ||
exports.getMarketplaceByCode = memoize(code => { | ||
return marketplaces.find(marketplace => marketplace.code === code) | ||
return marketplaces.find(marketplace => marketplace.code === code.toLowerCase()) | ||
}) | ||
@@ -15,0 +15,0 @@ |
{ | ||
"name": "@bizon/amazon-ids", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Collection of Amazon identifiers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -49,3 +49,3 @@ # amazon-ids [![CircleCI](https://circleci.com/gh/bizon/amazon-ids.svg?style=svg)](https://circleci.com/gh/bizon/amazon-ids) | ||
console.log(getMarketplaceByCode('mx')) | ||
console.log(getMarketplaceByCode('MX')) | ||
@@ -63,3 +63,3 @@ /* | ||
### `getMarketplaceById(id)` | ||
### `getMarketplaceByDomain(domain)` | ||
@@ -66,0 +66,0 @@ ```js |
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
6574