mirror of https://github.com/embarklabs/embark.git
refactor(@embark/utils): move unitRegex into utils package
This commit is contained in:
parent
b9fe741585
commit
93568ad911
|
@ -7,6 +7,7 @@ const {canonicalHost, defaultCorsHost, defaultHost, dockerHostSwap, isDocker} =
|
||||||
const {findNextPort} = require('./network');
|
const {findNextPort} = require('./network');
|
||||||
const logUtils = require('./log-utils');
|
const logUtils = require('./log-utils');
|
||||||
const toposortGraph = require('./toposort');
|
const toposortGraph = require('./toposort');
|
||||||
|
import { unitRegex } from './constants';
|
||||||
|
|
||||||
import { last, recursiveMerge } from './collections';
|
import { last, recursiveMerge } from './collections';
|
||||||
|
|
||||||
|
@ -145,6 +146,7 @@ const Utils = {
|
||||||
recursiveMerge,
|
recursiveMerge,
|
||||||
sha512,
|
sha512,
|
||||||
timer,
|
timer,
|
||||||
|
unitRegex,
|
||||||
runCmd,
|
runCmd,
|
||||||
escapeHtml: logUtils.escapeHtml,
|
escapeHtml: logUtils.escapeHtml,
|
||||||
normalizeInput: logUtils.normalizeInput,
|
normalizeInput: logUtils.normalizeInput,
|
||||||
|
|
|
@ -5,10 +5,9 @@ const path = require('path');
|
||||||
const deepEqual = require('deep-equal');
|
const deepEqual = require('deep-equal');
|
||||||
const web3 = require('web3');
|
const web3 = require('web3');
|
||||||
const constants = require('embark-core/constants');
|
const constants = require('embark-core/constants');
|
||||||
import {canonicalHost, defaultHost, recursiveMerge, AddressUtils} from 'embark-utils';
|
import {canonicalHost, defaultHost, recursiveMerge, AddressUtils, unitRegex} from 'embark-utils';
|
||||||
const cloneDeep = require('lodash.clonedeep');
|
const cloneDeep = require('lodash.clonedeep');
|
||||||
const { replaceZeroAddressShorthand } = AddressUtils;
|
const { replaceZeroAddressShorthand } = AddressUtils;
|
||||||
import { unitRegex } from "../utils/regexConstants";
|
|
||||||
import * as utilsContractsConfig from "../utils/contractsConfig";
|
import * as utilsContractsConfig from "../utils/contractsConfig";
|
||||||
import { File, Types } from "./file";
|
import { File, Types } from "./file";
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import { AddressUtils } from "embark-utils";
|
import { AddressUtils, unitRegex } from "embark-utils";
|
||||||
import { unitRegex } from "./regexConstants";
|
|
||||||
|
|
||||||
const { extendZeroAddressShorthand, replaceZeroAddressShorthand } = AddressUtils;
|
const { extendZeroAddressShorthand, replaceZeroAddressShorthand } = AddressUtils;
|
||||||
const web3 = require("web3");
|
const web3 = require("web3");
|
||||||
|
|
Loading…
Reference in New Issue