Comparing version 0.12.1-csp.1 to 0.12.1-csp.2
{ | ||
"name": "vue", | ||
"version": "0.12.1-csp.1", | ||
"version": "0.12.1-csp.2", | ||
"author": "Evan You <yyx990803@gmail.com>", | ||
@@ -25,6 +25,6 @@ "license": "MIT", | ||
"casperjs": "^1.1.0-beta3", | ||
"codecov.io": "^0.1.2", | ||
"grunt": "^0.4.5", | ||
"grunt-contrib-jshint": "^0.10.0", | ||
"grunt-karma": "^0.8.3", | ||
"grunt-karma-coveralls": "^2.5.3", | ||
"jshint-stylish": "^0.3.0", | ||
@@ -31,0 +31,0 @@ "karma": "^0.12.31", |
@@ -9,3 +9,3 @@ # CSP compliant build | ||
# Vue.js [![Build Status](https://travis-ci.org/yyx990803/vue.svg?branch=master)](https://travis-ci.org/yyx990803/vue) [![Selenium Test Status](https://saucelabs.com/buildstatus/vuejs)](https://saucelabs.com/u/vuejs) [![Coverage Status](https://img.shields.io/coveralls/yyx990803/vue.svg)](https://coveralls.io/r/yyx990803/vue?branch=master) | ||
# Vue.js [![Build Status](https://img.shields.io/circleci/project/yyx990803/vue/master.svg)](https://circleci.com/gh/yyx990803/vue) [![Coverage Status](https://img.shields.io/codecov/c/github/yyx990803/vue/master.svg)](https://codecov.io/github/yyx990803/vue?branch=master) [![Selenium Test Status](https://saucelabs.com/buildstatus/vuejs)](https://saucelabs.com/u/vuejs) | ||
@@ -12,0 +12,0 @@ ## Intro |
@@ -103,6 +103,6 @@ var _ = require('../util') | ||
// where the outlet is inside a conditional block | ||
if (main && !node.selected) { | ||
if (main && !node.__v_selected) { | ||
frag.appendChild(node.cloneNode(true)) | ||
} else if (!main && node.parentNode === parent) { | ||
node.selected = true | ||
node.__v_selected = true | ||
frag.appendChild(node.cloneNode(true)) | ||
@@ -109,0 +109,0 @@ } |
@@ -70,5 +70,6 @@ var _ = require('../util') | ||
replacer.nodeType !== 1 || | ||
// when root node has v-repeat, the instance ends up | ||
// having multiple top-level nodes, thus becoming a | ||
// block instance. (#835) | ||
// when root node is <content> or has v-repeat, the | ||
// instance could end up having multiple top-level | ||
// nodes, thus becoming a block instance. | ||
replacer.tagName.toLowerCase() === 'content' || | ||
replacer.hasAttribute(config.prefix + 'repeat') | ||
@@ -75,0 +76,0 @@ ) { |
@@ -175,3 +175,3 @@ /** | ||
exports.isObject = function (obj) { | ||
return obj && typeof obj === 'object' | ||
return obj !== null && typeof obj === 'object' | ||
} | ||
@@ -199,5 +199,3 @@ | ||
exports.isArray = function (obj) { | ||
return Array.isArray(obj) | ||
} | ||
exports.isArray = Array.isArray | ||
@@ -204,0 +202,0 @@ /** |
@@ -83,4 +83,4 @@ var _ = require('./index') | ||
var commonTagRE = /^(div|p|span|img|a|br|ul|ol|li|h1|h2|h3|h4|h5|code|pre)$/ | ||
var tableElementsRE = /^caption|colgroup|thead|tfoot|tbody|tr|td|th$/ | ||
exports.commonTagRE = /^(div|p|span|img|a|br|ul|ol|li|h1|h2|h3|h4|h5|code|pre)$/ | ||
exports.tableElementsRE = /^caption|colgroup|thead|tfoot|tbody|tr|td|th$/ | ||
@@ -95,3 +95,3 @@ exports.checkComponent = function (el, options) { | ||
} else if ( | ||
!commonTagRE.test(tag) && | ||
!exports.commonTagRE.test(tag) && | ||
_.resolveAsset(options, 'components', tag) | ||
@@ -101,3 +101,3 @@ ) { | ||
} else if ( | ||
tableElementsRE.test(tag) && | ||
exports.tableElementsRE.test(tag) && | ||
(tag = _.attr(el, 'component')) | ||
@@ -104,0 +104,0 @@ ) { |
@@ -217,2 +217,8 @@ var _ = require('./index') | ||
for (var key in components) { | ||
if (_.commonTagRE.test(key)) { | ||
_.warn( | ||
'Do not use built-in HTML elements as component ' + | ||
'name: ' + key | ||
) | ||
} | ||
def = components[key] | ||
@@ -279,2 +285,2 @@ if (_.isPlainObject(def)) { | ||
return asset | ||
} | ||
} |
@@ -182,3 +182,3 @@ var _ = require('./util') | ||
value !== this.value || | ||
Array.isArray(value) || | ||
_.isArray(value) || | ||
this.deep | ||
@@ -185,0 +185,0 @@ ) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
0
1131229
71
24747