Skip to content

Commit 6ea087a

Browse files
bug fix
1 parent 92fbbca commit 6ea087a

File tree

7 files changed

+15
-8
lines changed

7 files changed

+15
-8
lines changed

dist/index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
export * from './validators';
22
export * from './types';
3-
export { FormValidator, formValidator } from './FormValidator';
3+
import { FormValidator } from './FormValidator';
4+
export declare const formValidator: FormValidator;

dist/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
1414
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
1515
};
1616
Object.defineProperty(exports, "__esModule", { value: true });
17-
exports.formValidator = exports.FormValidator = void 0;
17+
exports.formValidator = void 0;
1818
__exportStar(require("./validators"), exports);
1919
__exportStar(require("./types"), exports);
20-
var FormValidator_1 = require("./FormValidator");
21-
Object.defineProperty(exports, "FormValidator", { enumerable: true, get: function () { return FormValidator_1.FormValidator; } });
22-
Object.defineProperty(exports, "formValidator", { enumerable: true, get: function () { return FormValidator_1.formValidator; } });
20+
const FormValidator_1 = require("./FormValidator");
21+
// Create default instance
22+
exports.formValidator = new FormValidator_1.FormValidator();

dist/validators/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ export * from './ipAddressValidator';
99
export * from './validateNumber';
1010
export * from './validateFile';
1111
export * from './validateNumber';
12+
export * from './validateFile';

dist/validators/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ __exportStar(require("./ipAddressValidator"), exports);
2525
__exportStar(require("./validateNumber"), exports);
2626
__exportStar(require("./validateFile"), exports);
2727
__exportStar(require("./validateNumber"), exports);
28+
__exportStar(require("./validateFile"), exports);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "form-validation-lib-js",
3-
"version": "2.0.2",
3+
"version": "2.0.4",
44
"description": "A comprehensive JavaScript form validation library",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
export * from './validators';
22
export * from './types';
3-
export { FormValidator, formValidator } from './FormValidator';
3+
import { FormValidator } from './FormValidator';
4+
5+
// Create default instance
6+
export const formValidator = new FormValidator();

src/validators/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ export * from './usernameValidator';
88
export * from './ipAddressValidator';
99
export * from './validateNumber';
1010
export * from './validateFile';
11-
export * from './validateNumber';
11+
export * from './validateNumber';
12+
export * from './validateFile';

0 commit comments

Comments
 (0)