scrubbr
Advanced tools
Comparing version 0.0.1-alpha.10 to 0.1.0
@@ -85,2 +85,10 @@ # Scrubbr | ||
### 4. Try it yourself | ||
You can play with an more complex example yourself by modifying the files in [./example](https://github.com/jgillick/scrubbr/tree/main/example) and then running: | ||
```shell | ||
npm run example | ||
``` | ||
## Next up | ||
@@ -87,0 +95,0 @@ |
@@ -61,3 +61,3 @@ import * as path from 'path'; | ||
// Show full user for the logged-in user | ||
scrubbr.addTypeSerializer('UserPublic', (data, state) => { | ||
scrubbr.addTypeSerializer('UserPublic', (data: any, state) => { | ||
if (data.id === state.context.loggedInUserId) { | ||
@@ -64,0 +64,0 @@ return useType('UserPrivileged'); |
{ | ||
"name": "scrubbr", | ||
"version": "0.0.1-alpha.10", | ||
"version": "0.1.0", | ||
"description": "Serialize and sanitize JSON data using TypeScript.", | ||
"repository": "https://github.com/jgillick/scrubbr", | ||
"homepage": "https://jgillick.github.io/scrubbr/", | ||
"main": "dist/index.js", | ||
@@ -7,0 +8,0 @@ "scripts": { |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1
1082543
58
3064