@symbo.ls/atoms
Advanced tools
Comparing version 2.11.353 to 2.11.357
@@ -15,3 +15,4 @@ 'use strict' | ||
const childrenAs = el.props?.childrenAs | ||
if (childrenAs) param = param.map(v => ({ [childrenAs]: v })) | ||
const extend = el.props?.childrenExtend | ||
if (childrenAs) param = param.map(v => ({ extend, [childrenAs]: v })) | ||
} else if (!param) return | ||
@@ -18,0 +19,0 @@ |
11
Img.js
@@ -7,4 +7,11 @@ 'use strict' | ||
attr: { | ||
src: ({ props, context }) => { | ||
const src = props.src | ||
src: (el) => { | ||
const { props, context } = el | ||
const { exec, isString, replaceLiteralsWithObjectFields } = context.utils | ||
let src = exec(props.src, el) | ||
if (isString(src) && src.includes('{{')) { | ||
src = replaceLiteralsWithObjectFields(src, el.state) | ||
} | ||
let isUrl | ||
@@ -11,0 +18,0 @@ try { isUrl = new URL(src) } catch (e) {} |
{ | ||
"name": "@symbo.ls/atoms", | ||
"version": "2.11.353", | ||
"version": "2.11.357", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"gitHead": "c5d01a30797fc044b539a5309a879f6b249e3888", | ||
"gitHead": "b5300a7b7e31509580190626af6c392176d2942d", | ||
"dependencies": { | ||
@@ -8,0 +8,0 @@ "@domql/state": "latest", |
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
51960
1443