@symbo.ls/atoms 2.11.362 → 2.11.368

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/Img.js +1 -3
  2. package/package.json +2 -2
package/Img.js CHANGED
@@ -17,9 +17,7 @@ export const Img = {
17
17
  try { isUrl = new URL(src) } catch (e) {}
18
18
  if (isUrl) return src
19
19
  const file = context.files && context.files[src]
20
- if (src.startsWith('/') && file) {
21
- return file.content.src
22
- }
20
+ if (file) return file.content?.src
23
21
  },
24
22
  alt: ({ props }) => props.alt,
25
23
  title: ({ props }) => props.title || props.alt
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/atoms",
3
- "version": "2.11.362",
3
+ "version": "2.11.368",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "3782d8d0e49c78254185658d7102575e610d9a9f",
6
+ "gitHead": "12838f54d89d8478e6e664b59ac32f7f26544efc",
7
7
  "dependencies": {
8
8
  "@domql/state": "latest",
9
9
  "@domql/utils": "latest",