Skip to content

Commit

Permalink
v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrodger committed Aug 2, 2019
1 parent c23bd7d commit 7904dd9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@seneca/user-telemetry",
"version": "0.0.1",
"version": "0.1.0",
"description": "A Seneca plugin that provides basic user telemetry operations.",
"main": "user-telemetry.js",
"scripts": {
Expand All @@ -17,6 +17,13 @@
"type": "git",
"url": "git+https://github.com/voxgig/seneca-user-telemetry.git"
},
"files": [
"LICENSE",
"README.txt",
"user-telemetry.js",
"user-telemetry-docs.js",
"dest"
],
"keywords": [
"seneca",
"user",
Expand Down
4 changes: 3 additions & 1 deletion test/user-telemetry.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ lab.test('happy', async () => {
]
}).ready()

await si.post('role:user,cmd:register,name:Joe\x20Bloggs,email:joe.bloggs@example.com')
await si.post(
'role:user,cmd:register,name:Joe\x20Bloggs,email:joe.bloggs@example.com'
)
await si.post('role:user,cmd:login,email:joe.bloggs@example.com,auto:true')

expect(log).equal(['init', 'event/register', 'event/login'])
Expand Down
6 changes: 3 additions & 3 deletions user-telemetry.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ module.exports.errors = {}
function user_telemetry(options) {
var dests = null

this
.sub('out$:true,role:user,cmd:register', handle_event)
.sub('out$:true,role:user,cmd:login', handle_event
this.sub('out$:true,role:user,cmd:register', handle_event).sub(
'out$:true,role:user,cmd:login',
handle_event
)

this.prepare(async function() {
Expand Down

0 comments on commit 7904dd9

Please sign in to comment.