Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

neogarden

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

neogarden - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

2

package.json
{
"name": "neogarden",
"version": "0.0.11",
"version": "0.0.12",
"type": "module",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -13,3 +13,7 @@ import { getClient } from "./getClient";

export async function loadPage({ request, params, fetchLinks = '' }) {
async function emptyAsync() {
return null;
}
export async function loadPage({ request, params, fetchLinks = "", loaders }) {
const client = getClient();

@@ -36,3 +40,12 @@ const config = getConfig();

}
return getPage(route, client, parsed, options);
const page = await getPage(route, client, parsed, options);
const additionalData = await Promise.all(
page.data.body.map((slice) =>
(loaders[slice.slice_type] || emptyAsync)(slice)
)
);
for (let i = 0; i < page.data.body.length; i += 1) {
page.data.body[i].loaderData = additionalData[i];
}
return page;
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc