mm_https 1.5.7 → 1.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +4 -4
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -370,7 +370,7 @@ Http.prototype.request = function(options) {
370
370
  * @description GET请求
371
371
  * @param {String} url 请求地址
372
372
  * @param {Object} headers 请求头
373
- * @param {Object} cookie 服务缓存
373
+ * @param {String} cookie 服务缓存
374
374
  * @return {Object} 响应的结果
375
375
  */
376
376
  Http.prototype.get = async function(url, headers, cookie) {
@@ -388,8 +388,8 @@ Http.prototype.get = async function(url, headers, cookie) {
388
388
  * @param {String} url 请求地址
389
389
  * @param {Object} body 提交参
390
390
  * @param {Object} headers 请求头
391
- * @param {Number} type 传参方式 json, form, text
392
- * @param {Object} cookie 服务缓存
391
+ * @param {String} type 传参方式 json, form, text
392
+ * @param {String} cookie 服务缓存
393
393
  * @return {Object} 响应的结果
394
394
  */
395
395
  Http.prototype.post = async function(url, body, headers, type, cookie) {
@@ -409,7 +409,7 @@ Http.prototype.post = async function(url, body, headers, type, cookie) {
409
409
  * @param {String} filename 下载地址
410
410
  * @param {String} auto 自动类型
411
411
  * @param {Object} headers 协议头
412
- * @param {Object} cookie COOKIE
412
+ * @param {String} cookie 服务缓存
413
413
  * @return {String} 成功返回保存路径,失败返回null
414
414
  */
415
415
  Http.prototype.download = async function(url, filename, auto, headers, cookie) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_https",
3
- "version": "1.5.7",
3
+ "version": "1.5.9",
4
4
  "description": "这是超级美眉http请求帮助类模块,可自动补充cookie,实现模拟登录,通讯",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -33,6 +33,6 @@
33
33
  "dependencies": {
34
34
  "https-proxy-agent": "^5.0.1",
35
35
  "iconv-lite": "^0.5.2",
36
- "mm_expand": "^1.5.6"
36
+ "mm_expand": "^1.6.9"
37
37
  }
38
38
  }