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

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,177 @@
1
1
  # @twin.org/nameof-vitest-plugin - Changelog
2
2
 
3
+ ## [0.0.2-next.11](https://github.com/twinfoundation/framework/compare/nameof-vitest-plugin-v0.0.2-next.10...nameof-vitest-plugin-v0.0.2-next.11) (2025-09-15)
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.10 to 0.0.2-next.11
16
+
17
+ ## [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)
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.9 to 0.0.2-next.10
30
+
31
+ ## [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)
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.8 to 0.0.2-next.9
44
+
45
+ ## [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)
46
+
47
+
48
+ ### Miscellaneous Chores
49
+
50
+ * **nameof-vitest-plugin:** Synchronize repo versions
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.7 to 0.0.2-next.8
58
+
59
+ ## [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)
60
+
61
+
62
+ ### Features
63
+
64
+ * eslint migration to flat config ([74427d7](https://github.com/twinfoundation/framework/commit/74427d78d342167f7850e49ab87269326355befe))
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.6 to 0.0.2-next.7
72
+
73
+ ## [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)
74
+
75
+
76
+ ### Miscellaneous Chores
77
+
78
+ * **nameof-vitest-plugin:** Synchronize repo versions
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.5 to 0.0.2-next.6
86
+
87
+ ## [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)
88
+
89
+
90
+ ### Features
91
+
92
+ * use cause instead of inner for errors ([1f4acc4](https://github.com/twinfoundation/framework/commit/1f4acc4d7a6b71a134d9547da9bf40de1e1e49da))
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.4 to 0.0.2-next.5
100
+
101
+ ## [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)
102
+
103
+
104
+ ### Miscellaneous Chores
105
+
106
+ * **nameof-vitest-plugin:** Synchronize repo versions
107
+
108
+
109
+ ### Dependencies
110
+
111
+ * The following workspace dependencies were updated
112
+ * dependencies
113
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.3 to 0.0.2-next.4
114
+
115
+ ## [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)
116
+
117
+
118
+ ### Features
119
+
120
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
121
+ * update dependencies ([f3bd015](https://github.com/twinfoundation/framework/commit/f3bd015efd169196b7e0335f5cab876ba6ca1d75))
122
+
123
+
124
+ ### Bug Fixes
125
+
126
+ * repo urls in package.json for moved packages ([31ae463](https://github.com/twinfoundation/framework/commit/31ae463095dfa8c0e48bb5bb12316f1e8abb9a4c))
127
+
128
+
129
+ ### Dependencies
130
+
131
+ * The following workspace dependencies were updated
132
+ * dependencies
133
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.2 to 0.0.2-next.3
134
+
135
+ ## [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)
136
+
137
+
138
+ ### Features
139
+
140
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
141
+ * update dependencies ([f3bd015](https://github.com/twinfoundation/framework/commit/f3bd015efd169196b7e0335f5cab876ba6ca1d75))
142
+
143
+
144
+ ### Bug Fixes
145
+
146
+ * repo urls in package.json for moved packages ([31ae463](https://github.com/twinfoundation/framework/commit/31ae463095dfa8c0e48bb5bb12316f1e8abb9a4c))
147
+
148
+
149
+ ### Dependencies
150
+
151
+ * The following workspace dependencies were updated
152
+ * dependencies
153
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.1 to 0.0.2-next.2
154
+
155
+ ## [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)
156
+
157
+
158
+ ### Features
159
+
160
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
161
+ * update dependencies ([f3bd015](https://github.com/twinfoundation/framework/commit/f3bd015efd169196b7e0335f5cab876ba6ca1d75))
162
+
163
+
164
+ ### Bug Fixes
165
+
166
+ * repo urls in package.json for moved packages ([31ae463](https://github.com/twinfoundation/framework/commit/31ae463095dfa8c0e48bb5bb12316f1e8abb9a4c))
167
+
168
+
169
+ ### Dependencies
170
+
171
+ * The following workspace dependencies were updated
172
+ * dependencies
173
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.0 to 0.0.2-next.1
174
+
3
175
  ## 0.0.1 (2025-07-03)
4
176
 
5
177
 
@@ -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.11",
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.11"
18
18
  },
19
19
  "main": "./dist/cjs/index.cjs",
20
20
  "module": "./dist/esm/index.mjs",