Socket
Socket
Sign inDemoInstall

zoid

Package Overview
Dependencies
7
Maintainers
5
Versions
147
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.0.80 to 6.0.82

2

dist/module/component/component/validate.js

@@ -43,3 +43,3 @@ 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; };

if (!options) {
throw new Error('Expecred options to be passed');
throw new Error('Expected options to be passed');
}

@@ -46,0 +46,0 @@

@@ -26,17 +26,5 @@

component.log('instantiate_script_component');
component.log('instantiate_script_component_error');
var props = element.innerText ? eval('(' + element.innerText + ')') // eslint-disable-line no-eval, security/detect-eval-with-expression
: {};
var container = document.createElement('div');
if (!element.parentNode) {
throw new Error('Element has no parent');
}
element.parentNode.replaceChild(container, element);
// $FlowFixMe
component.render(props, container);
throw new Error('\n \'x-component\' script type is no longer supported. \n Please migrate to another integration pattern.\n ');
}

@@ -43,0 +31,0 @@

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

// $FlowFixMe
module.exports = require('./dist/zoid.frame');
module.exports = require('./dist/zoid.frame'); // eslint-disable-line import/extensions,eslint-comments/no-unused-disable
module.exports.default = module.exports;

@@ -10,0 +10,0 @@ } else {

{
"name": "zoid",
"version": "6.0.80",
"version": "6.0.82",
"description": "Cross domain components.",

@@ -58,3 +58,3 @@ "main": "index.js",

"beaver-logger": "^3.0.17",
"belter": "^1.0.77",
"belter": "1.0.123",
"cross-domain-safe-weakmap": "^1.0.22",

@@ -61,0 +61,0 @@ "cross-domain-utils": "^2.0.16",

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

if (!options) {
throw new Error(`Expecred options to be passed`);
throw new Error(`Expected options to be passed`);
}

@@ -46,0 +46,0 @@

@@ -30,18 +30,9 @@ /* @flow */

component.log(`instantiate_script_component`);
component.log(`instantiate_script_component_error`);
let props : { [string] : mixed } = element.innerText
? eval(`(${ element.innerText })`) // eslint-disable-line no-eval, security/detect-eval-with-expression
: {};
let container = document.createElement('div');
if (!element.parentNode) {
throw new Error(`Element has no parent`);
}
element.parentNode.replaceChild(container, element);
// $FlowFixMe
component.render(props, container);
throw new Error(`
'x-component' script type is no longer supported.
Please migrate to another integration pattern.
`);
}

@@ -48,0 +39,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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc