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

reactive-replica

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reactive-replica - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

index.js

@@ -49,3 +49,3 @@

//looking for specified place:
var specified
let specified = undefined
for ( let candidate of this.children )

@@ -52,0 +52,0 @@ {

{
"name": "reactive-replica",
"version": "1.0.3",
"version": "1.0.4",
"description": "Helps structure logic around model changes, i.e. utilize reactive style.",

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

@@ -729,2 +729,40 @@ import 'babel-polyfill'

} )
it ( 'Resolve', function( done )
{
let root = new Place
root.replicate( {
path : {
to : {
first : 1,
second : 2
}
}
} )
let first = root.resolve( 'path.to.first' )
let second = root.resolve( 'path.to.second' )
let firstCalled = 0
first.listen( {
create : function( created ) {
expect( created ).equal( 1 )
++ firstCalled
}
} )
let secondCalled = 0
second.listen( {
create : function( created ) {
expect( created ).equal( 2 )
++ secondCalled
}
} )
expect( firstCalled ).equal( 1 )
expect( secondCalled ).equal( 1 )
done()
} )
} )

@@ -731,0 +769,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