fix(core): update
This commit is contained in:
8
ts/00_commitinfo_data.ts
Normal file
8
ts/00_commitinfo_data.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* autocreated commitinfo by @pushrocks/commitinfo
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@pushrocks/smartvalidator',
|
||||
version: '1.0.2',
|
||||
description: 'a wrapper for the validator package to perform validations'
|
||||
}
|
11
ts/index.ts
Normal file
11
ts/index.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import * as plugins from './smartvalidator.plugins.js';
|
||||
|
||||
export class SmartValidator {
|
||||
public static validator = plugins.validator;
|
||||
|
||||
constructor() {}
|
||||
|
||||
public isIban(stringArg: string) {
|
||||
return plugins.validator.isIBAN(stringArg);
|
||||
}
|
||||
}
|
7
ts/smartvalidator.plugins.ts
Normal file
7
ts/smartvalidator.plugins.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import validatorMod from 'validator';
|
||||
|
||||
const validator: typeof validatorMod.default = validatorMod as any;
|
||||
|
||||
export {
|
||||
validator
|
||||
}
|
Reference in New Issue
Block a user