@twin.org/nameof-vitest-plugin 0.0.4-next.8 → 0.0.4-next.9
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,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [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)
|
|
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.4-next.8 to 0.0.4-next.9
|
|
16
|
+
|
|
3
17
|
## [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)
|
|
4
18
|
|
|
5
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/nameof-vitest-plugin",
|
|
3
|
-
"version": "0.0.4-next.
|
|
3
|
+
"version": "0.0.4-next.9",
|
|
4
4
|
"description": "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.4-next.
|
|
17
|
+
"@twin.org/nameof-transformer": "0.0.4-next.9"
|
|
18
18
|
},
|
|
19
19
|
"main": "./dist/es/index.js",
|
|
20
20
|
"exports": {
|