Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-resolver

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-resolver - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

.editorconfig

20

History.md
0.0.1 / 2015-11-11
==================
v0.0.4 / 2015-11-11
===================
* bump version
* unit tests
* increase mocha timeout
* readme spacing
* add coverage badge
* update changelog
v0.0.3 / 2015-11-11
===================
* update readme
* add coverage
* add history
* initial commit
master / 2015-11-11

@@ -9,0 +21,0 @@ ===================

16

package.json
{
"name": "babel-resolver",
"version": "0.0.3",
"version": "0.0.4",
"description": "Resolve modules from any directory.",
"main": "index.js",
"main": "lib/createBabelResolver.js",
"scripts": {
"test": "node_modules/.bin/mocha test/**/*.test.js",
"cover": "node node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly"
"test": "npm run lint && node_modules/.bin/mocha test/**/*.test.js -t 10000",
"lint": "./node_modules/.bin/eslint .",
"cover": "npm run istanbul && npm run coveralls",
"istanbul": "node node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly",
"coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
},

@@ -32,4 +35,9 @@ "repository": {

"babel-core": "^6.1.4",
"babel-eslint": "^4.1.5",
"babel-preset-es2015": "^6.1.4",
"coveralls": "^2.11.4",
"eslint": "^1.9.0",
"eslint-config-standard": "^4.4.0",
"eslint-plugin-babel": "^2.1.1",
"eslint-plugin-standard": "^1.3.1",
"istanbul": "^0.4.0",

@@ -36,0 +44,0 @@ "mocha": "^2.3.3"

@@ -1,2 +0,2 @@

# Babel Resolver [![NPM version][npm-image]][npm-url] [![Build status][travis-image]][travis-url]
# Babel Resolver [![NPM version][npm-image]][npm-url] [![Build status][travis-image]][travis-url] [![Coverage status][coveralls-image]][coveralls-url]

@@ -7,3 +7,2 @@ Resolve imported modules from any directory.

import User from '../../models/User';
```

@@ -14,3 +13,2 @@ Becomes:

import User from 'models/User';
```

@@ -33,3 +31,2 @@

require('./app');
```

@@ -47,3 +44,2 @@ **Note:** Run `rm -rf ~/.babel.json` before use to clear babel's cache. If you're seeing errors, try this again.

rm -rf ~/.babel.json
```

@@ -60,3 +56,2 @@

rm -rf ~/.babel.json
```

@@ -72,1 +67,3 @@

[travis-url]: https://travis-ci.org/jshanson7/babel-resolver
[coveralls-image]: https://coveralls.io/repos/jshanson7/babel-resolver/badge.svg?branch=master&service=github
[coveralls-url]: https://coveralls.io/github/jshanson7/babel-resolver?branch=master

@@ -1,3 +0,1 @@

var assert = require('assert');
describe('babelResolver()', function () {

@@ -7,2 +5,2 @@ it('works', function () {

});
});
});

@@ -8,2 +8,2 @@ import assert from 'assert';

export default 'UserController';
export default 'UserController';
import assert from 'assert';
import { User } from 'controllers';
assert(User === 'UserController');
assert(User === 'UserController');

@@ -1,1 +0,6 @@

export default 'utils';
import assert from 'assert';
import relativeImport from './relativeImport';
assert(relativeImport === 'relative works too');
export default 'utils';

@@ -1,1 +0,6 @@

export default 'UserModel';
import assert from 'assert';
import data from 'models/data';
assert(data.hello === 'world');
export default 'UserModel';

@@ -11,2 +11,2 @@ var resolve = require('path').resolve;

require('./test-app');
require('./test-app');

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc