Skip to content

Commit

Permalink
vitest should be a dev dependency update exports
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hewitt committed Nov 2, 2024
1 parent 762e82f commit 89284a8
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .changeset/shiny-plants-double.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"deep-redact": patch
---

Stop including vitest as a dependency update exports
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,17 @@ const result = redact(data, {
});

console.log(result);
// { email: "[REDACTED]", password: "[REDACTED]", dontReactMe: "123456", jsonString: { email: "[REDACTED]"}, url: "https://cv.moshie.dev/redactor?email=%5BREDACTED%5D&password=%5BREDACTED%5D&this=test" }
/**
* {
* email: "[REDACTED]",
* password: "[REDACTED]",
* dontReactMe: "123456",
* jsonString: {
* email: "[REDACTED]"
* },
* url: "https://cv.moshie.dev/redactor?email=%5BREDACTED%5D&password=%5BREDACTED%5D&this=test"
* }
*/
```

## Options
Expand Down
12 changes: 4 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,9 @@
},
"type": "module",
"exports": {
".": {
"default": "./dist/index.js"
}
".": "./dist/index.js"
},
"files": [
"dist/"
],
"files": ["dist/"],
"keywords": [
"blacklist",
"sensitive",
Expand All @@ -43,10 +39,10 @@
"@changesets/cli": "^2.27.9",
"is-url": "^1.2.4",
"query-string": "^9.1.1",
"relaxed-json": "^1.0.3",
"vitest": "^2.1.4"
"relaxed-json": "^1.0.3"
},
"devDependencies": {
"vitest": "^2.1.4",
"rimraf": "^6.0.1",
"@biomejs/biome": "1.9.4",
"@types/is-url": "^1.2.32",
Expand Down
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 89284a8

Please sign in to comment.