@powerlines/plugin-untyped 0.2.419 → 0.2.422
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/index.cjs +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +16 -49
package/dist/index.cjs
CHANGED
|
@@ -33,7 +33,7 @@ const plugin = (options = {}) => {
|
|
|
33
33
|
return this.untyped({
|
|
34
34
|
entry: this.config.untyped.schema,
|
|
35
35
|
outputPath: this.config.untyped.outputPath,
|
|
36
|
-
generatedBy: this.config.framework
|
|
36
|
+
generatedBy: this.config.framework?.name || "powerlines"
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
};
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;YA2BY,MAAA;IACR,OAAA,GAAU,oBAAA;EAAA;AAAA;;;;;;;cAUD,MAAA,oBACM,oBAAA,GAAuB,oBAAA,EAExC,OAAA,GAAS,oBAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;YA2BY,MAAA;IACR,OAAA,GAAU,oBAAA;EAAA;AAAA;;;;;;;cAUD,MAAA,oBACM,oBAAA,GAAuB,oBAAA,EAExC,OAAA,GAAS,oBAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -32,7 +32,7 @@ const plugin = (options = {}) => {
|
|
|
32
32
|
return this.untyped({
|
|
33
33
|
entry: this.config.untyped.schema,
|
|
34
34
|
outputPath: this.config.untyped.outputPath,
|
|
35
|
-
generatedBy: this.config.framework
|
|
35
|
+
generatedBy: this.config.framework?.name || "powerlines"
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
};
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { getGenerateAction } from \"@storm-software/untyped/generate\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport type { Plugin } from \"powerlines\";\nimport { replacePathTokens } from \"powerlines/plugin-utils\";\nimport { UntypedPluginContext, UntypedPluginOptions } from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n untyped?: UntypedPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to use Untyped for code generation based on user-defined schemas.\n *\n * @param options - The plugin options.\n * @returns A Powerlines plugin instance.\n */\nexport const plugin = <\n TContext extends UntypedPluginContext = UntypedPluginContext\n>(\n options: UntypedPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"untyped\",\n config() {\n return {\n untyped: {\n schema: \"{root}/**/{untyped.ts,*.untyped.ts}\",\n ...options\n }\n };\n },\n async configResolved() {\n if (!this.config.untyped.schema) {\n throw new Error(\n \"Untyped plugin requires a schema path or glob pattern to be specified in the configuration.\"\n );\n }\n\n this.config.untyped.schema = toArray(this.config.untyped.schema).map(\n path => replacePathTokens(this, path)\n );\n\n this.untyped = getGenerateAction({\n workspaceRoot: this.config.cwd ?? process.cwd(),\n skipCache: this.config.skipCache,\n directories: {\n cache: this.cachePath\n },\n logLevel: this.config.logLevel\n } as any);\n },\n async prepare() {\n return this.untyped({\n entry: this.config.untyped.schema,\n outputPath: this.config.untyped.outputPath,\n generatedBy: this.config.framework?.name || \"powerlines\"\n });\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;AAsCA,MAAa,UAGX,UAAgC,EAAE,KACb;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,UAAO,EACL,SAAS;IACP,QAAQ;IACR,GAAG;IACJ,EACF;;EAEH,MAAM,iBAAiB;AACrB,OAAI,CAAC,KAAK,OAAO,QAAQ,OACvB,OAAM,IAAI,MACR,8FACD;AAGH,QAAK,OAAO,QAAQ,SAAS,QAAQ,KAAK,OAAO,QAAQ,OAAO,CAAC,KAC/D,SAAQ,kBAAkB,MAAM,KAAK,CACtC;AAED,QAAK,UAAU,kBAAkB;IAC/B,eAAe,KAAK,OAAO,OAAO,QAAQ,KAAK;IAC/C,WAAW,KAAK,OAAO;IACvB,aAAa,EACX,OAAO,KAAK,WACb;IACD,UAAU,KAAK,OAAO;IACvB,CAAQ;;EAEX,MAAM,UAAU;AACd,UAAO,KAAK,QAAQ;IAClB,OAAO,KAAK,OAAO,QAAQ;IAC3B,YAAY,KAAK,OAAO,QAAQ;IAChC,aAAa,KAAK,OAAO,WAAW,QAAQ;IAC7C,CAAC;;EAEL"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-untyped",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.422",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to use Untyped for code generation based on user-defined schemas.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "github",
|
|
8
8
|
"url": "https://github.com/storm-software/powerlines.git",
|
|
9
|
-
"directory": "packages/plugin-untyped"
|
|
9
|
+
"directory": "packages/plugins/plugin-untyped"
|
|
10
10
|
},
|
|
11
11
|
"homepage": "https://stormsoftware.com",
|
|
12
12
|
"bugs": {
|
|
@@ -41,64 +41,31 @@
|
|
|
41
41
|
"main": "./dist/index.cjs",
|
|
42
42
|
"module": "./dist/index.mjs",
|
|
43
43
|
"exports": {
|
|
44
|
-
".": {
|
|
45
|
-
"require": {
|
|
46
|
-
"types": "./dist/index.d.cts",
|
|
47
|
-
"default": "./dist/index.cjs"
|
|
48
|
-
},
|
|
49
|
-
"import": {
|
|
50
|
-
"types": "./dist/index.d.mts",
|
|
51
|
-
"default": "./dist/index.mjs"
|
|
52
|
-
},
|
|
53
|
-
"default": {
|
|
54
|
-
"types": "./dist/index.d.mts",
|
|
55
|
-
"default": "./dist/index.mjs"
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
"./package.json": "./package.json",
|
|
44
|
+
".": { "import": "./dist/index.mjs", "require": "./dist/index.cjs" },
|
|
59
45
|
"./types": {
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
"default": "./dist/types/index.cjs"
|
|
63
|
-
},
|
|
64
|
-
"import": {
|
|
65
|
-
"types": "./dist/types/index.d.mts",
|
|
66
|
-
"default": "./dist/types/index.mjs"
|
|
67
|
-
},
|
|
68
|
-
"default": {
|
|
69
|
-
"types": "./dist/types/index.d.mts",
|
|
70
|
-
"default": "./dist/types/index.mjs"
|
|
71
|
-
}
|
|
46
|
+
"import": "./dist/types/index.mjs",
|
|
47
|
+
"require": "./dist/types/index.cjs"
|
|
72
48
|
},
|
|
73
49
|
"./types/plugin": {
|
|
74
|
-
"
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"import": {
|
|
79
|
-
"types": "./dist/types/plugin.d.mts",
|
|
80
|
-
"default": "./dist/types/plugin.mjs"
|
|
81
|
-
},
|
|
82
|
-
"default": {
|
|
83
|
-
"types": "./dist/types/plugin.d.mts",
|
|
84
|
-
"default": "./dist/types/plugin.mjs"
|
|
85
|
-
}
|
|
86
|
-
}
|
|
50
|
+
"import": "./dist/types/plugin.mjs",
|
|
51
|
+
"require": "./dist/types/plugin.cjs"
|
|
52
|
+
},
|
|
53
|
+
"./package.json": "./package.json"
|
|
87
54
|
},
|
|
88
55
|
"typings": "dist/index.d.mts",
|
|
89
56
|
"files": ["dist/**/*"],
|
|
90
57
|
"keywords": ["untyped", "powerlines", "storm-software", "powerlines-plugin"],
|
|
91
58
|
"dependencies": {
|
|
92
|
-
"@storm-software/untyped": "^0.24.
|
|
93
|
-
"@stryke/convert": "^0.7.
|
|
94
|
-
"powerlines": "^0.47.
|
|
59
|
+
"@storm-software/untyped": "^0.24.144",
|
|
60
|
+
"@stryke/convert": "^0.7.6",
|
|
61
|
+
"powerlines": "^0.47.7"
|
|
95
62
|
},
|
|
96
63
|
"devDependencies": {
|
|
97
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
98
|
-
"@storm-software/config": "^1.137.
|
|
99
|
-
"@types/node": "^25.
|
|
64
|
+
"@powerlines/plugin-plugin": "^0.12.419",
|
|
65
|
+
"@storm-software/config": "^1.137.35",
|
|
66
|
+
"@types/node": "^25.7.0"
|
|
100
67
|
},
|
|
101
68
|
"publishConfig": { "access": "public" },
|
|
102
69
|
"types": "./dist/index.d.cts",
|
|
103
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "3c5c701e16af74006dd70b965009d41eb22ace2a"
|
|
104
71
|
}
|