@twin.org/nameof-vitest-plugin 0.0.1 → 0.0.2-next.10

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.
@@ -4,11 +4,13 @@ var nameofTransformer = require('@twin.org/nameof-transformer');
4
4
 
5
5
  // Copyright 2024 IOTA Stiftung.
6
6
  // SPDX-License-Identifier: Apache-2.0.
7
+ const nameOfPluginTransform = (code, id) => nameofTransformer.manual(code);
7
8
  // eslint-disable-next-line @typescript-eslint/naming-convention
8
9
  const NameOfPlugin = {
9
10
  name: "name-of",
10
11
  enforce: "pre",
11
- transform: (code, id) => nameofTransformer.manual(code)
12
+ transform: nameOfPluginTransform
12
13
  };
13
14
 
14
15
  exports.NameOfPlugin = NameOfPlugin;
16
+ exports.nameOfPluginTransform = nameOfPluginTransform;
@@ -2,11 +2,12 @@ import { manual } from '@twin.org/nameof-transformer';
2
2
 
3
3
  // Copyright 2024 IOTA Stiftung.
4
4
  // SPDX-License-Identifier: Apache-2.0.
5
+ const nameOfPluginTransform = (code, id) => manual(code);
5
6
  // eslint-disable-next-line @typescript-eslint/naming-convention
6
7
  const NameOfPlugin = {
7
8
  name: "name-of",
8
9
  enforce: "pre",
9
- transform: (code, id) => manual(code)
10
+ transform: nameOfPluginTransform
10
11
  };
11
12
 
12
- export { NameOfPlugin };
13
+ export { NameOfPlugin, nameOfPluginTransform };
@@ -1,2 +1,3 @@
1
1
  import type { Plugin } from "vitest/config";
2
+ export declare const nameOfPluginTransform: (code: string, id: string) => string;
2
3
  export declare const NameOfPlugin: Plugin;
package/docs/changelog.md CHANGED
@@ -1,5 +1,163 @@
1
1
  # @twin.org/nameof-vitest-plugin - Changelog
2
2
 
3
+ ## [0.0.2-next.10](https://github.com/twinfoundation/framework/compare/nameof-vitest-plugin-v0.0.2-next.9...nameof-vitest-plugin-v0.0.2-next.10) (2025-09-11)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * **nameof-vitest-plugin:** Synchronize repo versions
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.9 to 0.0.2-next.10
16
+
17
+ ## [0.0.2-next.9](https://github.com/twinfoundation/framework/compare/nameof-vitest-plugin-v0.0.2-next.8...nameof-vitest-plugin-v0.0.2-next.9) (2025-09-08)
18
+
19
+
20
+ ### Miscellaneous Chores
21
+
22
+ * **nameof-vitest-plugin:** Synchronize repo versions
23
+
24
+
25
+ ### Dependencies
26
+
27
+ * The following workspace dependencies were updated
28
+ * dependencies
29
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.8 to 0.0.2-next.9
30
+
31
+ ## [0.0.2-next.8](https://github.com/twinfoundation/framework/compare/nameof-vitest-plugin-v0.0.2-next.7...nameof-vitest-plugin-v0.0.2-next.8) (2025-09-05)
32
+
33
+
34
+ ### Miscellaneous Chores
35
+
36
+ * **nameof-vitest-plugin:** Synchronize repo versions
37
+
38
+
39
+ ### Dependencies
40
+
41
+ * The following workspace dependencies were updated
42
+ * dependencies
43
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.7 to 0.0.2-next.8
44
+
45
+ ## [0.0.2-next.7](https://github.com/twinfoundation/framework/compare/nameof-vitest-plugin-v0.0.2-next.6...nameof-vitest-plugin-v0.0.2-next.7) (2025-08-29)
46
+
47
+
48
+ ### Features
49
+
50
+ * eslint migration to flat config ([74427d7](https://github.com/twinfoundation/framework/commit/74427d78d342167f7850e49ab87269326355befe))
51
+
52
+
53
+ ### Dependencies
54
+
55
+ * The following workspace dependencies were updated
56
+ * dependencies
57
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.6 to 0.0.2-next.7
58
+
59
+ ## [0.0.2-next.6](https://github.com/twinfoundation/framework/compare/nameof-vitest-plugin-v0.0.2-next.5...nameof-vitest-plugin-v0.0.2-next.6) (2025-08-27)
60
+
61
+
62
+ ### Miscellaneous Chores
63
+
64
+ * **nameof-vitest-plugin:** Synchronize repo versions
65
+
66
+
67
+ ### Dependencies
68
+
69
+ * The following workspace dependencies were updated
70
+ * dependencies
71
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.5 to 0.0.2-next.6
72
+
73
+ ## [0.0.2-next.5](https://github.com/twinfoundation/framework/compare/nameof-vitest-plugin-v0.0.2-next.4...nameof-vitest-plugin-v0.0.2-next.5) (2025-08-19)
74
+
75
+
76
+ ### Features
77
+
78
+ * use cause instead of inner for errors ([1f4acc4](https://github.com/twinfoundation/framework/commit/1f4acc4d7a6b71a134d9547da9bf40de1e1e49da))
79
+
80
+
81
+ ### Dependencies
82
+
83
+ * The following workspace dependencies were updated
84
+ * dependencies
85
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.4 to 0.0.2-next.5
86
+
87
+ ## [0.0.2-next.4](https://github.com/twinfoundation/framework/compare/nameof-vitest-plugin-v0.0.2-next.3...nameof-vitest-plugin-v0.0.2-next.4) (2025-08-15)
88
+
89
+
90
+ ### Miscellaneous Chores
91
+
92
+ * **nameof-vitest-plugin:** Synchronize repo versions
93
+
94
+
95
+ ### Dependencies
96
+
97
+ * The following workspace dependencies were updated
98
+ * dependencies
99
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.3 to 0.0.2-next.4
100
+
101
+ ## [0.0.2-next.3](https://github.com/twinfoundation/framework/compare/nameof-vitest-plugin-v0.0.2-next.2...nameof-vitest-plugin-v0.0.2-next.3) (2025-08-06)
102
+
103
+
104
+ ### Features
105
+
106
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
107
+ * update dependencies ([f3bd015](https://github.com/twinfoundation/framework/commit/f3bd015efd169196b7e0335f5cab876ba6ca1d75))
108
+
109
+
110
+ ### Bug Fixes
111
+
112
+ * repo urls in package.json for moved packages ([31ae463](https://github.com/twinfoundation/framework/commit/31ae463095dfa8c0e48bb5bb12316f1e8abb9a4c))
113
+
114
+
115
+ ### Dependencies
116
+
117
+ * The following workspace dependencies were updated
118
+ * dependencies
119
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.2 to 0.0.2-next.3
120
+
121
+ ## [0.0.2-next.2](https://github.com/twinfoundation/framework/compare/nameof-vitest-plugin-v0.0.2-next.1...nameof-vitest-plugin-v0.0.2-next.2) (2025-08-06)
122
+
123
+
124
+ ### Features
125
+
126
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
127
+ * update dependencies ([f3bd015](https://github.com/twinfoundation/framework/commit/f3bd015efd169196b7e0335f5cab876ba6ca1d75))
128
+
129
+
130
+ ### Bug Fixes
131
+
132
+ * repo urls in package.json for moved packages ([31ae463](https://github.com/twinfoundation/framework/commit/31ae463095dfa8c0e48bb5bb12316f1e8abb9a4c))
133
+
134
+
135
+ ### Dependencies
136
+
137
+ * The following workspace dependencies were updated
138
+ * dependencies
139
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.1 to 0.0.2-next.2
140
+
141
+ ## [0.0.2-next.1](https://github.com/twinfoundation/framework/compare/nameof-vitest-plugin-v0.0.2-next.0...nameof-vitest-plugin-v0.0.2-next.1) (2025-08-06)
142
+
143
+
144
+ ### Features
145
+
146
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
147
+ * update dependencies ([f3bd015](https://github.com/twinfoundation/framework/commit/f3bd015efd169196b7e0335f5cab876ba6ca1d75))
148
+
149
+
150
+ ### Bug Fixes
151
+
152
+ * repo urls in package.json for moved packages ([31ae463](https://github.com/twinfoundation/framework/commit/31ae463095dfa8c0e48bb5bb12316f1e8abb9a4c))
153
+
154
+
155
+ ### Dependencies
156
+
157
+ * The following workspace dependencies were updated
158
+ * dependencies
159
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.0 to 0.0.2-next.1
160
+
3
161
  ## 0.0.1 (2025-07-03)
4
162
 
5
163
 
@@ -0,0 +1,17 @@
1
+ # Function: nameOfPluginTransform()
2
+
3
+ > **nameOfPluginTransform**(`code`, `id`): `string`
4
+
5
+ ## Parameters
6
+
7
+ ### code
8
+
9
+ `string`
10
+
11
+ ### id
12
+
13
+ `string`
14
+
15
+ ## Returns
16
+
17
+ `string`
@@ -3,3 +3,7 @@
3
3
  ## Variables
4
4
 
5
5
  - [NameOfPlugin](variables/NameOfPlugin.md)
6
+
7
+ ## Functions
8
+
9
+ - [nameOfPluginTransform](functions/nameOfPluginTransform.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/nameof-vitest-plugin",
3
- "version": "0.0.1",
3
+ "version": "0.0.2-next.10",
4
4
  "description": "A Vitest plugin which perform the nameof transformation",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,7 +14,7 @@
14
14
  "node": ">=20.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@twin.org/nameof-transformer": "^0.0.1"
17
+ "@twin.org/nameof-transformer": "0.0.2-next.10"
18
18
  },
19
19
  "main": "./dist/cjs/index.cjs",
20
20
  "module": "./dist/esm/index.mjs",