@mpxjs/api-proxy
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "@mpxjs/api-proxy", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "convert miniprogram API at each end", | ||
"main": "index.js", | ||
"main": "./src/index.js", | ||
"scripts": { | ||
@@ -18,3 +18,6 @@ "test": "echo \"Error: no test specified\" && exit 1" | ||
"keywords": [ | ||
"api-proxy", | ||
"mpx", | ||
"api", | ||
"proxy", | ||
"transform", | ||
"promisify" | ||
@@ -21,0 +24,0 @@ ], |
@@ -22,3 +22,3 @@ import { proxyWxToAliApi } from './platform' | ||
// 代理所有 api | ||
proxyAll() | ||
proxyAll(target) | ||
@@ -25,0 +25,0 @@ // 转换各端 api |
@@ -8,5 +8,7 @@ import { getEnvObj } from './utils' | ||
if (typeof envObj[key] === 'function') { | ||
traget[key] = envObj[key] | ||
traget[key] = function (...args) { | ||
envObj[key].apply(envObj, args) | ||
} | ||
} | ||
}) | ||
} |
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
21249
705