Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

scrubbr

Package Overview
Dependencies
67
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1-alpha.10 to 0.1.0

8

docs/index.md

@@ -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 @@

2

example/index.ts

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc