@symbo.ls/atoms 2.11.361 → 2.11.367

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 (3) hide show
  1. package/Collection.js +1 -1
  2. package/Img.js +1 -1
  3. package/package.json +2 -2
package/Collection.js CHANGED
@@ -8,7 +8,7 @@ export const Collection = {
8
8
  $collection: (param, el, state) => {
9
9
  const { __ref: ref } = el
10
10
  const { children, childrenAs, childrenExtend } = (el.props || {})
11
- const hasChildren = isArray()
11
+ const hasChildren = isArray(children)
12
12
 
13
13
  if (hasChildren) {
14
14
  param = children
package/Img.js CHANGED
@@ -17,7 +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) {
20
+ if (src?.startsWith('/') && file) {
21
21
  return file.content.src
22
22
  }
23
23
  },
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/atoms",
3
- "version": "2.11.361",
3
+ "version": "2.11.367",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "1c37dd9a8739d97d16741a84af1ad24720877f80",
6
+ "gitHead": "5820c0aeb332604d72a8354869806b7da34000ef",
7
7
  "dependencies": {
8
8
  "@domql/state": "latest",
9
9
  "@domql/utils": "latest",