@powerlines/plugin-untyped 0.2.294 → 0.2.296

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/README.md CHANGED
@@ -27,7 +27,7 @@ This package is part of the <b>🔌 Powerlines</b> monorepo. Powerlines is the "
27
27
 
28
28
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
29
29
 
30
- [![Version](https://img.shields.io/badge/version-0.2.287-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://stormsoftware.com/projects/powerlines)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/powerlines/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
30
+ [![Version](https://img.shields.io/badge/version-0.2.294-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://stormsoftware.com/projects/powerlines)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/powerlines/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
@@ -58,21 +58,19 @@ A Powerlines plugin to use [untyped](https://github.com/unjs/untyped) for code g
58
58
 
59
59
  ## Table of Contents
60
60
 
61
- - [Powerlines - Untyped Plugin](#powerlines---untyped-plugin)
62
- - [Table of Contents](#table-of-contents)
63
- - [Installing](#installing)
64
- - [Reduced Package Size](#reduced-package-size)
65
- - [Development](#development)
66
- - [Building](#building)
67
- - [Running unit tests](#running-unit-tests)
68
- - [Linting](#linting)
69
- - [Storm Workspaces](#storm-workspaces)
70
- - [Roadmap](#roadmap)
71
- - [Support](#support)
72
- - [License](#license)
73
- - [Changelog](#changelog)
74
- - [Contributing](#contributing)
75
- - [Contributors](#contributors)
61
+ - [Installing](#installing)
62
+ - [Reduced Package Size](#reduced-package-size)
63
+ - [Development](#development)
64
+ - [Building](#building)
65
+ - [Running unit tests](#running-unit-tests)
66
+ - [Linting](#linting)
67
+ - [Storm Workspaces](#storm-workspaces)
68
+ - [Roadmap](#roadmap)
69
+ - [Support](#support)
70
+ - [License](#license)
71
+ - [Changelog](#changelog)
72
+ - [Contributing](#contributing)
73
+ - [Contributors](#contributors)
76
74
 
77
75
  <!-- END doctoc -->
78
76
 
@@ -0,0 +1,3 @@
1
+ import "node:module";
2
+
3
+ export { };
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
- Object.defineProperty(exports, '__esModule', { value: true });
2
- let __storm_software_untyped_generate = require("@storm-software/untyped/generate");
3
- let __stryke_convert_to_array = require("@stryke/convert/to-array");
1
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
2
+ let _storm_software_untyped_generate = require("@storm-software/untyped/generate");
3
+ let _stryke_convert_to_array = require("@stryke/convert/to-array");
4
4
  let powerlines_plugin_utils = require("powerlines/plugin-utils");
5
5
 
6
6
  //#region src/index.ts
@@ -21,8 +21,8 @@ const plugin = (options = {}) => {
21
21
  },
22
22
  async configResolved() {
23
23
  if (!this.config.untyped.schema) throw new Error("Untyped plugin requires a schema path or glob pattern to be specified in the configuration.");
24
- this.config.untyped.schema = (0, __stryke_convert_to_array.toArray)(this.config.untyped.schema).map((path) => (0, powerlines_plugin_utils.replacePathTokens)(this, path));
25
- this.untyped = (0, __storm_software_untyped_generate.getGenerateAction)(this.workspaceConfig);
24
+ this.config.untyped.schema = (0, _stryke_convert_to_array.toArray)(this.config.untyped.schema).map((path) => (0, powerlines_plugin_utils.replacePathTokens)(this, path));
25
+ this.untyped = (0, _storm_software_untyped_generate.getGenerateAction)(this.workspaceConfig);
26
26
  },
27
27
  async prepare() {
28
28
  return this.untyped({
@@ -33,8 +33,7 @@ const plugin = (options = {}) => {
33
33
  }
34
34
  };
35
35
  };
36
- var src_default = plugin;
37
36
 
38
37
  //#endregion
39
- exports.default = src_default;
38
+ exports.default = plugin;
40
39
  exports.plugin = plugin;
package/dist/index.d.cts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { UntypedPluginContext, UntypedPluginOptions, UntypedPluginResolvedConfig, UntypedPluginUserConfig, __ΩUntypedPluginContext, __ΩUntypedPluginOptions, __ΩUntypedPluginResolvedConfig, __ΩUntypedPluginUserConfig } from "./types/plugin.cjs";
2
- import "./types/index.cjs";
3
2
  import { Plugin } from "powerlines";
4
3
 
5
4
  //#region src/index.d.ts
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;IAyBwB,OAAA,CAAA,EAIV,oBAJU;EAAA;;;;AAcxB;;;;AAIU,cAJG,MAIH,EAAA,CAAA,iBAHS,oBAGT,GAHgC,oBAGhC,CAAA,CAAA,OAAA,CAAA,EADC,oBACD,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;YA4BY,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 CHANGED
@@ -1,5 +1,4 @@
1
1
  import { UntypedPluginContext, UntypedPluginOptions, UntypedPluginResolvedConfig, UntypedPluginUserConfig, __ΩUntypedPluginContext, __ΩUntypedPluginOptions, __ΩUntypedPluginResolvedConfig, __ΩUntypedPluginUserConfig } from "./types/plugin.mjs";
2
- import "./types/index.mjs";
3
2
  import { Plugin } from "powerlines";
4
3
 
5
4
  //#region src/index.d.ts
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;IAyBwB,OAAA,CAAA,EAIV,oBAJU;EAAA;;;;AAcxB;;;;AAIU,cAJG,MAIH,EAAA,CAAA,iBAHS,oBAGT,GAHgC,oBAGhC,CAAA,CAAA,OAAA,CAAA,EADC,oBACD,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;YA4BY,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,8 +32,7 @@ const plugin = (options = {}) => {
32
32
  }
33
33
  };
34
34
  };
35
- var src_default = plugin;
36
35
 
37
36
  //#endregion
38
- export { src_default as default, plugin };
37
+ export { plugin as default, plugin };
39
38
  //# sourceMappingURL=index.mjs.map
@@ -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 type { StormWorkspaceConfig } from \"@storm-software/config/types\";\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 this.workspaceConfig as StormWorkspaceConfig\n );\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\n });\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;AAuCA,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,kBACb,KAAK,gBACN;;EAEH,MAAM,UAAU;AACd,UAAO,KAAK,QAAQ;IAClB,OAAO,KAAK,OAAO,QAAQ;IAC3B,YAAY,KAAK,OAAO,QAAQ;IAChC,aAAa,KAAK,OAAO;IAC1B,CAAC;;EAEL;;AAGH,kBAAe"}
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 type { StormWorkspaceConfig } from \"@storm-software/config/types\";\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 this.workspaceConfig as StormWorkspaceConfig\n );\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\n });\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;AAuCA,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,kBACb,KAAK,gBACN;;EAEH,MAAM,UAAU;AACd,UAAO,KAAK,QAAQ;IAClB,OAAO,KAAK,OAAO,QAAQ;IAC3B,YAAY,KAAK,OAAO,QAAQ;IAChC,aAAa,KAAK,OAAO;IAC1B,CAAC;;EAEL"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;UAqBiB,oBAAA;;AAAjB;AAiBA;AAIA;AAIA;EAC0B,MAAA,CAAA,EAAA,MAAA,GAAA,MAAA,EAAA;EACtB;;;;;;;;UAVa,uBAAA,SAAgC;YACrC;;UAGK,2BAAA,SAAoC;WAC1C;;UAGM,6CACS,8BACtB,qCACM,cAAc;WACb,kBAAkB"}
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;UAqBiB,oBAAA;;AAAjB;;;;EAME,MAAA;EAWe;;;;;;EAHf,UAAA;AAAA;AAAA,UAGe,uBAAA,SAAgC,UAAA;EAC/C,OAAA,GAAU,oBAAA;AAAA;AAAA,UAGK,2BAAA,SAAoC,cAAA;EACnD,OAAA,EAAS,oBAAA;AAAA;AAAA,UAGM,oBAAA,yBACS,2BAAA,GACtB,2BAAA,UACM,aAAA,CAAc,eAAA;EACtB,OAAA,EAAS,UAAA,QAAkB,iBAAA;AAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;UAqBiB,oBAAA;;AAAjB;AAiBA;AAIA;AAIA;EAC0B,MAAA,CAAA,EAAA,MAAA,GAAA,MAAA,EAAA;EACtB;;;;;;;;UAVa,uBAAA,SAAgC;YACrC;;UAGK,2BAAA,SAAoC;WAC1C;;UAGM,6CACS,8BACtB,qCACM,cAAc;WACb,kBAAkB"}
1
+ {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;UAqBiB,oBAAA;;AAAjB;;;;EAME,MAAA;EAWe;;;;;;EAHf,UAAA;AAAA;AAAA,UAGe,uBAAA,SAAgC,UAAA;EAC/C,OAAA,GAAU,oBAAA;AAAA;AAAA,UAGK,2BAAA,SAAoC,cAAA;EACnD,OAAA,EAAS,oBAAA;AAAA;AAAA,UAGM,oBAAA,yBACS,2BAAA,GACtB,2BAAA,UACM,aAAA,CAAc,eAAA;EACtB,OAAA,EAAS,UAAA,QAAkB,iBAAA;AAAA;AAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-untyped",
3
- "version": "0.2.294",
3
+ "version": "0.2.296",
4
4
  "type": "module",
5
5
  "description": "A Powerlines plugin to use Untyped for code generation based on user-defined schemas.",
6
6
  "repository": {
@@ -55,7 +55,7 @@
55
55
  "default": "./dist/index.mjs"
56
56
  }
57
57
  },
58
- "./*": "./*",
58
+ "./package.json": "./package.json",
59
59
  "./types": {
60
60
  "require": {
61
61
  "types": "./dist/types/index.d.cts",
@@ -91,14 +91,14 @@
91
91
  "dependencies": {
92
92
  "@storm-software/untyped": "^0.24.91",
93
93
  "@stryke/convert": "^0.6.53",
94
- "powerlines": "^0.41.6"
94
+ "powerlines": "^0.41.8"
95
95
  },
96
96
  "devDependencies": {
97
- "@powerlines/plugin-plugin": "^0.12.292",
97
+ "@powerlines/plugin-plugin": "^0.12.294",
98
98
  "@storm-software/config": "^1.135.29",
99
99
  "@types/node": "^25.4.0"
100
100
  },
101
101
  "publishConfig": { "access": "public" },
102
102
  "types": "./dist/index.d.cts",
103
- "gitHead": "86bbe64da57a38d472b37261ca9d113171841a6c"
103
+ "gitHead": "40d1f94407720be23c3801f9145fdad1fe27dfb2"
104
104
  }