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

domql

Package Overview
Dependencies
Maintainers
1
Versions
290
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

domql - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

2

package.json

@@ -6,3 +6,3 @@ {

"author": "rackai",
"version": "1.4.1",
"version": "1.4.2",
"repository": "https://github.com/rackai/domql",

@@ -9,0 +9,0 @@ "publishConfig": {

@@ -40,15 +40,17 @@ 'use strict'

// if KEY is PROTO
if (options.components) {
const { components } = options
const { proto } = element
if (isString(proto))
if (components[proto]) element.proto = components[proto]
else console.warn(proto, 'is not in library', components, element)
const k = element.key || key
const keyIsProto = isString(k) && k.charAt(0) === k.charAt(0).toUpperCase()
let component
if (keyIsProto) component = key
// // if KEY is PROTO
// const k = element.key || key
// const keyIsProto = isString(k) && k.charAt(0) === k.charAt(0).toUpperCase()
// if (keyIsProto) component = key
// let { match, ...rest } = element
// if proto comes from library as string
const fromLibrary = component || isString(element.proto) ? element.proto : element.component
const isInLibrary = components[fromLibrary]
if (isInLibrary) element = { proto: isInLibrary, props: element }
// const fromLibrary = isString(match) ? components[match] : match
// if (fromLibrary) element = { proto: fromLibrary, ...rest }
}

@@ -55,0 +57,0 @@

@@ -54,4 +54,3 @@ 'use strict'

parseDeep: {},
on: {},
component: {}
on: {}
}
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