New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@bookshop/eleventy-engine

Package Overview
Dependencies
Maintainers
1
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bookshop/eleventy-engine - npm Package Compare versions

Comparing version

to
2.2.0-editorlinks.0

.nyc_output/2390b394-7fc2-41b8-bf0c-0f3971962442.json

2

.nyc_output/processinfo/index.json

@@ -1,1 +0,1 @@

{"processes":{"1984212f-936b-41b8-abeb-25f76f2ec3b9":{"parent":null,"children":["7ee79370-aa73-4670-8ddc-af5c68f0b3bc","8af6dd4b-1554-4666-afda-95effcf6f5df","b3a44694-0049-4508-b025-afcb371570a6"]},"7ee79370-aa73-4670-8ddc-af5c68f0b3bc":{"parent":"1984212f-936b-41b8-abeb-25f76f2ec3b9","children":[]},"8af6dd4b-1554-4666-afda-95effcf6f5df":{"parent":"1984212f-936b-41b8-abeb-25f76f2ec3b9","children":[]},"b3a44694-0049-4508-b025-afcb371570a6":{"parent":"1984212f-936b-41b8-abeb-25f76f2ec3b9","children":[]}},"files":{},"externalIds":{}}
{"processes":{"2390b394-7fc2-41b8-bf0c-0f3971962442":{"parent":"fe9d3cc4-f2da-4c31-80db-c740e752fe8d","children":[]},"bf4232ce-ad02-4c15-9309-accb8702fde7":{"parent":"fe9d3cc4-f2da-4c31-80db-c740e752fe8d","children":[]},"d9a9b9ea-8cb3-4561-9a64-47eaa1557ccc":{"parent":"fe9d3cc4-f2da-4c31-80db-c740e752fe8d","children":[]},"fe9d3cc4-f2da-4c31-80db-c740e752fe8d":{"parent":null,"children":["2390b394-7fc2-41b8-bf0c-0f3971962442","bf4232ce-ad02-4c15-9309-accb8702fde7","d9a9b9ea-8cb3-4561-9a64-47eaa1557ccc"]}},"files":{},"externalIds":{}}

@@ -33,12 +33,12 @@ import { Liquid, Context } from 'liquidjs';

fs: {
readFileSync (file) {
readFileSync(file) {
return "LiquidJS readFileSync unimplemented"
},
async readFile (file) {
async readFile(file) {
return await eleventyEngine.retrieveInclude(file);
},
existsSync () {
existsSync() {
return true
},
async exists () {
async exists() {
return true

@@ -117,3 +117,3 @@ },

}
const [,value, index] = str.match(/^(.*?)(?:\[(\d+)\])?$/);
const [, value, index] = str.match(/^(.*?)(?:\[(\d+)\])?$/);
let result = await this.liquid.evalValue(value, ctx);

@@ -123,4 +123,4 @@ if (index && typeof result === 'object' && !Array.isArray(result)) {

}
return index ? result[index] : result;
} catch(e) {
return index ? result?.[index] : result;
} catch (e) {
console.error(`Error evaluating ${str}`, e);

@@ -127,0 +127,0 @@ return '';

{
"name": "@bookshop/eleventy-engine",
"packageManager": "yarn@3.0.0",
"version": "2.1.1",
"version": "2.2.0-editorlinks.0",
"description": "Bookshop frontend Eleventy renderer",

@@ -26,3 +26,3 @@ "type": "module",

"dependencies": {
"@bookshop/helpers": "2.1.1",
"@bookshop/helpers": "2.2.0-editorlinks.0",
"esbuild": "^0.13.10",

@@ -29,0 +29,0 @@ "liquidjs": "9.28.0",