Skip to content

Commit

Permalink
Add uuid helper method to 'mu'
Browse files Browse the repository at this point in the history
  • Loading branch information
erikap committed Apr 8, 2017
1 parent e766bb7 commit 403cbbc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion helpers/mu/index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
import app from './server';
import sparql from './sparql';
import uuidV1 from 'uuid/v1';

// generates a uuid
const uuid = uuidV1;

const mu = {
app: app,
sparql: sparql,
SPARQL: sparql.sparql,
query: sparql.query,
update: sparql.update,
uuid: uuid
}

const SPARQL = mu.SPARQL, query = mu.query, update = mu.update;

export { app , sparql, SPARQL, query, update };
export { app , sparql, SPARQL, query, update, uuid };
export default mu;
3 changes: 2 additions & 1 deletion helpers/mu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"babel-preset-es2015": "^6.18.0",
"babel-preset-es2016": "^6.16.0",
"babel-preset-es2017": "^6.16.0",
"supervisor": "^0.12.0"
"supervisor": "^0.12.0",
"uuid": "^3.0.0"
}
}

0 comments on commit 403cbbc

Please sign in to comment.