Skip to content

Commit

Permalink
Merge pull request #45 from ariporad/deps
Browse files Browse the repository at this point in the history
chore(package): Update dependencies
  • Loading branch information
danez committed Jul 11, 2018
2 parents 752f310 + 5302863 commit 7dff3f5
Show file tree
Hide file tree
Showing 5 changed files with 2,901 additions and 1,590 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"presets": [["env", { "targets": { "node": 4 }}]],
"presets": [["@babel/env", { "targets": { "node": 6 }}]],
"env": {
"test": {
"plugins": ["istanbul"]
Expand Down
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ cache:
directories:
- "node_modules"
node_js:
- '9'
- '10'
- '8'
- '6'
install: yarn --frozen-lockfile --ignore-engines
before_script:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
script:
- yarn test
after_success:
- bash <(curl -s https://codecov.io/bash) -f coverage/coverage-final.json
- yarn semantic-release
- 'if [[ "$TRAVIS_JOB_NUMBER" == *.1 ]]; then yarn semantic-release; fi'
24 changes: 13 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"url": "https://github.com/ariporad/pirates.git"
},
"engines": {
"node": ">= 4"
"node": ">= 6"
},
"author": {
"name": "Ari Porad",
Expand All @@ -28,22 +28,24 @@
"node-modules-regexp": "^1.0.0"
},
"devDependencies": {
"ava": "^0.23.0",
"babel-cli": "^6.24.0",
"babel-eslint": "^8.0.2",
"@babel/cli": "^7.0.0-beta.53",
"@babel/core": "^7.0.0-beta.53",
"@babel/preset-env": "^7.0.0-beta.53",
"ava": "^0.25.0",
"babel-core": "^7.0.0-0",
"babel-eslint": "^9.0.0-beta.2",
"babel-plugin-istanbul": "^4.1.1",
"babel-preset-env": "^1.3.2",
"cross-env": "^5.0.5",
"cz-conventional-changelog": "^2.0.0",
"decache": "^4.1.0",
"eslint": "^4.6.0",
"eslint-config-airbnb-base": "^12.0.0",
"eslint": "^5.1.0",
"eslint-config-airbnb-base": "^13.0.0",
"eslint-plugin-import": "^2.2.0",
"mock-require": "^2.0.2",
"nyc": "^11.1.0",
"rewire": "^2.5.1",
"mock-require": "^3.0.2",
"nyc": "^12.0.2",
"rewire": "^4.0.1",
"rimraf": "^2.6.1",
"semantic-release": "^9.0.0"
"semantic-release": "^15.7.0"
},
"license": "MIT",
"bugs": {
Expand Down
16 changes: 8 additions & 8 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ const Module = module.constructor.length > 1
? module.constructor
: BuiltinModule;

const HOOK_RETURNED_NOTHING_ERROR_MESSAGE = '[Pirates] A hook returned a non-string, or nothing at all! This is a' +
' violation of intergalactic law!\n' +
'--------------------\n' +
'If you have no idea what this means or what Pirates is, let me explain: ' +
'Pirates is a module that makes is easy to implement require hooks. One of' +
' the require hooks you\'re using uses it. One of these require hooks' +
' didn\'t return anything from it\'s handler, so we don\'t know what to' +
' do. You might want to debug this.';
const HOOK_RETURNED_NOTHING_ERROR_MESSAGE = '[Pirates] A hook returned a non-string, or nothing at all! This is a'
+ ' violation of intergalactic law!\n'
+ '--------------------\n'
+ 'If you have no idea what this means or what Pirates is, let me explain: '
+ 'Pirates is a module that makes is easy to implement require hooks. One of'
+ ' the require hooks you\'re using uses it. One of these require hooks'
+ ' didn\'t return anything from it\'s handler, so we don\'t know what to'
+ ' do. You might want to debug this.';

function shouldCompile(filename, exts, matcher, ignoreNodeModules) {
if (typeof filename !== 'string') return false;
Expand Down

0 comments on commit 7dff3f5

Please sign in to comment.