@aphro/authorization-grammar
Advanced tools
Comparing version 0.2.2 to 0.2.3
# @aphro/authorization-grammar | ||
## 0.2.3 | ||
### Patch Changes | ||
- rebuild -- last publish had a clobbered version of pnpm | ||
## 0.2.2 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@aphro/authorization-grammar", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"main": "lib/index.js", | ||
@@ -24,4 +24,3 @@ "type": "module", | ||
"deep-clean": "rm -rf ./lib || true && rm tsconfig.tsbuildinfo || true" | ||
}, | ||
"readme": "# Auth Grammar\n\nExtends `Aphrodite SDL` with a grammar for defining row, column and edge level visibility.\n\nBefore:\n```\nUser as Node {\n id: ID<User>\n name: NaturalLanguage\n password: PBKDF2\n}\n```\n\nAfter:\n```\nUser as Node {\n id: ID<User>\n name: NaturalLanguage\n password: PBKDF2 & Auth { red: [AllowIf((viewer, node) => node.id === viewer.id)] } # field level privacy\n} & Authorization { # object level privacy\n read: [\n AlwaysAllow # everyone can see everyone\n ]\n write: [\n AllowIf((viewer, node) => node.id === viewer.id) # only user themselves can update themselves\n ]\n}\n```\n\n> TODO: this should also extend the `mutation` grammar to allow auth on specific mutations." | ||
} | ||
} |
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
4463