build: build 2.6.1

This commit is contained in:
Evan You 2019-02-04 17:51:32 -05:00
parent 66fd3c8dd1
commit 6fb3a2211a
19 changed files with 221 additions and 172 deletions

View File

@ -1,5 +1,5 @@
/*!
* Vue.js v2.6.0
* Vue.js v2.6.1
* (c) 2014-2019 Evan You
* Released under the MIT License.
*/
@ -1849,7 +1849,7 @@ function invokeWithErrorHandling (
var res;
try {
res = args ? handler.apply(context, args) : handler.call(context);
if (isPromise(res)) {
if (res && !res._isVue && isPromise(res)) {
res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
}
} catch (e) {
@ -4572,8 +4572,9 @@ function mergeHook$1 (f1, f2) {
// prop and event handler respectively.
function transformModel (options, data) {
var prop = (options.model && options.model.prop) || 'value';
var event = (options.model && options.model.event) || 'input'
;(data.props || (data.props = {}))[prop] = data.model.value;
var event = (options.model && options.model.event) || 'input';
var addTo = (options.props && prop in options.props) ? 'props' : 'attrs'
;(data[addTo] || (data[addTo] = {}))[prop] = data.model.value;
var on = data.on || (data.on = {});
var existing = on[event];
var callback = data.model.callback;
@ -5319,7 +5320,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
value: FunctionalRenderContext
});
Vue.version = '2.6.0';
Vue.version = '2.6.1';
/* */
@ -6640,8 +6641,8 @@ function baseSetAttr (el, key, value) {
/* istanbul ignore if */
if (
isIE && !isIE9 &&
(el.tagName === 'TEXTAREA' || el.tagName === 'INPUT') &&
key === 'placeholder' && !el.__ieph
el.tagName === 'TEXTAREA' &&
key === 'placeholder' && value !== '' && !el.__ieph
) {
var blocker = function (e) {
e.stopImmediatePropagation();
@ -9121,10 +9122,11 @@ var decodingMap = {
'"': '"',
'&': '&',
'
': '\n',
'	': '\t'
'	': '\t',
''': "'"
};
var encodedAttr = /&(?:lt|gt|quot|amp);/g;
var encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#10|#9);/g;
var encodedAttr = /&(?:lt|gt|quot|amp|#39);/g;
var encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#39|#10|#9);/g;
// #5992
var isIgnoreNewlineTag = makeMap('pre,textarea', true);
@ -9743,16 +9745,20 @@ function parse (
}
},
comment: function comment (text, start, end) {
var child = {
type: 3,
text: text,
isComment: true
};
if (options.outputSourceRange) {
child.start = start;
child.end = end;
// adding anyting as a sibling to the root node is forbidden
// comments should still be allowed, but ignored
if (currentParent) {
var child = {
type: 3,
text: text,
isComment: true
};
if (options.outputSourceRange) {
child.start = start;
child.end = end;
}
currentParent.children.push(child);
}
currentParent.children.push(child);
}
});
return root
@ -11047,7 +11053,7 @@ function genInlineTemplate (el, state) {
{ start: el.start }
);
}
if (ast.type === 1) {
if (ast && ast.type === 1) {
var inlineRenderFns = generate(ast, state.options);
return ("inlineTemplate:{render:function(){" + (inlineRenderFns.render) + "},staticRenderFns:[" + (inlineRenderFns.staticRenderFns.map(function (code) { return ("function(){" + code + "}"); }).join(',')) + "]}")
}

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
/*!
* Vue.js v2.6.0
* Vue.js v2.6.1
* (c) 2014-2019 Evan You
* Released under the MIT License.
*/
@ -1880,7 +1880,7 @@ function invokeWithErrorHandling (
let res;
try {
res = args ? handler.apply(context, args) : handler.call(context);
if (isPromise(res)) {
if (res && !res._isVue && isPromise(res)) {
res.catch(e => handleError(e, vm, info + ` (Promise/async)`));
}
} catch (e) {
@ -4615,8 +4615,9 @@ function mergeHook$1 (f1, f2) {
// prop and event handler respectively.
function transformModel (options, data) {
const prop = (options.model && options.model.prop) || 'value';
const event = (options.model && options.model.event) || 'input'
;(data.props || (data.props = {}))[prop] = data.model.value;
const event = (options.model && options.model.event) || 'input';
const addTo = (options.props && prop in options.props) ? 'props' : 'attrs'
;(data[addTo] || (data[addTo] = {}))[prop] = data.model.value;
const on = data.on || (data.on = {});
const existing = on[event];
const callback = data.model.callback;
@ -5352,7 +5353,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
value: FunctionalRenderContext
});
Vue.version = '2.6.0';
Vue.version = '2.6.1';
/* */
@ -6670,8 +6671,8 @@ function baseSetAttr (el, key, value) {
/* istanbul ignore if */
if (
isIE && !isIE9 &&
(el.tagName === 'TEXTAREA' || el.tagName === 'INPUT') &&
key === 'placeholder' && !el.__ieph
el.tagName === 'TEXTAREA' &&
key === 'placeholder' && value !== '' && !el.__ieph
) {
const blocker = e => {
e.stopImmediatePropagation();
@ -9140,10 +9141,11 @@ const decodingMap = {
'"': '"',
'&': '&',
'
': '\n',
'	': '\t'
'	': '\t',
''': "'"
};
const encodedAttr = /&(?:lt|gt|quot|amp);/g;
const encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#10|#9);/g;
const encodedAttr = /&(?:lt|gt|quot|amp|#39);/g;
const encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#39|#10|#9);/g;
// #5992
const isIgnoreNewlineTag = makeMap('pre,textarea', true);
@ -9762,16 +9764,20 @@ function parse (
}
},
comment (text, start, end) {
const child = {
type: 3,
text,
isComment: true
};
if (options.outputSourceRange) {
child.start = start;
child.end = end;
// adding anyting as a sibling to the root node is forbidden
// comments should still be allowed, but ignored
if (currentParent) {
const child = {
type: 3,
text,
isComment: true
};
if (options.outputSourceRange) {
child.start = start;
child.end = end;
}
currentParent.children.push(child);
}
currentParent.children.push(child);
}
});
return root
@ -11104,7 +11110,7 @@ function genInlineTemplate (el, state) {
{ start: el.start }
);
}
if (ast.type === 1) {
if (ast && ast.type === 1) {
const inlineRenderFns = generate(ast, state.options);
return `inlineTemplate:{render:function(){${
inlineRenderFns.render

File diff suppressed because one or more lines are too long

46
dist/vue.esm.js vendored
View File

@ -1,5 +1,5 @@
/*!
* Vue.js v2.6.0
* Vue.js v2.6.1
* (c) 2014-2019 Evan You
* Released under the MIT License.
*/
@ -1853,7 +1853,7 @@ function invokeWithErrorHandling (
var res;
try {
res = args ? handler.apply(context, args) : handler.call(context);
if (isPromise(res)) {
if (res && !res._isVue && isPromise(res)) {
res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
}
} catch (e) {
@ -4585,8 +4585,9 @@ function mergeHook$1 (f1, f2) {
// prop and event handler respectively.
function transformModel (options, data) {
var prop = (options.model && options.model.prop) || 'value';
var event = (options.model && options.model.event) || 'input'
;(data.props || (data.props = {}))[prop] = data.model.value;
var event = (options.model && options.model.event) || 'input';
var addTo = (options.props && prop in options.props) ? 'props' : 'attrs'
;(data[addTo] || (data[addTo] = {}))[prop] = data.model.value;
var on = data.on || (data.on = {});
var existing = on[event];
var callback = data.model.callback;
@ -5339,7 +5340,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
value: FunctionalRenderContext
});
Vue.version = '2.6.0';
Vue.version = '2.6.1';
/* */
@ -6662,8 +6663,8 @@ function baseSetAttr (el, key, value) {
/* istanbul ignore if */
if (
isIE && !isIE9 &&
(el.tagName === 'TEXTAREA' || el.tagName === 'INPUT') &&
key === 'placeholder' && !el.__ieph
el.tagName === 'TEXTAREA' &&
key === 'placeholder' && value !== '' && !el.__ieph
) {
var blocker = function (e) {
e.stopImmediatePropagation();
@ -9149,10 +9150,11 @@ var decodingMap = {
'"': '"',
'&': '&',
'
': '\n',
'	': '\t'
'	': '\t',
''': "'"
};
var encodedAttr = /&(?:lt|gt|quot|amp);/g;
var encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#10|#9);/g;
var encodedAttr = /&(?:lt|gt|quot|amp|#39);/g;
var encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#39|#10|#9);/g;
// #5992
var isIgnoreNewlineTag = makeMap('pre,textarea', true);
@ -9772,16 +9774,20 @@ function parse (
}
},
comment: function comment (text, start, end) {
var child = {
type: 3,
text: text,
isComment: true
};
if (process.env.NODE_ENV !== 'production' && options.outputSourceRange) {
child.start = start;
child.end = end;
// adding anyting as a sibling to the root node is forbidden
// comments should still be allowed, but ignored
if (currentParent) {
var child = {
type: 3,
text: text,
isComment: true
};
if (process.env.NODE_ENV !== 'production' && options.outputSourceRange) {
child.start = start;
child.end = end;
}
currentParent.children.push(child);
}
currentParent.children.push(child);
}
});
return root
@ -11081,7 +11087,7 @@ function genInlineTemplate (el, state) {
{ start: el.start }
);
}
if (ast.type === 1) {
if (ast && ast.type === 1) {
var inlineRenderFns = generate(ast, state.options);
return ("inlineTemplate:{render:function(){" + (inlineRenderFns.render) + "},staticRenderFns:[" + (inlineRenderFns.staticRenderFns.map(function (code) { return ("function(){" + code + "}"); }).join(',')) + "]}")
}

46
dist/vue.js vendored
View File

@ -1,5 +1,5 @@
/*!
* Vue.js v2.6.0
* Vue.js v2.6.1
* (c) 2014-2019 Evan You
* Released under the MIT License.
*/
@ -1853,7 +1853,7 @@
var res;
try {
res = args ? handler.apply(context, args) : handler.call(context);
if (isPromise(res)) {
if (res && !res._isVue && isPromise(res)) {
res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
}
} catch (e) {
@ -4576,8 +4576,9 @@
// prop and event handler respectively.
function transformModel (options, data) {
var prop = (options.model && options.model.prop) || 'value';
var event = (options.model && options.model.event) || 'input'
;(data.props || (data.props = {}))[prop] = data.model.value;
var event = (options.model && options.model.event) || 'input';
var addTo = (options.props && prop in options.props) ? 'props' : 'attrs'
;(data[addTo] || (data[addTo] = {}))[prop] = data.model.value;
var on = data.on || (data.on = {});
var existing = on[event];
var callback = data.model.callback;
@ -5323,7 +5324,7 @@
value: FunctionalRenderContext
});
Vue.version = '2.6.0';
Vue.version = '2.6.1';
/* */
@ -6644,8 +6645,8 @@
/* istanbul ignore if */
if (
isIE && !isIE9 &&
(el.tagName === 'TEXTAREA' || el.tagName === 'INPUT') &&
key === 'placeholder' && !el.__ieph
el.tagName === 'TEXTAREA' &&
key === 'placeholder' && value !== '' && !el.__ieph
) {
var blocker = function (e) {
e.stopImmediatePropagation();
@ -9125,10 +9126,11 @@
'"': '"',
'&': '&',
'
': '\n',
'	': '\t'
'	': '\t',
''': "'"
};
var encodedAttr = /&(?:lt|gt|quot|amp);/g;
var encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#10|#9);/g;
var encodedAttr = /&(?:lt|gt|quot|amp|#39);/g;
var encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#39|#10|#9);/g;
// #5992
var isIgnoreNewlineTag = makeMap('pre,textarea', true);
@ -9747,16 +9749,20 @@
}
},
comment: function comment (text, start, end) {
var child = {
type: 3,
text: text,
isComment: true
};
if (options.outputSourceRange) {
child.start = start;
child.end = end;
// adding anyting as a sibling to the root node is forbidden
// comments should still be allowed, but ignored
if (currentParent) {
var child = {
type: 3,
text: text,
isComment: true
};
if (options.outputSourceRange) {
child.start = start;
child.end = end;
}
currentParent.children.push(child);
}
currentParent.children.push(child);
}
});
return root
@ -11051,7 +11057,7 @@
{ start: el.start }
);
}
if (ast.type === 1) {
if (ast && ast.type === 1) {
var inlineRenderFns = generate(ast, state.options);
return ("inlineTemplate:{render:function(){" + (inlineRenderFns.render) + "},staticRenderFns:[" + (inlineRenderFns.staticRenderFns.map(function (code) { return ("function(){" + code + "}"); }).join(',')) + "]}")
}

4
dist/vue.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
/*!
* Vue.js v2.6.0
* Vue.js v2.6.1
* (c) 2014-2019 Evan You
* Released under the MIT License.
*/
@ -1840,7 +1840,7 @@ function invokeWithErrorHandling (
var res;
try {
res = args ? handler.apply(context, args) : handler.call(context);
if (isPromise(res)) {
if (res && !res._isVue && isPromise(res)) {
res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
}
} catch (e) {
@ -4563,8 +4563,9 @@ function mergeHook$1 (f1, f2) {
// prop and event handler respectively.
function transformModel (options, data) {
var prop = (options.model && options.model.prop) || 'value';
var event = (options.model && options.model.event) || 'input'
;(data.props || (data.props = {}))[prop] = data.model.value;
var event = (options.model && options.model.event) || 'input';
var addTo = (options.props && prop in options.props) ? 'props' : 'attrs'
;(data[addTo] || (data[addTo] = {}))[prop] = data.model.value;
var on = data.on || (data.on = {});
var existing = on[event];
var callback = data.model.callback;
@ -5310,7 +5311,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
value: FunctionalRenderContext
});
Vue.version = '2.6.0';
Vue.version = '2.6.1';
/* */
@ -6629,8 +6630,8 @@ function baseSetAttr (el, key, value) {
/* istanbul ignore if */
if (
isIE && !isIE9 &&
(el.tagName === 'TEXTAREA' || el.tagName === 'INPUT') &&
key === 'placeholder' && !el.__ieph
el.tagName === 'TEXTAREA' &&
key === 'placeholder' && value !== '' && !el.__ieph
) {
var blocker = function (e) {
e.stopImmediatePropagation();

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
/*!
* Vue.js v2.6.0
* Vue.js v2.6.1
* (c) 2014-2019 Evan You
* Released under the MIT License.
*/
@ -1844,7 +1844,7 @@ function invokeWithErrorHandling (
var res;
try {
res = args ? handler.apply(context, args) : handler.call(context);
if (isPromise(res)) {
if (res && !res._isVue && isPromise(res)) {
res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
}
} catch (e) {
@ -4576,8 +4576,9 @@ function mergeHook$1 (f1, f2) {
// prop and event handler respectively.
function transformModel (options, data) {
var prop = (options.model && options.model.prop) || 'value';
var event = (options.model && options.model.event) || 'input'
;(data.props || (data.props = {}))[prop] = data.model.value;
var event = (options.model && options.model.event) || 'input';
var addTo = (options.props && prop in options.props) ? 'props' : 'attrs'
;(data[addTo] || (data[addTo] = {}))[prop] = data.model.value;
var on = data.on || (data.on = {});
var existing = on[event];
var callback = data.model.callback;
@ -5330,7 +5331,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
value: FunctionalRenderContext
});
Vue.version = '2.6.0';
Vue.version = '2.6.1';
/* */
@ -6651,8 +6652,8 @@ function baseSetAttr (el, key, value) {
/* istanbul ignore if */
if (
isIE && !isIE9 &&
(el.tagName === 'TEXTAREA' || el.tagName === 'INPUT') &&
key === 'placeholder' && !el.__ieph
el.tagName === 'TEXTAREA' &&
key === 'placeholder' && value !== '' && !el.__ieph
) {
var blocker = function (e) {
e.stopImmediatePropagation();

15
dist/vue.runtime.js vendored
View File

@ -1,5 +1,5 @@
/*!
* Vue.js v2.6.0
* Vue.js v2.6.1
* (c) 2014-2019 Evan You
* Released under the MIT License.
*/
@ -1844,7 +1844,7 @@
var res;
try {
res = args ? handler.apply(context, args) : handler.call(context);
if (isPromise(res)) {
if (res && !res._isVue && isPromise(res)) {
res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
}
} catch (e) {
@ -4567,8 +4567,9 @@
// prop and event handler respectively.
function transformModel (options, data) {
var prop = (options.model && options.model.prop) || 'value';
var event = (options.model && options.model.event) || 'input'
;(data.props || (data.props = {}))[prop] = data.model.value;
var event = (options.model && options.model.event) || 'input';
var addTo = (options.props && prop in options.props) ? 'props' : 'attrs'
;(data[addTo] || (data[addTo] = {}))[prop] = data.model.value;
var on = data.on || (data.on = {});
var existing = on[event];
var callback = data.model.callback;
@ -5314,7 +5315,7 @@
value: FunctionalRenderContext
});
Vue.version = '2.6.0';
Vue.version = '2.6.1';
/* */
@ -6633,8 +6634,8 @@
/* istanbul ignore if */
if (
isIE && !isIE9 &&
(el.tagName === 'TEXTAREA' || el.tagName === 'INPUT') &&
key === 'placeholder' && !el.__ieph
el.tagName === 'TEXTAREA' &&
key === 'placeholder' && value !== '' && !el.__ieph
) {
var blocker = function (e) {
e.stopImmediatePropagation();

File diff suppressed because one or more lines are too long

View File

@ -1998,7 +1998,7 @@
var res;
try {
res = args ? handler.apply(context, args) : handler.call(context);
if (isPromise(res)) {
if (res && !res._isVue && isPromise(res)) {
res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
}
} catch (e) {
@ -3376,10 +3376,11 @@
'"': '"',
'&': '&',
'
': '\n',
'	': '\t'
'	': '\t',
''': "'"
};
var encodedAttr = /&(?:lt|gt|quot|amp);/g;
var encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#10|#9);/g;
var encodedAttr = /&(?:lt|gt|quot|amp|#39);/g;
var encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#39|#10|#9);/g;
// #5992
var isIgnoreNewlineTag = makeMap('pre,textarea', true);
@ -4146,16 +4147,20 @@
}
},
comment: function comment (text, start, end) {
var child = {
type: 3,
text: text,
isComment: true
};
if (options.outputSourceRange) {
child.start = start;
child.end = end;
// adding anyting as a sibling to the root node is forbidden
// comments should still be allowed, but ignored
if (currentParent) {
var child = {
type: 3,
text: text,
isComment: true
};
if (options.outputSourceRange) {
child.start = start;
child.end = end;
}
currentParent.children.push(child);
}
currentParent.children.push(child);
}
});
return root
@ -5489,7 +5494,7 @@
{ start: el.start }
);
}
if (ast.type === 1) {
if (ast && ast.type === 1) {
var inlineRenderFns = generate(ast, state.options);
return ("inlineTemplate:{render:function(){" + (inlineRenderFns.render) + "},staticRenderFns:[" + (inlineRenderFns.staticRenderFns.map(function (code) { return ("function(){" + code + "}"); }).join(',')) + "]}")
}
@ -8246,8 +8251,9 @@
// prop and event handler respectively.
function transformModel (options, data) {
var prop = (options.model && options.model.prop) || 'value';
var event = (options.model && options.model.event) || 'input'
;(data.props || (data.props = {}))[prop] = data.model.value;
var event = (options.model && options.model.event) || 'input';
var addTo = (options.props && prop in options.props) ? 'props' : 'attrs'
;(data[addTo] || (data[addTo] = {}))[prop] = data.model.value;
var on = data.on || (data.on = {});
var existing = on[event];
var callback = data.model.callback;

View File

@ -2000,7 +2000,7 @@ function invokeWithErrorHandling (
var res;
try {
res = args ? handler.apply(context, args) : handler.call(context);
if (isPromise(res)) {
if (res && !res._isVue && isPromise(res)) {
res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
}
} catch (e) {
@ -3126,10 +3126,11 @@ var decodingMap = {
'"': '"',
'&': '&',
'
': '\n',
'	': '\t'
'	': '\t',
''': "'"
};
var encodedAttr = /&(?:lt|gt|quot|amp);/g;
var encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#10|#9);/g;
var encodedAttr = /&(?:lt|gt|quot|amp|#39);/g;
var encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#39|#10|#9);/g;
// #5992
var isIgnoreNewlineTag = makeMap('pre,textarea', true);
@ -3896,16 +3897,20 @@ function parse (
}
},
comment: function comment (text, start, end) {
var child = {
type: 3,
text: text,
isComment: true
};
if (options.outputSourceRange) {
child.start = start;
child.end = end;
// adding anyting as a sibling to the root node is forbidden
// comments should still be allowed, but ignored
if (currentParent) {
var child = {
type: 3,
text: text,
isComment: true
};
if (options.outputSourceRange) {
child.start = start;
child.end = end;
}
currentParent.children.push(child);
}
currentParent.children.push(child);
}
});
return root
@ -5239,7 +5244,7 @@ function genInlineTemplate (el, state) {
{ start: el.start }
);
}
if (ast.type === 1) {
if (ast && ast.type === 1) {
var inlineRenderFns = generate(ast, state.options);
return ("inlineTemplate:{render:function(){" + (inlineRenderFns.render) + "},staticRenderFns:[" + (inlineRenderFns.staticRenderFns.map(function (code) { return ("function(){" + code + "}"); }).join(',')) + "]}")
}
@ -7996,8 +8001,9 @@ function mergeHook$1 (f1, f2) {
// prop and event handler respectively.
function transformModel (options, data) {
var prop = (options.model && options.model.prop) || 'value';
var event = (options.model && options.model.event) || 'input'
;(data.props || (data.props = {}))[prop] = data.model.value;
var event = (options.model && options.model.event) || 'input';
var addTo = (options.props && prop in options.props) ? 'props' : 'attrs'
;(data[addTo] || (data[addTo] = {}))[prop] = data.model.value;
var on = data.on || (data.on = {});
var existing = on[event];
var callback = data.model.callback;

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "vue-server-renderer",
"version": "2.6.0",
"version": "2.6.1",
"description": "server renderer for Vue 2.0",
"main": "index.js",
"types": "types/index.d.ts",

View File

@ -324,10 +324,11 @@
'"': '"',
'&': '&',
'
': '\n',
'	': '\t'
'	': '\t',
''': "'"
};
var encodedAttr = /&(?:lt|gt|quot|amp);/g;
var encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#10|#9);/g;
var encodedAttr = /&(?:lt|gt|quot|amp|#39);/g;
var encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#39|#10|#9);/g;
// #5992
var isIgnoreNewlineTag = makeMap('pre,textarea', true);
@ -3079,16 +3080,20 @@
}
},
comment: function comment (text, start, end) {
var child = {
type: 3,
text: text,
isComment: true
};
if (options.outputSourceRange) {
child.start = start;
child.end = end;
// adding anyting as a sibling to the root node is forbidden
// comments should still be allowed, but ignored
if (currentParent) {
var child = {
type: 3,
text: text,
isComment: true
};
if (options.outputSourceRange) {
child.start = start;
child.end = end;
}
currentParent.children.push(child);
}
currentParent.children.push(child);
}
});
return root
@ -4549,7 +4554,7 @@
{ start: el.start }
);
}
if (ast.type === 1) {
if (ast && ast.type === 1) {
var inlineRenderFns = generate(ast, state.options);
return ("inlineTemplate:{render:function(){" + (inlineRenderFns.render) + "},staticRenderFns:[" + (inlineRenderFns.staticRenderFns.map(function (code) { return ("function(){" + code + "}"); }).join(',')) + "]}")
}

View File

@ -281,10 +281,11 @@ var decodingMap = {
'"': '"',
'&': '&',
'
': '\n',
'	': '\t'
'	': '\t',
''': "'"
};
var encodedAttr = /&(?:lt|gt|quot|amp);/g;
var encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#10|#9);/g;
var encodedAttr = /&(?:lt|gt|quot|amp|#39);/g;
var encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#39|#10|#9);/g;
// #5992
var isIgnoreNewlineTag = makeMap('pre,textarea', true);
@ -2699,16 +2700,20 @@ function parse (
}
},
comment: function comment (text, start, end) {
var child = {
type: 3,
text: text,
isComment: true
};
if (process.env.NODE_ENV !== 'production' && options.outputSourceRange) {
child.start = start;
child.end = end;
// adding anyting as a sibling to the root node is forbidden
// comments should still be allowed, but ignored
if (currentParent) {
var child = {
type: 3,
text: text,
isComment: true
};
if (process.env.NODE_ENV !== 'production' && options.outputSourceRange) {
child.start = start;
child.end = end;
}
currentParent.children.push(child);
}
currentParent.children.push(child);
}
});
return root
@ -4182,7 +4187,7 @@ function genInlineTemplate (el, state) {
{ start: el.start }
);
}
if (ast.type === 1) {
if (ast && ast.type === 1) {
var inlineRenderFns = generate(ast, state.options);
return ("inlineTemplate:{render:function(){" + (inlineRenderFns.render) + "},staticRenderFns:[" + (inlineRenderFns.staticRenderFns.map(function (code) { return ("function(){" + code + "}"); }).join(',')) + "]}")
}

View File

@ -1,6 +1,6 @@
{
"name": "vue-template-compiler",
"version": "2.6.0",
"version": "2.6.1",
"description": "template compiler for Vue 2.0",
"main": "index.js",
"unpkg": "browser.js",