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

nats-hemera

Package Overview
Dependencies
Maintainers
1
Versions
279
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nats-hemera - npm Package Compare versions

Comparing version 0.2.7 to 0.2.8

33

build/index.js

@@ -313,6 +313,32 @@ //

*/
ext(type, handler) {
ext(type, handler, globalScoped) {
this._extensions[type].subscribe(handler)
let self = this
this._extensions[type].subscribe(function (next) {
let currentAct = this._actMeta.plugin
let currentPlugin = self.plugin$.attributes
// when we have a plugin context and the ext is plugin scoped only.
if (!globalScoped && currentPlugin && currentPlugin.private) {
if (currentAct && currentPlugin) {
if (currentPlugin.name === currentAct.name) {
return handler.call(this, next)
} else {
return next()
}
}
return next()
} else {
return handler.call(this, next)
}
})
}

@@ -656,3 +682,4 @@ /**

pattern: origPattern,
action: cb
action: cb,
plugin: this.plugin$.attributes
}

@@ -659,0 +686,0 @@

2

package.json
{
"name": "nats-hemera",
"author": "Dustin Deus (https://github.com/StarpTech)",
"version": "0.2.7",
"version": "0.2.8",
"main": "index.js",

@@ -6,0 +6,0 @@ "homepage": "https://hemerajs.github.io/hemera/",

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