Skip to content

Commit

Permalink
chore: revert dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-He95 committed Feb 8, 2023
1 parent 2f50519 commit e9f3795
Show file tree
Hide file tree
Showing 5 changed files with 131 additions and 131 deletions.
46 changes: 23 additions & 23 deletions packages/server-test-utils/dist/vue-server-test-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
var Vue__default = /*#__PURE__*/_interopDefaultLegacy(Vue);
var cheerio__default = /*#__PURE__*/_interopDefaultLegacy(cheerio);

//
//

function createVNodes(vm, slotValue, name) {
var el = vueTemplateCompiler.compileToFunctions(
Expand Down Expand Up @@ -1698,7 +1698,7 @@ var CREATE_ELEMENT_ALIAS = semver.gt(Vue__default['default'].version, '2.1.5')
? '_c'
: '_h';

//
//

function findDOMNodes(
element,
Expand All @@ -1716,7 +1716,7 @@ function findDOMNodes(
return nodes.concat([].slice.call(element.querySelectorAll(selector)))
}

//
//

function isDomSelector(selector) {
if (typeof selector !== 'string') {
Expand Down Expand Up @@ -1961,7 +1961,7 @@ function matches(node, selector) {
return vmMatchesName(componentInstance, nameSelector)
}

//
//

function findAllInstances(rootVm) {
var instances = [rootVm];
Expand Down Expand Up @@ -2099,7 +2099,7 @@ function normalizeProvide(provide) {
return provide
}

//
//

function getOption(option, config) {
if (option === false) {
Expand Down Expand Up @@ -7545,7 +7545,7 @@ function ocd(str, options) {
.replace(/>(\s*)(?=<!--\s*\/)/g, '> ');
}

//
//

function getSelectorType(selector) {
if (isDomSelector(selector)) { return DOM_SELECTOR }
Expand Down Expand Up @@ -7573,7 +7573,7 @@ function getSelector(
}
}

//
//

var WrapperArray = function WrapperArray(wrappers) {
var length = wrappers.length;
Expand Down Expand Up @@ -7799,7 +7799,7 @@ WrapperArray.prototype.destroy = function destroy () {
this.wrappers.forEach(function (wrapper) { return wrapper.destroy(); });
};

//
//

var buildSelectorString = function (selector) {
if (getSelectorType(selector) === REF_SELECTOR) {
Expand Down Expand Up @@ -9484,7 +9484,7 @@ function createDOMEvent(type, options) {
return event
}

//
//

var Wrapper = function Wrapper(
node,
Expand Down Expand Up @@ -10359,7 +10359,7 @@ Wrapper.prototype.trigger = function trigger (type, options) {
return nextTick()
};

//
//

var VueWrapper = /*@__PURE__*/(function (Wrapper) {
function VueWrapper(vm, options) {
Expand Down Expand Up @@ -10398,7 +10398,7 @@ var VueWrapper = /*@__PURE__*/(function (Wrapper) {
return VueWrapper;
}(Wrapper));

//
//

function createWrapper(
node,
Expand Down Expand Up @@ -12900,7 +12900,7 @@ function cloneDeep(value) {

var cloneDeep_1 = cloneDeep;

//
//

/**
* Used internally by vue-server-test-utils and test-utils to propagate/create vue instances.
Expand Down Expand Up @@ -12969,7 +12969,7 @@ function _createLocalVue(
return instance
}

//
//

function compileTemplate(component) {
if (component.template) {
Expand Down Expand Up @@ -13024,7 +13024,7 @@ function compileTemplateForSlots(slots) {
});
}

//
//

function isValidSlot(slot) {
return isVueComponent(slot) || typeof slot === 'string'
Expand Down Expand Up @@ -13121,7 +13121,7 @@ function validateOptions(options, component) {
Vue__default['default'].config.productionTip = false;
Vue__default['default'].config.devtools = false;

//
//

function throwError(msg) {
throw new Error(("[vue-test-utils]: " + msg))
Expand Down Expand Up @@ -13234,7 +13234,7 @@ function isVueWrapper(wrapper) {
return wrapper.vm || wrapper.isFunctionalComponent
}

//
//

function addMocks(
_Vue,
Expand All @@ -13261,7 +13261,7 @@ function addMocks(
});
}

//
//

function logEvents(
vm,
Expand Down Expand Up @@ -13298,7 +13298,7 @@ function addStubs(_Vue, stubComponents) {
_Vue.mixin(( obj = {}, obj[BEFORE_RENDER_LIFECYCLE_HOOK] = addStubComponentsMixin, obj ));
}

//
//

var MOUNTING_OPTIONS = [
'attachToDocument',
Expand All @@ -13322,7 +13322,7 @@ function extractInstanceOptions(options) {
return instanceOptions
}

//
//

function isDestructuringSlotScope(slotScope) {
return /^{.*}$/.test(slotScope)
Expand Down Expand Up @@ -13451,7 +13451,7 @@ function createScopedSlots(
return scopedSlots
}

//
//

var FUNCTION_PLACEHOLDER = '[Function]';

Expand Down Expand Up @@ -13761,7 +13761,7 @@ function patchCreateElement(_Vue, stubs, stubAllComponents) {
_Vue.mixin(( obj = {}, obj[BEFORE_RENDER_LIFECYCLE_HOOK] = patchCreateElementMixin, obj ));
}

//
//

function objectWithoutProperties (obj, exclude) { var target = {}; for (var k in obj) if (Object.prototype.hasOwnProperty.call(obj, k) && exclude.indexOf(k) === -1) target[k] = obj[k]; return target; }

Expand Down Expand Up @@ -13895,7 +13895,7 @@ function createInstance(

var config$1 = testUtils.config;

//
//

Vue__default['default'].config.productionTip = false;
Vue__default['default'].config.devtools = false;
Expand Down Expand Up @@ -13930,7 +13930,7 @@ function renderToString(
return renderer.renderToString(vm)
}

//
//

function render(
component,
Expand Down
Loading

0 comments on commit e9f3795

Please sign in to comment.