
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
ah-openrecord-plugin
Advanced tools
configure your database connection via config/database.js
The global Resource()
function is a macro for creating actionhero actions.
The following example creates 5 actions which will use the User
model:
module.exports = Resource('User');
If you just need e.g. list
do the following:
module.exports = Resource('User', {
actions: ['list']
});
action
: The base resource name. e.g. user
. By default it'll take the filename (without .js)actions
: Array of available actions. e.g. ['list', 'get']
scope
: Array of OpenRecord scopes which should be calledprefix
: Action name prefix. prefix: 'admin'
will create action admin:user:list
requireAuth
: Boolean. Is authentication required or not (will behandled by identity plugin)requireRole
: String. What role do you need to call that actions (will behandled by identity plugin)afterFind
: Function. Like an actionhero action - but will be called after find (api, connection, next)afterGet
: Function. Like an actionhero action - but will be called after get (api, connection, next)afterUpdate
: Function. Like an actionhero action - but will be called after update (api, connection, next)afterCreate
: Function. Like an actionhero action - but will be called after create (api, connection, next)afterDestroy
: Function. Like an actionhero action - but will be called after destroy (api, connection, next)custom
: Array of custom actionhero actionsFAQs
OpenRecord plugin for actionhero
The npm package ah-openrecord-plugin receives a total of 41 weekly downloads. As such, ah-openrecord-plugin popularity was classified as not popular.
We found that ah-openrecord-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.