Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
@scaleleap/amazon-marketplaces
Advanced tools
A collection of Amazon Marketplace data objects.
This package is written in TypeScript and is fully typed.
This package combines data about Amazon Marketplace (the consumer side of Amazon) into a structured class.
A2EUQ1WTGCTBG2
)CA
)CAD
)Canada
)https://www.amazon.ca/
)import { amazonMarketplaces } from '@scaleleap/amazon-marketplaces'
console.log(
'Amazon Marketplace %s has currency %s.',
amazonMarketplaces.CA.name,
amazonMarketplaces.CA.currency
)
import { amazonMarketplacesList } from '@scaleleap/amazon-marketplaces'
const marketplaceIds = amazonMarketplacesList.map(marketplace => marketplace.id)
import {
findAmazonMarketplace,
findAmazonMarketplaceOrFail,
AmazonMarketplaceAdvertisingCountryCode
} from '@scaleleap/amazon-marketplaces'
// Return value *can* be undefined
const CA = findAmazonMarketplace('countryCode', AmazonMarketplaceAdvertisingCountryCode.CA)
// Function will throw an error if marketplace is not found
// Thus return value is never undefined.
const US = findAmazonMarketplaceOrFail('countryCode', AmazonMarketplaceAdvertisingCountryCode.US)
{
"countryCode": "CA",
"currency": "CAD",
"id": "A2EUQ1WTGCTBG2",
"name": "Canada",
"uri": "https://www.amazon.ca",
"webServiceUri": "https://mws.amazonservices.ca",
"advertising": {
"uri": "https://advertising-api.amazon.com",
"bids": {
"sponsoredBrands": {
"min": 10,
"max": 4900
},
"sponsoredProducts": {
"min": 2,
"max": 100000
}
},
"timeZone": "America/Los_Angeles"
}
}
$ npm i -s @scaleleap/amazon-marketplaces
If you find any other data that can be added, please open an issue and let us know.
Note that this repository uses Conventional Commit style commit messages.
If a new marketplace is added, this should be marked as breaking change and increase the major version, because others may rely on iterating over the available marketplaces.
This project is licensed under the MIT License.
FAQs
A collection of Amazon Marketplace data objects.
The npm package @scaleleap/amazon-marketplaces receives a total of 1,434 weekly downloads. As such, @scaleleap/amazon-marketplaces popularity was classified as popular.
We found that @scaleleap/amazon-marketplaces demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.