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

@denimlabs/fb-position-validation

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@denimlabs/fb-position-validation - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

9

dist/index.js

@@ -19,4 +19,3 @@ "use strict";

facebook_positions: ['feed', 'suggested_video', 'instant_article', 'instream_video', 'story'],
instagram_positions: ['stream'],
messenger_positions: ['messenger_home']
instagram_positions: ['stream']
};

@@ -73,3 +72,3 @@ var ConversionPlacments = {

var VALID_DEVICE_PLATFORMS = ['mobile', 'desktop'];
var VALID_FACEBOOK_POSITIONS = ['feed', 'right_hand_column', 'instant_article', 'marketplace', 'story'];
var VALID_FACEBOOK_POSITIONS = ['feed', 'right_hand_column', 'instant_article', 'marketplace', 'story', 'instream_video'];
var VALID_PUBLISHER_PLATFORMS = ['facebook', 'instagram', 'messenger', 'audience_network'];

@@ -201,2 +200,6 @@ var VALID_INSTAGRAM_POSTIONS = ['story', 'stream'];

publisher_platforms = _positioning$publishe2 === void 0 ? [] : _positioning$publishe2;
console.log({
publisher_platforms: publisher_platforms,
validPublisherPlatforms: validPublisherPlatforms
});

@@ -203,0 +206,0 @@ if ((publisher_platforms || []).length > 0 && !containsOnlyValid(publisher_platforms, validPublisherPlatforms)) {

@@ -22,4 +22,3 @@ const AwarenessPlacments = {

],
instagram_positions: ['stream'],
messenger_positions: ['messenger_home']
instagram_positions: ['stream']
}

@@ -99,3 +98,4 @@

'marketplace',
'story'
'story',
'instream_video'
]

@@ -329,3 +329,3 @@

const { publisher_platforms = [] } = positioning
console.log({ publisher_platforms, validPublisherPlatforms })
if (

@@ -332,0 +332,0 @@ (publisher_platforms || []).length > 0 &&

@@ -45,5 +45,2 @@ import {

],
"messenger_positions": Array [
"messenger_home",
],
}

@@ -358,3 +355,20 @@ `)

).not.toThrowError(Error('invalid publisher platform for objective'))
expect(() =>
validateAllRulesByObjective('Engagement', {
device_platforms: [],
publisher_platforms: ['facebook'],
facebook_positions: [
'feed',
'suggested_video',
'instant_article',
'instream_video',
'story'
],
instagram_positions: [],
audience_network_positions: [],
messenger_positions: []
})
).not.toThrow()
})
})
{
"name": "@denimlabs/fb-position-validation",
"version": "1.0.7",
"version": "1.0.8",
"description": "Validate facebook positions against denim campaign objectives.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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