refactor(@embark-utils): move escapHtml to embark-utils

This commit is contained in:
Jonathan Rainville 2019-04-25 12:19:20 -04:00 committed by Pascal Precht
parent 2464fb69af
commit 483f692e0b
5 changed files with 5 additions and 4 deletions

View File

@ -68,7 +68,8 @@ const Utils = {
isHex, isHex,
soliditySha3, soliditySha3,
recursiveMerge, recursiveMerge,
sha512 sha512,
escapeHtml: require('./escapeHtml')
}; };
module.exports = Utils; module.exports = Utils;

View File

@ -1,7 +1,7 @@
require('colors'); require('colors');
let fs = require('./fs.js'); let fs = require('./fs.js');
const date = require('date-and-time'); const date = require('date-and-time');
const escapeHtml = require('../utils/escapeHtml'); const { escapeHtml } = require('embark-utils');
const util = require('util'); const util = require('util');
const DATE_FORMAT = 'YYYY-MM-DD HH:mm:ss:SSS'; const DATE_FORMAT = 'YYYY-MM-DD HH:mm:ss:SSS';

View File

@ -1,7 +1,7 @@
/*globals __*/ /*globals __*/
const env = require("../../core/env"); const env = require("../../core/env");
const utils = require("../../utils/utils"); const utils = require("../../utils/utils");
const escapeHtml = require("../../utils/escapeHtml"); const {escapeHtml} = require("embark-utils");
import { Callback } from "embark"; import { Callback } from "embark";
import constants from "../../constants.json"; import constants from "../../constants.json";
const stringify = require("json-stringify-safe"); const stringify = require("json-stringify-safe");

View File

@ -1,5 +1,5 @@
const LogHandler = require('../../utils/logHandler'); const LogHandler = require('../../utils/logHandler');
const escapeHtml = require('../../utils/escapeHtml'); const {escapeHtml} = require('embark-utils');
class ProcessLogsApi { class ProcessLogsApi {
constructor({embark, processName, silent}) { constructor({embark, processName, silent}) {