fx 30.0.0 → 30.0.2

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.
Files changed (2) hide show
  1. package/index.js +4 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -108,6 +108,7 @@ async function transform(json, code) {
108
108
  }
109
109
 
110
110
  const fn = eval(`(function () {
111
+ const x = this
111
112
  return ${code}
112
113
  })`).call(json)
113
114
 
@@ -525,7 +526,7 @@ function stringify(value, isPretty = false) {
525
526
  string: isPretty ? '\x1b[32m' : '',
526
527
  number: isPretty ? '\x1b[36m' : '',
527
528
  boolean: isPretty ? '\x1b[35m' : '',
528
- null: isPretty ? '\x1b[2m' : '',
529
+ null: isPretty ? '\x1b[38;5;243m' : '',
529
530
  reset: isPretty ? '\x1b[0m' : '',
530
531
  }
531
532
 
@@ -576,8 +577,9 @@ function stringify(value, isPretty = false) {
576
577
 
577
578
  async function importFxrc(path) {
578
579
  const {join} = await import('node:path')
580
+ const {pathToFileURL} = await import('node:url')
579
581
  try {
580
- await import(join(path, '.fxrc.js'))
582
+ await import(pathToFileURL(join(path, '.fxrc.js')))
581
583
  } catch (err) {
582
584
  if (err.code !== 'ERR_MODULE_NOT_FOUND') throw err
583
585
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fx",
3
- "version": "30.0.0",
3
+ "version": "30.0.2",
4
4
  "bin": {
5
5
  "fx": "index.js"
6
6
  },