BREAKING CHANGE(core): updated to esm

This commit is contained in:
2022-03-21 21:53:46 +01:00
parent 2e42011eda
commit 3b50e9c8cc
15 changed files with 17789 additions and 1659 deletions

View File

@ -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();

View File

@ -1,4 +1,4 @@
import * as plugins from './smartguard.plugins';
import * as plugins from './smartguard.plugins.js';
/**
* a block handler is used

View File

@ -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>;

View File

@ -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