New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

resource-action-api

Package Overview
Dependencies
Maintainers
4
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

resource-action-api - npm Package Compare versions

Comparing version 2.1.10 to 2.1.11

2

package.json
{
"name": "resource-action-api",
"version": "2.1.10",
"version": "2.1.11",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -7,6 +7,6 @@ var {singularize, pluralize} = require('inflection');

class Executor {
constructor({resourceKey, actionKey, params={}, options}, {user}={}) {
constructor({resourceKey, actionKey, params={}, options}) {
params = _.cloneDeep(params);
options = _.defaults(options, {useMiddleware: true, shouldLog: true, deepInclude: false});
console.log('user', user);
if (user) this.user = options.user = user;

@@ -13,0 +13,0 @@

@@ -37,4 +37,4 @@ const auth = require('../../lib/auth/auth');

});
//TODO has permission on each include
console.log('resources');
if (hasPermission) {

@@ -44,3 +44,2 @@ var getResourceData;

if (schemas[singularize(resourceKey)]) {
console.log('user', user);
getResourceData = () => db.execute({actionKey, resourceKey, params}, {source: '/resources', logs, user, files});

@@ -47,0 +46,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc