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

@jumpn/utils-graphql

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jumpn/utils-graphql - npm Package Compare versions

Comparing version 0.3.1 to 0.4.0

8

compat/cjs/getOperationType.js

@@ -18,3 +18,3 @@ 'use strict';

/**
* Returns the type of the given operation
* Returns the type (query, mutation, or subscription) of the given operation
*

@@ -41,5 +41,9 @@ * @example

return result ? getOperationTypeFromMatched(result[1]) : undefined;
if (!result) {
throw new TypeError("Invalid operation:\n" + String(operation));
}
return getOperationTypeFromMatched(result[1]);
}.bind(undefined);
module.exports = getOperationType;

@@ -67,3 +67,3 @@ 'use strict';

/**
* Returns the type of the given operation
* Returns the type (query, mutation, or subscription) of the given operation
*

@@ -90,3 +90,7 @@ * @example

return result ? getOperationTypeFromMatched(result[1]) : undefined;
if (!result) {
throw new TypeError("Invalid operation:\n" + String(operation));
}
return getOperationTypeFromMatched(result[1]);
}.bind(undefined);

@@ -93,0 +97,0 @@

@@ -87,3 +87,3 @@ (function (global, factory) {

/**
* Returns the type of the given operation
* Returns the type (query, mutation, or subscription) of the given operation
*

@@ -110,3 +110,7 @@ * @example

return result ? getOperationTypeFromMatched(result[1]) : undefined;
if (!result) {
throw new TypeError("Invalid operation:\n" + String(operation));
}
return getOperationTypeFromMatched(result[1]);
}.bind(undefined);

@@ -113,0 +117,0 @@

@@ -14,3 +14,3 @@ import _newArrowCheck from 'babel-runtime/helpers/newArrowCheck';

/**
* Returns the type of the given operation
* Returns the type (query, mutation, or subscription) of the given operation
*

@@ -37,5 +37,9 @@ * @example

return result ? getOperationTypeFromMatched(result[1]) : undefined;
if (!result) {
throw new TypeError("Invalid operation:\n" + String(operation));
}
return getOperationTypeFromMatched(result[1]);
}.bind(undefined);
export default getOperationType;

@@ -61,3 +61,3 @@ import _newArrowCheck from 'babel-runtime/helpers/newArrowCheck';

/**
* Returns the type of the given operation
* Returns the type (query, mutation, or subscription) of the given operation
*

@@ -84,5 +84,9 @@ * @example

return result ? getOperationTypeFromMatched(result[1]) : undefined;
if (!result) {
throw new TypeError("Invalid operation:\n" + String(operation));
}
return getOperationTypeFromMatched(result[1]);
}.bind(undefined);
export { errorsToString, getOperationType };
{
"name": "@jumpn/utils-graphql",
"version": "0.3.1",
"version": "0.4.0",
"description": "GraphQL utilities",

@@ -5,0 +5,0 @@ "module": "dist/index.js",

@@ -88,3 +88,3 @@ # @jumpn/utils-graphql

Returns the type of the given operation
Returns the type (query, mutation, or subscription) of the given operation

@@ -112,3 +112,3 @@ **Parameters**

Returns **(void | GqlOperationType)**
Returns **GqlOperationType**

@@ -115,0 +115,0 @@ ## License

Sorry, the diff of this file is not supported yet

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