eslint-import-resolver-node 0.3.6 → 0.3.7

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 +2 -1
  2. package/package.json +4 -5
package/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const resolve = require('resolve');
4
+ const isCoreModule = require('is-core-module');
4
5
  const path = require('path');
5
6
 
6
7
  const log = require('debug')('eslint-plugin-import:resolver:node');
@@ -11,7 +12,7 @@ exports.resolve = function (source, file, config) {
11
12
  log('Resolving:', source, 'from:', file);
12
13
  let resolvedPath;
13
14
 
14
- if (resolve.isCore(source)) {
15
+ if (isCoreModule(source)) {
15
16
  log('resolved to core');
16
17
  return { found: true, path: null };
17
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-import-resolver-node",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "Node default behavior import resolution plugin for eslint-plugin-import.",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -9,8 +9,7 @@
9
9
  "scripts": {
10
10
  "prepublishOnly": "cp ../../{LICENSE,.npmrc} ./",
11
11
  "tests-only": "nyc mocha",
12
- "test": "npm run tests-only",
13
- "coveralls": "nyc report --reporter lcovonly && cd ../.. && coveralls < ./resolvers/node/coverage/lcov.info"
12
+ "test": "npm run tests-only"
14
13
  },
15
14
  "repository": {
16
15
  "type": "git",
@@ -31,11 +30,11 @@
31
30
  "homepage": "https://github.com/import-js/eslint-plugin-import",
32
31
  "dependencies": {
33
32
  "debug": "^3.2.7",
34
- "resolve": "^1.20.0"
33
+ "is-core-module": "^2.11.0",
34
+ "resolve": "^1.22.1"
35
35
  },
36
36
  "devDependencies": {
37
37
  "chai": "^3.5.0",
38
- "coveralls": "^3.1.0",
39
38
  "mocha": "^3.5.3",
40
39
  "nyc": "^11.9.0"
41
40
  }