Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@scaleleap/amazon-marketplaces

Package Overview
Dependencies
Maintainers
2
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scaleleap/amazon-marketplaces - npm Package Compare versions

Comparing version 9.0.0 to 10.0.0

12

CHANGELOG.md

@@ -6,2 +6,14 @@ # Changelog

# [10.0.0](https://github.com/ScaleLeap/amazon-marketplaces/compare/v9.0.0...v10.0.0) (2021-01-08)
### Features
* adds advertising to Netherlands marketplace ([4548726](https://github.com/ScaleLeap/amazon-marketplaces/commit/4548726406c83692359f32049aba42ba92cdc02a))
### BREAKING CHANGES
* adds advertising to Netherlands marketplace
# [9.0.0](https://github.com/ScaleLeap/amazon-marketplaces/compare/v8.0.0...v9.0.0) (2020-12-19)

@@ -8,0 +20,0 @@

3

lib/amazon-marketplace.d.ts

@@ -58,4 +58,4 @@ import { AmazonMarketplaceAdvertisingRegion } from './amazon-marketplace-advertising-region';

AU = "AU",
BR = "BR",
CA = "CA",
BR = "BR",
DE = "DE",

@@ -67,2 +67,3 @@ ES = "ES",

MX = "MX",
NL = "NL",
UK = "UK",

@@ -69,0 +70,0 @@ US = "US"

@@ -63,4 +63,4 @@ "use strict";

AmazonMarketplaceAdvertisingCountryCode["AU"] = "AU";
AmazonMarketplaceAdvertisingCountryCode["BR"] = "BR";
AmazonMarketplaceAdvertisingCountryCode["CA"] = "CA";
AmazonMarketplaceAdvertisingCountryCode["BR"] = "BR";
AmazonMarketplaceAdvertisingCountryCode["DE"] = "DE";

@@ -72,2 +72,3 @@ AmazonMarketplaceAdvertisingCountryCode["ES"] = "ES";

AmazonMarketplaceAdvertisingCountryCode["MX"] = "MX";
AmazonMarketplaceAdvertisingCountryCode["NL"] = "NL";
AmazonMarketplaceAdvertisingCountryCode["UK"] = "UK";

@@ -74,0 +75,0 @@ AmazonMarketplaceAdvertisingCountryCode["US"] = "US";

@@ -5,2 +5,3 @@ "use strict";

const amazon_marketplace_1 = require("../amazon-marketplace");
const european_advertising_factory_1 = require("../european-advertising-factory");
const de_1 = require("./de");

@@ -14,3 +15,4 @@ exports.NL = new amazon_marketplace_1.AmazonMarketplace({

webServiceUri: de_1.DE.webServiceUri,
advertising: european_advertising_factory_1.europeanAdvertisingFactory(amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.NL),
});
//# sourceMappingURL=nl.js.map

@@ -11,3 +11,10 @@ {

"homepage": "https://github.com/ScaleLeap/amazon-marketplaces#readme",
"version": "9.0.0",
"repository": {
"type": "git",
"url": "git@github.com:ScaleLeap/amazon-marketplaces.git"
},
"bugs": {
"url": "https://github.com/ScaleLeap/amazon-marketplaces/issues"
},
"version": "10.0.0",
"main": "lib/index.js",

@@ -29,6 +36,6 @@ "scripts": {

"devDependencies": {
"@scaleleap/utils": "1.8.23",
"@types/jest": "26.0.15",
"@scaleleap/utils": "1.8.61",
"@types/jest": "26.0.19",
"@types/node": "13.13.4",
"danger": "10.5.4",
"danger": "10.6.0",
"jest": "26.6.3",

@@ -38,3 +45,3 @@ "rimraf": "3.0.2",

"tsconfigs": "4.0.2",
"typedoc": "0.19.2",
"typedoc": "0.20.13",
"typescript": "4.1.3"

@@ -41,0 +48,0 @@ },

@@ -61,4 +61,4 @@ import { AmazonMarketplaceAdvertisingRegion } from './amazon-marketplace-advertising-region'

AU = 'AU',
BR = 'BR',
CA = 'CA',
BR = 'BR',
DE = 'DE',

@@ -70,2 +70,3 @@ ES = 'ES',

MX = 'MX',
NL = 'NL',
UK = 'UK', // Not a real country code, but such is life. See https://github.com/ScaleLeap/amazon-marketplaces/issues/122

@@ -72,0 +73,0 @@ US = 'US',

import {
AmazonMarketplace,
AmazonMarketplaceAdvertisingCountryCode,
AmazonMarketplaceAdvertisingCurrency,
AmazonMarketplaceCountryCode,
} from '../amazon-marketplace'
import { europeanAdvertisingFactory } from '../european-advertising-factory'
import { DE } from './de'

@@ -15,2 +17,3 @@

webServiceUri: DE.webServiceUri,
advertising: europeanAdvertisingFactory(AmazonMarketplaceAdvertisingCountryCode.NL),
})

@@ -11,3 +11,6 @@ import ensure from '@lavadrop/ensure'

*/
export function findAmazonMarketplace<K extends Key>(key: K, value: AmazonMarketplace[K]) {
export function findAmazonMarketplace<K extends Key>(
key: K,
value: AmazonMarketplace[K],
): AmazonMarketplace | undefined {
return amazonMarketplacesList.find((marketplace) => marketplace[key] === value)

@@ -21,3 +24,6 @@ }

*/
export function findAmazonMarketplaceOrFail<K extends Key>(key: K, value: AmazonMarketplace[K]) {
export function findAmazonMarketplaceOrFail<K extends Key>(
key: K,
value: AmazonMarketplace[K],
): AmazonMarketplace {
return ensure(

@@ -24,0 +30,0 @@ findAmazonMarketplace(key, value),

import { readdirSync } from 'fs'
import { join } from 'path'
import path from 'path'
import { amazonMarketplaces } from '../src/marketplaces'
const countryCodes = readdirSync(join(__dirname, '../src/marketplaces'))
const countryCodes = readdirSync(path.join(__dirname, '../src/marketplaces'))
.map((f) => f.split('.')[0])

@@ -8,0 +8,0 @@ .filter((f) => f.match(/^[a-z]{2}$/))

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

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