@nxtedition/agent
Advanced tools
Comparing version 1.2.1 to 1.2.4
@@ -13,10 +13,10 @@ const objectHash = require('object-hash') | ||
hash: hashObject, | ||
spawn (query, prop, meta) { | ||
spawn (query, prop) { | ||
const ds = this | ||
const hash = hashObject(query) | ||
if (typeof query.title === 'string') { | ||
ds.record.update(`${hash}:general.title`, doc => ({ value: query.title, ...doc })) | ||
ds.record.update(`${hash}:general.title`, doc => Object.assign({ value: query.title }, doc)) | ||
} | ||
ds.record.update(`${hash}:general.tags`, doc => ({ value: [ 'hidden' ], ...doc })) | ||
ds.record.update(`${hash}:general.created`, doc => ({ value: new Date().toISOString(), ...doc })) | ||
ds.record.update(`${hash}:general.tags`, doc => Object.assign({ value: [ 'hidden' ] }, doc)) | ||
ds.record.update(`${hash}:general.created`, doc => Object.assign({ value: new Date().toISOString() }, doc)) | ||
ds.record.set(`${hash}:agent.query`, query) | ||
@@ -23,0 +23,0 @@ return ds.record.observe(`${hash}:agent${prop ? `.${prop}` : ``}`) |
{ | ||
"name": "@nxtedition/agent", | ||
"version": "1.2.1", | ||
"version": "1.2.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
2024