Socket
Socket
Sign inDemoInstall

@scaleleap/amazon-marketplaces

Package Overview
Dependencies
1
Maintainers
2
Versions
49
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 14.0.0 to 15.0.0

13

CHANGELOG.md

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

# [15.0.0](https://github.com/ScaleLeap/amazon-marketplaces/compare/v14.0.0...v15.0.0) (2022-03-09)
### Features
* add Turkey to advertising ([#492](https://github.com/ScaleLeap/amazon-marketplaces/issues/492)) ([92a4d8c](https://github.com/ScaleLeap/amazon-marketplaces/commit/92a4d8c3239fc7af3da7494fb5244fce7983ab9b))
### BREAKING CHANGES
* - add Turkey to advertising
- update bid constraints by marketplace: IN, PL, SE
# [14.0.0](https://github.com/ScaleLeap/amazon-marketplaces/compare/v13.0.0...v14.0.0) (2022-01-11)

@@ -8,0 +21,0 @@

2

lib/amazon-marketplace.d.ts

@@ -72,2 +72,3 @@ import { AmazonMarketplaceAdvertisingRegion } from './amazon-marketplace-advertising-region';

SG = "SG",
TR = "TR",
UK = "UK",

@@ -88,2 +89,3 @@ US = "US"

EUROPE_AMSTERDAM = "Europe/Amsterdam",
EUROPE_ISTANBUL = "Europe/Istanbul",
EUROPE_LONDON = "Europe/London",

@@ -90,0 +92,0 @@ EUROPE_PARIS = "Europe/Paris",

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

AmazonMarketplaceAdvertisingCountryCode["SG"] = "SG";
AmazonMarketplaceAdvertisingCountryCode["TR"] = "TR";
AmazonMarketplaceAdvertisingCountryCode["UK"] = "UK";

@@ -93,2 +94,3 @@ AmazonMarketplaceAdvertisingCountryCode["US"] = "US";

AmazonMarketplaceAdvertisingTimeZone["EUROPE_AMSTERDAM"] = "Europe/Amsterdam";
AmazonMarketplaceAdvertisingTimeZone["EUROPE_ISTANBUL"] = "Europe/Istanbul";
AmazonMarketplaceAdvertisingTimeZone["EUROPE_LONDON"] = "Europe/London";

@@ -95,0 +97,0 @@ AmazonMarketplaceAdvertisingTimeZone["EUROPE_PARIS"] = "Europe/Paris";

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k;

8

lib/marketplaces/in.js

@@ -21,8 +21,8 @@ "use strict";

sponsoredBrands: {
min: 1,
max: 2000,
min: 100,
max: 200000,
},
sponsoredProducts: {
min: 1,
max: 5000,
min: 100,
max: 500000,
},

@@ -29,0 +29,0 @@ },

@@ -22,3 +22,3 @@ "use strict";

sponsoredBrands: {
min: 2,
min: 20,
max: 20000,

@@ -25,0 +25,0 @@ },

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

sponsoredBrands: {
min: 900,
max: 940000000,
min: 90,
max: 50000,
},

@@ -26,0 +26,0 @@ sponsoredProducts: {

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

const amazon_marketplace_1 = require("../amazon-marketplace");
const marketplace_advertising_regions_1 = require("../marketplace-advertising-regions");
const selling_partner_api_regions_1 = require("../selling-partner-api-regions");

@@ -16,2 +17,17 @@ exports.TR = new amazon_marketplace_1.AmazonMarketplace({

webServiceUri: 'https://mws-eu.amazonservices.com',
advertising: {
countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.TR,
region: marketplace_advertising_regions_1.marketplaceAdvertisingRegions.EU,
bids: {
sponsoredBrands: {
min: 20,
max: 20000,
},
sponsoredProducts: {
min: 5,
max: 250000,
},
},
timeZone: amazon_marketplace_1.AmazonMarketplaceAdvertisingTimeZone.EUROPE_ISTANBUL,
},
sellingPartner: {

@@ -18,0 +34,0 @@ region: selling_partner_api_regions_1.sellingPartnerRegions.EU,

@@ -18,3 +18,3 @@ {

},
"version": "14.0.0",
"version": "15.0.0",
"main": "lib/index.js",

@@ -37,11 +37,11 @@ "scripts": {

"@scaleleap/utils": "1.9.58",
"@types/jest": "27.0.3",
"@types/node": "14.18.3",
"danger": "10.8.0",
"jest": "27.4.3",
"@types/jest": "27.4.1",
"@types/node": "16.11.26",
"danger": "11.0.2",
"jest": "27.5.1",
"rimraf": "3.0.2",
"ts-jest": "27.1.2",
"ts-jest": "27.1.3",
"tsconfigs": "4.0.2",
"typedoc": "0.22.10",
"typescript": "4.5.4"
"typedoc": "0.22.13",
"typescript": "4.6.2"
},

@@ -48,0 +48,0 @@ "keywords": [

@@ -75,2 +75,3 @@ import { AmazonMarketplaceAdvertisingRegion } from './amazon-marketplace-advertising-region'

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

@@ -92,2 +93,3 @@ US = 'US',

EUROPE_AMSTERDAM = 'Europe/Amsterdam',
EUROPE_ISTANBUL = 'Europe/Istanbul',
EUROPE_LONDON = 'Europe/London',

@@ -94,0 +96,0 @@ EUROPE_PARIS = 'Europe/Paris',

@@ -25,8 +25,8 @@ import {

sponsoredBrands: {
min: 1,
max: 2000,
min: 100,
max: 200000,
},
sponsoredProducts: {
min: 1,
max: 5000,
min: 100,
max: 500000,
},

@@ -33,0 +33,0 @@ },

@@ -26,3 +26,3 @@ import {

sponsoredBrands: {
min: 2,
min: 20,
max: 20000,

@@ -29,0 +29,0 @@ },

@@ -26,4 +26,4 @@ import {

sponsoredBrands: {
min: 900,
max: 940000000,
min: 90,
max: 50000,
},

@@ -30,0 +30,0 @@ sponsoredProducts: {

import {
AmazonMarketplace,
AmazonMarketplaceAdvertisingCountryCode,
AmazonMarketplaceAdvertisingCurrency,
AmazonMarketplaceAdvertisingTimeZone,
AmazonMarketplaceCountryCode,
} from '../amazon-marketplace'
import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions'
import { sellingPartnerRegions } from '../selling-partner-api-regions'

@@ -17,2 +20,17 @@

webServiceUri: 'https://mws-eu.amazonservices.com',
advertising: {
countryCode: AmazonMarketplaceAdvertisingCountryCode.TR,
region: marketplaceAdvertisingRegions.EU,
bids: {
sponsoredBrands: {
min: 20,
max: 20000,
},
sponsoredProducts: {
min: 5,
max: 250000,
},
},
timeZone: AmazonMarketplaceAdvertisingTimeZone.EUROPE_ISTANBUL,
},
sellingPartner: {

@@ -19,0 +37,0 @@ region: sellingPartnerRegions.EU,

@@ -9,3 +9,3 @@ import { amazonMarketplaces } from '../src/marketplaces'

describe('utils', () => {
const { CA, TR } = amazonMarketplaces
const { CA, EG } = amazonMarketplaces

@@ -73,5 +73,5 @@ describe(`${findAmazonMarketplace.name}`, () => {

expect(() => assertMarketplaceHasAdvertising(TR)).toThrow(/does not have advertising/)
expect(() => assertMarketplaceHasAdvertising(EG)).toThrow(/does not have advertising/)
})
})
})

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

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc