@powerlines/plugin-open-feature 0.1.34 → 0.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/features-builtin.d.cts +2 -1
- package/dist/components/features-builtin.d.cts.map +1 -1
- package/dist/components/features-builtin.d.mts +2 -1
- package/dist/components/features-builtin.d.mts.map +1 -1
- package/dist/helpers/automd-generator.cjs +2 -1
- package/dist/helpers/automd-generator.d.cts.map +1 -1
- package/dist/helpers/automd-generator.d.mts.map +1 -1
- package/dist/helpers/automd-generator.mjs +2 -1
- package/dist/helpers/automd-generator.mjs.map +1 -1
- package/dist/helpers/index.cjs +1 -3
- package/dist/helpers/index.d.cts +1 -2
- package/dist/helpers/index.d.mts +1 -2
- package/dist/helpers/index.mjs +1 -2
- package/package.json +6 -20
- package/dist/helpers/docs-helper.cjs +0 -17
- package/dist/helpers/docs-helper.d.cts +0 -13
- package/dist/helpers/docs-helper.d.cts.map +0 -1
- package/dist/helpers/docs-helper.d.mts +0 -13
- package/dist/helpers/docs-helper.d.mts.map +0 -1
- package/dist/helpers/docs-helper.mjs +0 -16
- package/dist/helpers/docs-helper.mjs.map +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as _$_alloy_js_core0 from "@alloy-js/core";
|
|
1
2
|
import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
|
|
2
3
|
|
|
3
4
|
//#region src/components/features-builtin.d.ts
|
|
@@ -5,7 +6,7 @@ type FeaturesBuiltinProps = Omit<BuiltinFileProps, "id">;
|
|
|
5
6
|
/**
|
|
6
7
|
* Generates the feature flags module for the Powerlines project.
|
|
7
8
|
*/
|
|
8
|
-
declare function FeaturesBuiltin(props: FeaturesBuiltinProps):
|
|
9
|
+
declare function FeaturesBuiltin(props: FeaturesBuiltinProps): _$_alloy_js_core0.Children;
|
|
9
10
|
//#endregion
|
|
10
11
|
export { FeaturesBuiltin, FeaturesBuiltinProps };
|
|
11
12
|
//# sourceMappingURL=features-builtin.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features-builtin.d.cts","names":[],"sources":["../../src/components/features-builtin.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"features-builtin.d.cts","names":[],"sources":["../../src/components/features-builtin.tsx"],"mappings":";;;;KA+BY,oBAAA,GAAuB,IAAA,CAAK,gBAAA;;;AAAxC;iBAKgB,eAAA,CAAgB,KAAA,EAAO,oBAAA,GAAoB,iBAAA,CAAA,QAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as _$_alloy_js_core0 from "@alloy-js/core";
|
|
1
2
|
import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
|
|
2
3
|
|
|
3
4
|
//#region src/components/features-builtin.d.ts
|
|
@@ -5,7 +6,7 @@ type FeaturesBuiltinProps = Omit<BuiltinFileProps, "id">;
|
|
|
5
6
|
/**
|
|
6
7
|
* Generates the feature flags module for the Powerlines project.
|
|
7
8
|
*/
|
|
8
|
-
declare function FeaturesBuiltin(props: FeaturesBuiltinProps):
|
|
9
|
+
declare function FeaturesBuiltin(props: FeaturesBuiltinProps): _$_alloy_js_core0.Children;
|
|
9
10
|
//#endregion
|
|
10
11
|
export { FeaturesBuiltin, FeaturesBuiltinProps };
|
|
11
12
|
//# sourceMappingURL=features-builtin.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features-builtin.d.mts","names":[],"sources":["../../src/components/features-builtin.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"features-builtin.d.mts","names":[],"sources":["../../src/components/features-builtin.tsx"],"mappings":";;;;KA+BY,oBAAA,GAAuB,IAAA,CAAK,gBAAA;;;AAAxC;iBAKgB,eAAA,CAAgB,KAAA,EAAO,oBAAA,GAAoB,iBAAA,CAAA,QAAA"}
|
|
@@ -2,6 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2
2
|
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
3
3
|
let _stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
4
4
|
let automd = require("automd");
|
|
5
|
+
let powerlines_plugin_utils = require("powerlines/plugin-utils");
|
|
5
6
|
|
|
6
7
|
//#region src/helpers/automd-generator.ts
|
|
7
8
|
/**
|
|
@@ -13,7 +14,7 @@ let automd = require("automd");
|
|
|
13
14
|
const features = (context) => (0, automd.defineGenerator)({
|
|
14
15
|
name: "features",
|
|
15
16
|
async generate() {
|
|
16
|
-
const featuresDocFile = (0, _stryke_path_join_paths.joinPaths)(context.config.root, "
|
|
17
|
+
const featuresDocFile = (0, _stryke_path_join_paths.joinPaths)((0, powerlines_plugin_utils.getDocsOutputPath)(context.config.root), "features.md");
|
|
17
18
|
if (!context.fs.existsSync(featuresDocFile)) return { contents: "" };
|
|
18
19
|
return { contents: await context.fs.read(featuresDocFile) || "" };
|
|
19
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automd-generator.d.cts","names":[],"sources":["../../src/helpers/automd-generator.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"automd-generator.d.cts","names":[],"sources":["../../src/helpers/automd-generator.ts"],"mappings":";;;;;;;AA6BA;;;cAAa,QAAA,GAAY,OAAA,EAAS,iBAAA,KAAiB,QAAA,CAAA,SAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automd-generator.d.mts","names":[],"sources":["../../src/helpers/automd-generator.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"automd-generator.d.mts","names":[],"sources":["../../src/helpers/automd-generator.ts"],"mappings":";;;;;;;AA6BA;;;cAAa,QAAA,GAAY,OAAA,EAAS,iBAAA,KAAiB,QAAA,CAAA,SAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { joinPaths } from "@stryke/path/join-paths";
|
|
2
2
|
import { defineGenerator } from "automd";
|
|
3
|
+
import { getDocsOutputPath } from "powerlines/plugin-utils";
|
|
3
4
|
|
|
4
5
|
//#region src/helpers/automd-generator.ts
|
|
5
6
|
/**
|
|
@@ -11,7 +12,7 @@ import { defineGenerator } from "automd";
|
|
|
11
12
|
const features = (context) => defineGenerator({
|
|
12
13
|
name: "features",
|
|
13
14
|
async generate() {
|
|
14
|
-
const featuresDocFile = joinPaths(context.config.root, "
|
|
15
|
+
const featuresDocFile = joinPaths(getDocsOutputPath(context.config.root), "features.md");
|
|
15
16
|
if (!context.fs.existsSync(featuresDocFile)) return { contents: "" };
|
|
16
17
|
return { contents: await context.fs.read(featuresDocFile) || "" };
|
|
17
18
|
}
|
|
@@ -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\";\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 context.config.root,\n \"
|
|
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,KAAA,EAAA,cAAA;AACjB,MAAE,CAAA,QAAM,GAAA,WAAkB,gBAAS,CACjC,QAAE,EACA,UAAU,IACX;AAGH,SAAI,EACF,UAAI,MAFY,QAAW,GAAA,KAAA,gBAAkB,IAE9B,IAChB"}
|
package/dist/helpers/index.cjs
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_helpers_automd_generator = require('./automd-generator.cjs');
|
|
3
|
-
const require_helpers_docs_helper = require('./docs-helper.cjs');
|
|
4
3
|
|
|
5
|
-
exports.features = require_helpers_automd_generator.features;
|
|
6
|
-
exports.getDocsOutputPath = require_helpers_docs_helper.getDocsOutputPath;
|
|
4
|
+
exports.features = require_helpers_automd_generator.features;
|
package/dist/helpers/index.d.cts
CHANGED
package/dist/helpers/index.d.mts
CHANGED
package/dist/helpers/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-open-feature",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.36",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Powerlines plugin for managing Open Feature feature flags at runtime.",
|
|
6
6
|
"keywords": [
|
|
@@ -115,20 +115,6 @@
|
|
|
115
115
|
"default": "./dist/helpers/automd-generator.mjs"
|
|
116
116
|
}
|
|
117
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
118
|
"./package.json": "./package.json",
|
|
133
119
|
"./types": {
|
|
134
120
|
"require": {
|
|
@@ -171,9 +157,9 @@
|
|
|
171
157
|
"@alloy-js/typescript": "0.23.0-dev.4",
|
|
172
158
|
"@openfeature/core": "^1.10.0",
|
|
173
159
|
"@openfeature/server-sdk": "^1.21.0",
|
|
174
|
-
"@powerlines/plugin-alloy": "^0.26.
|
|
175
|
-
"@powerlines/plugin-automd": "^0.1.
|
|
176
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
160
|
+
"@powerlines/plugin-alloy": "^0.26.30",
|
|
161
|
+
"@powerlines/plugin-automd": "^0.1.412",
|
|
162
|
+
"@powerlines/plugin-plugin": "^0.12.363",
|
|
177
163
|
"@storm-software/config-tools": "^1.189.77",
|
|
178
164
|
"@stryke/convert": "^0.6.58",
|
|
179
165
|
"@stryke/env": "^0.20.83",
|
|
@@ -185,7 +171,7 @@
|
|
|
185
171
|
"@stryke/types": "^0.11.3",
|
|
186
172
|
"automd": "^0.4.3",
|
|
187
173
|
"defu": "^6.1.7",
|
|
188
|
-
"powerlines": "^0.43.
|
|
174
|
+
"powerlines": "^0.43.11",
|
|
189
175
|
"c12": "^3.3.4"
|
|
190
176
|
},
|
|
191
177
|
"devDependencies": {
|
|
@@ -195,5 +181,5 @@
|
|
|
195
181
|
"vite": "^8.0.10"
|
|
196
182
|
},
|
|
197
183
|
"publishConfig": { "access": "public" },
|
|
198
|
-
"gitHead": "
|
|
184
|
+
"gitHead": "6b78d31f98cb071ea12c8f80802b33be0ba8a3da"
|
|
199
185
|
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
3
|
-
let _stryke_path_join = require("@stryke/path/join");
|
|
4
|
-
|
|
5
|
-
//#region src/helpers/docs-helper.ts
|
|
6
|
-
/**
|
|
7
|
-
* Gets the output path for the generated environment documentation.
|
|
8
|
-
*
|
|
9
|
-
* @param context - The environment plugin context.
|
|
10
|
-
* @returns The output path for the generated environment documentation.
|
|
11
|
-
*/
|
|
12
|
-
function getDocsOutputPath(context) {
|
|
13
|
-
return (0, _stryke_path_join.joinPaths)(context.config.root, "docs", "generated");
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
//#endregion
|
|
17
|
-
exports.getDocsOutputPath = getDocsOutputPath;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { OpenFeaturePluginContext } from "../types/plugin.cjs";
|
|
2
|
-
|
|
3
|
-
//#region src/helpers/docs-helper.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Gets the output path for the generated environment documentation.
|
|
6
|
-
*
|
|
7
|
-
* @param context - The environment plugin context.
|
|
8
|
-
* @returns The output path for the generated environment documentation.
|
|
9
|
-
*/
|
|
10
|
-
declare function getDocsOutputPath(context: OpenFeaturePluginContext): string;
|
|
11
|
-
//#endregion
|
|
12
|
-
export { getDocsOutputPath };
|
|
13
|
-
//# sourceMappingURL=docs-helper.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"docs-helper.d.cts","names":[],"sources":["../../src/helpers/docs-helper.ts"],"mappings":";;;;;AA2BA;;;;iBAAgB,iBAAA,CAAkB,OAAA,EAAS,wBAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { OpenFeaturePluginContext } from "../types/plugin.mjs";
|
|
2
|
-
|
|
3
|
-
//#region src/helpers/docs-helper.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Gets the output path for the generated environment documentation.
|
|
6
|
-
*
|
|
7
|
-
* @param context - The environment plugin context.
|
|
8
|
-
* @returns The output path for the generated environment documentation.
|
|
9
|
-
*/
|
|
10
|
-
declare function getDocsOutputPath(context: OpenFeaturePluginContext): string;
|
|
11
|
-
//#endregion
|
|
12
|
-
export { getDocsOutputPath };
|
|
13
|
-
//# sourceMappingURL=docs-helper.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"docs-helper.d.mts","names":[],"sources":["../../src/helpers/docs-helper.ts"],"mappings":";;;;;AA2BA;;;;iBAAgB,iBAAA,CAAkB,OAAA,EAAS,wBAAA"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { joinPaths } from "@stryke/path/join";
|
|
2
|
-
|
|
3
|
-
//#region src/helpers/docs-helper.ts
|
|
4
|
-
/**
|
|
5
|
-
* Gets the output path for the generated environment documentation.
|
|
6
|
-
*
|
|
7
|
-
* @param context - The environment plugin context.
|
|
8
|
-
* @returns The output path for the generated environment documentation.
|
|
9
|
-
*/
|
|
10
|
-
function getDocsOutputPath(context) {
|
|
11
|
-
return joinPaths(context.config.root, "docs", "generated");
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
//#endregion
|
|
15
|
-
export { getDocsOutputPath };
|
|
16
|
-
//# sourceMappingURL=docs-helper.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"docs-helper.mjs","names":[],"sources":["../../src/helpers/docs-helper.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\";\nimport { OpenFeaturePluginContext } from \"../types/plugin\";\n\n/**\n * Gets the output path for the generated environment documentation.\n *\n * @param context - The environment plugin context.\n * @returns The output path for the generated environment documentation.\n */\nexport function getDocsOutputPath(context: OpenFeaturePluginContext): string {\n return joinPaths(context.config.root, \"docs\", \"generated\");\n}\n"],"mappings":";;;;;;;;;AA2BA,SAAgB,kBAAkB,SAAS;AACzC,QAAO,UAAU,QAAQ,OAAO,MAAM,QAAQ,YAAY"}
|