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,
soliditySha3,
recursiveMerge,
sha512
sha512,
escapeHtml: require('./escapeHtml')
};
module.exports = Utils;

View File

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

View File

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

View File

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