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

@mpxjs/api-proxy

Package Overview
Dependencies
Maintainers
10
Versions
168
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.7.44 to 2.7.49

4

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

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

},
"gitHead": "306aee23bc55c7f1af58b8de0c6e6394370c88d4"
"gitHead": "d24eb21aeb7b11087d5aaaffb1047e7344bfe9cf"
}

@@ -41,3 +41,2 @@ import NodesRef from './NodesRef'

let curComponent = document
if (component && component.$el) {

@@ -48,19 +47,25 @@ curComponent = component.$el

}
const selectSelf =
curComponent === document
? false
: Array
.from(curComponent.parentNode.querySelectorAll(selector))
.every(item => item === curComponent)
if (single) {
const el = selectSelf ? curComponent : curComponent.querySelector(selector)
res.push(handleFields(fields, el, selector))
if (this._isEl(selector)) {
if (single) {
res.push(handleFields(fields, selector, null))
} else {
res.push(selector.map(el => handleFields(fields, el, null)))
}
} else {
const els = selectSelf
? [curComponent]
: curComponent.querySelectorAll(selector)
const elsArr = Array.from(els).map(el => handleFields(fields, el, null))
res.push(elsArr)
const selectSelf =
curComponent === document
? false
: Array
.from(curComponent.parentNode.querySelectorAll(selector))
.every(item => item === curComponent)
if (single) {
const el = selectSelf ? curComponent : curComponent.querySelector(selector)
res.push(handleFields(fields, el, selector))
} else {
const els = selectSelf
? [curComponent]
: curComponent.querySelectorAll(selector)
const elsArr = Array.from(els).map(el => handleFields(fields, el, null))
res.push(elsArr)
}
}

@@ -167,2 +172,6 @@ })

}
_isEl (selector) {
if (Array.isArray(selector)) return this._isEl(selector[0])
return selector && selector.nodeType === 1
}
}

@@ -169,0 +178,0 @@

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