Skip to content

Commit

Permalink
Library Update
Browse files Browse the repository at this point in the history
@babel/cli 7.10.5 → 7.11.6
@babel/core 7.11.4 → 7.11.6
@babel/preset-env 7.11.0 → 7.11.6
@babel/register 7.10.5 → 7.11.5
mkdirp 0.5.5 → 1.0.4
eslint 7.7.0 → 7.8.1
mocha 8.1.2 → 8.1.3
  • Loading branch information
nsano-rururu committed Sep 6, 2020
1 parent 65d2d8f commit a4ad1d7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"test": "./test"
},
"dependencies": {
"@babel/cli": "^7.10.5",
"@babel/core": "^7.11.4",
"@babel/preset-env": "^7.11.0",
"@babel/register": "^7.10.5",
"@babel/cli": "^7.11.6",
"@babel/core": "^7.11.6",
"@babel/preset-env": "^7.11.5",
"@babel/register": "^7.11.5",
"@hapi/joi": "^17.1.1",
"body-parser": "^1.19.0",
"bunyan": "^1.8.14",
Expand All @@ -32,7 +32,7 @@
"fs-extra": "^9.0.1",
"js-yaml": "^3.14.0",
"lodash": "^4.17.20",
"mkdirp": "^0.5.5",
"mkdirp": "^1.0.4",
"object-resolve-path": "^1.1.1",
"randomstring": "^1.1.5",
"raven": "^2.6.4",
Expand All @@ -44,9 +44,9 @@
"ws": "^7.3.1"
},
"devDependencies": {
"eslint": "^7.7.0",
"eslint": "^7.8.1",
"husky": "^4.2.5",
"mocha": "~8.1.2"
"mocha": "~8.1.3"
},
"scripts": {
"build": "babel src -d lib",
Expand Down
3 changes: 1 addition & 2 deletions src/common/file_system.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import fs from 'fs';
import fs_extra from 'fs-extra';
import { join as joinPath } from 'path';
import mkdirp from 'mkdirp';
import readdirp from 'readdirp';

export default class FileSystem {
Expand Down Expand Up @@ -82,7 +81,7 @@ export default class FileSystem {
return new Promise(function (resolve, reject) {
self.directoryExists(pathToFolder).then(function (exists) {
if (!exists) {
mkdirp(pathToFolder, function (error) {
fs.mkdir(pathToFolder, { recursive: true }, function (error) {
if (error) {
reject(error);
} else {
Expand Down
3 changes: 1 addition & 2 deletions src/controllers/rules/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { join as joinPath, normalize as normalizePath, extname as pathExtension } from 'path';
import mkdirp from 'mkdirp';
import tar from 'tar';
import fs from 'fs-extra';
import rq from 'request-promise-native';
Expand Down Expand Up @@ -56,7 +55,7 @@ export default class RulesController {
if (normalizePath(self.rulesFolder) === fullPath) {

// Try to create the root folder
mkdirp(fullPath, function(error) {
fs.mkdir(fullPath, { recursive: true }, function(error) {
if (error) {
reject(new RulesRootFolderNotCreatableError());
logger.warn(`The rules root folder (${fullPath}) couldn't be found nor could it be created by the file system.`);
Expand Down
4 changes: 2 additions & 2 deletions src/controllers/templates/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {join as joinPath, normalize as normalizePath, extname as pathExtension} from 'path';
import fs from 'fs';
import FileSystem from '../../common/file_system';
import mkdirp from 'mkdirp';
import config from '../../common/config';
import Logger from '../../common/logger';
import {TemplateNotFoundError, TemplateNotReadableError, TemplateNotWritableError,
Expand Down Expand Up @@ -52,7 +52,7 @@ export default class TemplatesController {
if (normalizePath(self.templatesFolder) === fullPath) {

// Try to create the root folder
mkdirp(fullPath, function (error) {
fs.mkdir(fullPath, { recursive: true }, function (error) {
if (error) {
reject(new TemplatesRootFolderNotCreatableError());
logger.warn(`The templates root folder (${fullPath}) couldn't be found nor could it be created by the file system.`);
Expand Down

0 comments on commit a4ad1d7

Please sign in to comment.