@lifeomic/abac
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -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); |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
230517
417
Updatedajv@^6.5.0