Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@envelop/extended-validation

Package Overview
Dependencies
Maintainers
1
Versions
1304
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@envelop/extended-validation - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

5

index.js

@@ -24,4 +24,9 @@ 'use strict';

onExecute({ args, setResultAndStopExecution }) {
// We hook into onExecute even though this is a validation pattern. The reasoning behind
// it is that hooking right after validation and before execution has started is the
// same as hooking into the validation step. The benefit of this approach is that
// we may use execution context in the validation rules.
const rules = args.contextValue[SYMBOL_EXTENDED_VALIDATION_RULES];
const errors = [];
// We replicate the default validation step manually before execution starts.
const typeInfo = schemaTypeInfo || new graphql.TypeInfo(args.schema);

@@ -28,0 +33,0 @@ const validationContext = new graphql.ValidationContext(args.schema, args.document, typeInfo, e => {

5

package.json
{
"name": "@envelop/extended-validation",
"version": "1.3.0",
"version": "1.3.1",
"sideEffects": false,

@@ -9,3 +9,4 @@ "peerDependencies": {

"dependencies": {
"@graphql-tools/utils": "8.5.2"
"@envelop/core": "^1.6.1",
"@graphql-tools/utils": "^8.5.3"
},

@@ -12,0 +13,0 @@ "repository": {

2

plugin.d.ts

@@ -1,2 +0,2 @@

import { Plugin } from '@envelop/types';
import { Plugin } from '@envelop/core';
import { ExecutionArgs, ExecutionResult } from 'graphql';

@@ -3,0 +3,0 @@ import { ExtendedValidationRule } from './common';

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