@xuda.io/account_module 1.2.2317 → 1.2.2318
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/index.mjs +3 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -835,13 +835,13 @@ const _MODULE_SUBSCRIPTIONS = [
|
|
|
835
835
|
// today and owes nothing new. Judged on price, so Free reads as not active, because
|
|
836
836
|
// here that is the truth: Free adds nothing and holds no line on the invoice.
|
|
837
837
|
{ key: 'drive', scope: 'account', field: 'drive_plan', default_plan: 'drive_free' },
|
|
838
|
-
// UI-228:
|
|
838
|
+
// UI-228: Xucode is sold on its own xucode_* ladder, and unlike every other row here it
|
|
839
839
|
// is not available at all below a membership floor (Pro), because a product that runs
|
|
840
840
|
// arbitrary customer code is the classic mining target and identity is the cheapest
|
|
841
841
|
// defence against that. The floor is NOT enforced here on purpose: this array answers
|
|
842
842
|
// "what is on the invoice", and the entitlement question belongs in one place, next to
|
|
843
|
-
// the thing that hands out a machine (deploy_module `
|
|
844
|
-
{ key: '
|
|
843
|
+
// the thing that hands out a machine (deploy_module `_xucode_entitlement`).
|
|
844
|
+
{ key: 'xucode', scope: 'account', field: 'xucode_plan', default_plan: 'xucode_free', is_activated: (a) => !!a.xucode_plan },
|
|
845
845
|
];
|
|
846
846
|
|
|
847
847
|
// app_type -> the row it belongs under. An app type that is not here is not a
|