canvas-compose-image
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -287,4 +287,40 @@ ## canvas 合成图片和文字 | ||
### npm 发布插件 | ||
1. npm init | ||
2. 添加过滤文件 | ||
3. npm publish | ||
- 黑名单模式:.npmignore 文件,没有.npmignore 情况下使用.gitignore 文件。(.gitignore 优先级会高些,小心) | ||
跟.gitignore 一样 | ||
- 白名单模式:package.json 里边配置 files 字段 | ||
``` | ||
"files": [ | ||
"LICENSE", | ||
"History.md", | ||
"Readme.md", | ||
"index.js", | ||
"lib/" | ||
] | ||
``` | ||
- 白名单模式:pkg.files 配置 files 字段,只发布配置的文件或目录 | ||
``` | ||
{ | ||
"files": [ | ||
"index.js", | ||
"lib" | ||
] | ||
} | ||
``` | ||
#### 参考 | ||
[npm publish](https://cnodejs.org/topic/58b3aaea7872ea0864fee130) | ||
[canvas.toDataURL() SecurityError](https://stackoverflow.com/questions/20424279/canvas-todataurl-securityerror) | ||
[浏览器同源政策及其规避方法](http://www.ruanyifeng.com/blog/2016/04/same-origin-policy.html) | ||
[canvas 问题浅析](https://juejin.im/entry/5865f38e570c3500688944c2) |
{ | ||
"name": "canvas-compose-image", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "compose.js", | ||
@@ -19,3 +19,9 @@ "main": "index.js", | ||
}, | ||
"homepage": "https://github.com/easterCat/canvas-compose-image#readme" | ||
"homepage": "https://github.com/easterCat/canvas-compose-image#readme", | ||
"files": [ | ||
"img/", | ||
"demo/", | ||
"compose.md", | ||
"server/" | ||
] | ||
} |
@@ -82,5 +82,1 @@ ``` | ||
``` | ||
``` | ||
``` |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1
662988
12
82