diff --git a/README.md b/README.md index 964ade7..8485026 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ An 'access' [Operation Hook](https://docs.strongloop.com/display/public/LB/Opera ```json { - "loopback-component-access": { + "loopback-component-access-groups": { "{option}": "{value}" } } diff --git a/lib/index.js b/lib/index.js index 6e16243..e7fc8bd 100644 --- a/lib/index.js +++ b/lib/index.js @@ -10,7 +10,7 @@ module.exports = function loopbackComponentAccess(app, options) { loopback.version.split('.')[0] || 1; if (loopbackMajor < 2) { - throw new Error('loopback-component-access requires loopback 2.0 or newer'); + throw new Error('loopback-component-access-groups requires loopback 2.0 or newer'); } // Initialise helper class. diff --git a/lib/utils.js b/lib/utils.js index e65dc0a..a673385 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -30,7 +30,7 @@ module.exports = class AccessUtils { }); // Save the component config for easy reference. - app.set('loopback-component-access', options); + app.set('loopback-component-access-groups', options); debug('options: %o', options); } diff --git a/package.json b/package.json index cbf737e..eb6d729 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "loopback-component-access", + "name": "loopback-component-access-groups", "description": "Access controls for Loopback.", "version": "0.1.0", "author": { @@ -7,7 +7,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/fullcube/loopback-component-access.git" + "url": "https://github.com/fullcube/loopback-component-access-groups.git" }, "keywords": [ "loopback", @@ -16,9 +16,9 @@ ], "license": "MIT", "bugs": { - "url": "https://github.com/fullcube/loopback-component-access/issues" + "url": "https://github.com/fullcube/loopback-component-access-groups/issues" }, - "homepage": "https://github.com/fullcube/loopback-component-access", + "homepage": "https://github.com/fullcube/loopback-component-access-groups", "files": [ "lib", "test"