@symbo.ls/atoms
Advanced tools
Comparing version 2.11.480 to 2.11.491
@@ -11,3 +11,13 @@ 'use strict' | ||
attr: { | ||
src: ({ props }) => props.src, | ||
src: (el, s) => { | ||
let src = el.call('exec', el.props.src, el) | ||
if (el.call('isString', src) && src.includes('{{')) { | ||
src = el.call('replaceLiteralsWithObjectFields', src) | ||
} | ||
let isUrl | ||
try { isUrl = new URL(src) } catch (e) {} | ||
if (isUrl) return src | ||
}, | ||
srcdoc: ({ props }) => props.srcdoc, | ||
@@ -14,0 +24,0 @@ sandbox: ({ props }) => props.sandbox, |
@@ -9,7 +9,6 @@ 'use strict' | ||
const { props, context } = el | ||
const { exec, isString, replaceLiteralsWithObjectFields } = context.utils | ||
let src = (props.preSrc || '') + exec(props.src, el) | ||
let src = (props.preSrc || '') + el.call('exec', props.src, el) | ||
if (isString(src) && src.includes('{{')) { | ||
src = replaceLiteralsWithObjectFields(src, el.state) | ||
if (el.call('isString', src) && src.includes('{{')) { | ||
src = el.call('replaceLiteralsWithObjectFields', src) | ||
} | ||
@@ -16,0 +15,0 @@ |
{ | ||
"name": "@symbo.ls/atoms", | ||
"version": "2.11.480", | ||
"version": "2.11.491", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"gitHead": "14db2b8d241d45fa80f588a2e0a6c50f5dbd8bee", | ||
"gitHead": "ddd06b2b342480b2e20c02df04f9856d4ddf7060", | ||
"dependencies": { | ||
@@ -8,0 +8,0 @@ "@domql/state": "^2.5.0", |
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
68535
1880