New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mpxjs/api-proxy

Package Overview
Dependencies
Maintainers
12
Versions
179
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mpxjs/api-proxy - npm Package Compare versions

Comparing version 2.9.0-beta.0 to 2.9.0-beta.1

6

package.json
{
"name": "@mpxjs/api-proxy",
"version": "2.9.0-beta.0",
"version": "2.9.0-beta.1",
"description": "convert miniprogram API at each end",

@@ -34,3 +34,3 @@ "module": "src/index.js",

"author": "httpsxiao",
"license": "ISC",
"license": "Apache-2.0",
"bugs": {

@@ -43,3 +43,3 @@ "url": "https://github.com/didi/mpx/issues"

},
"gitHead": "67b611aeae99f916d46ca8d5d9ed784ddf53f05c"
"gitHead": "5e4b44c9b8132e9192cfd119f63196ecc6c4486c"
}

@@ -12,4 +12,3 @@ import transformApi from './mini/transform'

custom = {}, // 自定义转化规则
fallbackMap = {}, // 对于不支持的API,允许配置一个映射表,接管不存在的API
optimize = false // 内部一些实验优化的开关,外部用户慎用
fallbackMap = {} // 对于不支持的API,允许配置一个映射表,接管不存在的API
} = options

@@ -44,4 +43,3 @@

to,
custom,
optimize
custom
})

@@ -48,0 +46,0 @@

@@ -9,6 +9,3 @@ import { changeOpts, handleSuccess, getEnvObj, error, warn, noop } from '../../common/js'

// optimize case avoid call api multi times with getSystemInfoSync
let systemInfo
const getWxToAliApi = ({ optimize = false }) => {
const getWxToAliApi = () => {
return {

@@ -38,6 +35,2 @@ /**

getSystemInfoSync () {
if (optimize) {
if (systemInfo) return systemInfo
}
const res = ALI_OBJ.getSystemInfoSync() || {}

@@ -53,4 +46,2 @@

if (optimize) systemInfo = res
return res

@@ -57,0 +48,0 @@ },

@@ -17,3 +17,3 @@ import { error, getEnvObj, genFromMap, makeMap } from '../common/js'

const fromTo = joinName(from, to)
const wxToAliApi = getWxToAliApi({ optimize: options.optimize })
const wxToAliApi = getWxToAliApi()
const wxToQqApi = getWxToQqApi()

@@ -20,0 +20,0 @@ const wxToTtApi = getWxToTtApi()

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc