@powerlines/plugin-open-feature 0.1.196 → 0.1.197

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 (96) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +0 -14
  2. package/dist/components/features-builtin.cjs +3 -10
  3. package/dist/components/features-builtin.mjs +2 -4
  4. package/dist/components/features-builtin.mjs.map +1 -1
  5. package/dist/helpers/automd-generator.cjs +0 -8
  6. package/dist/helpers/automd-generator.mjs +1 -3
  7. package/dist/helpers/automd-generator.mjs.map +1 -1
  8. package/dist/index.cjs +3 -3
  9. package/dist/index.mjs +2 -2
  10. package/package.json +8 -63
  11. package/dist/_virtual/_rolldown/runtime.mjs +0 -18
  12. package/dist/components/features-builtin.test.cjs +0 -16
  13. package/dist/components/features-builtin.test.d.cts +0 -1
  14. package/dist/components/features-builtin.test.d.mts +0 -1
  15. package/dist/components/features-builtin.test.mjs +0 -18
  16. package/dist/components/features-builtin.test.mjs.map +0 -1
  17. package/dist/helpers/automd-generator.test.cjs +0 -16
  18. package/dist/helpers/automd-generator.test.d.cts +0 -1
  19. package/dist/helpers/automd-generator.test.d.mts +0 -1
  20. package/dist/helpers/automd-generator.test.mjs +0 -18
  21. package/dist/helpers/automd-generator.test.mjs.map +0 -1
  22. package/dist/index.test.cjs +0 -30
  23. package/dist/index.test.d.cts +0 -1
  24. package/dist/index.test.d.mts +0 -1
  25. package/dist/index.test.mjs +0 -32
  26. package/dist/index.test.mjs.map +0 -1
  27. package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.cjs +0 -78
  28. package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +0 -78
  29. package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +0 -1
  30. package/dist/node_modules/.pnpm/@vitest_expect@4.1.7/node_modules/@vitest/expect/dist/index.cjs +0 -1487
  31. package/dist/node_modules/.pnpm/@vitest_expect@4.1.7/node_modules/@vitest/expect/dist/index.mjs +0 -1473
  32. package/dist/node_modules/.pnpm/@vitest_expect@4.1.7/node_modules/@vitest/expect/dist/index.mjs.map +0 -1
  33. package/dist/node_modules/.pnpm/@vitest_pretty-format@4.1.7/node_modules/@vitest/pretty-format/dist/index.cjs +0 -889
  34. package/dist/node_modules/.pnpm/@vitest_pretty-format@4.1.7/node_modules/@vitest/pretty-format/dist/index.mjs +0 -888
  35. package/dist/node_modules/.pnpm/@vitest_pretty-format@4.1.7/node_modules/@vitest/pretty-format/dist/index.mjs.map +0 -1
  36. package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.cjs +0 -1614
  37. package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.mjs +0 -1594
  38. package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.mjs.map +0 -1
  39. package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/index.cjs +0 -1
  40. package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/index.mjs +0 -3
  41. package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/utils.cjs +0 -1
  42. package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/utils.mjs +0 -3
  43. package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.7/node_modules/@vitest/snapshot/dist/index.cjs +0 -923
  44. package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.7/node_modules/@vitest/snapshot/dist/index.mjs +0 -922
  45. package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.7/node_modules/@vitest/snapshot/dist/index.mjs.map +0 -1
  46. package/dist/node_modules/.pnpm/@vitest_spy@4.1.7/node_modules/@vitest/spy/dist/index.cjs +0 -391
  47. package/dist/node_modules/.pnpm/@vitest_spy@4.1.7/node_modules/@vitest/spy/dist/index.mjs +0 -386
  48. package/dist/node_modules/.pnpm/@vitest_spy@4.1.7/node_modules/@vitest/spy/dist/index.mjs.map +0 -1
  49. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.cjs +0 -82
  50. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.mjs +0 -82
  51. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.mjs.map +0 -1
  52. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/diff.cjs +0 -1358
  53. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/diff.mjs +0 -1357
  54. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/diff.mjs.map +0 -1
  55. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/display.cjs +0 -561
  56. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/display.mjs +0 -559
  57. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/display.mjs.map +0 -1
  58. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/error.cjs +0 -37
  59. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/error.mjs +0 -38
  60. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/error.mjs.map +0 -1
  61. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/helpers.cjs +0 -197
  62. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/helpers.mjs +0 -181
  63. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/helpers.mjs.map +0 -1
  64. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/offset.cjs +0 -29
  65. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/offset.mjs +0 -27
  66. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/offset.mjs.map +0 -1
  67. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/serialize.cjs +0 -77
  68. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/serialize.mjs +0 -77
  69. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/serialize.mjs.map +0 -1
  70. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/source-map.cjs +0 -374
  71. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/source-map.mjs +0 -374
  72. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/source-map.mjs.map +0 -1
  73. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/timers.cjs +0 -38
  74. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/timers.mjs +0 -37
  75. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/timers.mjs.map +0 -1
  76. package/dist/node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.cjs +0 -2978
  77. package/dist/node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.mjs +0 -2973
  78. package/dist/node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.mjs.map +0 -1
  79. package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.cjs +0 -939
  80. package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs +0 -940
  81. package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs.map +0 -1
  82. package/dist/node_modules/.pnpm/tinyrainbow@3.1.0/node_modules/tinyrainbow/dist/index.cjs +0 -87
  83. package/dist/node_modules/.pnpm/tinyrainbow@3.1.0/node_modules/tinyrainbow/dist/index.mjs +0 -87
  84. package/dist/node_modules/.pnpm/tinyrainbow@3.1.0/node_modules/tinyrainbow/dist/index.mjs.map +0 -1
  85. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.cjs +0 -6
  86. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.mjs +0 -6
  87. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.mjs.map +0 -1
  88. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/rpc.MzXet3jl.cjs +0 -54
  89. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/rpc.MzXet3jl.mjs +0 -52
  90. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/rpc.MzXet3jl.mjs.map +0 -1
  91. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.cjs +0 -2696
  92. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.mjs +0 -2697
  93. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.mjs.map +0 -1
  94. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.cjs +0 -47
  95. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.mjs +0 -45
  96. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.mjs.map +0 -1
@@ -5,19 +5,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __exportAll = (all, no_symbols) => {
9
- let target = {};
10
- for (var name in all) {
11
- __defProp(target, name, {
12
- get: all[name],
13
- enumerable: true
14
- });
15
- }
16
- if (!no_symbols) {
17
- __defProp(target, Symbol.toStringTag, { value: "Module" });
18
- }
19
- return target;
20
- };
21
8
  var __copyProps = (to, from, except, desc) => {
22
9
  if (from && typeof from === "object" || typeof from === "function") {
23
10
  for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
@@ -39,5 +26,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
39
26
 
40
27
  //#endregion
41
28
 
42
- exports.__exportAll = __exportAll;
43
29
  exports.__toESM = __toESM;
@@ -1,16 +1,15 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
3
3
  let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
4
- let defu = require("defu");
5
- defu = require_runtime.__toESM(defu);
6
4
  let _alloy_js_core = require("@alloy-js/core");
7
5
  let _alloy_js_typescript = require("@alloy-js/typescript");
8
6
  let _powerlines_plugin_alloy_core_components_spacing = require("@powerlines/plugin-alloy/core/components/spacing");
9
7
  let _powerlines_plugin_alloy_typescript_components_builtin_file = require("@powerlines/plugin-alloy/typescript/components/builtin-file");
10
8
  let _powerlines_plugin_alloy_typescript_components_tsdoc = require("@powerlines/plugin-alloy/typescript/components/tsdoc");
9
+ let defu = require("defu");
10
+ defu = require_runtime.__toESM(defu);
11
11
 
12
12
  //#region src/components/features-builtin.tsx
13
- var features_builtin_exports = /* @__PURE__ */ require_runtime.__exportAll({ FeaturesBuiltin: () => FeaturesBuiltin });
14
13
  /**
15
14
  * Generates the feature flags module for the Powerlines project.
16
15
  */
@@ -100,10 +99,4 @@ function FeaturesBuiltin(props) {
100
99
  }
101
100
 
102
101
  //#endregion
103
- exports.FeaturesBuiltin = FeaturesBuiltin;
104
- Object.defineProperty(exports, 'features_builtin_exports', {
105
- enumerable: true,
106
- get: function () {
107
- return features_builtin_exports;
108
- }
109
- });
102
+ exports.FeaturesBuiltin = FeaturesBuiltin;
@@ -1,14 +1,12 @@
1
- import { __exportAll } from "../_virtual/_rolldown/runtime.mjs";
2
1
  import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
3
- import defu from "defu";
4
2
  import { Show, code, splitProps } from "@alloy-js/core";
5
3
  import { FunctionDeclaration, VarDeclaration } from "@alloy-js/typescript";
6
4
  import { Spacing } from "@powerlines/plugin-alloy/core/components/spacing";
7
5
  import { BuiltinFile } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
8
6
  import { TSDoc, TSDocParam } from "@powerlines/plugin-alloy/typescript/components/tsdoc";
7
+ import defu from "defu";
9
8
 
10
9
  //#region src/components/features-builtin.tsx
11
- var features_builtin_exports = /* @__PURE__ */ __exportAll({ FeaturesBuiltin: () => FeaturesBuiltin });
12
10
  /**
13
11
  * Generates the feature flags module for the Powerlines project.
14
12
  */
@@ -98,5 +96,5 @@ function FeaturesBuiltin(props) {
98
96
  }
99
97
 
100
98
  //#endregion
101
- export { FeaturesBuiltin, features_builtin_exports };
99
+ export { FeaturesBuiltin };
102
100
  //# sourceMappingURL=features-builtin.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"features-builtin.mjs","names":[],"sources":["../../src/components/features-builtin.tsx"],"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 { code, Show, splitProps } from \"@alloy-js/core\";\nimport { FunctionDeclaration, VarDeclaration } from \"@alloy-js/typescript\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components/spacing\";\nimport {\n BuiltinFile,\n BuiltinFileProps\n} from \"@powerlines/plugin-alloy/typescript/components/builtin-file\";\nimport {\n TSDoc,\n TSDocParam\n} from \"@powerlines/plugin-alloy/typescript/components/tsdoc\";\nimport defu from \"defu\";\n\nexport type FeaturesBuiltinProps = Omit<BuiltinFileProps, \"id\">;\n\n/**\n * Generates the feature flags module for the Powerlines project.\n */\nexport function FeaturesBuiltin(props: FeaturesBuiltinProps) {\n const [{ children, imports }, rest] = splitProps(props, [\n \"children\",\n \"imports\"\n ]);\n\n // const context = usePowerlines<OpenFeaturePluginContext>();\n\n return (\n <BuiltinFile\n id=\"features\"\n description=\"The runtime feature flags module provides an interface to define environment configuration parameters.\"\n {...rest}\n imports={defu(\n {\n \"@openfeature/server-sdk\": [\n { name: \"OpenFeature\" },\n { name: \"Provider\", type: true },\n { name: \"ProviderWrapper\", type: true },\n { name: \"ServerProviderStatus\", type: true }\n ]\n },\n imports ?? {}\n )}>\n <TSDoc heading=\"A function to set the OpenFeature providers to be used in the application. This function should be called at the entry point of the application to ensure that the providers are registered before any feature flag evaluations occur.\">\n <TSDocParam name=\"provider\">\n {`The provider wrapper containing the OpenFeature provider to set. The provider should be an instance of a class that implements the OpenFeature Provider interface, wrapped in a ProviderWrapper to include any necessary metadata about the provider's status.`}\n </TSDocParam>\n </TSDoc>\n <FunctionDeclaration\n name=\"setFeatureProvider\"\n export\n async\n parameters={[\n {\n name: \"provider\",\n type: \"ProviderWrapper<Provider, ServerProviderStatus>\"\n }\n ]}>\n {code`try {\n await OpenFeature.setProviderAndWait(provider);\n } catch (error) {\n console.error(\"Failed to initialize provider: \", error);\n } `}\n </FunctionDeclaration>\n <Spacing />\n <VarDeclaration\n name=\"client\"\n export\n const\n doc=\"The Open Feature runtime client to provide feature flag evaluations.\"\n type=\"ReturnType<typeof OpenFeature.getClient>\">\n {code`OpenFeature.getClient(); `}\n </VarDeclaration>\n <Spacing />\n <FunctionDeclaration\n name=\"feature\"\n export\n async\n parameters={[\n {\n name: \"featureId\",\n type: \"string\"\n }\n ]}\n returnType=\"Promise<boolean>\">\n {code`try {\n return client.getBooleanValue(featureId);\n } catch (error) {\n console.error(\"Failed to evaluate feature flag: \", error);\n } `}\n </FunctionDeclaration>\n <Spacing />\n <Show when={Boolean(children)}>{children}</Show>\n </BuiltinFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AA4BA,SAAS,gBAAuB,OAAC;CACjC,MAAO,CAAA,YAEP;CAKA,OAAO,gBAAS,aAAuB,WAAA;EACrC,IAAM;EACJ,aAAU;CACZ,GAAG,MAAA;EACD,IAAA,UAAA;iBAEC,2BAA8B;IAAA,sBAE3B;IAAC;KACJ,MAAA;KACK,MAAA;IACJ;IAAA;KACI,MAAI;KACR,MAAS;IACP;IAAA;KACE,MAAE;KACF,MAAI;IACN;GAAC,EACH,GAAG,WAAW,CAAC,CAAA;EACjB;EACA,IAAI,WAAE;GACJ,OAAG;IAAA,gBAAA,OAAA;KACD,SAAS;KACT,IAAA,WAAA;MACD,OAAM,gBAAsB,YAAS;OACnC,MAAA;OACG,UAAI;MACN,CAAA;KACF;IACF,CAAC;IAAA,gBAAA,qBAAA;KACC,MAAM;KACN,UAAA;KACA,OAAA;KACA,YAAY,CAAA;MACV,MAAA;MACA,MAAM;KACR,CAAC;KACD,UAAE,IAAA;;;;;IAKJ,CAAC;IAAG,gBAAe,SAAU,CAAA,CAAA;IAAA,gBAAwB,gBAAM;KACzD,MAAG;KACH,UAAA;KACD,SAAS;KACT,KAAA;KACC,MAAM;KACN,UAAA,IAAA;IACF,CAAC;IAAC,gBAAA,SAAA,CAAA,CAAA;IAAA,gBAAA,qBAAA;KACA,MAAK;KACL,UAAM;KACN,OAAM;KACN,YAAA,CAAA;MACD,MAAS;MACT,MAAA;KACC,CAAA;KACA,YAAA;KACA,UAAA,IAAA;;;;;IAKF,CAAC;IAAG,gBAAA,SAAA,CAAA,CAAA;IAAA,gBAAA,MAAA;KACF,IAAC,OAAA;MACD,OAAA,QAAY,QAAQ;KACpB;KACS;IACX,CAAC;GAAC;EACJ;CACF,CAAC,CAAC;AACJ"}
1
+ {"version":3,"file":"features-builtin.mjs","names":[],"sources":["../../src/components/features-builtin.tsx"],"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 { code, Show, splitProps } from \"@alloy-js/core\";\nimport { FunctionDeclaration, VarDeclaration } from \"@alloy-js/typescript\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components/spacing\";\nimport {\n BuiltinFile,\n BuiltinFileProps\n} from \"@powerlines/plugin-alloy/typescript/components/builtin-file\";\nimport {\n TSDoc,\n TSDocParam\n} from \"@powerlines/plugin-alloy/typescript/components/tsdoc\";\nimport defu from \"defu\";\n\nexport type FeaturesBuiltinProps = Omit<BuiltinFileProps, \"id\">;\n\n/**\n * Generates the feature flags module for the Powerlines project.\n */\nexport function FeaturesBuiltin(props: FeaturesBuiltinProps) {\n const [{ children, imports }, rest] = splitProps(props, [\n \"children\",\n \"imports\"\n ]);\n\n // const context = usePowerlines<OpenFeaturePluginContext>();\n\n return (\n <BuiltinFile\n id=\"features\"\n description=\"The runtime feature flags module provides an interface to define environment configuration parameters.\"\n {...rest}\n imports={defu(\n {\n \"@openfeature/server-sdk\": [\n { name: \"OpenFeature\" },\n { name: \"Provider\", type: true },\n { name: \"ProviderWrapper\", type: true },\n { name: \"ServerProviderStatus\", type: true }\n ]\n },\n imports ?? {}\n )}>\n <TSDoc heading=\"A function to set the OpenFeature providers to be used in the application. This function should be called at the entry point of the application to ensure that the providers are registered before any feature flag evaluations occur.\">\n <TSDocParam name=\"provider\">\n {`The provider wrapper containing the OpenFeature provider to set. The provider should be an instance of a class that implements the OpenFeature Provider interface, wrapped in a ProviderWrapper to include any necessary metadata about the provider's status.`}\n </TSDocParam>\n </TSDoc>\n <FunctionDeclaration\n name=\"setFeatureProvider\"\n export\n async\n parameters={[\n {\n name: \"provider\",\n type: \"ProviderWrapper<Provider, ServerProviderStatus>\"\n }\n ]}>\n {code`try {\n await OpenFeature.setProviderAndWait(provider);\n } catch (error) {\n console.error(\"Failed to initialize provider: \", error);\n } `}\n </FunctionDeclaration>\n <Spacing />\n <VarDeclaration\n name=\"client\"\n export\n const\n doc=\"The Open Feature runtime client to provide feature flag evaluations.\"\n type=\"ReturnType<typeof OpenFeature.getClient>\">\n {code`OpenFeature.getClient(); `}\n </VarDeclaration>\n <Spacing />\n <FunctionDeclaration\n name=\"feature\"\n export\n async\n parameters={[\n {\n name: \"featureId\",\n type: \"string\"\n }\n ]}\n returnType=\"Promise<boolean>\">\n {code`try {\n return client.getBooleanValue(featureId);\n } catch (error) {\n console.error(\"Failed to evaluate feature flag: \", error);\n } `}\n </FunctionDeclaration>\n <Spacing />\n <Show when={Boolean(children)}>{children}</Show>\n </BuiltinFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;AA4BA,SAAS,gBAAuB,OAAC;CACjC,MAAO,CAAA,YAEP;CAKA,OAAO,gBAAS,aAAuB,WAAA;EACrC,IAAM;EACJ,aAAU;CACZ,GAAG,MAAA;EACD,IAAA,UAAA;iBAEC,2BAA8B;IAAA,sBAE3B;IAAC;KACJ,MAAA;KACK,MAAA;IACJ;IAAA;KACI,MAAI;KACR,MAAS;IACP;IAAA;KACE,MAAE;KACF,MAAI;IACN;GAAC,EACH,GAAG,WAAW,CAAC,CAAA;EACjB;EACA,IAAI,WAAE;GACJ,OAAG;IAAA,gBAAA,OAAA;KACD,SAAS;KACT,IAAA,WAAA;MACD,OAAM,gBAAsB,YAAS;OACnC,MAAA;OACG,UAAI;MACN,CAAA;KACF;IACF,CAAC;IAAA,gBAAA,qBAAA;KACC,MAAM;KACN,UAAA;KACA,OAAA;KACA,YAAY,CAAA;MACV,MAAA;MACA,MAAM;KACR,CAAC;KACD,UAAE,IAAA;;;;;IAKJ,CAAC;IAAG,gBAAe,SAAU,CAAA,CAAA;IAAA,gBAAwB,gBAAM;KACzD,MAAG;KACH,UAAA;KACD,SAAS;KACT,KAAA;KACC,MAAM;KACN,UAAA,IAAA;IACF,CAAC;IAAC,gBAAA,SAAA,CAAA,CAAA;IAAA,gBAAA,qBAAA;KACA,MAAK;KACL,UAAM;KACN,OAAM;KACN,YAAA,CAAA;MACD,MAAS;MACT,MAAA;KACC,CAAA;KACA,YAAA;KACA,UAAA,IAAA;;;;;IAKF,CAAC;IAAG,gBAAA,SAAA,CAAA,CAAA;IAAA,gBAAA,MAAA;KACF,IAAC,OAAA;MACD,OAAA,QAAY,QAAQ;KACpB;KACS;IACX,CAAC;GAAC;EACJ;CACF,CAAC,CAAC;AACJ"}
@@ -1,11 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
3
2
  let _stryke_path_join_paths = require("@stryke/path/join-paths");
4
3
  let automd = require("automd");
5
4
  let powerlines_plugin_utils = require("powerlines/plugin-utils");
6
5
 
7
6
  //#region src/helpers/automd-generator.ts
8
- var automd_generator_exports = /* @__PURE__ */ require_runtime.__exportAll({ features: () => features });
9
7
  /**
10
8
  * AutoMD generator to generate feature flags documentation
11
9
  *
@@ -22,10 +20,4 @@ const features = (context) => (0, automd.defineGenerator)({
22
20
  });
23
21
 
24
22
  //#endregion
25
- Object.defineProperty(exports, 'automd_generator_exports', {
26
- enumerable: true,
27
- get: function () {
28
- return automd_generator_exports;
29
- }
30
- });
31
23
  exports.features = features;
@@ -1,10 +1,8 @@
1
- import { __exportAll } from "../_virtual/_rolldown/runtime.mjs";
2
1
  import { joinPaths } from "@stryke/path/join-paths";
3
2
  import { defineGenerator } from "automd";
4
3
  import { getDocsOutputPath } from "powerlines/plugin-utils";
5
4
 
6
5
  //#region src/helpers/automd-generator.ts
7
- var automd_generator_exports = /* @__PURE__ */ __exportAll({ features: () => features });
8
6
  /**
9
7
  * AutoMD generator to generate feature flags documentation
10
8
  *
@@ -21,5 +19,5 @@ const features = (context) => defineGenerator({
21
19
  });
22
20
 
23
21
  //#endregion
24
- export { automd_generator_exports, features };
22
+ export { features };
25
23
  //# sourceMappingURL=automd-generator.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"automd-generator.mjs","names":[],"sources":["../../src/helpers/automd-generator.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 { joinPaths } from \"@stryke/path/join-paths\";\nimport { defineGenerator } from \"automd\";\nimport { UnresolvedContext } from \"powerlines\";\nimport { getDocsOutputPath } from \"powerlines/plugin-utils\";\n\n/**\n * AutoMD generator to generate feature flags documentation\n *\n * @param context - The generator context.\n * @returns The generated documentation content.\n */\nexport const features = (context: UnresolvedContext) =>\n defineGenerator({\n name: \"features\",\n async generate() {\n const featuresDocFile = joinPaths(\n getDocsOutputPath(context.config.root),\n \"features.md\"\n );\n\n if (!context.fs.existsSync(featuresDocFile)) {\n return {\n contents: \"\"\n };\n }\n\n const contents = await context.fs.read(featuresDocFile);\n\n return {\n contents: contents || \"\"\n };\n }\n });\n"],"mappings":";;;;;;;;;;;;;AA6BA,MAAa,YAAW,YAAU,gBAAiB;CACjD,MAAA;CACA,MAAM,WAAW;EACf,MAAM,kBAAW,UAAA,kBAAA,QAAA,OAAA,IAAA,GAAA,aAAA;EACjB,IAAE,CAAA,QAAM,GAAA,WAAkB,eAAS,GACjC,OAAE,EACA,UAAU,GACZ;EAGF,OAAI,EACF,UAAI,MAFY,QAAW,GAAA,KAAA,eAAkB,KAE9B,GACjB;CACF"}
1
+ {"version":3,"file":"automd-generator.mjs","names":[],"sources":["../../src/helpers/automd-generator.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 { joinPaths } from \"@stryke/path/join-paths\";\nimport { defineGenerator } from \"automd\";\nimport { UnresolvedContext } from \"powerlines\";\nimport { getDocsOutputPath } from \"powerlines/plugin-utils\";\n\n/**\n * AutoMD generator to generate feature flags documentation\n *\n * @param context - The generator context.\n * @returns The generated documentation content.\n */\nexport const features = (context: UnresolvedContext) =>\n defineGenerator({\n name: \"features\",\n async generate() {\n const featuresDocFile = joinPaths(\n getDocsOutputPath(context.config.root),\n \"features.md\"\n );\n\n if (!context.fs.existsSync(featuresDocFile)) {\n return {\n contents: \"\"\n };\n }\n\n const contents = await context.fs.read(featuresDocFile);\n\n return {\n contents: contents || \"\"\n };\n }\n });\n"],"mappings":";;;;;;;;;;;AA6BA,MAAa,YAAW,YAAU,gBAAiB;CACjD,MAAA;CACA,MAAM,WAAW;EACf,MAAM,kBAAW,UAAA,kBAAA,QAAA,OAAA,IAAA,GAAA,aAAA;EACjB,IAAE,CAAA,QAAM,GAAA,WAAkB,eAAS,GACjC,OAAE,EACA,UAAU,GACZ;EAGF,OAAI,EACF,UAAI,MAFY,QAAW,GAAA,KAAA,eAAkB,KAE9B,GACjB;CACF"}
package/dist/index.cjs CHANGED
@@ -1,13 +1,13 @@
1
1
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
2
2
  const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
3
- const require_components_features_builtin = require('./components/features-builtin.cjs');
4
3
  const require_helpers_automd_generator = require('./helpers/automd-generator.cjs');
4
+ const require_components_features_builtin = require('./components/features-builtin.cjs');
5
5
  let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
6
+ let defu = require("defu");
7
+ defu = require_runtime.__toESM(defu);
6
8
  let _powerlines_plugin_alloy_render = require("@powerlines/plugin-alloy/render");
7
9
  let _powerlines_plugin_automd = require("@powerlines/plugin-automd");
8
10
  _powerlines_plugin_automd = require_runtime.__toESM(_powerlines_plugin_automd);
9
- let defu = require("defu");
10
- defu = require_runtime.__toESM(defu);
11
11
 
12
12
  //#region src/index.tsx
13
13
  /**
package/dist/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import { FeaturesBuiltin } from "./components/features-builtin.mjs";
2
1
  import { features } from "./helpers/automd-generator.mjs";
2
+ import { FeaturesBuiltin } from "./components/features-builtin.mjs";
3
3
  import { createComponent } from "@alloy-js/core/jsx-runtime";
4
+ import defu from "defu";
4
5
  import { render } from "@powerlines/plugin-alloy/render";
5
6
  import automd from "@powerlines/plugin-automd";
6
- import defu from "defu";
7
7
 
8
8
  //#region src/index.tsx
9
9
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-open-feature",
3
- "version": "0.1.196",
3
+ "version": "0.1.197",
4
4
  "private": false,
5
5
  "description": "A package containing a Powerlines plugin for managing Open Feature feature flags at runtime.",
6
6
  "keywords": [
@@ -87,20 +87,6 @@
87
87
  "default": "./dist/components/features-builtin.mjs"
88
88
  }
89
89
  },
90
- "./components/features-builtin.test": {
91
- "require": {
92
- "types": "./dist/components/features-builtin.test.d.cts",
93
- "default": "./dist/components/features-builtin.test.cjs"
94
- },
95
- "import": {
96
- "types": "./dist/components/features-builtin.test.d.mts",
97
- "default": "./dist/components/features-builtin.test.mjs"
98
- },
99
- "default": {
100
- "types": "./dist/components/features-builtin.test.d.mts",
101
- "default": "./dist/components/features-builtin.test.mjs"
102
- }
103
- },
104
90
  "./helpers": {
105
91
  "require": {
106
92
  "types": "./dist/helpers/index.d.cts",
@@ -129,34 +115,6 @@
129
115
  "default": "./dist/helpers/automd-generator.mjs"
130
116
  }
131
117
  },
132
- "./helpers/automd-generator.test": {
133
- "require": {
134
- "types": "./dist/helpers/automd-generator.test.d.cts",
135
- "default": "./dist/helpers/automd-generator.test.cjs"
136
- },
137
- "import": {
138
- "types": "./dist/helpers/automd-generator.test.d.mts",
139
- "default": "./dist/helpers/automd-generator.test.mjs"
140
- },
141
- "default": {
142
- "types": "./dist/helpers/automd-generator.test.d.mts",
143
- "default": "./dist/helpers/automd-generator.test.mjs"
144
- }
145
- },
146
- "./index.test": {
147
- "require": {
148
- "types": "./dist/index.test.d.cts",
149
- "default": "./dist/index.test.cjs"
150
- },
151
- "import": {
152
- "types": "./dist/index.test.d.mts",
153
- "default": "./dist/index.test.mjs"
154
- },
155
- "default": {
156
- "types": "./dist/index.test.d.mts",
157
- "default": "./dist/index.test.mjs"
158
- }
159
- },
160
118
  "./package.json": "./package.json",
161
119
  "./types": {
162
120
  "require": {
@@ -199,13 +157,13 @@
199
157
  "@alloy-js/typescript": "^0.23.0",
200
158
  "@openfeature/core": "^1.10.0",
201
159
  "@openfeature/server-sdk": "^1.21.0",
202
- "@powerlines/plugin-alloy": "0.26.191",
203
- "@powerlines/plugin-automd": "0.1.560",
204
- "@powerlines/plugin-plugin": "0.12.511",
160
+ "@powerlines/plugin-alloy": "^0.26.192",
161
+ "@powerlines/plugin-automd": "^0.1.561",
162
+ "@powerlines/plugin-plugin": "^0.12.512",
205
163
  "@storm-software/config-tools": "^1.190.37",
206
164
  "@stryke/convert": "^0.7.13",
207
- "@stryke/env": "^0.20.99",
208
- "@stryke/fs": "^0.33.82",
165
+ "@stryke/env": "^0.20.100",
166
+ "@stryke/fs": "^0.33.83",
209
167
  "@stryke/json": "^0.15.6",
210
168
  "@stryke/path": "^0.29.9",
211
169
  "@stryke/string-format": "^0.17.24",
@@ -213,7 +171,7 @@
213
171
  "@stryke/types": "^0.12.10",
214
172
  "automd": "^0.4.3",
215
173
  "defu": "^6.1.7",
216
- "powerlines": "0.47.99",
174
+ "powerlines": "^0.47.100",
217
175
  "c12": "^3.3.4"
218
176
  },
219
177
  "devDependencies": {
@@ -222,18 +180,5 @@
222
180
  "@types/node": "^25.9.1"
223
181
  },
224
182
  "publishConfig": { "access": "public" },
225
- "inlinedDependencies": {
226
- "@jridgewell/sourcemap-codec": "1.5.5",
227
- "@vitest/expect": "4.1.7",
228
- "@vitest/pretty-format": "4.1.7",
229
- "@vitest/runner": "4.1.7",
230
- "@vitest/snapshot": "4.1.7",
231
- "@vitest/spy": "4.1.7",
232
- "@vitest/utils": "4.1.7",
233
- "chai": "6.2.2",
234
- "magic-string": "0.30.21",
235
- "tinyrainbow": "3.1.0",
236
- "vitest": "4.1.7"
237
- },
238
- "gitHead": "11b392585b2086772822dd103176c9d58e30dc9c"
183
+ "gitHead": "f4ad7ee552b89cc860cb1cc2e56b20a5b779620d"
239
184
  }
@@ -1,18 +0,0 @@
1
- //#region \0rolldown/runtime.js
2
- var __defProp = Object.defineProperty;
3
- var __exportAll = (all, no_symbols) => {
4
- let target = {};
5
- for (var name in all) {
6
- __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
10
- }
11
- if (!no_symbols) {
12
- __defProp(target, Symbol.toStringTag, { value: "Module" });
13
- }
14
- return target;
15
- };
16
-
17
- //#endregion
18
- export { __exportAll };
@@ -1,16 +0,0 @@
1
- const require_chunk_artifact = require('../node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.cjs');
2
- const require_test_DNmyFkvJ = require('../node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.cjs');
3
- const require_components_features_builtin = require('./features-builtin.cjs');
4
-
5
- //#region src/components/features-builtin.test.ts
6
- require_chunk_artifact.describe("plugins/plugin-open-feature/src/components/features-builtin.tsx", () => {
7
- require_chunk_artifact.it("loads module exports", () => {
8
- require_test_DNmyFkvJ.globalExpect(require_components_features_builtin.features_builtin_exports).toBeDefined();
9
- require_test_DNmyFkvJ.globalExpect(typeof require_components_features_builtin.features_builtin_exports).toBe("object");
10
- });
11
- require_chunk_artifact.it("has at least one runtime export", () => {
12
- require_test_DNmyFkvJ.globalExpect(Object.keys(require_components_features_builtin.features_builtin_exports).length).toBeGreaterThan(0);
13
- });
14
- });
15
-
16
- //#endregion
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- export { };
@@ -1,18 +0,0 @@
1
- import { describe, it } from "../node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.mjs";
2
- import { globalExpect } from "../node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.mjs";
3
- import { features_builtin_exports } from "./features-builtin.mjs";
4
-
5
- //#region src/components/features-builtin.test.ts
6
- describe("plugins/plugin-open-feature/src/components/features-builtin.tsx", () => {
7
- it("loads module exports", () => {
8
- globalExpect(features_builtin_exports).toBeDefined();
9
- globalExpect(typeof features_builtin_exports).toBe("object");
10
- });
11
- it("has at least one runtime export", () => {
12
- globalExpect(Object.keys(features_builtin_exports).length).toBeGreaterThan(0);
13
- });
14
- });
15
-
16
- //#endregion
17
- export { };
18
- //# sourceMappingURL=features-builtin.test.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"features-builtin.test.mjs","names":[],"sources":["../../src/components/features-builtin.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./features-builtin\";\n\ndescribe(\"plugins/plugin-open-feature/src/components/features-builtin.tsx\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n\n it(\"has at least one runtime export\", () => {\n expect(Object.keys(moduleExports).length).toBeGreaterThan(0);\n });\n});\n"],"mappings":";;;;;;CAGA,GAAA,8BAA8B;EAC1B,aAAO,wBAAQ,EAAO,YAAS;EAC/B,aAAO,OAAA,wBAAe,EAAA,KAAY,QAAC;CACrC,CAAC;CACD,GAAE,yCAAA;;CAEF,CAAA;AACF,CAAC"}
@@ -1,16 +0,0 @@
1
- const require_chunk_artifact = require('../node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.cjs');
2
- const require_test_DNmyFkvJ = require('../node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.cjs');
3
- const require_helpers_automd_generator = require('./automd-generator.cjs');
4
-
5
- //#region src/helpers/automd-generator.test.ts
6
- require_chunk_artifact.describe("plugins/plugin-open-feature/src/helpers/automd-generator.ts", () => {
7
- require_chunk_artifact.it("loads module exports", () => {
8
- require_test_DNmyFkvJ.globalExpect(require_helpers_automd_generator.automd_generator_exports).toBeDefined();
9
- require_test_DNmyFkvJ.globalExpect(typeof require_helpers_automd_generator.automd_generator_exports).toBe("object");
10
- });
11
- require_chunk_artifact.it("has at least one runtime export", () => {
12
- require_test_DNmyFkvJ.globalExpect(Object.keys(require_helpers_automd_generator.automd_generator_exports).length).toBeGreaterThan(0);
13
- });
14
- });
15
-
16
- //#endregion
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- export { };
@@ -1,18 +0,0 @@
1
- import { describe, it } from "../node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.mjs";
2
- import { globalExpect } from "../node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.mjs";
3
- import { automd_generator_exports } from "./automd-generator.mjs";
4
-
5
- //#region src/helpers/automd-generator.test.ts
6
- describe("plugins/plugin-open-feature/src/helpers/automd-generator.ts", () => {
7
- it("loads module exports", () => {
8
- globalExpect(automd_generator_exports).toBeDefined();
9
- globalExpect(typeof automd_generator_exports).toBe("object");
10
- });
11
- it("has at least one runtime export", () => {
12
- globalExpect(Object.keys(automd_generator_exports).length).toBeGreaterThan(0);
13
- });
14
- });
15
-
16
- //#endregion
17
- export { };
18
- //# sourceMappingURL=automd-generator.test.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"automd-generator.test.mjs","names":[],"sources":["../../src/helpers/automd-generator.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./automd-generator\";\n\ndescribe(\"plugins/plugin-open-feature/src/helpers/automd-generator.ts\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n\n it(\"has at least one runtime export\", () => {\n expect(Object.keys(moduleExports).length).toBeGreaterThan(0);\n });\n});\n"],"mappings":";;;;;;CAGA,GAAA,8BAA8B;EAC1B,aAAO,wBAAQ,EAAO,YAAS;EAC/B,aAAO,OAAA,wBAAe,EAAA,KAAY,QAAC;CACrC,CAAC;CACD,GAAE,yCAAA;;CAEF,CAAA;AACF,CAAC"}
@@ -1,30 +0,0 @@
1
- const require_chunk_artifact = require('./node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.cjs');
2
- const require_test_DNmyFkvJ = require('./node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.cjs');
3
- const require_index = require('./index.cjs');
4
-
5
- //#region src/index.test.ts
6
- require_chunk_artifact.describe("open-feature plugin", () => {
7
- require_chunk_artifact.it("plugin is a function", () => {
8
- require_test_DNmyFkvJ.globalExpect(typeof require_index.default).toBe("function");
9
- });
10
- require_chunk_artifact.it("plugin() returns an object", () => {
11
- const result = require_index.default();
12
- require_test_DNmyFkvJ.globalExpect(typeof result).toBe("object");
13
- require_test_DNmyFkvJ.globalExpect(result).not.toBeNull();
14
- });
15
- require_chunk_artifact.it("plugin() returns an object with a name property", () => {
16
- const result = require_index.default();
17
- require_test_DNmyFkvJ.globalExpect(result).toHaveProperty("name");
18
- require_test_DNmyFkvJ.globalExpect(typeof result.name).toBe("string");
19
- });
20
- require_chunk_artifact.it("plugin() accepts an empty options object", () => {
21
- require_test_DNmyFkvJ.globalExpect(() => require_index.default({})).not.toThrow();
22
- });
23
- require_chunk_artifact.it("plugin() returns the same name for all calls", () => {
24
- const r1 = require_index.default();
25
- const r2 = require_index.default({});
26
- require_test_DNmyFkvJ.globalExpect(r1.name).toBe(r2.name);
27
- });
28
- });
29
-
30
- //#endregion
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- export { };
@@ -1,32 +0,0 @@
1
- import { describe, it } from "./node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.mjs";
2
- import { globalExpect } from "./node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.mjs";
3
- import plugin from "./index.mjs";
4
-
5
- //#region src/index.test.ts
6
- describe("open-feature plugin", () => {
7
- it("plugin is a function", () => {
8
- globalExpect(typeof plugin).toBe("function");
9
- });
10
- it("plugin() returns an object", () => {
11
- const result = plugin();
12
- globalExpect(typeof result).toBe("object");
13
- globalExpect(result).not.toBeNull();
14
- });
15
- it("plugin() returns an object with a name property", () => {
16
- const result = plugin();
17
- globalExpect(result).toHaveProperty("name");
18
- globalExpect(typeof result.name).toBe("string");
19
- });
20
- it("plugin() accepts an empty options object", () => {
21
- globalExpect(() => plugin({})).not.toThrow();
22
- });
23
- it("plugin() returns the same name for all calls", () => {
24
- const r1 = plugin();
25
- const r2 = plugin({});
26
- globalExpect(r1.name).toBe(r2.name);
27
- });
28
- });
29
-
30
- //#endregion
31
- export { };
32
- //# sourceMappingURL=index.test.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.test.mjs","names":[],"sources":["../src/index.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport { plugin } from \"./index\";\n\ndescribe(\"open-feature plugin\", () => {\n it(\"plugin is a function\", () => {\n expect(typeof plugin).toBe(\"function\");\n });\n\n it(\"plugin() returns an object\", () => {\n const result = plugin();\n expect(typeof result).toBe(\"object\");\n expect(result).not.toBeNull();\n });\n\n it(\"plugin() returns an object with a name property\", () => {\n const result = plugin();\n expect(result).toHaveProperty(\"name\");\n expect(typeof result.name).toBe(\"string\");\n });\n\n it(\"plugin() accepts an empty options object\", () => {\n expect(() => plugin({})).not.toThrow();\n });\n\n it(\"plugin() returns the same name for all calls\", () => {\n const r1 = plugin();\n const r2 = plugin({});\n expect(r1.name).toBe(r2.name);\n });\n});\n"],"mappings":";;;;;;CAGA,GAAA,8BAAmC;EAC/B,aAAE,OAAY,MAAA,EAAQ,KAAK,UAAI;CACjC,CAAC;CACD,GAAE,oCAAA;;EAEA,aAAE,OAAS,MAAQ,EAAG,KAAA,QAAa;EACnC,aAAM,MAAO,EAAE,IAAA,SAAQ;CACzB,CAAC;CACD,GAAE,yDAA6B;EAC7B,MAAA,SAAA,OAAA;;EAEA,aAAE,OAAS,OAAU,IAAC,EAAA,KAAO,QAAW;CAC1C,CAAC;CACD,GAAE,kDAAqC;EACrC,mBAAa,OAAO,CAAC,CAAA,CAAA,EAAI,IAAE,QAAM;CACnC,CAAC;;EAEC,MAAE,KAAS,OAAO;EAClB,MAAM,KAAK,OAAE,CAAM,CAAC;EACpB,aAAA,GAAA,IAAA,EAAA,KAAA,GAAA,IAAA;;AAEJ,CAAC"}
@@ -1,78 +0,0 @@
1
-
2
- //#region ../../../node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
3
- var comma = ",".charCodeAt(0);
4
- var semicolon = ";".charCodeAt(0);
5
- var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
6
- var intToChar = new Uint8Array(64);
7
- var charToInt = new Uint8Array(128);
8
- for (let i = 0; i < chars.length; i++) {
9
- const c = chars.charCodeAt(i);
10
- intToChar[i] = c;
11
- charToInt[c] = i;
12
- }
13
- function encodeInteger(builder, num, relative) {
14
- let delta = num - relative;
15
- delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
16
- do {
17
- let clamped = delta & 31;
18
- delta >>>= 5;
19
- if (delta > 0) clamped |= 32;
20
- builder.write(intToChar[clamped]);
21
- } while (delta > 0);
22
- return num;
23
- }
24
- var bufLength = 1024 * 16;
25
- var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? { decode(buf) {
26
- return Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength).toString();
27
- } } : { decode(buf) {
28
- let out = "";
29
- for (let i = 0; i < buf.length; i++) out += String.fromCharCode(buf[i]);
30
- return out;
31
- } };
32
- var StringWriter = class {
33
- constructor() {
34
- this.pos = 0;
35
- this.out = "";
36
- this.buffer = new Uint8Array(bufLength);
37
- }
38
- write(v) {
39
- const { buffer } = this;
40
- buffer[this.pos++] = v;
41
- if (this.pos === bufLength) {
42
- this.out += td.decode(buffer);
43
- this.pos = 0;
44
- }
45
- }
46
- flush() {
47
- const { buffer, out, pos } = this;
48
- return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
49
- }
50
- };
51
- function encode(decoded) {
52
- const writer = new StringWriter();
53
- let sourcesIndex = 0;
54
- let sourceLine = 0;
55
- let sourceColumn = 0;
56
- let namesIndex = 0;
57
- for (let i = 0; i < decoded.length; i++) {
58
- const line = decoded[i];
59
- if (i > 0) writer.write(semicolon);
60
- if (line.length === 0) continue;
61
- let genColumn = 0;
62
- for (let j = 0; j < line.length; j++) {
63
- const segment = line[j];
64
- if (j > 0) writer.write(comma);
65
- genColumn = encodeInteger(writer, segment[0], genColumn);
66
- if (segment.length === 1) continue;
67
- sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
68
- sourceLine = encodeInteger(writer, segment[2], sourceLine);
69
- sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
70
- if (segment.length === 4) continue;
71
- namesIndex = encodeInteger(writer, segment[4], namesIndex);
72
- }
73
- }
74
- return writer.flush();
75
- }
76
-
77
- //#endregion
78
- exports.encode = encode;