Skip to content

Commit 22d13ac

Browse files
committed
Declare dependency on validator since we import and fix imports
1 parent 19d429a commit 22d13ac

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
"ts-essentials": "^9.4.1",
108108
"urlpattern-polyfill": "^10.0.0",
109109
"uuid": "^10.0.0",
110+
"validator": "^13.15.0",
110111
"winston": "^3.11.0",
111112
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.0/xlsx-0.20.0.tgz",
112113
"xregexp": "^5.1.1",

src/common/url.field.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { CustomScalar, Field, FieldOptions, Scalar } from '@nestjs/graphql';
33
import { IsUrl } from 'class-validator';
44
import { GraphQLError, Kind, ValueNode } from 'graphql';
55
import { URL } from 'url';
6-
import ValidatorJS from 'validator';
6+
import * as ValidatorJS from 'validator';
77

88
export const UrlField = ({
99
url,

src/common/validators/email.validator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { isEmail, ValidationOptions } from 'class-validator';
2-
import ValidatorJS from 'validator';
2+
import * as ValidatorJS from 'validator';
33
import { ValidateBy } from './validateBy';
44

55
export const IsEmail = (

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4113,7 +4113,7 @@ __metadata:
41134113
languageName: node
41144114
linkType: hard
41154115

4116-
"@types/luxon@npm:^3.2.0, @types/luxon@npm:^3.4.2":
4116+
"@types/luxon@npm:^3.2.0, @types/luxon@npm:^3.6.2":
41174117
version: 3.6.2
41184118
resolution: "@types/luxon@npm:3.6.2"
41194119
checksum: 10c0/7572ee52b3d3e9dd10464b90561a728b90f34b9a257751cc3ce23762693dd1d14fa98b7f103e2efe2c6f49033331f91de5681ffd65cca88618cefe555be326db
@@ -13735,10 +13735,10 @@ __metadata:
1373513735
languageName: node
1373613736
linkType: hard
1373713737

13738-
"validator@npm:^13.7.0":
13739-
version: 13.11.0
13740-
resolution: "validator@npm:13.11.0"
13741-
checksum: 10c0/0107da3add5a4ebc6391dac103c55f6d8ed055bbcc29a4c9cbf89eacfc39ba102a5618c470bdc33c6487d30847771a892134a8c791f06ef0962dd4b7a60ae0f5
13738+
"validator@npm:^13.15.0, validator@npm:^13.7.0":
13739+
version: 13.15.0
13740+
resolution: "validator@npm:13.15.0"
13741+
checksum: 10c0/0f13fd7031ac575e8d7828431da8ef5859bac6a38ee65e1d7fdd367dbf1c3d94d95182aecc3183f7fa7a30ff4474bf864d1aff54707620227a2cdbfd36d894c2
1374213742
languageName: node
1374313743
linkType: hard
1374413744

0 commit comments

Comments
 (0)