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

@aphro/authorization-grammar

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aphro/authorization-grammar - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

6

CHANGELOG.md
# @aphro/authorization-grammar
## 0.2.3
### Patch Changes
- rebuild -- last publish had a clobbered version of pnpm
## 0.2.2

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

5

package.json
{
"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."
}
}
.turbo/turbo-deep-clean.log

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