@hyperscale0/hsx 1.0.132 → 1.0.199
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/src/compile.js +2 -2
- package/dist/src/compile.js.map +1 -1
- package/dist/src/examples-bundle.js +1 -1
- package/dist/src/examples-bundle.js.map +1 -1
- package/dist/src/keywords.js +1 -1
- package/dist/src/keywords.js.map +1 -1
- package/dist/src/std-bundle.js +3 -3
- package/dist/src/std-bundle.js.map +1 -1
- package/examples/rental-deposit.hsx +2 -2
- package/package.json +4 -4
- package/src/compile.ts +2 -2
- package/src/examples-bundle.ts +1 -1
- package/src/keywords.ts +1 -1
- package/src/std-bundle.ts +3 -3
- package/std/money.hsx +1 -1
- package/std/reporting.hsx +1 -1
- package/std/savings.hsx +1 -1
package/dist/src/compile.js
CHANGED
|
@@ -186,7 +186,7 @@ function literal(expr, expectedType) {
|
|
|
186
186
|
if (expr.kind === "money") {
|
|
187
187
|
const [raw, currency] = expr.value.split(" ");
|
|
188
188
|
if (currency !== "SAR")
|
|
189
|
-
fail(expr, `currency ${currency} differs from
|
|
189
|
+
fail(expr, `currency ${currency} differs from the supported riyal currency`, "write this amount in SAR");
|
|
190
190
|
const result = decimal(raw, 2, expr);
|
|
191
191
|
if (result.length > 18)
|
|
192
192
|
fail(expr, "amount exceeds 18 minor-unit digits", "write a smaller amount");
|
|
@@ -280,7 +280,7 @@ export function compile(source, options = {}) {
|
|
|
280
280
|
if (program.header)
|
|
281
281
|
fail(program, "compile a program, not a header", 'start with program product_name "Title"');
|
|
282
282
|
if (program.currency !== "SAR")
|
|
283
|
-
fail(program, "this release supports
|
|
283
|
+
fail(program, "this release supports riyals", "write currency SAR or omit currency");
|
|
284
284
|
const templates = new Map();
|
|
285
285
|
const declarationSources = new Map();
|
|
286
286
|
const standardOrigins = new Map();
|