Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
542ad4ab9c | ||
|
|
9bf8599116 |
Vendored
+2
-2
@@ -67,8 +67,8 @@ import { buildSeoPlugin, injectAutoFillMeta, injectSeoTabs } from './modules/seo
|
||||
// optional peer dependency at build time (it isn't in the plugin's own
|
||||
// node_modules). Avoids TS2307 without @ts-expect-error; the module
|
||||
// exists at runtime in projects that installed it.
|
||||
const pkg = '@clocklimited/payload-2fa';
|
||||
const mod = await import(pkg);
|
||||
// @ts-ignore
|
||||
const mod = await import('@clocklimited/payload-2fa');
|
||||
// The package exports `payloadTotp`; older/other builds may use
|
||||
// `totpPlugin`. Accept either so a rename doesn't break us.
|
||||
const totp = mod.payloadTotp ?? mod.totpPlugin;
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@intecion/ipal-kit",
|
||||
"version": "1.5.3",
|
||||
"version": "1.5.4",
|
||||
"description": "Intecion Payload Advanced Library — a Payload CMS 3 plugin: i18n, SEO, forms, consent, analytics, blog/archives.",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
|
||||
+2
-2
@@ -76,8 +76,8 @@ export const ipalKit = (options: IpalOptions): Plugin => {
|
||||
// optional peer dependency at build time (it isn't in the plugin's own
|
||||
// node_modules). Avoids TS2307 without @ts-expect-error; the module
|
||||
// exists at runtime in projects that installed it.
|
||||
const pkg = '@clocklimited/payload-2fa'
|
||||
const mod = (await import(pkg)) as {
|
||||
// @ts-ignore
|
||||
const mod = (await import('@clocklimited/payload-2fa')) as {
|
||||
payloadTotp?: (opts: Record<string, unknown>) => Plugin
|
||||
totpPlugin?: (opts: Record<string, unknown>) => Plugin
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user