@elliots/unplugin-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.
@@ -1,4 +1,4 @@
1
- import { t as Typical } from "./index-CnuworeF.mjs";
1
+ import { t as Typical } from "./index-DrHjl95P.mjs";
2
2
 
3
3
  //#region src/esbuild.d.ts
4
4
 
package/dist/farm.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Typical } from "./index-CnuworeF.mjs";
1
+ import { t as Typical } from "./index-DrHjl95P.mjs";
2
2
 
3
3
  //#region src/farm.d.ts
4
4
 
@@ -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/dist/index.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as Options, t as Typical } from "./index-CnuworeF.mjs";
1
+ import { n as Options, t as Typical } from "./index-DrHjl95P.mjs";
2
2
  export { Options, Typical };
@@ -1,4 +1,4 @@
1
- import { t as Typical } from "./index-CnuworeF.mjs";
1
+ import { t as Typical } from "./index-DrHjl95P.mjs";
2
2
 
3
3
  //#region src/rolldown.d.ts
4
4
 
package/dist/rollup.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Typical } from "./index-CnuworeF.mjs";
1
+ import { t as Typical } from "./index-DrHjl95P.mjs";
2
2
 
3
3
  //#region src/rollup.d.ts
4
4
 
package/dist/rspack.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Typical } from "./index-CnuworeF.mjs";
1
+ import { t as Typical } from "./index-DrHjl95P.mjs";
2
2
 
3
3
  //#region src/rspack.d.ts
4
4
 
package/dist/vite.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Typical } from "./index-CnuworeF.mjs";
1
+ import { t as Typical } from "./index-DrHjl95P.mjs";
2
2
 
3
3
  //#region src/vite.d.ts
4
4
 
@@ -1,4 +1,4 @@
1
- import { t as Typical } from "./index-CnuworeF.mjs";
1
+ import { t as Typical } from "./index-DrHjl95P.mjs";
2
2
 
3
3
  //#region src/webpack.d.ts
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliots/unplugin-typical",
3
- "version": "0.2.0-beta.1",
3
+ "version": "0.2.0",
4
4
  "description": "Unplugin for typical - runtime safe TypeScript transformer",
5
5
  "keywords": [
6
6
  "esbuild",
@@ -57,7 +57,7 @@
57
57
  "access": "public"
58
58
  },
59
59
  "dependencies": {
60
- "@elliots/typical": "0.2.0-beta.1",
60
+ "@elliots/typical": "0.2.0",
61
61
  "unplugin": "^2.3.11"
62
62
  },
63
63
  "devDependencies": {