firefly-compiler 0.4.12 → 0.4.14
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/output/js/ff/core/Json.mjs +2 -2
- 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 {
|
|
@@ -255,7 +255,7 @@ extend self: Json {
|
|
|
255
255
|
|
|
256
256
|
}
|
|
257
257
|
|
|
258
|
-
internalWith(self: Json, field: String,
|
|
258
|
+
internalWith(self: Json, field: String, value: Json): Json
|
|
259
259
|
target js sync """
|
|
260
260
|
if(typeof self_ !== 'object' || self_ === null || Array.isArray(self_)) {
|
|
261
261
|
throw new Error('Not an object: ' + JSON.stringify(self_));
|
|
@@ -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
|
|
package/package.json
CHANGED