Browse Source

build: build 2.6.1

dev
Evan You 6 years ago
parent
commit
6fb3a2211a
  1. 46
      dist/vue.common.dev.js
  2. 4
      dist/vue.common.prod.js
  3. 46
      dist/vue.esm.browser.js
  4. 4
      dist/vue.esm.browser.min.js
  5. 46
      dist/vue.esm.js
  6. 46
      dist/vue.js
  7. 4
      dist/vue.min.js
  8. 15
      dist/vue.runtime.common.dev.js
  9. 4
      dist/vue.runtime.common.prod.js
  10. 15
      dist/vue.runtime.esm.js
  11. 15
      dist/vue.runtime.js
  12. 4
      dist/vue.runtime.min.js
  13. 38
      packages/vue-server-renderer/basic.js
  14. 38
      packages/vue-server-renderer/build.dev.js
  15. 2
      packages/vue-server-renderer/build.prod.js
  16. 2
      packages/vue-server-renderer/package.json
  17. 31
      packages/vue-template-compiler/browser.js
  18. 31
      packages/vue-template-compiler/build.js
  19. 2
      packages/vue-template-compiler/package.json

46
dist/vue.common.dev.js

@ -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(',')) + "]}")
}

4
dist/vue.common.prod.js

File diff suppressed because one or more lines are too long

46
dist/vue.esm.browser.js

@ -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

4
dist/vue.esm.browser.min.js

File diff suppressed because one or more lines are too long

46
dist/vue.esm.js

@ -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

@ -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

File diff suppressed because one or more lines are too long

15
dist/vue.runtime.common.dev.js

@ -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();

4
dist/vue.runtime.common.prod.js

File diff suppressed because one or more lines are too long

15
dist/vue.runtime.esm.js

@ -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

@ -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();

4
dist/vue.runtime.min.js

File diff suppressed because one or more lines are too long

38
packages/vue-server-renderer/basic.js

@ -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;

38
packages/vue-server-renderer/build.dev.js

@ -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;

2
packages/vue-server-renderer/build.prod.js

File diff suppressed because one or more lines are too long

2
packages/vue-server-renderer/package.json

@ -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",

31
packages/vue-template-compiler/browser.js

@ -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(',')) + "]}")
}

31
packages/vue-template-compiler/build.js

@ -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(',')) + "]}")
}

2
packages/vue-template-compiler/package.json

@ -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",

Loading…
Cancel
Save