Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mpxjs/api-proxy

Package Overview
Dependencies
Maintainers
3
Versions
167
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 1.1.1 to 1.1.2

2

package.json
{
"name": "@mpxjs/api-proxy",
"version": "1.1.1",
"version": "1.1.2",
"description": "convert miniprogram API at each end",

@@ -5,0 +5,0 @@ "module": "src/index.js",

@@ -522,2 +522,13 @@ import { changeOpts, handleSuccess, getEnvObj, error, warn, noop } from '../utils'

// 抹平用微信的 complete
if (typeof opts.complete === 'function') {
const cacheComplete = opts.complete
opts.complete = function (res) {
if (+res.resultCode === 9000) {
res.errMsg = 'requestPayment:ok'
cacheComplete.call(this, res)
}
}
}
opts.success = function (res) {

@@ -524,0 +535,0 @@ if (+res.resultCode === 9000) {

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