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

@advertol/core

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@advertol/core - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

9

CHANGELOG.md

@@ -5,2 +5,8 @@ # Changelog

## [1.0.4][] - 2024-02-09
### Changed
- Update check when control should be triggered for specific zone
## [1.0.3][] - 2024-02-08

@@ -31,3 +37,4 @@

[Unreleased]: https://github.com/niksy/advertol-core/compare/v1.0.3...HEAD
[Unreleased]: https://github.com/niksy/advertol-core/compare/v1.0.4...HEAD
[1.0.4]: https://github.com/niksy/advertol-core/compare/v1.0.3...v1.0.4
[1.0.3]: https://github.com/niksy/advertol-core/compare/v1.0.2...v1.0.3

@@ -34,0 +41,0 @@ [1.0.2]: https://github.com/niksy/advertol-core/compare/v1.0.1...v1.0.2

21

index.cjs.js

@@ -417,12 +417,13 @@ 'use strict';

isEmpty = _ref2.isEmpty;
/* eslint-disable no-undefined */
var triggerPromise = Promise.all([Promise.resolve(shouldTriggerControlCache[id] || false), Promise.resolve(onInitialControlTriggerCache[id] || undefined)]).then(function (_ref3) {
var isControlTriggered = _ref3[0],
initialControlTriggerResult = _ref3[1];
var triggerPromise = Promise.resolve(shouldTriggerControlCache[id] || false).then(function (isControlTriggered) {
if (isControlTriggered) {
control.destroy({
isEmpty: isEmpty,
element: element,
id: id,
initialControlTriggerResult: initialControlTriggerResult
/* eslint-disable-next-line no-undefined */
Promise.resolve(onInitialControlTriggerCache[id] || undefined).then(function (initialControlTriggerResult) {
control.destroy({
isEmpty: isEmpty,
element: element,
id: id,
initialControlTriggerResult: initialControlTriggerResult
});
return;
});

@@ -432,4 +433,2 @@ }

});
/* eslint-enable */
triggerPromises.push(triggerPromise);

@@ -436,0 +435,0 @@ });

@@ -413,12 +413,13 @@ function _extends() {

isEmpty = _ref2.isEmpty;
/* eslint-disable no-undefined */
var triggerPromise = Promise.all([Promise.resolve(shouldTriggerControlCache[id] || false), Promise.resolve(onInitialControlTriggerCache[id] || undefined)]).then(function (_ref3) {
var isControlTriggered = _ref3[0],
initialControlTriggerResult = _ref3[1];
var triggerPromise = Promise.resolve(shouldTriggerControlCache[id] || false).then(function (isControlTriggered) {
if (isControlTriggered) {
control.destroy({
isEmpty: isEmpty,
element: element,
id: id,
initialControlTriggerResult: initialControlTriggerResult
/* eslint-disable-next-line no-undefined */
Promise.resolve(onInitialControlTriggerCache[id] || undefined).then(function (initialControlTriggerResult) {
control.destroy({
isEmpty: isEmpty,
element: element,
id: id,
initialControlTriggerResult: initialControlTriggerResult
});
return;
});

@@ -428,4 +429,2 @@ }

});
/* eslint-enable */
triggerPromises.push(triggerPromise);

@@ -432,0 +431,0 @@ });

{
"name": "@advertol/core",
"version": "1.0.3",
"version": "1.0.4",
"description": "Advertisement zones manager.",

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

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