socket-function 0.93.0 → 0.95.0

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.
@@ -1,3 +1,6 @@
1
+ // IMPORTANT! If you update this, also run `yarn typenode src\JSONLACKS\JSONLACKS.ts`
2
+ // (after uncommenting the generateAndVerifyParser line)
3
+
1
4
  // JSON Grammar
2
5
  // ============
3
6
  //
@@ -60,10 +63,12 @@ value
60
63
  / array
61
64
  / number
62
65
  / string
66
+ / undefined
63
67
 
64
68
  false = "false" { return false; }
65
69
  null = "null" { return null; }
66
70
  true = "true" { return true; }
71
+ undefined = "undefined" { return undefined; }
67
72
 
68
73
  // ----- 4. Objects -----
69
74
 
@@ -478,5 +478,6 @@ b"
478
478
  value: 'a'
479
479
  }
480
480
  `);
481
+ verify(`undefined`);
481
482
  }
482
- //generateAndVerifyParser().catch(console.error).finally(() => process.exit());
483
+ generateAndVerifyParser().catch(console.error).finally(() => process.exit());