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

@envelop/generic-auth

Package Overview
Dependencies
Maintainers
1
Versions
1325
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@envelop/generic-auth - npm Package Compare versions

Comparing version 2.0.1-alpha-a408263.0 to 3.0.0-alpha-dc1e98d.0

38

index.js

@@ -42,11 +42,7 @@ 'use strict';

},
onExecute() {
return {
async onResolverCalled({ args, root, context, info }) {
const authDirectiveNode = getDirective(info, options.authDirectiveName || 'skipAuth');
if (authDirectiveNode)
return;
await context.validateUser(context[fieldName], context);
},
};
async onResolverCalled({ args, root, context, info }) {
const authDirectiveNode = getDirective(info, options.authDirectiveName || 'skipAuth');
if (authDirectiveNode)
return;
await context.validateUser(context[fieldName], context);
},

@@ -75,16 +71,12 @@ };

},
onExecute() {
return {
async onResolverCalled({ args, root, context, info }) {
const authDirectiveNode = getDirective(info, options.authDirectiveName || 'auth');
if (authDirectiveNode) {
await context.validateUser(context[fieldName], context, {
info,
context: context,
args,
root,
}, authDirectiveNode);
}
},
};
async onResolverCalled({ args, root, context, info }) {
const authDirectiveNode = getDirective(info, options.authDirectiveName || 'auth');
if (authDirectiveNode) {
await context.validateUser(context[fieldName], context, {
info,
context: context,
args,
root,
}, authDirectiveNode);
}
},

@@ -91,0 +83,0 @@ };

{
"name": "@envelop/generic-auth",
"version": "2.0.1-alpha-a408263.0",
"version": "3.0.0-alpha-dc1e98d.0",
"sideEffects": false,
"peerDependencies": {
"@envelop/core": "1.7.1-alpha-a408263.0",
"@envelop/core": "2.0.0-alpha-dc1e98d.0",
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"

@@ -8,0 +8,0 @@ },

Sorry, the diff of this file is not supported yet

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