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

zoid

Package Overview
Dependencies
Maintainers
2
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zoid - npm Package Compare versions

Comparing version 6.0.76 to 6.0.77

7

dist/module/component/component/props.js
import 'zalgo-promise/src';
import { uniqueID } from '../../lib';

@@ -54,2 +55,8 @@ import '../../types';

win: {
type: 'object',
required: false,
sendToChild: false
},
dimensions: {

@@ -56,0 +63,0 @@ type: 'object',

7

dist/module/component/parent/index.js

@@ -48,3 +48,3 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

import { send, bridge } from 'post-robot/src';
import { isSameDomain, isWindowClosed as _isWindowClosed, isTop, isSameTopWindow, matchDomain, getDistanceFromTop, onCloseWindow, getDomain } from 'cross-domain-utils/src';
import { isSameDomain, isWindowClosed as _isWindowClosed, isTop, isSameTopWindow, matchDomain, getDistanceFromTop, onCloseWindow, getDomain, assertSameDomain } from 'cross-domain-utils/src';
import { ZalgoPromise } from 'zalgo-promise/src';

@@ -601,2 +601,7 @@ import { getElementSafe, onResize } from 'belter/src';

_this11.component.log('open_' + _this11.context, { windowName: _this11.childWindowName });
if (_this11.props.win) {
_this11.clean.set('window', _this11.props.win);
assertSameDomain(_this11.window).name = _this11.childWindowName;
return;
}
return _this11.driver.open.call(_this11);

@@ -603,0 +608,0 @@ });

13

dist/module/component/parent/validate.js
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
// $FlowFixMe
/* eslint complexity: off */
export function validateProp(prop, key, value, props) {

@@ -36,6 +39,8 @@ var required = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;

try {
JSON.stringify(value);
} catch (err) {
throw new Error('Unable to serialize prop: ' + key);
if (prop.sendToChild !== false) {
try {
JSON.stringify(value);
} catch (err) {
throw new Error('Unable to serialize prop: ' + key);
}
}

@@ -42,0 +47,0 @@ } else if (prop.type === 'number') {

{
"name": "zoid",
"version": "6.0.76",
"version": "6.0.77",
"description": "Cross domain components.",

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

/* @flow */
import { type ZalgoPromise } from 'zalgo-promise/src';
import type { SameDomainWindowType } from 'cross-domain-utils/src';

@@ -51,2 +52,3 @@ import { uniqueID } from '../../lib';

type dimensionsPropType = DimensionsType;
type winPropType = SameDomainWindowType;

@@ -69,2 +71,3 @@ type onDisplayPropType = EventHandlerType<void>;

dimensions? : dimensionsPropType,
win? : winPropType,

@@ -88,2 +91,3 @@ onDisplay : onDisplayPropType,

dimensions? : dimensionsPropType,
win? : winPropType,

@@ -107,2 +111,3 @@ onDisplay? : onDisplayPropType,

dimensions : ObjectPropDefinitionType<dimensionsPropType, P>,
win : ObjectPropDefinitionType<winPropType, P>,

@@ -165,2 +170,8 @@ onDisplay : FunctionPropDefinitionType<onDisplayPropType, P>,

win: {
type: 'object',
required: false,
sendToChild: false
},
dimensions: {

@@ -167,0 +178,0 @@ type: 'object',

@@ -6,3 +6,3 @@ /* @flow */

import { send, bridge } from 'post-robot/src';
import { isSameDomain, isWindowClosed, isTop, isSameTopWindow, matchDomain, getDistanceFromTop, onCloseWindow, getDomain, type CrossDomainWindowType, type SameDomainWindowType } from 'cross-domain-utils/src';
import { isSameDomain, isWindowClosed, isTop, isSameTopWindow, matchDomain, getDistanceFromTop, onCloseWindow, getDomain, assertSameDomain, type CrossDomainWindowType, type SameDomainWindowType } from 'cross-domain-utils/src';
import { ZalgoPromise } from 'zalgo-promise/src';

@@ -603,2 +603,7 @@ import { getElementSafe, onResize } from 'belter/src';

this.component.log(`open_${ this.context }`, { windowName: this.childWindowName });
if (this.props.win) {
this.clean.set('window', this.props.win);
assertSameDomain(this.window).name = this.childWindowName;
return;
}
return this.driver.open.call(this);

@@ -605,0 +610,0 @@ });

/* @flow */
/* eslint complexity: off */

@@ -39,6 +40,8 @@ import type { Component } from '../component';

try {
JSON.stringify(value);
} catch (err) {
throw new Error(`Unable to serialize prop: ${ key }`);
if (prop.sendToChild !== false) {
try {
JSON.stringify(value);
} catch (err) {
throw new Error(`Unable to serialize prop: ${ key }`);
}
}

@@ -45,0 +48,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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