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

ng1-shift

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng1-shift - npm Package Compare versions

Comparing version 0.0.7-alpha.3 to 0.0.8

22

index.ts

@@ -30,4 +30,2 @@ export * from './decorators/ng-module';

const attrBinding = alias ? alias : property;
let callbackCache: Function;
let eventEmitterCache: EventEmitter;

@@ -38,4 +36,8 @@ target.constructor.bindings[privateCallbackName] = `&${attrBinding}`;

set: function (callback: Function) {
if (!this.__callbackCache) {
this.__callbackCache = {};
}
if (typeof callback === "function") {
callbackCache = callback;
this.__callbackCache[property] = callback;
}

@@ -49,11 +51,17 @@ },

set: function (eventEmitterInstance) {
if (!this.__eventEmitterCache) {
this.__eventEmitterCache = {};
}
if (eventEmitterInstance && eventEmitterInstance.subscribe) {
eventEmitterInstance.subscribe(function (eventData: any) {
callbackCache({$event: eventData});
eventEmitterInstance.subscribe((eventData: any) => {
if (typeof this.__callbackCache[property] === "function") {
this.__callbackCache[property]({$event: eventData});
}
});
eventEmitterCache = eventEmitterInstance;
this.__eventEmitterCache[property] = eventEmitterInstance;
}
},
get: function () {
return eventEmitterCache;
return this.__eventEmitterCache[property];
},

@@ -60,0 +68,0 @@ enumerable: true,

{
"name": "ng1-shift",
"version": "0.0.7-alpha.3",
"version": "0.0.8",
"description": "Angular 1.5+ decorators for writing Angular2 like.",

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

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