bare-module 1.14.2 → 1.14.3

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 +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -686,7 +686,7 @@ exports._protocols['data:'] = new Protocol({
686
686
  })
687
687
 
688
688
  process
689
- .on('exit', () => {
689
+ .prependListener('teardown', () => {
690
690
  for (const module of exports._modules) {
691
691
  module.destroy()
692
692
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-module",
3
- "version": "1.14.2",
3
+ "version": "1.14.3",
4
4
  "description": "Module support for JavaScript",
5
5
  "main": "index.js",
6
6
  "files": [