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 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, space_.value_);
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 typeof self_ === null;
180
+ return self_ === null;
181
181
  """
182
182
 
183
183
  field(key: String): Json
package/guide/Main.ff ADDED
@@ -0,0 +1,3 @@
1
+ nodeMain(system: NodeSystem) {
2
+ system.writeLine("Hello, World!")
3
+ }
@@ -163,7 +163,7 @@ export function fields_(body_) {
163
163
 
164
164
  }
165
165
 
166
- export function internalWith_(self_, field_, json_) {
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_, json_, $task) {
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, space_.value_);
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 typeof self_ === null;
454
+ return self_ === null;
455
455
 
456
456
  }
457
457
 
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "description": "Firefly compiler",
5
5
  "author": "Firefly team",
6
6
  "license": "MIT",
7
- "version": "0.4.13",
7
+ "version": "0.4.15",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/Ahnfelt/firefly-boot"
@@ -4,7 +4,7 @@
4
4
  "description": "Firefly language support",
5
5
  "author": "Firefly team",
6
6
  "license": "MIT",
7
- "version": "0.4.13",
7
+ "version": "0.4.15",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/Ahnfelt/firefly-boot"