@twin.org/nameof-vitest-plugin 0.0.3 → 0.0.4-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.
package/dist/es/nameOfPlugin.js
CHANGED
|
@@ -10,6 +10,9 @@ import { manual } from "@twin.org/nameof-transformer";
|
|
|
10
10
|
export function nameOfPluginTransform(code, id) {
|
|
11
11
|
return manual(code);
|
|
12
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* Vitest plugin that applies the nameof transformer to all source files before testing.
|
|
15
|
+
*/
|
|
13
16
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
14
17
|
export const NameOfPlugin = {
|
|
15
18
|
name: "name-of",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nameOfPlugin.js","sourceRoot":"","sources":["../../src/nameOfPlugin.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAGtD;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB,CAAC,IAAY,EAAE,EAAU;IAC7D,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;AACrB,CAAC;AAED,gEAAgE;AAChE,MAAM,CAAC,MAAM,YAAY,GAAW;IACnC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,qBAAqB;CAChC,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { manual } from \"@twin.org/nameof-transformer\";\nimport type { Plugin } from \"vitest/config\";\n\n/**\n * Transforms the code using the nameOf plugin.\n * @param code The code to transform.\n * @param id The id of the file being transformed.\n * @returns The transformed code.\n */\nexport function nameOfPluginTransform(code: string, id: string): string {\n\treturn manual(code);\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const NameOfPlugin: Plugin = {\n\tname: \"name-of\",\n\tenforce: \"pre\",\n\ttransform: nameOfPluginTransform\n};\n"]}
|
|
1
|
+
{"version":3,"file":"nameOfPlugin.js","sourceRoot":"","sources":["../../src/nameOfPlugin.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAGtD;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB,CAAC,IAAY,EAAE,EAAU;IAC7D,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;AACrB,CAAC;AAED;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,YAAY,GAAW;IACnC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,qBAAqB;CAChC,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { manual } from \"@twin.org/nameof-transformer\";\nimport type { Plugin } from \"vitest/config\";\n\n/**\n * Transforms the code using the nameOf plugin.\n * @param code The code to transform.\n * @param id The id of the file being transformed.\n * @returns The transformed code.\n */\nexport function nameOfPluginTransform(code: string, id: string): string {\n\treturn manual(code);\n}\n\n/**\n * Vitest plugin that applies the nameof transformer to all source files before testing.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const NameOfPlugin: Plugin = {\n\tname: \"name-of\",\n\tenforce: \"pre\",\n\ttransform: nameOfPluginTransform\n};\n"]}
|
|
@@ -6,4 +6,7 @@ import type { Plugin } from "vitest/config";
|
|
|
6
6
|
* @returns The transformed code.
|
|
7
7
|
*/
|
|
8
8
|
export declare function nameOfPluginTransform(code: string, id: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* Vitest plugin that applies the nameof transformer to all source files before testing.
|
|
11
|
+
*/
|
|
9
12
|
export declare const NameOfPlugin: Plugin;
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,171 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.4-next.10](https://github.com/iotaledger/twin-framework/compare/nameof-vitest-plugin-v0.0.4-next.9...nameof-vitest-plugin-v0.0.4-next.10) (2026-06-15)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add context id features ([#206](https://github.com/iotaledger/twin-framework/issues/206)) ([ef0d4ee](https://github.com/iotaledger/twin-framework/commit/ef0d4ee11a4f5fc6cc6f52a4958ce905c04ee13b))
|
|
9
|
+
* eslint migration to flat config ([74427d7](https://github.com/iotaledger/twin-framework/commit/74427d78d342167f7850e49ab87269326355befe))
|
|
10
|
+
* locales validation ([#197](https://github.com/iotaledger/twin-framework/issues/197)) ([55fdadb](https://github.com/iotaledger/twin-framework/commit/55fdadb13595ce0047f787bd1d4135d429a99f12))
|
|
11
|
+
* relocate core packages from tools ([bcab8f3](https://github.com/iotaledger/twin-framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
|
|
12
|
+
* typescript 6 update ([1d10f31](https://github.com/iotaledger/twin-framework/commit/1d10f31e6516ec622773f45e88af82fe749b384a))
|
|
13
|
+
* update dependencies ([4da77ab](https://github.com/iotaledger/twin-framework/commit/4da77ab30f499e52825ac5a76f51436ceb59c26e))
|
|
14
|
+
* update dependencies ([f3bd015](https://github.com/iotaledger/twin-framework/commit/f3bd015efd169196b7e0335f5cab876ba6ca1d75))
|
|
15
|
+
* use cause instead of inner for errors ([1f4acc4](https://github.com/iotaledger/twin-framework/commit/1f4acc4d7a6b71a134d9547da9bf40de1e1e49da))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* ensure __decorate is defined for decorators ([103a563](https://github.com/iotaledger/twin-framework/commit/103a563ce01ebdef6240d2e590e7b026e8692684))
|
|
21
|
+
* repo urls in package.json for moved packages ([31ae463](https://github.com/iotaledger/twin-framework/commit/31ae463095dfa8c0e48bb5bb12316f1e8abb9a4c))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Dependencies
|
|
25
|
+
|
|
26
|
+
* The following workspace dependencies were updated
|
|
27
|
+
* dependencies
|
|
28
|
+
* @twin.org/nameof-transformer bumped from 0.0.4-next.9 to 0.0.4-next.10
|
|
29
|
+
|
|
30
|
+
## [0.0.4-next.9](https://github.com/iotaledger/twin-framework/compare/nameof-vitest-plugin-v0.0.4-next.8...nameof-vitest-plugin-v0.0.4-next.9) (2026-06-15)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Miscellaneous Chores
|
|
34
|
+
|
|
35
|
+
* **nameof-vitest-plugin:** Synchronize repo versions
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Dependencies
|
|
39
|
+
|
|
40
|
+
* The following workspace dependencies were updated
|
|
41
|
+
* dependencies
|
|
42
|
+
* @twin.org/nameof-transformer bumped from 0.0.4-next.8 to 0.0.4-next.9
|
|
43
|
+
|
|
44
|
+
## [0.0.4-next.8](https://github.com/iotaledger/twin-framework/compare/nameof-vitest-plugin-v0.0.4-next.7...nameof-vitest-plugin-v0.0.4-next.8) (2026-06-10)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Miscellaneous Chores
|
|
48
|
+
|
|
49
|
+
* **nameof-vitest-plugin:** Synchronize repo versions
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Dependencies
|
|
53
|
+
|
|
54
|
+
* The following workspace dependencies were updated
|
|
55
|
+
* dependencies
|
|
56
|
+
* @twin.org/nameof-transformer bumped from 0.0.4-next.7 to 0.0.4-next.8
|
|
57
|
+
|
|
58
|
+
## [0.0.4-next.7](https://github.com/iotaledger/twin-framework/compare/nameof-vitest-plugin-v0.0.4-next.6...nameof-vitest-plugin-v0.0.4-next.7) (2026-06-10)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### Miscellaneous Chores
|
|
62
|
+
|
|
63
|
+
* **nameof-vitest-plugin:** Synchronize repo versions
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### Dependencies
|
|
67
|
+
|
|
68
|
+
* The following workspace dependencies were updated
|
|
69
|
+
* dependencies
|
|
70
|
+
* @twin.org/nameof-transformer bumped from 0.0.4-next.6 to 0.0.4-next.7
|
|
71
|
+
|
|
72
|
+
## [0.0.4-next.6](https://github.com/iotaledger/twin-framework/compare/nameof-vitest-plugin-v0.0.4-next.5...nameof-vitest-plugin-v0.0.4-next.6) (2026-06-05)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
### Miscellaneous Chores
|
|
76
|
+
|
|
77
|
+
* **nameof-vitest-plugin:** Synchronize repo versions
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
### Dependencies
|
|
81
|
+
|
|
82
|
+
* The following workspace dependencies were updated
|
|
83
|
+
* dependencies
|
|
84
|
+
* @twin.org/nameof-transformer bumped from 0.0.4-next.5 to 0.0.4-next.6
|
|
85
|
+
|
|
86
|
+
## [0.0.4-next.5](https://github.com/iotaledger/twin-framework/compare/nameof-vitest-plugin-v0.0.4-next.4...nameof-vitest-plugin-v0.0.4-next.5) (2026-06-04)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### Miscellaneous Chores
|
|
90
|
+
|
|
91
|
+
* **nameof-vitest-plugin:** Synchronize repo versions
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
### Dependencies
|
|
95
|
+
|
|
96
|
+
* The following workspace dependencies were updated
|
|
97
|
+
* dependencies
|
|
98
|
+
* @twin.org/nameof-transformer bumped from 0.0.4-next.4 to 0.0.4-next.5
|
|
99
|
+
|
|
100
|
+
## [0.0.4-next.4](https://github.com/iotaledger/twin-framework/compare/nameof-vitest-plugin-v0.0.4-next.3...nameof-vitest-plugin-v0.0.4-next.4) (2026-06-02)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
### Miscellaneous Chores
|
|
104
|
+
|
|
105
|
+
* **nameof-vitest-plugin:** Synchronize repo versions
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
### Dependencies
|
|
109
|
+
|
|
110
|
+
* The following workspace dependencies were updated
|
|
111
|
+
* dependencies
|
|
112
|
+
* @twin.org/nameof-transformer bumped from 0.0.4-next.3 to 0.0.4-next.4
|
|
113
|
+
|
|
114
|
+
## [0.0.4-next.3](https://github.com/iotaledger/twin-framework/compare/nameof-vitest-plugin-v0.0.4-next.2...nameof-vitest-plugin-v0.0.4-next.3) (2026-05-28)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
### Miscellaneous Chores
|
|
118
|
+
|
|
119
|
+
* **nameof-vitest-plugin:** Synchronize repo versions
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
### Dependencies
|
|
123
|
+
|
|
124
|
+
* The following workspace dependencies were updated
|
|
125
|
+
* dependencies
|
|
126
|
+
* @twin.org/nameof-transformer bumped from 0.0.4-next.2 to 0.0.4-next.3
|
|
127
|
+
|
|
128
|
+
## [0.0.4-next.2](https://github.com/iotaledger/twin-framework/compare/nameof-vitest-plugin-v0.0.4-next.1...nameof-vitest-plugin-v0.0.4-next.2) (2026-05-28)
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
### Miscellaneous Chores
|
|
132
|
+
|
|
133
|
+
* **nameof-vitest-plugin:** Synchronize repo versions
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
### Dependencies
|
|
137
|
+
|
|
138
|
+
* The following workspace dependencies were updated
|
|
139
|
+
* dependencies
|
|
140
|
+
* @twin.org/nameof-transformer bumped from 0.0.4-next.1 to 0.0.4-next.2
|
|
141
|
+
|
|
142
|
+
## [0.0.4-next.1](https://github.com/iotaledger/twin-framework/compare/nameof-vitest-plugin-v0.0.4-next.0...nameof-vitest-plugin-v0.0.4-next.1) (2026-05-27)
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
### Features
|
|
146
|
+
|
|
147
|
+
* add context id features ([#206](https://github.com/iotaledger/twin-framework/issues/206)) ([ef0d4ee](https://github.com/iotaledger/twin-framework/commit/ef0d4ee11a4f5fc6cc6f52a4958ce905c04ee13b))
|
|
148
|
+
* eslint migration to flat config ([74427d7](https://github.com/iotaledger/twin-framework/commit/74427d78d342167f7850e49ab87269326355befe))
|
|
149
|
+
* locales validation ([#197](https://github.com/iotaledger/twin-framework/issues/197)) ([55fdadb](https://github.com/iotaledger/twin-framework/commit/55fdadb13595ce0047f787bd1d4135d429a99f12))
|
|
150
|
+
* relocate core packages from tools ([bcab8f3](https://github.com/iotaledger/twin-framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
|
|
151
|
+
* typescript 6 update ([1d10f31](https://github.com/iotaledger/twin-framework/commit/1d10f31e6516ec622773f45e88af82fe749b384a))
|
|
152
|
+
* update dependencies ([4da77ab](https://github.com/iotaledger/twin-framework/commit/4da77ab30f499e52825ac5a76f51436ceb59c26e))
|
|
153
|
+
* update dependencies ([f3bd015](https://github.com/iotaledger/twin-framework/commit/f3bd015efd169196b7e0335f5cab876ba6ca1d75))
|
|
154
|
+
* use cause instead of inner for errors ([1f4acc4](https://github.com/iotaledger/twin-framework/commit/1f4acc4d7a6b71a134d9547da9bf40de1e1e49da))
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
### Bug Fixes
|
|
158
|
+
|
|
159
|
+
* ensure __decorate is defined for decorators ([103a563](https://github.com/iotaledger/twin-framework/commit/103a563ce01ebdef6240d2e590e7b026e8692684))
|
|
160
|
+
* repo urls in package.json for moved packages ([31ae463](https://github.com/iotaledger/twin-framework/commit/31ae463095dfa8c0e48bb5bb12316f1e8abb9a4c))
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
### Dependencies
|
|
164
|
+
|
|
165
|
+
* The following workspace dependencies were updated
|
|
166
|
+
* dependencies
|
|
167
|
+
* @twin.org/nameof-transformer bumped from 0.0.4-next.0 to 0.0.4-next.1
|
|
168
|
+
|
|
3
169
|
## [0.0.3](https://github.com/iotaledger/twin-framework/compare/nameof-vitest-plugin-v0.0.3...nameof-vitest-plugin-v0.0.3) (2026-05-27)
|
|
4
170
|
|
|
5
171
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/nameof-vitest-plugin",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4-next.10",
|
|
4
4
|
"description": "Vitest plugin which perform the nameof transformation",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/iotaledger/framework.git",
|
|
7
|
+
"url": "git+https://github.com/iotaledger/twin-framework.git",
|
|
8
8
|
"directory": "packages/nameof-vitest-plugin"
|
|
9
9
|
},
|
|
10
10
|
"author": "martyn.janes@iota.org",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@twin.org/nameof-transformer": "
|
|
17
|
+
"@twin.org/nameof-transformer": "0.0.4-next.10"
|
|
18
18
|
},
|
|
19
19
|
"main": "./dist/es/index.js",
|
|
20
20
|
"exports": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"blockchain"
|
|
39
39
|
],
|
|
40
40
|
"bugs": {
|
|
41
|
-
"url": "git+https://github.com/iotaledger/framework/issues"
|
|
41
|
+
"url": "git+https://github.com/iotaledger/twin-framework/issues"
|
|
42
42
|
},
|
|
43
43
|
"homepage": "https://twindev.org"
|
|
44
44
|
}
|