mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-22 19:50:50 +00:00
refactor(@embark-utils): move escapHtml to embark-utils
This commit is contained in:
parent
2464fb69af
commit
483f692e0b
@ -68,7 +68,8 @@ const Utils = {
|
|||||||
isHex,
|
isHex,
|
||||||
soliditySha3,
|
soliditySha3,
|
||||||
recursiveMerge,
|
recursiveMerge,
|
||||||
sha512
|
sha512,
|
||||||
|
escapeHtml: require('./escapeHtml')
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = Utils;
|
module.exports = Utils;
|
||||||
|
@ -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';
|
||||||
|
@ -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");
|
||||||
|
@ -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}) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user