@powerlines/plugin-open-feature 0.1.0

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.
Files changed (65) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +302 -0
  3. package/dist/_virtual/_rolldown/runtime.cjs +29 -0
  4. package/dist/components/features-builtin.cjs +83 -0
  5. package/dist/components/features-builtin.d.cts +13 -0
  6. package/dist/components/features-builtin.d.cts.map +1 -0
  7. package/dist/components/features-builtin.d.mts +13 -0
  8. package/dist/components/features-builtin.d.mts.map +1 -0
  9. package/dist/components/features-builtin.mjs +81 -0
  10. package/dist/components/features-builtin.mjs.map +1 -0
  11. package/dist/components/index.cjs +4 -0
  12. package/dist/components/index.d.cts +2 -0
  13. package/dist/components/index.d.mts +2 -0
  14. package/dist/components/index.mjs +3 -0
  15. package/dist/helpers/automd-generator.cjs +33 -0
  16. package/dist/helpers/automd-generator.d.cts +14 -0
  17. package/dist/helpers/automd-generator.d.cts.map +1 -0
  18. package/dist/helpers/automd-generator.d.mts +14 -0
  19. package/dist/helpers/automd-generator.d.mts.map +1 -0
  20. package/dist/helpers/automd-generator.mjs +32 -0
  21. package/dist/helpers/automd-generator.mjs.map +1 -0
  22. package/dist/helpers/docs-helper.cjs +25 -0
  23. package/dist/helpers/docs-helper.d.cts +13 -0
  24. package/dist/helpers/docs-helper.d.cts.map +1 -0
  25. package/dist/helpers/docs-helper.d.mts +13 -0
  26. package/dist/helpers/docs-helper.d.mts.map +1 -0
  27. package/dist/helpers/docs-helper.mjs +24 -0
  28. package/dist/helpers/docs-helper.mjs.map +1 -0
  29. package/dist/helpers/index.cjs +6 -0
  30. package/dist/helpers/index.d.cts +3 -0
  31. package/dist/helpers/index.d.mts +3 -0
  32. package/dist/helpers/index.mjs +4 -0
  33. package/dist/index.cjs +40 -0
  34. package/dist/index.d.cts +16 -0
  35. package/dist/index.d.cts.map +1 -0
  36. package/dist/index.d.mts +16 -0
  37. package/dist/index.d.mts.map +1 -0
  38. package/dist/index.mjs +35 -0
  39. package/dist/index.mjs.map +1 -0
  40. package/dist/node_modules/.pnpm/@openfeature_core@1.9.2/node_modules/@openfeature/core/dist/esm/index.cjs +643 -0
  41. package/dist/node_modules/.pnpm/@openfeature_core@1.9.2/node_modules/@openfeature/core/dist/esm/index.mjs +618 -0
  42. package/dist/node_modules/.pnpm/@openfeature_core@1.9.2/node_modules/@openfeature/core/dist/esm/index.mjs.map +1 -0
  43. package/dist/node_modules/.pnpm/@openfeature_core@1.9.2/node_modules/@openfeature/core/dist/types.d.cts +489 -0
  44. package/dist/node_modules/.pnpm/@openfeature_core@1.9.2/node_modules/@openfeature/core/dist/types.d.cts.map +1 -0
  45. package/dist/node_modules/.pnpm/@openfeature_core@1.9.2/node_modules/@openfeature/core/dist/types.d.mts +489 -0
  46. package/dist/node_modules/.pnpm/@openfeature_core@1.9.2/node_modules/@openfeature/core/dist/types.d.mts.map +1 -0
  47. package/dist/node_modules/.pnpm/@openfeature_server-sdk@1.20.2_@openfeature_core@1.9.2/node_modules/@openfeature/server-sdk/dist/esm/index.cjs +423 -0
  48. package/dist/node_modules/.pnpm/@openfeature_server-sdk@1.20.2_@openfeature_core@1.9.2/node_modules/@openfeature/server-sdk/dist/esm/index.mjs +424 -0
  49. package/dist/node_modules/.pnpm/@openfeature_server-sdk@1.20.2_@openfeature_core@1.9.2/node_modules/@openfeature/server-sdk/dist/esm/index.mjs.map +1 -0
  50. package/dist/node_modules/.pnpm/@openfeature_server-sdk@1.20.2_@openfeature_core@1.9.2/node_modules/@openfeature/server-sdk/dist/types.d.cts +41 -0
  51. package/dist/node_modules/.pnpm/@openfeature_server-sdk@1.20.2_@openfeature_core@1.9.2/node_modules/@openfeature/server-sdk/dist/types.d.cts.map +1 -0
  52. package/dist/node_modules/.pnpm/@openfeature_server-sdk@1.20.2_@openfeature_core@1.9.2/node_modules/@openfeature/server-sdk/dist/types.d.mts +42 -0
  53. package/dist/node_modules/.pnpm/@openfeature_server-sdk@1.20.2_@openfeature_core@1.9.2/node_modules/@openfeature/server-sdk/dist/types.d.mts.map +1 -0
  54. package/dist/types/index.cjs +7 -0
  55. package/dist/types/index.d.cts +2 -0
  56. package/dist/types/index.d.mts +2 -0
  57. package/dist/types/index.mjs +3 -0
  58. package/dist/types/plugin.cjs +54 -0
  59. package/dist/types/plugin.d.cts +41 -0
  60. package/dist/types/plugin.d.cts.map +1 -0
  61. package/dist/types/plugin.d.mts +41 -0
  62. package/dist/types/plugin.d.mts.map +1 -0
  63. package/dist/types/plugin.mjs +50 -0
  64. package/dist/types/plugin.mjs.map +1 -0
  65. package/package.json +201 -0
@@ -0,0 +1,7 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_types_plugin = require('./plugin.cjs');
3
+
4
+ exports.__ΩOpenFeaturePluginContext = require_types_plugin.__ΩOpenFeaturePluginContext;
5
+ exports.__ΩOpenFeaturePluginOptions = require_types_plugin.__ΩOpenFeaturePluginOptions;
6
+ exports.__ΩOpenFeaturePluginResolvedConfig = require_types_plugin.__ΩOpenFeaturePluginResolvedConfig;
7
+ exports.__ΩOpenFeaturePluginUserConfig = require_types_plugin.__ΩOpenFeaturePluginUserConfig;
@@ -0,0 +1,2 @@
1
+ import { OpenFeaturePluginContext, OpenFeaturePluginOptions, OpenFeaturePluginResolvedConfig, OpenFeaturePluginUserConfig, __ΩOpenFeaturePluginContext, __ΩOpenFeaturePluginOptions, __ΩOpenFeaturePluginResolvedConfig, __ΩOpenFeaturePluginUserConfig } from "./plugin.cjs";
2
+ export { OpenFeaturePluginContext, OpenFeaturePluginOptions, OpenFeaturePluginResolvedConfig, OpenFeaturePluginUserConfig, __ΩOpenFeaturePluginContext, __ΩOpenFeaturePluginOptions, __ΩOpenFeaturePluginResolvedConfig, __ΩOpenFeaturePluginUserConfig };
@@ -0,0 +1,2 @@
1
+ import { OpenFeaturePluginContext, OpenFeaturePluginOptions, OpenFeaturePluginResolvedConfig, OpenFeaturePluginUserConfig, __ΩOpenFeaturePluginContext, __ΩOpenFeaturePluginOptions, __ΩOpenFeaturePluginResolvedConfig, __ΩOpenFeaturePluginUserConfig } from "./plugin.mjs";
2
+ export { OpenFeaturePluginContext, OpenFeaturePluginOptions, OpenFeaturePluginResolvedConfig, OpenFeaturePluginUserConfig, __ΩOpenFeaturePluginContext, __ΩOpenFeaturePluginOptions, __ΩOpenFeaturePluginResolvedConfig, __ΩOpenFeaturePluginUserConfig };
@@ -0,0 +1,3 @@
1
+ import { __ΩOpenFeaturePluginContext, __ΩOpenFeaturePluginOptions, __ΩOpenFeaturePluginResolvedConfig, __ΩOpenFeaturePluginUserConfig } from "./plugin.mjs";
2
+
3
+ export { __ΩOpenFeaturePluginContext, __ΩOpenFeaturePluginOptions, __ΩOpenFeaturePluginResolvedConfig, __ΩOpenFeaturePluginUserConfig };
@@ -0,0 +1,54 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
3
+ const require_index = require('../node_modules/.pnpm/@openfeature_core@1.9.2/node_modules/@openfeature/core/dist/esm/index.cjs');
4
+ require('../node_modules/.pnpm/@openfeature_server-sdk@1.20.2_@openfeature_core@1.9.2/node_modules/@openfeature/server-sdk/dist/esm/index.cjs');
5
+ let _powerlines_plugin_automd_types_plugin = require("@powerlines/plugin-automd/types/plugin");
6
+ let _powerlines_plugin_alloy_types = require("@powerlines/plugin-alloy/types");
7
+ let _powerlines_plugin_babel_types = require("@powerlines/plugin-babel/types");
8
+
9
+ //#region src/types/plugin.ts
10
+ const __ΩOpenFeaturePluginOptions = [
11
+ "Provider",
12
+ "ServerProviderStatus",
13
+ () => require_index.ProviderWrapper,
14
+ "providers",
15
+ "A path to the type definition for the expected env configuration parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `\":\"` or `\"#\"` character. For example: `\"./src/types/env.ts#ConfigConfiguration\"`.",
16
+ () => _powerlines_plugin_automd_types_plugin.__ΩAutoMDPluginOptions,
17
+ "automd",
18
+ "AutoMD configuration options to allow injecting environment variables documentation into a markdown file such as a README.md.",
19
+ () => _powerlines_plugin_alloy_types.__ΩAlloyPluginOptions,
20
+ "alloy",
21
+ "Alloy configuration options to use when injecting environment variables into the source code.",
22
+ "OpenFeaturePluginOptions",
23
+ "P&P\"w!\"w\"7#E4$8?%n&4'8?(n)4*8?+Mw,y"
24
+ ];
25
+ const __ΩOpenFeaturePluginUserConfig = [
26
+ () => _powerlines_plugin_babel_types.__ΩBabelPluginUserConfig,
27
+ () => _powerlines_plugin_alloy_types.__ΩAlloyPluginUserConfig,
28
+ () => __ΩOpenFeaturePluginOptions,
29
+ "openFeature",
30
+ "OpenFeaturePluginUserConfig",
31
+ "Pn!n\"Pn#4$MKw%y"
32
+ ];
33
+ const __ΩOpenFeaturePluginResolvedConfig = [
34
+ () => _powerlines_plugin_babel_types.__ΩBabelPluginResolvedConfig,
35
+ () => _powerlines_plugin_alloy_types.__ΩAlloyPluginResolvedConfig,
36
+ () => __ΩOpenFeaturePluginOptions,
37
+ "openFeature",
38
+ "OpenFeaturePluginResolvedConfig",
39
+ "Pn!n\"Pn#4$MKw%y"
40
+ ];
41
+ const __ΩOpenFeaturePluginContext = [
42
+ () => __ΩOpenFeaturePluginResolvedConfig,
43
+ "TResolvedConfig",
44
+ () => _powerlines_plugin_babel_types.__ΩBabelPluginContext,
45
+ () => _powerlines_plugin_alloy_types.__ΩAlloyPluginContext,
46
+ "OpenFeaturePluginContext",
47
+ "n!c\"Pe\"!o#\"e\"!o$\"Mw%y"
48
+ ];
49
+
50
+ //#endregion
51
+ exports.__ΩOpenFeaturePluginContext = __ΩOpenFeaturePluginContext;
52
+ exports.__ΩOpenFeaturePluginOptions = __ΩOpenFeaturePluginOptions;
53
+ exports.__ΩOpenFeaturePluginResolvedConfig = __ΩOpenFeaturePluginResolvedConfig;
54
+ exports.__ΩOpenFeaturePluginUserConfig = __ΩOpenFeaturePluginUserConfig;
@@ -0,0 +1,41 @@
1
+ import { ProviderWrapper, ServerProviderStatus } from "../node_modules/.pnpm/@openfeature_core@1.9.2/node_modules/@openfeature/core/dist/types.cjs";
2
+ import { Provider } from "../node_modules/.pnpm/@openfeature_server-sdk@1.20.2_@openfeature_core@1.9.2/node_modules/@openfeature/server-sdk/dist/types.cjs";
3
+ import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "@powerlines/plugin-alloy/types";
4
+ import { AutoMDPluginOptions } from "@powerlines/plugin-automd/types/plugin";
5
+ import { BabelPluginContext, BabelPluginResolvedConfig, BabelPluginUserConfig } from "@powerlines/plugin-babel/types";
6
+
7
+ //#region src/types/plugin.d.ts
8
+ interface OpenFeaturePluginOptions {
9
+ /**
10
+ * A path to the type definition for the expected env configuration parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `":"` or `"#"` character. For example: `"./src/types/env.ts#ConfigConfiguration"`.
11
+ */
12
+ providers?: Map<string, ProviderWrapper<Provider, ServerProviderStatus>>;
13
+ /**
14
+ * AutoMD configuration options to allow injecting environment variables documentation into a markdown file such as a README.md.
15
+ *
16
+ * @remarks
17
+ * The README.md file should contain the `<!-- automd:env --><!-- /automd -->` comment block where the documentation will be injected.
18
+ */
19
+ automd?: AutoMDPluginOptions;
20
+ /**
21
+ * Alloy configuration options to use when injecting environment variables into the source code.
22
+ *
23
+ * @remarks
24
+ * This option allows you to customize the Alloy transformation process used to inject environment variables into the source code. If not provided, the plugin will use default Alloy settings.
25
+ */
26
+ alloy?: AlloyPluginOptions;
27
+ }
28
+ type OpenFeaturePluginUserConfig = BabelPluginUserConfig & AlloyPluginUserConfig & {
29
+ openFeature: OpenFeaturePluginOptions;
30
+ };
31
+ type OpenFeaturePluginResolvedConfig = BabelPluginResolvedConfig & AlloyPluginResolvedConfig & {
32
+ openFeature: OpenFeaturePluginOptions;
33
+ };
34
+ interface OpenFeaturePluginContext<TResolvedConfig extends OpenFeaturePluginResolvedConfig = OpenFeaturePluginResolvedConfig> extends BabelPluginContext<TResolvedConfig>, AlloyPluginContext<TResolvedConfig> {}
35
+ declare type __ΩOpenFeaturePluginOptions = any[];
36
+ declare type __ΩOpenFeaturePluginUserConfig = any[];
37
+ declare type __ΩOpenFeaturePluginResolvedConfig = any[];
38
+ declare type __ΩOpenFeaturePluginContext = any[];
39
+ //#endregion
40
+ export { OpenFeaturePluginContext, OpenFeaturePluginOptions, OpenFeaturePluginResolvedConfig, OpenFeaturePluginUserConfig, __ΩOpenFeaturePluginContext, __ΩOpenFeaturePluginOptions, __ΩOpenFeaturePluginResolvedConfig, __ΩOpenFeaturePluginUserConfig };
41
+ //# sourceMappingURL=plugin.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;;UAoCiB,wBAAA;;;AAAjB;EAIE,SAAA,GAAY,GAAA,SAAY,eAAA,CAAgB,QAAA,EAAU,oBAAA;;;;;;;EAQlD,MAAA,GAAS,mBAAA;EAQiB;;;;;;EAA1B,KAAA,GAAQ,kBAAA;AAAA;AAAA,KAGE,2BAAA,GAA8B,qBAAA,GACxC,qBAAA;EACE,WAAA,EAAa,wBAAA;AAAA;AAAA,KAGL,+BAAA,GAAkC,yBAAA,GAC5C,yBAAA;EACE,WAAA,EAAa,wBAAA;AAAA;AAAA,UAGA,wBAAA,yBACS,+BAAA,GACtB,+BAAA,UAGA,kBAAA,CAAmB,eAAA,GACnB,kBAAA,CAAmB,eAAA;AAAA"}
@@ -0,0 +1,41 @@
1
+ import { ProviderWrapper, ServerProviderStatus } from "../node_modules/.pnpm/@openfeature_core@1.9.2/node_modules/@openfeature/core/dist/types.mjs";
2
+ import { Provider } from "../node_modules/.pnpm/@openfeature_server-sdk@1.20.2_@openfeature_core@1.9.2/node_modules/@openfeature/server-sdk/dist/types.mjs";
3
+ import { AutoMDPluginOptions } from "@powerlines/plugin-automd/types/plugin";
4
+ import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "@powerlines/plugin-alloy/types";
5
+ import { BabelPluginContext, BabelPluginResolvedConfig, BabelPluginUserConfig } from "@powerlines/plugin-babel/types";
6
+
7
+ //#region src/types/plugin.d.ts
8
+ interface OpenFeaturePluginOptions {
9
+ /**
10
+ * A path to the type definition for the expected env configuration parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `":"` or `"#"` character. For example: `"./src/types/env.ts#ConfigConfiguration"`.
11
+ */
12
+ providers?: Map<string, ProviderWrapper<Provider, ServerProviderStatus>>;
13
+ /**
14
+ * AutoMD configuration options to allow injecting environment variables documentation into a markdown file such as a README.md.
15
+ *
16
+ * @remarks
17
+ * The README.md file should contain the `<!-- automd:env --><!-- /automd -->` comment block where the documentation will be injected.
18
+ */
19
+ automd?: AutoMDPluginOptions;
20
+ /**
21
+ * Alloy configuration options to use when injecting environment variables into the source code.
22
+ *
23
+ * @remarks
24
+ * This option allows you to customize the Alloy transformation process used to inject environment variables into the source code. If not provided, the plugin will use default Alloy settings.
25
+ */
26
+ alloy?: AlloyPluginOptions;
27
+ }
28
+ type OpenFeaturePluginUserConfig = BabelPluginUserConfig & AlloyPluginUserConfig & {
29
+ openFeature: OpenFeaturePluginOptions;
30
+ };
31
+ type OpenFeaturePluginResolvedConfig = BabelPluginResolvedConfig & AlloyPluginResolvedConfig & {
32
+ openFeature: OpenFeaturePluginOptions;
33
+ };
34
+ interface OpenFeaturePluginContext<TResolvedConfig extends OpenFeaturePluginResolvedConfig = OpenFeaturePluginResolvedConfig> extends BabelPluginContext<TResolvedConfig>, AlloyPluginContext<TResolvedConfig> {}
35
+ declare type __ΩOpenFeaturePluginOptions = any[];
36
+ declare type __ΩOpenFeaturePluginUserConfig = any[];
37
+ declare type __ΩOpenFeaturePluginResolvedConfig = any[];
38
+ declare type __ΩOpenFeaturePluginContext = any[];
39
+ //#endregion
40
+ export { OpenFeaturePluginContext, OpenFeaturePluginOptions, OpenFeaturePluginResolvedConfig, OpenFeaturePluginUserConfig, __ΩOpenFeaturePluginContext, __ΩOpenFeaturePluginOptions, __ΩOpenFeaturePluginResolvedConfig, __ΩOpenFeaturePluginUserConfig };
41
+ //# sourceMappingURL=plugin.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;;UAoCiB,wBAAA;;;AAAjB;EAIE,SAAA,GAAY,GAAA,SAAY,eAAA,CAAgB,QAAA,EAAU,oBAAA;;;;;;;EAQlD,MAAA,GAAS,mBAAA;EAQiB;;;;;;EAA1B,KAAA,GAAQ,kBAAA;AAAA;AAAA,KAGE,2BAAA,GAA8B,qBAAA,GACxC,qBAAA;EACE,WAAA,EAAa,wBAAA;AAAA;AAAA,KAGL,+BAAA,GAAkC,yBAAA,GAC5C,yBAAA;EACE,WAAA,EAAa,wBAAA;AAAA;AAAA,UAGA,wBAAA,yBACS,+BAAA,GACtB,+BAAA,UAGA,kBAAA,CAAmB,eAAA,GACnB,kBAAA,CAAmB,eAAA;AAAA"}
@@ -0,0 +1,50 @@
1
+ import { ProviderWrapper } from "../node_modules/.pnpm/@openfeature_core@1.9.2/node_modules/@openfeature/core/dist/esm/index.mjs";
2
+ import "../node_modules/.pnpm/@openfeature_server-sdk@1.20.2_@openfeature_core@1.9.2/node_modules/@openfeature/server-sdk/dist/esm/index.mjs";
3
+ import { __ΩAutoMDPluginOptions } from "@powerlines/plugin-automd/types/plugin";
4
+ import { __ΩAlloyPluginContext, __ΩAlloyPluginOptions, __ΩAlloyPluginResolvedConfig, __ΩAlloyPluginUserConfig } from "@powerlines/plugin-alloy/types";
5
+ import { __ΩBabelPluginContext, __ΩBabelPluginResolvedConfig, __ΩBabelPluginUserConfig } from "@powerlines/plugin-babel/types";
6
+
7
+ //#region src/types/plugin.ts
8
+ const __ΩOpenFeaturePluginOptions = [
9
+ "Provider",
10
+ "ServerProviderStatus",
11
+ () => ProviderWrapper,
12
+ "providers",
13
+ "A path to the type definition for the expected env configuration parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `\":\"` or `\"#\"` character. For example: `\"./src/types/env.ts#ConfigConfiguration\"`.",
14
+ () => __ΩAutoMDPluginOptions,
15
+ "automd",
16
+ "AutoMD configuration options to allow injecting environment variables documentation into a markdown file such as a README.md.",
17
+ () => __ΩAlloyPluginOptions,
18
+ "alloy",
19
+ "Alloy configuration options to use when injecting environment variables into the source code.",
20
+ "OpenFeaturePluginOptions",
21
+ "P&P\"w!\"w\"7#E4$8?%n&4'8?(n)4*8?+Mw,y"
22
+ ];
23
+ const __ΩOpenFeaturePluginUserConfig = [
24
+ () => __ΩBabelPluginUserConfig,
25
+ () => __ΩAlloyPluginUserConfig,
26
+ () => __ΩOpenFeaturePluginOptions,
27
+ "openFeature",
28
+ "OpenFeaturePluginUserConfig",
29
+ "Pn!n\"Pn#4$MKw%y"
30
+ ];
31
+ const __ΩOpenFeaturePluginResolvedConfig = [
32
+ () => __ΩBabelPluginResolvedConfig,
33
+ () => __ΩAlloyPluginResolvedConfig,
34
+ () => __ΩOpenFeaturePluginOptions,
35
+ "openFeature",
36
+ "OpenFeaturePluginResolvedConfig",
37
+ "Pn!n\"Pn#4$MKw%y"
38
+ ];
39
+ const __ΩOpenFeaturePluginContext = [
40
+ () => __ΩOpenFeaturePluginResolvedConfig,
41
+ "TResolvedConfig",
42
+ () => __ΩBabelPluginContext,
43
+ () => __ΩAlloyPluginContext,
44
+ "OpenFeaturePluginContext",
45
+ "n!c\"Pe\"!o#\"e\"!o$\"Mw%y"
46
+ ];
47
+
48
+ //#endregion
49
+ export { __ΩOpenFeaturePluginContext, __ΩOpenFeaturePluginOptions, __ΩOpenFeaturePluginResolvedConfig, __ΩOpenFeaturePluginUserConfig };
50
+ //# sourceMappingURL=plugin.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.mjs","names":[],"sources":["../../src/types/plugin.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 {\n Provider,\n ProviderWrapper,\n ServerProviderStatus\n} from \"@openfeature/server-sdk\";\nimport {\n AlloyPluginContext,\n AlloyPluginOptions,\n AlloyPluginResolvedConfig,\n AlloyPluginUserConfig\n} from \"@powerlines/plugin-alloy/types\";\nimport { AutoMDPluginOptions } from \"@powerlines/plugin-automd/types/plugin\";\nimport {\n BabelPluginContext,\n BabelPluginResolvedConfig,\n BabelPluginUserConfig\n} from \"@powerlines/plugin-babel/types\";\n\nexport interface OpenFeaturePluginOptions {\n /**\n * A path to the type definition for the expected env configuration parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `\":\"` or `\"#\"` character. For example: `\"./src/types/env.ts#ConfigConfiguration\"`.\n */\n providers?: Map<string, ProviderWrapper<Provider, ServerProviderStatus>>;\n\n /**\n * AutoMD configuration options to allow injecting environment variables documentation into a markdown file such as a README.md.\n *\n * @remarks\n * The README.md file should contain the `<!-- automd:env --><!-- /automd -->` comment block where the documentation will be injected.\n */\n automd?: AutoMDPluginOptions;\n\n /**\n * Alloy configuration options to use when injecting environment variables into the source code.\n *\n * @remarks\n * This option allows you to customize the Alloy transformation process used to inject environment variables into the source code. If not provided, the plugin will use default Alloy settings.\n */\n alloy?: AlloyPluginOptions;\n}\n\nexport type OpenFeaturePluginUserConfig = BabelPluginUserConfig &\n AlloyPluginUserConfig & {\n openFeature: OpenFeaturePluginOptions;\n };\n\nexport type OpenFeaturePluginResolvedConfig = BabelPluginResolvedConfig &\n AlloyPluginResolvedConfig & {\n openFeature: OpenFeaturePluginOptions;\n };\n\nexport interface OpenFeaturePluginContext<\n TResolvedConfig extends OpenFeaturePluginResolvedConfig =\n OpenFeaturePluginResolvedConfig\n>\n extends\n BabelPluginContext<TResolvedConfig>,\n AlloyPluginContext<TResolvedConfig> {}\n"],"mappings":";;;;;;;AAkCA,MAAM,8BAA2B;CAAA;CAAM;OAAA;CAAA;CAAA;OAAA;CAAA;CAAA;OAAA;CAAA;CAAA;CAAA;CAAA;CAAA;AAEvC,MAAM,iCAAW;OAAyB;OAAA;OAAA;CAAA;CAAA;CAAA;CAAA;AAE1C,MAAM,qCAAqC;OAAA;OAA2C;OAAkC;CAA4B;CAAiB;CAAoC;CAAY;AAErN,MAAE,8BAAwB;OAAgB;CAAgC;OAAA;OAAA;CAAA;CAAA;CAAA"}
package/package.json ADDED
@@ -0,0 +1,201 @@
1
+ {
2
+ "name": "@powerlines/plugin-open-feature",
3
+ "version": "0.1.0",
4
+ "private": false,
5
+ "description": "A package containing a Powerlines plugin for managing Open Feature feature flags at runtime.",
6
+ "keywords": [
7
+ "open-feature",
8
+ "powerlines",
9
+ "storm-software",
10
+ "powerlines-plugin"
11
+ ],
12
+ "homepage": "https://stormsoftware.com",
13
+ "bugs": {
14
+ "url": "https://stormsoftware.com/support",
15
+ "email": "support@stormsoftware.com"
16
+ },
17
+ "repository": {
18
+ "type": "github",
19
+ "url": "https://github.com/storm-software/powerlines.git",
20
+ "directory": "packages/plugin-open-feature"
21
+ },
22
+ "funding": {
23
+ "type": "github",
24
+ "url": "https://github.com/sponsors/storm-software"
25
+ },
26
+ "license": "Apache-2.0",
27
+ "author": {
28
+ "name": "Storm Software",
29
+ "email": "contact@stormsoftware.com",
30
+ "url": "https://stormsoftware.com"
31
+ },
32
+ "maintainers": [
33
+ {
34
+ "name": "Storm Software",
35
+ "email": "contact@stormsoftware.com",
36
+ "url": "https://stormsoftware.com"
37
+ }
38
+ ],
39
+ "contributors": [
40
+ {
41
+ "name": "Storm Software",
42
+ "email": "contact@stormsoftware.com",
43
+ "url": "https://stormsoftware.com"
44
+ }
45
+ ],
46
+ "type": "module",
47
+ "exports": {
48
+ ".": {
49
+ "require": {
50
+ "types": "./dist/index.d.cts",
51
+ "default": "./dist/index.cjs"
52
+ },
53
+ "import": {
54
+ "types": "./dist/index.d.mts",
55
+ "default": "./dist/index.mjs"
56
+ },
57
+ "default": {
58
+ "types": "./dist/index.d.mts",
59
+ "default": "./dist/index.mjs"
60
+ }
61
+ },
62
+ "./components": {
63
+ "require": {
64
+ "types": "./dist/components/index.d.cts",
65
+ "default": "./dist/components/index.cjs"
66
+ },
67
+ "import": {
68
+ "types": "./dist/components/index.d.mts",
69
+ "default": "./dist/components/index.mjs"
70
+ },
71
+ "default": {
72
+ "types": "./dist/components/index.d.mts",
73
+ "default": "./dist/components/index.mjs"
74
+ }
75
+ },
76
+ "./components/features-builtin": {
77
+ "require": {
78
+ "types": "./dist/components/features-builtin.d.cts",
79
+ "default": "./dist/components/features-builtin.cjs"
80
+ },
81
+ "import": {
82
+ "types": "./dist/components/features-builtin.d.mts",
83
+ "default": "./dist/components/features-builtin.mjs"
84
+ },
85
+ "default": {
86
+ "types": "./dist/components/features-builtin.d.mts",
87
+ "default": "./dist/components/features-builtin.mjs"
88
+ }
89
+ },
90
+ "./helpers": {
91
+ "require": {
92
+ "types": "./dist/helpers/index.d.cts",
93
+ "default": "./dist/helpers/index.cjs"
94
+ },
95
+ "import": {
96
+ "types": "./dist/helpers/index.d.mts",
97
+ "default": "./dist/helpers/index.mjs"
98
+ },
99
+ "default": {
100
+ "types": "./dist/helpers/index.d.mts",
101
+ "default": "./dist/helpers/index.mjs"
102
+ }
103
+ },
104
+ "./helpers/automd-generator": {
105
+ "require": {
106
+ "types": "./dist/helpers/automd-generator.d.cts",
107
+ "default": "./dist/helpers/automd-generator.cjs"
108
+ },
109
+ "import": {
110
+ "types": "./dist/helpers/automd-generator.d.mts",
111
+ "default": "./dist/helpers/automd-generator.mjs"
112
+ },
113
+ "default": {
114
+ "types": "./dist/helpers/automd-generator.d.mts",
115
+ "default": "./dist/helpers/automd-generator.mjs"
116
+ }
117
+ },
118
+ "./helpers/docs-helper": {
119
+ "require": {
120
+ "types": "./dist/helpers/docs-helper.d.cts",
121
+ "default": "./dist/helpers/docs-helper.cjs"
122
+ },
123
+ "import": {
124
+ "types": "./dist/helpers/docs-helper.d.mts",
125
+ "default": "./dist/helpers/docs-helper.mjs"
126
+ },
127
+ "default": {
128
+ "types": "./dist/helpers/docs-helper.d.mts",
129
+ "default": "./dist/helpers/docs-helper.mjs"
130
+ }
131
+ },
132
+ "./package.json": "./package.json",
133
+ "./types": {
134
+ "require": {
135
+ "types": "./dist/types/index.d.cts",
136
+ "default": "./dist/types/index.cjs"
137
+ },
138
+ "import": {
139
+ "types": "./dist/types/index.d.mts",
140
+ "default": "./dist/types/index.mjs"
141
+ },
142
+ "default": {
143
+ "types": "./dist/types/index.d.mts",
144
+ "default": "./dist/types/index.mjs"
145
+ }
146
+ },
147
+ "./types/plugin": {
148
+ "require": {
149
+ "types": "./dist/types/plugin.d.cts",
150
+ "default": "./dist/types/plugin.cjs"
151
+ },
152
+ "import": {
153
+ "types": "./dist/types/plugin.d.mts",
154
+ "default": "./dist/types/plugin.mjs"
155
+ },
156
+ "default": {
157
+ "types": "./dist/types/plugin.d.mts",
158
+ "default": "./dist/types/plugin.mjs"
159
+ }
160
+ }
161
+ },
162
+ "main": "./dist/index.cjs",
163
+ "module": "./dist/index.mjs",
164
+ "types": "./dist/index.d.cts",
165
+ "typings": "dist/index.d.mts",
166
+ "files": ["dist/**/*"],
167
+ "dependencies": {
168
+ "@alloy-js/core": "0.23.0-dev.8",
169
+ "@alloy-js/json": "0.23.0-dev.2",
170
+ "@alloy-js/markdown": "0.23.0-dev.1",
171
+ "@alloy-js/typescript": "0.23.0-dev.4",
172
+ "@powerlines/plugin-alloy": "^0.25.66",
173
+ "@powerlines/plugin-automd": "^0.1.379",
174
+ "@powerlines/plugin-plugin": "^0.12.330",
175
+ "@storm-software/config-tools": "^1.189.57",
176
+ "@stryke/convert": "^0.6.57",
177
+ "@stryke/env": "^0.20.81",
178
+ "@stryke/fs": "^0.33.64",
179
+ "@stryke/json": "^0.14.11",
180
+ "@stryke/path": "^0.27.3",
181
+ "@stryke/string-format": "^0.17.7",
182
+ "@stryke/type-checks": "^0.6.0",
183
+ "@stryke/types": "^0.11.2",
184
+ "automd": "^0.4.3",
185
+ "defu": "^6.1.4",
186
+ "powerlines": "^0.42.20",
187
+ "c12": "^3.3.3"
188
+ },
189
+ "devDependencies": {
190
+ "@openfeature/flagd-provider": "^0.14.0",
191
+ "@openfeature/server-sdk": "^1.20.2",
192
+ "@types/node": "^25.5.0",
193
+ "vite": "^8.0.2"
194
+ },
195
+ "publishConfig": { "access": "public" },
196
+ "inlinedDependencies": {
197
+ "@openfeature/core": "1.9.2",
198
+ "@openfeature/server-sdk": "1.20.2"
199
+ },
200
+ "gitHead": "c0cb55f77d02626e594888d7c34bca5f0fb8b337"
201
+ }