diff --git a/helpers/mu/index.js b/helpers/mu/index.js index 1463524..f7b5db2 100644 --- a/helpers/mu/index.js +++ b/helpers/mu/index.js @@ -1,5 +1,9 @@ import app from './server'; import sparql from './sparql'; +import uuidV1 from 'uuid/v1'; + +// generates a uuid +const uuid = uuidV1; const mu = { app: app, @@ -7,9 +11,10 @@ const mu = { 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; diff --git a/helpers/mu/package.json b/helpers/mu/package.json index 85fb091..43e9201 100644 --- a/helpers/mu/package.json +++ b/helpers/mu/package.json @@ -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" } }