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

ng-current

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-current - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

12

ng-current.js

@@ -127,8 +127,8 @@ ;(function(angular) {

*/
this.select = function(name, obj) {
this.select = function(name, data) {
var old = $rootScope.current[name]
// only publish update if the current value has changed
if (!angular.equals(obj, old)) {
$rootScope.current[name] = obj
if (!angular.equals(data, old)) {
$rootScope.current[name] = data

@@ -140,4 +140,6 @@ // ensure all related (and stale) rel contexts are

// notify related contexts about your new state
self.publish(name, obj)
self.publish(name, data)
}
return data
}

@@ -220,2 +222,4 @@

})
return data
}

@@ -222,0 +226,0 @@ }])

{
"name": "ng-current",
"version": "1.0.3",
"version": "1.0.4",
"description": "Relational context manager for Angular",

@@ -5,0 +5,0 @@ "main": "ng-current.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