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

dot-store-message

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dot-store-message - npm Package Compare versions

Comparing version 2.4.9 to 2.6.2

28

dist/index.js

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

_regenerator.default.mark(function _callee(options) {
var divId, meta, op, prop, value, valid, message, el, target;
var divId, meta, op, prop, value, iframe, valid, message, el, target;
return _regenerator.default.wrap(function _callee$(_context) {

@@ -36,6 +36,7 @@ while (1) {

divId = options.divId, meta = options.meta, op = options.op, prop = options.prop, value = options.value;
valid = value && !value.dfp;
iframe = store.getSync("".concat(key, ".").concat(divId));
valid = iframe && !iframe.dfp;
if (!(!valid || meta.fromWindow)) {
_context.next = 4;
_context.next = 5;
break;

@@ -46,3 +47,3 @@ }

case 4:
case 5:
message = {

@@ -55,2 +56,19 @@ dotStore: true,

el = document.getElementById(divId);
if (!(el && !el.firstChild)) {
_context.next = 9;
break;
}
return _context.abrupt("return");
case 9:
if (!(!el && window.parent == window)) {
_context.next = 11;
break;
}
return _context.abrupt("return");
case 11:
target = el ? el.firstChild.contentWindow : window.parent;

@@ -62,3 +80,3 @@

case 8:
case 13:
case "end":

@@ -65,0 +83,0 @@ return _context.stop();

2

package.json
{
"name": "dot-store-message",
"version": "2.4.9",
"version": "2.6.2",
"description": "Store sync using window.postMessage",

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

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