@nxtedition/agent
Advanced tools
Comparing version 1.0.3 to 1.0.4
10
index.js
@@ -13,3 +13,3 @@ const objectHash = require('object-hash') | ||
module.exports = { | ||
spawn (query, prop) { | ||
observe (query, prop) { | ||
const ds = this | ||
@@ -24,2 +24,10 @@ const hash = hashObject(query) | ||
}, | ||
spawn (query, prop) { | ||
const ds = this | ||
const hash = hashObject(query) | ||
ds.record.set(`${hash}:agent.query`, query) | ||
return ds.record.observe(`${hash}:agent${prop ? `.${prop}` : ``}`) | ||
}, | ||
provide (matcher) { | ||
@@ -26,0 +34,0 @@ const ds = this |
{ | ||
"name": "@nxtedition/agent", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "author": "Robert Nagy <robert.nagy@boffins.se>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3761
56