@budibase/backend-core 2.9.30-alpha.0 → 2.9.30-alpha.1
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.js +30 -5
- package/dist/index.js.map +4 -4
- package/dist/index.js.meta.json +1 -1
- package/dist/package.json +4 -4
- package/dist/plugins.js.map +1 -1
- package/dist/plugins.js.meta.json +1 -1
- package/dist/src/{featureFlags → features}/index.d.ts +1 -0
- package/dist/src/features/installation.d.ts +1 -0
- package/dist/src/index.d.ts +2 -1
- package/dist/tests.js.map +1 -1
- package/dist/tests.js.meta.json +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -5622,7 +5622,8 @@ __export(src_exports, {
|
|
|
5622
5622
|
env: () => environment_default,
|
|
5623
5623
|
errors: () => errors_exports,
|
|
5624
5624
|
events: () => events_exports,
|
|
5625
|
-
featureFlags: () =>
|
|
5625
|
+
featureFlags: () => features_exports,
|
|
5626
|
+
features: () => installation_exports2,
|
|
5626
5627
|
getPublicError: () => getPublicError,
|
|
5627
5628
|
init: () => init8,
|
|
5628
5629
|
installation: () => installation_exports,
|
|
@@ -10975,16 +10976,39 @@ function getExternalRoleID(roleId, version) {
|
|
|
10975
10976
|
return roleId;
|
|
10976
10977
|
}
|
|
10977
10978
|
|
|
10978
|
-
// src/
|
|
10979
|
-
var
|
|
10980
|
-
__export(
|
|
10979
|
+
// src/features/index.ts
|
|
10980
|
+
var features_exports = {};
|
|
10981
|
+
__export(features_exports, {
|
|
10981
10982
|
TenantFeatureFlag: () => TenantFeatureFlag,
|
|
10982
10983
|
buildFeatureFlags: () => buildFeatureFlags,
|
|
10983
10984
|
getTenantFeatureFlags: () => getTenantFeatureFlags,
|
|
10984
|
-
isEnabled: () => isEnabled
|
|
10985
|
+
isEnabled: () => isEnabled,
|
|
10986
|
+
processFeatureEnvVar: () => processFeatureEnvVar
|
|
10985
10987
|
});
|
|
10986
10988
|
init_environment2();
|
|
10987
10989
|
init_context2();
|
|
10990
|
+
|
|
10991
|
+
// src/features/installation.ts
|
|
10992
|
+
var installation_exports2 = {};
|
|
10993
|
+
__export(installation_exports2, {
|
|
10994
|
+
processFeatureEnvVar: () => processFeatureEnvVar
|
|
10995
|
+
});
|
|
10996
|
+
function processFeatureEnvVar(fullList, featureList) {
|
|
10997
|
+
let list;
|
|
10998
|
+
if (!featureList) {
|
|
10999
|
+
list = fullList;
|
|
11000
|
+
} else {
|
|
11001
|
+
list = featureList.split(",");
|
|
11002
|
+
}
|
|
11003
|
+
for (let feature of list) {
|
|
11004
|
+
if (!fullList.includes(feature)) {
|
|
11005
|
+
throw new Error(`Feature: ${feature} is not an allowed option`);
|
|
11006
|
+
}
|
|
11007
|
+
}
|
|
11008
|
+
return list;
|
|
11009
|
+
}
|
|
11010
|
+
|
|
11011
|
+
// src/features/index.ts
|
|
10988
11012
|
function buildFeatureFlags() {
|
|
10989
11013
|
if (!environment_default.TENANT_FEATURE_FLAGS) {
|
|
10990
11014
|
return;
|
|
@@ -12558,6 +12582,7 @@ var init8 = (opts = {}) => {
|
|
|
12558
12582
|
errors,
|
|
12559
12583
|
events,
|
|
12560
12584
|
featureFlags,
|
|
12585
|
+
features,
|
|
12561
12586
|
getPublicError,
|
|
12562
12587
|
init,
|
|
12563
12588
|
installation,
|