eslint-import-resolver-node 0.3.8 → 0.3.9

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 +3 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -29,14 +29,14 @@ exports.resolve = function (source, file, config) {
29
29
  };
30
30
 
31
31
  function opts(file, config, packageFilter) {
32
- return { // more closely matches Node (#333)
32
+ return Object.assign({ // more closely matches Node (#333)
33
33
  // plus 'mjs' for native modules! (#939)
34
34
  extensions: ['.mjs', '.js', '.json', '.node'],
35
- ...config,
35
+ }, config, {
36
36
  // path.resolve will handle paths relative to CWD
37
37
  basedir: path.dirname(path.resolve(file)),
38
38
  packageFilter,
39
- };
39
+ });
40
40
  }
41
41
 
42
42
  function identity(x) { return x; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-import-resolver-node",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "Node default behavior import resolution plugin for eslint-plugin-import.",
5
5
  "main": "index.js",
6
6
  "files": [