firefly-compiler 0.4.13 → 0.4.15
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/core/Json.ff +2 -2
- package/guide/Main.ff +3 -0
- package/output/js/ff/core/Json.mjs +4 -4
- package/package.json +1 -1
- package/vscode/package.json +1 -1
package/core/Json.ff
CHANGED
|
@@ -64,7 +64,7 @@ extend self: Json {
|
|
|
64
64
|
|
|
65
65
|
write(indentation: Option[String] = None): String
|
|
66
66
|
target js sync """
|
|
67
|
-
return JSON.stringify(self_, null,
|
|
67
|
+
return JSON.stringify(self_, null, indentation_.value_);
|
|
68
68
|
"""
|
|
69
69
|
|
|
70
70
|
with[T: JsonLike](field: String, value: T): Json {
|
|
@@ -177,7 +177,7 @@ extend self: Json {
|
|
|
177
177
|
|
|
178
178
|
isNull(): Bool
|
|
179
179
|
target js sync """
|
|
180
|
-
return
|
|
180
|
+
return self_ === null;
|
|
181
181
|
"""
|
|
182
182
|
|
|
183
183
|
field(key: String): Json
|
package/guide/Main.ff
ADDED
|
@@ -163,7 +163,7 @@ export function fields_(body_) {
|
|
|
163
163
|
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
export function internalWith_(self_, field_,
|
|
166
|
+
export function internalWith_(self_, field_, value_) {
|
|
167
167
|
|
|
168
168
|
if(typeof self_ !== 'object' || self_ === null || Array.isArray(self_)) {
|
|
169
169
|
throw new Error('Not an object: ' + JSON.stringify(self_));
|
|
@@ -291,7 +291,7 @@ export async function fields_$(body_, $task) {
|
|
|
291
291
|
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
-
export async function internalWith_$(self_, field_,
|
|
294
|
+
export async function internalWith_$(self_, field_, value_, $task) {
|
|
295
295
|
throw new Error('Function internalWith is missing on this target in async context.');
|
|
296
296
|
}
|
|
297
297
|
|
|
@@ -313,7 +313,7 @@ throw new Error('Function internalCompare is missing on this target in async con
|
|
|
313
313
|
|
|
314
314
|
export function Json_write(self_, indentation_ = ff_core_Option.None()) {
|
|
315
315
|
|
|
316
|
-
return JSON.stringify(self_, null,
|
|
316
|
+
return JSON.stringify(self_, null, indentation_.value_);
|
|
317
317
|
|
|
318
318
|
}
|
|
319
319
|
|
|
@@ -451,7 +451,7 @@ export function Json_isObject(self_) {
|
|
|
451
451
|
|
|
452
452
|
export function Json_isNull(self_) {
|
|
453
453
|
|
|
454
|
-
return
|
|
454
|
+
return self_ === null;
|
|
455
455
|
|
|
456
456
|
}
|
|
457
457
|
|
package/package.json
CHANGED