eslint-import-resolver-node 0.3.1 → 0.3.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 +7 -0
- package/index.js +2 -1
- package/package.json +9 -7
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel
|
|
|
5
5
|
|
|
6
6
|
## Unreleased
|
|
7
7
|
|
|
8
|
+
## v0.3.2 - 2018-01-05
|
|
9
|
+
### Added
|
|
10
|
+
- `.mjs` extension detected by default to support `experimental-modules` (#939)
|
|
11
|
+
|
|
12
|
+
### Deps
|
|
13
|
+
- update `debug`, `resolve`
|
|
8
14
|
|
|
9
15
|
## v0.3.1 - 2017-06-23
|
|
10
16
|
### Changed
|
|
@@ -36,6 +42,7 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel
|
|
|
36
42
|
|
|
37
43
|
[#438]: https://github.com/benmosher/eslint-plugin-import/pull/438
|
|
38
44
|
|
|
45
|
+
[#939]: https://github.com/benmosher/eslint-plugin-import/issues/939
|
|
39
46
|
[#531]: https://github.com/benmosher/eslint-plugin-import/issues/531
|
|
40
47
|
[#437]: https://github.com/benmosher/eslint-plugin-import/issues/437
|
|
41
48
|
|
package/index.js
CHANGED
|
@@ -27,7 +27,8 @@ exports.resolve = function (source, file, config) {
|
|
|
27
27
|
function opts(file, config) {
|
|
28
28
|
return Object.assign({
|
|
29
29
|
// more closely matches Node (#333)
|
|
30
|
-
|
|
30
|
+
// plus 'mjs' for native modules! (#939)
|
|
31
|
+
extensions: ['.mjs', '.js', '.json'],
|
|
31
32
|
},
|
|
32
33
|
config,
|
|
33
34
|
{
|
package/package.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-import-resolver-node",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Node default behavior import resolution plugin for eslint-plugin-import.",
|
|
5
5
|
"main": "index.js",
|
|
6
|
-
"files": [
|
|
6
|
+
"files": [
|
|
7
|
+
"index.js"
|
|
8
|
+
],
|
|
7
9
|
"scripts": {
|
|
8
10
|
"test": "nyc mocha"
|
|
9
11
|
},
|
|
@@ -25,12 +27,12 @@
|
|
|
25
27
|
},
|
|
26
28
|
"homepage": "https://github.com/benmosher/eslint-plugin-import",
|
|
27
29
|
"dependencies": {
|
|
28
|
-
"debug": "^2.6.
|
|
29
|
-
"resolve": "^1.
|
|
30
|
+
"debug": "^2.6.9",
|
|
31
|
+
"resolve": "^1.5.0"
|
|
30
32
|
},
|
|
31
33
|
"devDependencies": {
|
|
32
|
-
"chai": "^3.
|
|
33
|
-
"mocha": "^
|
|
34
|
-
"nyc": "^
|
|
34
|
+
"chai": "^3.5.0",
|
|
35
|
+
"mocha": "^3.5.3",
|
|
36
|
+
"nyc": "^10.3.2"
|
|
35
37
|
}
|
|
36
38
|
}
|