@ewizardjs/pages-api
Advanced tools
Comparing version 1.4.0 to 1.5.0
import { Page, Pages, SettingRecordsFragment } from './index'; | ||
export type callback = (page: Page) => Page; | ||
export type callback = (page: Page, basePath: string) => Page; | ||
export interface getPages { | ||
@@ -4,0 +4,0 @@ (pagesJson: Pages, callback?: callback, settings?: SettingRecordsFragment): Pages; |
@@ -43,3 +43,3 @@ import { SiteSubtypes } from '@ewizardjs/content-types'; | ||
page: Page; | ||
callback?: (page: Page) => unknown; | ||
callback?: (page: Page, basePath: string) => unknown; | ||
parentPath?: string; | ||
@@ -46,0 +46,0 @@ parentDirPath?: string; |
@@ -102,3 +102,3 @@ "use strict"; | ||
} | ||
return callback ? callback(page) : page; | ||
return callback ? callback(page, basePath) : page; | ||
} | ||
@@ -105,0 +105,0 @@ exports.normalizePage = normalizePage; |
{ | ||
"name": "@ewizardjs/pages-api", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
315319
36