Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
StarpTech committed May 13, 2017
1 parent 20b4eba commit 9430df5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions examples/plugin-as-file.js
Expand Up @@ -16,8 +16,7 @@ exports.plugin = function myPlugin (options) {
exports.options = {}

exports.attributes = {
pkg: require('./package.json'),
dependencies: []
pkg: require('./package.json')
}

/**
Expand Down
5 changes: 1 addition & 4 deletions examples/plugin.js
Expand Up @@ -11,8 +11,6 @@ function myPlugin (options) {
})
}

'use strict'

const Hemera = require('./../packages/hemera')
const nats = require('nats').connect()

Expand All @@ -23,8 +21,7 @@ hemera.expose('somethingToExpose', 4)
hemera.use({
plugin: myPlugin,
attributes: {
name: 'myPlugin',
dependencies: []
name: 'myPlugin'
},
options: {}
})
Expand Down

0 comments on commit 9430df5

Please sign in to comment.