BREAKING CHANGE(core): updated to esm
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import * as plugins from './smartguard.plugins';
|
||||
import { Guard } from './smartguard.classes.guard';
|
||||
import { GuardSet } from './smartguard.classes.guardset';
|
||||
export * from './smartguard.classes.guard';
|
||||
import * as plugins from './smartguard.plugins.js';
|
||||
import { Guard } from './smartguard.classes.guard.js';
|
||||
import { GuardSet } from './smartguard.classes.guardset.js';
|
||||
export * from './smartguard.classes.guard.js';
|
||||
|
||||
export const passGuards = async <T>(dataArg: T, guards: Array<Guard<T>>) => {
|
||||
const done = plugins.smartpromise.defer();
|
||||
|
@ -1,4 +1,4 @@
|
||||
import * as plugins from './smartguard.plugins';
|
||||
import * as plugins from './smartguard.plugins.js';
|
||||
|
||||
/**
|
||||
* a block handler is used
|
||||
|
@ -1,4 +1,4 @@
|
||||
import * as plugins from './smartguard.plugins';
|
||||
import * as plugins from './smartguard.plugins.js';
|
||||
|
||||
export type TGuardFunction<T> = (dataArg: T) => Promise<boolean>;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import * as plugins from './smartguard.plugins';
|
||||
import { Guard } from './smartguard.classes.guard';
|
||||
import * as plugins from './smartguard.plugins.js';
|
||||
import { Guard } from './smartguard.classes.guard.js';
|
||||
|
||||
/**
|
||||
* a guardSet is a set of guards that need to be fulfilled
|
||||
|
Reference in New Issue
Block a user