eslint-import-resolver-node 0.3.0 → 0.3.4

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
@@ -5,6 +5,24 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel
5
5
 
6
6
  ## Unreleased
7
7
 
8
+ ## v0.3.4 - 2020-06-16
9
+ ### Added
10
+ - add `.node` extension ([#1663])
11
+
12
+ ## v0.3.3 - 2020-01-10
13
+ ### Changed
14
+ - [meta] copy LICENSE file to all npm packages on prepublish ([#1595], thanks [@opichals])
15
+
16
+ ## v0.3.2 - 2018-01-05
17
+ ### Added
18
+ - `.mjs` extension detected by default to support `experimental-modules` ([#939])
19
+
20
+ ### Deps
21
+ - update `debug`, `resolve`
22
+
23
+ ## v0.3.1 - 2017-06-23
24
+ ### Changed
25
+ - bumped `debug` dep to match other packages
8
26
 
9
27
  ## v0.3.0 - 2016-12-15
10
28
  ### Changed
@@ -32,6 +50,9 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel
32
50
 
33
51
  [#438]: https://github.com/benmosher/eslint-plugin-import/pull/438
34
52
 
53
+ [#1663]: https://github.com/benmosher/eslint-plugin-import/issues/1663
54
+ [#1595]: https://github.com/benmosher/eslint-plugin-import/pull/1595
55
+ [#939]: https://github.com/benmosher/eslint-plugin-import/issues/939
35
56
  [#531]: https://github.com/benmosher/eslint-plugin-import/issues/531
36
57
  [#437]: https://github.com/benmosher/eslint-plugin-import/issues/437
37
58
 
@@ -39,3 +60,4 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel
39
60
  [@lukeapage]: https://github.com/lukeapage
40
61
  [@SkeLLLa]: https://github.com/SkeLLLa
41
62
  [@ljharb]: https://github.com/ljharb
63
+ [@opichals]: https://github.com/opichals
package/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Ben Mosher
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
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
- extensions: ['.js', '.json'],
30
+ // plus 'mjs' for native modules! (#939)
31
+ extensions: ['.mjs', '.js', '.json', '.node'],
31
32
  },
32
33
  config,
33
34
  {
package/package.json CHANGED
@@ -1,11 +1,16 @@
1
1
  {
2
2
  "name": "eslint-import-resolver-node",
3
- "version": "0.3.0",
3
+ "version": "0.3.4",
4
4
  "description": "Node default behavior import resolution plugin for eslint-plugin-import.",
5
5
  "main": "index.js",
6
- "files": ["index.js"],
6
+ "files": [
7
+ "index.js"
8
+ ],
7
9
  "scripts": {
8
- "test": "nyc mocha"
10
+ "prepublishOnly": "cp ../../{LICENSE,.npmrc} ./",
11
+ "tests-only": "nyc mocha",
12
+ "test": "npm run tests-only",
13
+ "coveralls": "nyc report --reporter lcovonly && cd ../.. && coveralls < ./resolvers/node/coverage/lcov.info"
9
14
  },
10
15
  "repository": {
11
16
  "type": "git",
@@ -25,12 +30,18 @@
25
30
  },
26
31
  "homepage": "https://github.com/benmosher/eslint-plugin-import",
27
32
  "dependencies": {
28
- "debug": "^2.2.0",
29
- "resolve": "^1.2.0"
33
+ "debug": "^2.6.9",
34
+ "resolve": "^1.13.1"
30
35
  },
31
36
  "devDependencies": {
32
- "chai": "^3.4.1",
33
- "mocha": "^2.3.4",
34
- "nyc": "^7.0.0"
37
+ "chai": "^3.5.0",
38
+ "coveralls": "^3.0.0",
39
+ "mocha": "^3.5.3",
40
+ "nyc": "^11.7.1"
41
+ },
42
+ "nyc": {
43
+ "exclude": [
44
+ "test/"
45
+ ]
35
46
  }
36
47
  }
package/CHANGELOG.md~ DELETED
@@ -1,38 +0,0 @@
1
- # Change Log
2
- All notable changes to this resolver will be documented in this file.
3
- This project adheres to [Semantic Versioning](http://semver.org/).
4
- This change log adheres to standards from [Keep a CHANGELOG](http://keepachangelog.com).
5
-
6
- ## Unreleased
7
- ### Changed
8
- - bumped `resolve` to fix issues with Node builtins (thanks [@SkeLLLa] and [@ljharb])
9
-
10
- ### Fixed
11
- - use `files` in `package.json` to ship only `index.js` ([#531], thanks for noticing [@lukeapage])
12
-
13
- ## v0.2.3 - 2016-08-20
14
- ### Added
15
- - debug logging (use `DEBUG=eslint-plugin-import:resolver:node eslint [...]`)
16
-
17
- ## v0.2.2 - 2016-07-14
18
- ### Fixed
19
- - Node resolver no longer declares the import plugin as a `peerDependency`. See [#437]
20
- for a well-articulated and thoughtful expression of why this doesn't make sense.
21
- Thanks [@jasonkarns] for the issue and the PR to fix it ([#438]).
22
-
23
- Also, apologies to the others who expressed this before, but I never understood
24
- what the problem was.😅
25
-
26
- ## v0.2.1
27
- ### Fixed
28
- - find files with `.json` extensions (#333, thanks for noticing @jfmengels)
29
-
30
- [#438]: https://github.com/benmosher/eslint-plugin-import/pull/438
31
-
32
- [#531]: https://github.com/benmosher/eslint-plugin-import/issues/531
33
- [#437]: https://github.com/benmosher/eslint-plugin-import/issues/437
34
-
35
- [@jasonkarns]: https://github.com/jasonkarns
36
- [@lukeapage]: https://github.com/lukeapage
37
- [@SkeLLLa]: https://github.com/SkeLLLa
38
- [@ljharb]: https://github.com/ljharb