mocha 9.0.1 → 9.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ # 9.0.2 / 2021-07-03
2
+
3
+ ## :bug: Fixes
4
+
5
+ - [#4668](https://github.com/mochajs/mocha/issues/4668): ESM: make `--require <dir>` work with new `import`-first loading ([**@giltayar**](https://github.com/giltayar))
6
+
7
+ ## :nut_and_bolt: Other
8
+
9
+ - [#4674](https://github.com/mochajs/mocha/issues/4674): Update production dependencies ([**@juergba**](https://github.com/juergba))
10
+
1
11
  # 9.0.1 / 2021-06-18
2
12
 
3
13
  ## :nut_and_bolt: Other
package/lib/esm-utils.js CHANGED
@@ -49,7 +49,8 @@ exports.requireOrImport = hasStableEsmImplementation
49
49
  } catch (err) {
50
50
  if (
51
51
  err.code === 'ERR_MODULE_NOT_FOUND' ||
52
- err.code === 'ERR_UNKNOWN_FILE_EXTENSION'
52
+ err.code === 'ERR_UNKNOWN_FILE_EXTENSION' ||
53
+ err.code === 'ERR_UNSUPPORTED_DIR_IMPORT'
53
54
  ) {
54
55
  return require(file);
55
56
  } else {
package/mocha-es2018.js CHANGED
@@ -1,4 +1,4 @@
1
- // mocha@9.0.1 in javascript ES2018
1
+ // mocha@9.0.2 in javascript ES2018
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
4
4
  typeof define === 'function' && define.amd ? define(factory) :
@@ -17025,7 +17025,7 @@
17025
17025
  });
17026
17026
 
17027
17027
  var name = "mocha";
17028
- var version = "9.0.1";
17028
+ var version = "9.0.2";
17029
17029
  var homepage = "https://mochajs.org/";
17030
17030
  var notifyLogo = "https://ibin.co/4QuRuGjXvl36.png";
17031
17031
  var _package = {