Socket
Socket
Sign inDemoInstall

@keystonejs/access-control

Package Overview
Dependencies
Maintainers
6
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@keystonejs/access-control - npm Package Compare versions

Comparing version 6.1.0 to 6.2.0

6

CHANGELOG.md
# @keystonejs/access-control
## 6.2.0
### Minor Changes
- [`dec3d336a`](https://github.com/keystonejs/keystone/commit/dec3d336adbe8156722fbe65f315a57b2f5c08e7) [#3153](https://github.com/keystonejs/keystone/pull/3153) Thanks [@timleslie](https://github.com/timleslie)! - Made `context` available to user designed access control functions.
## 6.1.0

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

7

lib/access-control.js

@@ -196,2 +196,3 @@ const { getType, pick, defaultObj, intersection } = require('@keystonejs/utils');

itemIds,
context,
}) {

@@ -211,2 +212,3 @@ // Either a boolean or an object describing a where clause

itemIds,
context,
});

@@ -244,2 +246,3 @@ }

itemIds,
context,
}) {

@@ -260,2 +263,3 @@ let result;

itemIds,
context,
});

@@ -275,3 +279,3 @@ }

async validateAuthAccessControl({ access, listKey, authentication = {}, gqlName }) {
async validateAuthAccessControl({ access, listKey, authentication = {}, gqlName, context }) {
const operation = 'auth';

@@ -288,2 +292,3 @@ // Either a boolean or an object describing a where clause

gqlName,
context,
});

@@ -290,0 +295,0 @@ }

2

package.json
{
"name": "@keystonejs/access-control",
"description": "KeystoneJS Access Control parsing and validating utilities.",
"version": "6.1.0",
"version": "6.2.0",
"author": "The KeystoneJS Development Team",

@@ -6,0 +6,0 @@ "license": "MIT",

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