Skip to content

Commit

Permalink
Bump versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jenssimon committed Aug 15, 2019
1 parent d5ab325 commit 36e510f
Show file tree
Hide file tree
Showing 3 changed files with 370 additions and 269 deletions.
8 changes: 4 additions & 4 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ module.exports = (babel, { cartridgePath, basePath }) => ({
// Find the first cartridge that matches the requested module name
//
if (imp.source.indexOf('*/') === 0) {
resolve(target => cartridgePath.find(cartridge => SUPPORTED_EXTENSIONS
.find(ext => fs.existsSync(`${basePath}/${cartridge}${target}.${ext}`))));
resolve((target) => cartridgePath.find((cartridge) => SUPPORTED_EXTENSIONS
.find((ext) => fs.existsSync(`${basePath}/${cartridge}${target}.${ext}`))));
}

// Handle
Expand Down Expand Up @@ -78,8 +78,8 @@ module.exports = (babel, { cartridgePath, basePath }) => ({
const newCartridgePath = cartridgePath.slice(cartridgePath.indexOf(cartridge) + 1);

// Find the the cartridge which contains the next match for the module path
const foundCartridge = newCartridgePath.find(theCartridge => SUPPORTED_EXTENSIONS
.find(ext => fs.existsSync(`${basePath}/${theCartridge}${shortendedPathToModule}.${ext}`)));
const foundCartridge = newCartridgePath.find((theCartridge) => SUPPORTED_EXTENSIONS
.find((ext) => fs.existsSync(`${basePath}/${theCartridge}${shortendedPathToModule}.${ext}`)));

let foundRequire;
if (foundCartridge) {
Expand Down
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,29 +30,29 @@
"coveralls": "cat ./coverage/lcov.info | coveralls"
},
"devDependencies": {
"@babel/core": "^7.5.4",
"@jenssimon/eslint-config-base": "^1.2.1",
"@jenssimon/eslint-config-sfcc": "^1.1.0",
"@babel/core": "^7.5.5",
"@jenssimon/eslint-config-base": "^1.3.0",
"@jenssimon/eslint-config-sfcc": "^1.2.0",
"babel-eslint": "^10.0.2",
"coveralls": "^3.0.5",
"eslint": "^5.16.0",
"eslint-config-airbnb": "^17.1.1",
"eslint-config-airbnb-base": "^13.2.0",
"coveralls": "^3.0.6",
"eslint": "^6.1.0",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-plugin-dollar-sign": "^1.0.2",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.18.0",
"eslint-plugin-jest": "^22.7.2",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jest": "^22.15.1",
"eslint-plugin-jquery": "^1.5.1",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.14.2",
"eslint-plugin-react-hooks": "^1.6.1",
"eslint-plugin-react": "^7.14.3",
"eslint-plugin-react-hooks": "^1.7.0",
"eslint-plugin-sitegenesis": "^1.0.0",
"eslint-plugin-you-dont-need-lodash-underscore": "^6.5.0",
"eslint-plugin-you-dont-need-lodash-underscore": "^6.6.0",
"jest": "^24.8.0"
},
"dependencies": {
"@babel/types": "^7.5.0",
"@babel/types": "^7.5.5",
"imports-visitor": "^2.0.0"
},
"files": [
Expand Down

0 comments on commit 36e510f

Please sign in to comment.