@elliots/bun-plugin-typical 0.2.0-beta.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.mts +12 -0
  2. package/package.json +2 -2
package/dist/index.d.mts CHANGED
@@ -46,6 +46,18 @@ interface TypicalConfig {
46
46
  * Default: true
47
47
  */
48
48
  validateFunctions?: boolean;
49
+ /**
50
+ * Transform JSON.parse<T>() calls to validate and filter the parsed result
51
+ * to only include properties defined in type T.
52
+ * Default: true
53
+ */
54
+ transformJSONParse?: boolean;
55
+ /**
56
+ * Transform JSON.stringify<T>() calls to only stringify properties defined
57
+ * in type T, preventing accidental data leaks.
58
+ * Default: true
59
+ */
60
+ transformJSONStringify?: boolean;
49
61
  /**
50
62
  * Source map generation settings.
51
63
  * Controls whether and how source maps are generated for transformed code.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliots/bun-plugin-typical",
3
- "version": "0.2.0-beta.1",
3
+ "version": "0.2.0",
4
4
  "description": "Bun plugin for typical - runtime safe TypeScript transformer",
5
5
  "keywords": [
6
6
  "bun",
@@ -36,7 +36,7 @@
36
36
  "access": "public"
37
37
  },
38
38
  "dependencies": {
39
- "@elliots/typical": "0.2.0-beta.1"
39
+ "@elliots/typical": "0.2.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/bun": "^1.0.0",