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

@lifeomic/abac

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lifeomic/abac - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

8

dist/index.js

@@ -312,6 +312,2 @@ 'use strict';

var _ref4 = (0, _asyncToGenerator3.default)(function* (operation, policy, attributes) {
if (!ajv.validate('OperationNames', operation)) {
return false;
}
// Before using the policy, make sure it's valid

@@ -342,6 +338,2 @@ validate(policy);

const enforceSync = (operation, policy) => {
if (!ajv.validate('OperationNames', operation)) {
return false;
}
// Before using the policy, make sure it's valid

@@ -348,0 +340,0 @@ validate(policy);

21

dist/schemas/OperationNames.json

@@ -5,17 +5,6 @@ {

"description": "The set of valid operation names",
"oneOf": [
{ "$ref": "pmpOperations" },
{ "$ref": "lifeOperations" }
],
"definitions": {
"pmpOperations": {
"$id": "pmpOperations",
"enum": [ "accessAdmin", "billingAdmin", "projectAdmin", "accountAdmin",
"createData", "readData", "updateData", "deleteData", "downloadFile" ]
},
"lifeOperations": {
"$id": "lifeOperations",
"enum": [ "createLifeData", "readLifeData", "updateLifeData", "deleteLifeData" ]
}
}
}
"type": "string",
"minLength": 2,
"maxLength": 64,
"pattern": "[a-zA-z]+"
}
{
"name": "@lifeomic/abac",
"version": "1.2.1",
"version": "1.2.2",
"description": "Lifeomic Attribute Based Access Control Support Module",

@@ -18,4 +18,4 @@ "main": "dist/index.js",

"devDependencies": {
"@lifeomic/dev-tools": "^3.6.0",
"@lifeomic/eslint-plugin-node": "^1.0.0",
"@lifeomic/dev-tools": "^4.2.3",
"@lifeomic/eslint-plugin-node": "^1.1.0",
"@lifeomic/logging": "^1.0.2",

@@ -26,7 +26,7 @@ "ava": "0.25.0",

"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.1",
"babel-preset-env": "^1.7.0",
"babel-register": "^6.26.0",
"eslint": "^4.17.0",
"nyc": "^11.4.1",
"sinon": "^4.2.2",
"eslint": "^4.19.1",
"nyc": "^11.8.0",
"sinon": "^5.0.7",
"tap-xunit": "^2.3.0"

@@ -65,5 +65,5 @@ },

"dependencies": {
"ajv": "^6.1.1",
"ajv": "^6.5.0",
"babel-runtime": "^6.26.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