New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

postis

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postis - npm Package Compare versions

Comparing version 1.1.0 to 2.0.0

CHANGELOG.md

7

package.json
{
"name": "postis",
"version": "1.1.0",
"description": "Lightway is a wrapper around the PostMessage API",
"version": "2.0.0",
"description": "Lightweight wrapper around the PostMessage API",
"main": "src/index.js",

@@ -14,3 +14,4 @@ "scripts": {

"email": "joao@adtile.me"
}, {
},
{
"name": "Jaakko Suutarla",

@@ -17,0 +18,0 @@ "email": "jaakko@adtile.me"

@@ -12,3 +12,3 @@ function Postis(options) {

var data = JSON.parse(event.data);
var params = [].concat(data.params);
if (data.postis && data.scope === scope) {

@@ -18,7 +18,7 @@ var listenersForMethod = listeners[data.method];

for (var i = 0; i < listenersForMethod.length; i++) {
listenersForMethod[i].apply(null, params);
listenersForMethod[i].call(null, data.params);
}
} else {
listenBuffer[data.method] = listenBuffer[data.method] || [];
listenBuffer[data.method].push(params);
listenBuffer[data.method].push(data.params);
}

@@ -38,3 +38,3 @@ }

for (var j = 0; j < listenBufferForMethod.length; j++) {
listenersForMethod[i].apply(null, listenBufferForMethod[j]);
listenersForMethod[i].call(null, listenBufferForMethod[j]);
}

@@ -41,0 +41,0 @@ }

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