@powerlines/plugin-open-feature 0.1.49 → 0.1.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +0 -3
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +0 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -5,8 +5,6 @@ const require_components_features_builtin = require('./components/features-built
|
|
|
5
5
|
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
6
6
|
let defu = require("defu");
|
|
7
7
|
defu = require_runtime.__toESM(defu);
|
|
8
|
-
let _powerlines_plugin_alloy = require("@powerlines/plugin-alloy");
|
|
9
|
-
_powerlines_plugin_alloy = require_runtime.__toESM(_powerlines_plugin_alloy);
|
|
10
8
|
let _powerlines_plugin_alloy_render = require("@powerlines/plugin-alloy/render");
|
|
11
9
|
let _powerlines_plugin_automd = require("@powerlines/plugin-automd");
|
|
12
10
|
_powerlines_plugin_automd = require_runtime.__toESM(_powerlines_plugin_automd);
|
|
@@ -17,7 +15,6 @@ _powerlines_plugin_automd = require_runtime.__toESM(_powerlines_plugin_automd);
|
|
|
17
15
|
*/
|
|
18
16
|
const plugin = (options = {}) => {
|
|
19
17
|
return [
|
|
20
|
-
(0, _powerlines_plugin_alloy.default)(options.alloy),
|
|
21
18
|
{
|
|
22
19
|
name: "open-feature",
|
|
23
20
|
async prepare() {
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;YAgCY,MAAA;IACR,WAAA,GAAc,wBAAA;EAAA;AAAA;;;;cAOL,MAAA,oBACM,wBAAA,GAA2B,wBAAA,EAE5C,OAAA,GAAS,wBAAA,KA0BJ,MAAA,CAAO,QAAA"}
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;YAgCY,MAAA;IACR,WAAA,GAAc,wBAAA;EAAA;AAAA;;;;cAOL,MAAA,oBACM,wBAAA,GAA2B,wBAAA,EAE5C,OAAA,GAAS,wBAAA,KA0BJ,MAAA,CAAO,QAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,6 @@ import { features } from "./helpers/automd-generator.mjs";
|
|
|
2
2
|
import { FeaturesBuiltin } from "./components/features-builtin.mjs";
|
|
3
3
|
import { createComponent } from "@alloy-js/core/jsx-runtime";
|
|
4
4
|
import defu from "defu";
|
|
5
|
-
import alloy from "@powerlines/plugin-alloy";
|
|
6
5
|
import { render } from "@powerlines/plugin-alloy/render";
|
|
7
6
|
import automd from "@powerlines/plugin-automd";
|
|
8
7
|
|
|
@@ -12,7 +11,6 @@ import automd from "@powerlines/plugin-automd";
|
|
|
12
11
|
*/
|
|
13
12
|
const plugin = (options = {}) => {
|
|
14
13
|
return [
|
|
15
|
-
alloy(options.alloy),
|
|
16
14
|
{
|
|
17
15
|
name: "open-feature",
|
|
18
16
|
async prepare() {
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.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
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.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 { render } from \"@powerlines/plugin-alloy/render\";\nimport automd from \"@powerlines/plugin-automd\";\nimport defu from \"defu\";\nimport { Plugin } from \"powerlines\";\nimport { FeaturesBuiltin } from \"./components/features-builtin\";\nimport { features } from \"./helpers/automd-generator\";\nimport type {\n OpenFeaturePluginContext,\n OpenFeaturePluginOptions\n} from \"./types/plugin\";\n\nexport type * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n openFeature?: OpenFeaturePluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to inject environment variables into the source code.\n */\nexport const plugin = <\n TContext extends OpenFeaturePluginContext = OpenFeaturePluginContext\n>(\n options: OpenFeaturePluginOptions = {}\n) => {\n return [\n {\n name: \"open-feature\",\n async prepare() {\n this.debug(\n `Preparing the Feature Flags runtime artifacts for the Powerlines project.`\n );\n\n return render(this, <FeaturesBuiltin />);\n }\n },\n {\n name: \"open-feature:automd-generator\",\n config() {\n return {\n automd: defu(options.automd ?? {}, {\n generators: {\n features: features(this)\n }\n })\n };\n }\n },\n automd(options.automd)\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;AA6BA,QAAO;EAAA;;GAEP,MAAQ,UAAQ;AACd,SAAS,MAAC,4EAAO;AACf,WAAA,OAAc,MAAA,gBAAwB,iBAAA,EAAA,CAAA,CAAA;;GAE1C;EAAA;;GAEE,SAAA;AACG,WAAA,EACH,QAAA,KAAA,QAAA,UAAA,EAAA,EAAA,EACK,YAAe,EACX,UAAQ,SAAA,KAAA,EAClB,EACQ,CAAC,EACL;;GAEF;EAAC,OAAA,QAAA,OAAA;EAAA"}
|
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.50",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Powerlines plugin for managing Open Feature feature flags at runtime.",
|
|
6
6
|
"keywords": [
|
|
@@ -157,9 +157,9 @@
|
|
|
157
157
|
"@alloy-js/typescript": "0.23.0-dev.4",
|
|
158
158
|
"@openfeature/core": "^1.10.0",
|
|
159
159
|
"@openfeature/server-sdk": "^1.21.0",
|
|
160
|
-
"@powerlines/plugin-alloy": "^0.26.
|
|
161
|
-
"@powerlines/plugin-automd": "^0.1.
|
|
162
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
160
|
+
"@powerlines/plugin-alloy": "^0.26.44",
|
|
161
|
+
"@powerlines/plugin-automd": "^0.1.426",
|
|
162
|
+
"@powerlines/plugin-plugin": "^0.12.377",
|
|
163
163
|
"@storm-software/config-tools": "^1.189.77",
|
|
164
164
|
"@stryke/convert": "^0.7.0",
|
|
165
165
|
"@stryke/env": "^0.20.84",
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
"@stryke/types": "^0.11.4",
|
|
172
172
|
"automd": "^0.4.3",
|
|
173
173
|
"defu": "^6.1.7",
|
|
174
|
-
"powerlines": "^0.
|
|
174
|
+
"powerlines": "^0.14.4",
|
|
175
175
|
"c12": "^3.3.4"
|
|
176
176
|
},
|
|
177
177
|
"devDependencies": {
|
|
@@ -181,5 +181,5 @@
|
|
|
181
181
|
"vite": "^8.0.10"
|
|
182
182
|
},
|
|
183
183
|
"publishConfig": { "access": "public" },
|
|
184
|
-
"gitHead": "
|
|
184
|
+
"gitHead": "d145cebdbcb32726955a6a4217a8bdf756411a7b"
|
|
185
185
|
}
|