UNPKG

veendor

Version:

a tool for stroing your npm dependencies in arbitraty storage

19 lines (18 loc) 712 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var BackendCalls; (function (BackendCalls) { BackendCalls[BackendCalls["pull"] = 0] = "pull"; BackendCalls[BackendCalls["push"] = 1] = "push"; BackendCalls[BackendCalls["validateOptions"] = 2] = "validateOptions"; })(BackendCalls = exports.BackendCalls || (exports.BackendCalls = {})); function configHasHistory(config) { return typeof config.useGitHistory === 'object' && config.useGitHistory.depth > 0; } exports.configHasHistory = configHasHistory; function invariant(value, message = '') { if (!Boolean(value)) { throw new Error(`This can not happen ${message}`); } } exports.invariant = invariant;