New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@graffy/testing

Package Overview
Dependencies
Maintainers
1
Versions
219
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graffy/testing - npm Package Compare versions

Comparing version 0.14.6-alpha6 to 0.14.6-alpha7

4

mockBackend.js

@@ -31,2 +31,3 @@ "use strict";

watch: function watch() {
// console.log('onWatch received');
return (0, _stream.makeStream)(function (push, _end) {

@@ -41,3 +42,4 @@ listeners.add(push);

write: function write(change) {
(0, _common.merge)(state, change);
// change = setVersion(change, Date.now());
(0, _common.merge)(state, change); // console.log('Emitting change', listeners.size, debug(change));

@@ -44,0 +46,0 @@ for (var _iterator = listeners, _isArray = (0, _isArray2["default"])(_iterator), _i = 0, _iterator = _isArray ? _iterator : (0, _getIterator2["default"])(_iterator);;) {

@@ -5,3 +5,3 @@ {

"author": "aravind (https://github.com/aravindet)",
"version": "0.14.6-alpha6",
"version": "0.14.6-alpha7",
"main": "index.js",

@@ -17,5 +17,5 @@ "source": "src/index.js",

"@babel/runtime-corejs3": "^7.8.4",
"@graffy/common": "0.14.6-alpha6",
"@graffy/stream": "0.14.6-alpha6"
"@graffy/common": "0.14.6-alpha7",
"@graffy/stream": "0.14.6-alpha7"
}
}

@@ -11,10 +11,14 @@ import { merge } from '@graffy/common';

read: () => state,
watch: () =>
makeStream((push, _end) => {
watch: () => {
// console.log('onWatch received');
return makeStream((push, _end) => {
listeners.add(push);
push(options.liveQuery ? state : undefined);
return () => listeners.delete(push);
}),
});
},
write: change => {
// change = setVersion(change, Date.now());
merge(state, change);
// console.log('Emitting change', listeners.size, debug(change));
for (const push of listeners) push(change);

@@ -21,0 +25,0 @@ return change;

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