mysql-live-select
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -23,3 +23,5 @@ /* mysql-live-select, MIT License ben@latenightsketches.com | ||
if(self.query in base._resultsBuffer){ | ||
self._setRows(base._resultsBuffer[self.query]); | ||
setTimeout(function(){ | ||
self._setRows(base._resultsBuffer[self.query]); | ||
}, 1); | ||
}else{ | ||
@@ -26,0 +28,0 @@ self.update(); |
{ | ||
"name": "mysql-live-select", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Live updating MySQL SELECT statements", | ||
@@ -5,0 +5,0 @@ "main": "lib/LiveMysql.js", |
@@ -40,2 +40,12 @@ /* mysql-live-select, MIT License ben@latenightsketches.com | ||
} | ||
}).on('added', function(row, index){ | ||
test.equal(index, 0); | ||
test.equal(row.col, 10); | ||
}).on('changed', function(row, newRow, index){ | ||
test.equal(index, 0); | ||
test.equal(row.col, 10); | ||
test.equal(newRow.col, 15); | ||
}).on('removed', function(row, index){ | ||
test.equal(index, 0); | ||
test.equal(row.col, 15); | ||
}); | ||
@@ -42,0 +52,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
73373
1788
0