🚀 Socket Launch Week 🚀 Day 2: Introducing Repository Labels and Security Policies.Learn More

@builder.io/sdk

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@builder.io/sdk - npm Package Compare versions

Comparing version

to
0.0.105

@@ -11,2 +11,3 @@ 'use strict';

var throttle = _interopDefault(require('lodash-es/throttle'));
var includes = _interopDefault(require('lodash-es/includes'));
var queryString = _interopDefault(require('query-string'));

@@ -815,10 +816,11 @@ var parser = _interopDefault(require('ua-parser-js'));

addEventListener('message', function (event) {
if (!_this.isUsed) {
// FIXME: what was this for?
// if (!this.isUsed) {
// return;
// }
var url$$1 = new URL(event.origin);
var allowedHosts = ['builder.io', 'localhost'];
if (!includes(allowedHosts, url$$1.hostname)) {
return;
}
// const url = new URL(event.origin);
// const allowedHosts = ['builder.io', 'localhost'];
// if (!includes(allowedHosts, url.hostname)) {
// return;
// }
var data = event.data;

@@ -825,0 +827,0 @@ if (data) {

@@ -5,2 +5,3 @@ import uniqueSelector from 'unique-selector';

import throttle from 'lodash-es/throttle';
import includes from 'lodash-es/includes';
import queryString from 'query-string';

@@ -809,10 +810,11 @@ import parser from 'ua-parser-js';

addEventListener('message', function (event) {
if (!_this.isUsed) {
// FIXME: what was this for?
// if (!this.isUsed) {
// return;
// }
var url$$1 = new URL(event.origin);
var allowedHosts = ['builder.io', 'localhost'];
if (!includes(allowedHosts, url$$1.hostname)) {
return;
}
// const url = new URL(event.origin);
// const allowedHosts = ['builder.io', 'localhost'];
// if (!includes(allowedHosts, url.hostname)) {
// return;
// }
var data = event.data;

@@ -819,0 +821,0 @@ if (data) {

{
"name": "@builder.io/sdk",
"version": "0.0.104",
"version": "0.0.105",
"browser": "./dist/index.umd.min.js",

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

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

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