Skip to content

Commit

Permalink
增加 swanInvoke 白名单 (#726)
Browse files Browse the repository at this point in the history
* 增加 swanInvoke 白名单

* 同步更新 mip-sandbox 版本到 mip 核心
  • Loading branch information
clark-t authored Nov 16, 2019
1 parent 65bb34b commit fc6e901
Show file tree
Hide file tree
Showing 11 changed files with 143 additions and 255 deletions.
169 changes: 74 additions & 95 deletions packages/mip-cli/package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions packages/mip-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mip2",
"version": "1.5.15",
"version": "1.5.16",
"description": "CLI for mip 2.0",
"preferGlobal": true,
"bin": {
Expand Down Expand Up @@ -65,9 +65,9 @@
"livereload": "^0.7.0",
"metalsmith": "^2.3.0",
"minimatch": "^3.0.4",
"mip-component-validator": "^1.1.7",
"mip-component-validator": "^1.1.8",
"mip-components-webpack-helpers": "^1.0.17",
"mip-sandbox": "^1.1.9",
"mip-sandbox": "^1.1.13",
"mip-validator": "^1.5.15",
"opn": "^5.3.0",
"ora": "^2.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/mip-component-validator/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/mip-component-validator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mip-component-validator",
"version": "1.1.7",
"version": "1.1.8",
"description": "MIP component validate",
"main": "index.js",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function getWhitelist () {
return Promise.resolve(whitelist)
}

const url = 'http://bos.nj.bpc.baidu.com/assets/mip-cli/whitelist.txt'
const url = 'http://mip-doc.bj.bcebos.com/mip-cli/whitelist.txt'
const local = path.resolve(__dirname, 'lib/whitelist.txt')

return fetch(url, {timeout: 1000})
Expand Down
3 changes: 3 additions & 0 deletions packages/mip-component-validator/src/rules/lib/whitelist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ nib
fe-siteopen-sdk
@baidu/fe-siteopen-sdk
@baidu/guid
@baidu/m-antman
web-animations-js
vue-lottery
mustache
swiper
clipboard
1 change: 1 addition & 0 deletions packages/mip-sandbox/lib/keywords-generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ module.exports = function () {
'scrollbars',
// https://github.com/mipengine/mip2/issues/563
'swan',
'swanInvoke',
{
name: 'document',
origin: function () {
Expand Down
Loading

0 comments on commit fc6e901

Please sign in to comment.