@financial-times/ads-permutive
Advanced tools
Comparing version 5.0.0-beta.1 to 5.0.0-beta.2
var env = { | ||
PERMUTIVE_PUBLIC_API_KEY: "b2b3b748-e1f6-4bd5-b2f2-26debc8075a3", | ||
PERMUTIVE_PUBLIC_ID: "e1c3fd73-dd41-4abd-b80b-4278d52bf7aa" | ||
PERMUTIVE_PUBLIC_API_KEY: 'b2b3b748-e1f6-4bd5-b2f2-26debc8075a3', | ||
PERMUTIVE_PUBLIC_ID: 'e1c3fd73-dd41-4abd-b80b-4278d52bf7aa' | ||
}; | ||
@@ -186,30 +186,30 @@ | ||
targeting: [{ | ||
key: "device_spoor_id", | ||
key: 'device_spoor_id', | ||
value: String | ||
}, { | ||
key: "guid", | ||
key: 'guid', | ||
value: String | ||
}, { | ||
key: "05", | ||
key: '05', | ||
value: String | ||
}, { | ||
key: "06", | ||
key: '06', | ||
value: String | ||
}, { | ||
key: "07", | ||
key: '07', | ||
value: String | ||
}, { | ||
key: "slv", | ||
key: 'slv', | ||
value: String | ||
}, { | ||
key: "loggedIn", | ||
key: 'loggedIn', | ||
value: Boolean | ||
}, { | ||
key: "followedConcepts", | ||
key: 'followedConcepts', | ||
value: Array | ||
}, { | ||
key: "gender", | ||
key: 'gender', | ||
value: String | ||
}, { | ||
key: "indb2b", | ||
key: 'indb2b', | ||
value: String | ||
@@ -222,15 +222,15 @@ }] | ||
targeting: [{ | ||
key: "auuid", | ||
key: 'auuid', | ||
value: String | ||
}, { | ||
key: "title", | ||
key: 'title', | ||
value: String | ||
}, { | ||
key: "ca", | ||
key: 'ca', | ||
value: String | ||
}, { | ||
key: "topic", | ||
key: 'topic', | ||
value: String | ||
}, { | ||
key: "ad", | ||
key: 'ad', | ||
value: String | ||
@@ -241,15 +241,15 @@ }] | ||
attributes: [{ | ||
key: "brand", | ||
key: 'brand', | ||
value: String | ||
}, { | ||
key: "genre", | ||
key: 'genre', | ||
value: Array | ||
}, { | ||
key: "organisations", | ||
key: 'organisations', | ||
value: Array | ||
}, { | ||
key: "people", | ||
key: 'people', | ||
value: Array | ||
}, { | ||
key: "authors", | ||
key: 'authors', | ||
value: Array | ||
@@ -360,10 +360,10 @@ }] | ||
const getByKeyInDFPTargeting = getByKeyInAdsArrayV1(dfpTargeting); | ||
const industry = getByKeyInDFPTargeting("05"); | ||
const responsibility = getByKeyInDFPTargeting("06"); | ||
const position = getByKeyInDFPTargeting("07"); | ||
const subscriptionLevel = getByKeyInDFPTargeting("slv"); | ||
const loggedIn = getByKeyInDFPTargeting("loggedIn"); | ||
const followedConcepts = getByKeyInDFPTargeting("followedConcepts"); | ||
const gender = getByKeyInDFPTargeting("gender"); | ||
const indb2b = getByKeyInDFPTargeting("indb2b"); | ||
const industry = getByKeyInDFPTargeting('05'); | ||
const responsibility = getByKeyInDFPTargeting('06'); | ||
const position = getByKeyInDFPTargeting('07'); | ||
const subscriptionLevel = getByKeyInDFPTargeting('slv'); | ||
const loggedIn = getByKeyInDFPTargeting('loggedIn'); | ||
const followedConcepts = getByKeyInDFPTargeting('followedConcepts'); | ||
const gender = getByKeyInDFPTargeting('gender'); | ||
const indb2b = getByKeyInDFPTargeting('indb2b'); | ||
eventData.user = { ...(industry && { | ||
@@ -403,7 +403,7 @@ industry | ||
const getByKeyInDFPTargeting = getByKeyInAdsArrayV1(dfpTargeting); | ||
const id = getByKeyInDFPTargeting("auuid"); | ||
const title = getByKeyInDFPTargeting("title"); | ||
const categories = getByKeyInDFPTargeting("ca"); | ||
const topics = getByKeyInDFPTargeting("topic"); | ||
const admants = getByKeyInDFPTargeting("ad"); | ||
const id = getByKeyInDFPTargeting('auuid'); | ||
const title = getByKeyInDFPTargeting('title'); | ||
const categories = getByKeyInDFPTargeting('ca'); | ||
const topics = getByKeyInDFPTargeting('topic'); | ||
const admants = getByKeyInDFPTargeting('ad'); | ||
eventData.article = { ...(id && { | ||
@@ -416,9 +416,9 @@ id | ||
...(categories && { | ||
categories: categories.split(",") | ||
categories: categories.split(',') | ||
}), | ||
...(topics && { | ||
topics: topics.split(",") | ||
topics: topics.split(',') | ||
}), | ||
...(admants && { | ||
admants: admants.split(",") | ||
admants: admants.split(',') | ||
}) | ||
@@ -430,7 +430,7 @@ }; | ||
const getByKeyInKruxTargeting = getByKeyInAdsArrayV1(kruxTargeting); | ||
const type = getByKeyInKruxTargeting("genre"); | ||
const organisations = getByKeyInKruxTargeting("organisations"); | ||
const people = getByKeyInKruxTargeting("people"); | ||
const authors = getByKeyInKruxTargeting("authors"); | ||
const brand = getByKeyInKruxTargeting("brand"); | ||
const type = getByKeyInKruxTargeting('genre'); | ||
const organisations = getByKeyInKruxTargeting('organisations'); | ||
const people = getByKeyInKruxTargeting('people'); | ||
const authors = getByKeyInKruxTargeting('authors'); | ||
const brand = getByKeyInKruxTargeting('brand'); | ||
eventData.article = { ...eventData.article, | ||
@@ -437,0 +437,0 @@ ...(brand && { |
@@ -6,5 +6,2 @@ { | ||
"main": "dist/ads-permutive.js", | ||
"files": [ | ||
"dist/" | ||
], | ||
"scripts": { | ||
@@ -15,3 +12,3 @@ "clean": "rm -rf ./dist", | ||
}, | ||
"version": "5.0.0-beta.1" | ||
"version": "5.0.0-beta.2" | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
73378
28
2142