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

@cicada/message

Package Overview
Dependencies
Maintainers
6
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cicada/message - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

3

lib/index.js

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

exports.isIframe = isIframe;
exports.default = createMessage;

@@ -29,3 +30,3 @@

try {
if (!e.data || !prefixReg.test(e.data)) return;
if (!prefixReg.test(e.data)) return;
messageOriginData = e.data.replace(prefixReg, '');

@@ -32,0 +33,0 @@ message = JSON.parse(messageOriginData);

{
"name": "@cicada/message",
"version": "0.1.0",
"version": "0.1.1",
"description": "cicada message",

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

@@ -1,2 +0,2 @@

function isIframe() {
export function isIframe() {
return window.parent !== window

@@ -14,3 +14,3 @@ }

try {
if (!e.data || !prefixReg.test(e.data)) return
if (!prefixReg.test(e.data)) return
messageOriginData = e.data.replace(prefixReg, '')

@@ -17,0 +17,0 @@ message = JSON.parse(messageOriginData)

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