🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@kontakta/cloud-code-directives

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kontakta/cloud-code-directives - npm Package Compare versions

Comparing version
1.0.1
to
1.0.3
+6
-0
CHANGELOG.md
# @kontakta/cloud-code-directives
## 1.0.3
### Patch Changes
- Added usemasterkey from open routes
## 1.0.0

@@ -4,0 +10,0 @@

+1
-1
{
"name": "@kontakta/cloud-code-directives",
"version": "1.0.1",
"version": "1.0.3",
"main": "./dist/index.js",

@@ -5,0 +5,0 @@ "types": "./dist/index.d.ts",

@@ -9,3 +9,3 @@ import { defaultFieldResolver, GraphQLError, GraphQLFieldConfig, GraphQLResolveInfo } from 'graphql';

const AUTH_OPERATIONS = ['login', 'signup', 'getCountryList', 'passwordRecoveryRequest'];
const AUTH_OPERATIONS = ['login', 'signup', 'getCountryList', 'passwordRecoveryRequest', 'testQuery'];

@@ -58,2 +58,3 @@ /**

sessionToken: AUTH_OPERATIONS.includes(functionName) ? undefined : context.sessionToken,
useMasterKey: AUTH_OPERATIONS.includes(functionName) ? true : undefined,
}

@@ -60,0 +61,0 @@ );