@bookshop/eleventy-engine
Advanced tools
Comparing version 3.5.1 to 3.6.0-beta.0
@@ -1,1 +0,1 @@ | ||
{"processes":{"732fe941-a2cf-4886-aa09-b293bc40a216":{"parent":"74808109-18b7-41af-8070-be561bbe798e","children":[]},"74808109-18b7-41af-8070-be561bbe798e":{"parent":null,"children":["732fe941-a2cf-4886-aa09-b293bc40a216","df7f74a9-75cd-4bb0-bd0f-aec16dd333e9","fde9edc0-aa98-4134-a61d-d1ed6eabf55a"]},"df7f74a9-75cd-4bb0-bd0f-aec16dd333e9":{"parent":"74808109-18b7-41af-8070-be561bbe798e","children":[]},"fde9edc0-aa98-4134-a61d-d1ed6eabf55a":{"parent":"74808109-18b7-41af-8070-be561bbe798e","children":[]}},"files":{},"externalIds":{}} | ||
{"processes":{"0bc7a77e-b780-4430-96eb-6dd13193b4a1":{"parent":"2e556efb-4c88-4bf9-b8eb-72ef78c05246","children":[]},"2e556efb-4c88-4bf9-b8eb-72ef78c05246":{"parent":null,"children":["0bc7a77e-b780-4430-96eb-6dd13193b4a1","6bd04717-5adf-4258-ab3a-eb73553bb52e","d5cf7bdd-6b22-48c4-b622-12882df65c4b"]},"6bd04717-5adf-4258-ab3a-eb73553bb52e":{"parent":"2e556efb-4c88-4bf9-b8eb-72ef78c05246","children":[]},"d5cf7bdd-6b22-48c4-b622-12882df65c4b":{"parent":"2e556efb-4c88-4bf9-b8eb-72ef78c05246","children":[]}},"files":{},"externalIds":{}} |
@@ -109,5 +109,10 @@ import { Liquid, Context } from 'liquidjs'; | ||
getFlatComponentKey(name) { | ||
return `components/${name}.eleventy.liquid`; | ||
} | ||
getComponent(name) { | ||
const key = this.getComponentKey(name); | ||
return this.files?.[key]; | ||
const flatKey = this.getFlatComponentKey(name); | ||
return this.files?.[key] ?? this.files?.[flatKey]; | ||
} | ||
@@ -117,3 +122,4 @@ | ||
const key = this.getComponentKey(name); | ||
return !!this.files?.[key]; | ||
const flatKey = this.getFlatComponentKey(name); | ||
return !!(this.files?.[key] ?? this.files?.[flatKey]); | ||
} | ||
@@ -120,0 +126,0 @@ |
{ | ||
"name": "@bookshop/eleventy-engine", | ||
"packageManager": "yarn@3.0.0", | ||
"version": "3.5.1", | ||
"version": "3.6.0-beta.0", | ||
"description": "Bookshop frontend Eleventy renderer", | ||
@@ -30,3 +30,3 @@ "type": "module", | ||
"dependencies": { | ||
"@bookshop/helpers": "3.5.1", | ||
"@bookshop/helpers": "3.6.0-beta.0", | ||
"esbuild": "^0.13.10", | ||
@@ -33,0 +33,0 @@ "liquidjs": "9.28.0", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
26972
562
2
+ Added@bookshop/helpers@3.6.0-beta.0(transitive)
- Removed@bookshop/helpers@3.5.1(transitive)