@shopify/theme-check-common
Advanced tools
Comparing version 1.14.0 to 1.14.1
# @shopify/theme-check-common | ||
## 1.14.1 | ||
### Patch Changes | ||
- b7514f4: Fixup UndefinedObject for sections | ||
## 1.14.0 | ||
@@ -4,0 +10,0 @@ |
@@ -87,4 +87,4 @@ "use strict"; | ||
const objects = await themeDocset.objects(); | ||
const globalObjects = objects.filter(({ access }) => { | ||
return !access || access.global === true || access.template.length > 0; | ||
const globalObjects = objects.filter(({ access, name }) => { | ||
return name === 'section' || !access || access.global === true || access.template.length > 0; | ||
}); | ||
@@ -91,0 +91,0 @@ return globalObjects; |
{ | ||
"name": "@shopify/theme-check-common", | ||
"version": "1.14.0", | ||
"version": "1.14.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/Shopify/theme-tools/blob/main/packages/theme-check-common/README.md", |
@@ -109,4 +109,4 @@ import { | ||
const globalObjects = objects.filter(({ access }) => { | ||
return !access || access.global === true || access.template.length > 0; | ||
const globalObjects = objects.filter(({ access, name }) => { | ||
return name === 'section' || !access || access.global === true || access.template.length > 0; | ||
}); | ||
@@ -113,0 +113,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1088603