@vynelix/nestjs-multi-auth 0.1.10 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/auth/dto/requests/signup.dto.js +1 -1
- package/dist/auth/dto/requests/signup.dto.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/scratch.ts +3 -0
- package/tmp-cv-test/package-lock.json +250 -0
- package/tmp-cv-test/package.json +17 -0
- package/tmp-cv-test/test.ts +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vynelix/nestjs-multi-auth",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "An authentication service/module for NestJs that supports multiple authentication methods such as email, phone, username, OAuth, SSO, etc",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
package/scratch.ts
ADDED
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tmp-cv-test",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"lockfileVersion": 3,
|
|
5
|
+
"requires": true,
|
|
6
|
+
"packages": {
|
|
7
|
+
"": {
|
|
8
|
+
"name": "tmp-cv-test",
|
|
9
|
+
"version": "1.0.0",
|
|
10
|
+
"license": "ISC",
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"class-validator": "^0.15.1",
|
|
13
|
+
"ts-node": "^10.9.2",
|
|
14
|
+
"typescript": "^6.0.3"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"node_modules/@cspotcode/source-map-support": {
|
|
18
|
+
"version": "0.8.1",
|
|
19
|
+
"resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz",
|
|
20
|
+
"integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==",
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@jridgewell/trace-mapping": "0.3.9"
|
|
24
|
+
},
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=12"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"node_modules/@jridgewell/resolve-uri": {
|
|
30
|
+
"version": "3.1.2",
|
|
31
|
+
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
|
|
32
|
+
"integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"engines": {
|
|
35
|
+
"node": ">=6.0.0"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"node_modules/@jridgewell/sourcemap-codec": {
|
|
39
|
+
"version": "1.5.5",
|
|
40
|
+
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
|
|
41
|
+
"integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
|
|
42
|
+
"license": "MIT"
|
|
43
|
+
},
|
|
44
|
+
"node_modules/@jridgewell/trace-mapping": {
|
|
45
|
+
"version": "0.3.9",
|
|
46
|
+
"resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz",
|
|
47
|
+
"integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==",
|
|
48
|
+
"license": "MIT",
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@jridgewell/resolve-uri": "^3.0.3",
|
|
51
|
+
"@jridgewell/sourcemap-codec": "^1.4.10"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"node_modules/@tsconfig/node10": {
|
|
55
|
+
"version": "1.0.12",
|
|
56
|
+
"resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.12.tgz",
|
|
57
|
+
"integrity": "sha512-UCYBaeFvM11aU2y3YPZ//O5Rhj+xKyzy7mvcIoAjASbigy8mHMryP5cK7dgjlz2hWxh1g5pLw084E0a/wlUSFQ==",
|
|
58
|
+
"license": "MIT"
|
|
59
|
+
},
|
|
60
|
+
"node_modules/@tsconfig/node12": {
|
|
61
|
+
"version": "1.0.11",
|
|
62
|
+
"resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz",
|
|
63
|
+
"integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==",
|
|
64
|
+
"license": "MIT"
|
|
65
|
+
},
|
|
66
|
+
"node_modules/@tsconfig/node14": {
|
|
67
|
+
"version": "1.0.3",
|
|
68
|
+
"resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz",
|
|
69
|
+
"integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==",
|
|
70
|
+
"license": "MIT"
|
|
71
|
+
},
|
|
72
|
+
"node_modules/@tsconfig/node16": {
|
|
73
|
+
"version": "1.0.4",
|
|
74
|
+
"resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz",
|
|
75
|
+
"integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==",
|
|
76
|
+
"license": "MIT"
|
|
77
|
+
},
|
|
78
|
+
"node_modules/@types/node": {
|
|
79
|
+
"version": "25.9.1",
|
|
80
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-25.9.1.tgz",
|
|
81
|
+
"integrity": "sha512-xfrlY7UD5rMJk3ZVJP8BNzS28J36YJg+xp+LPXV1TdWxr8uMH5A860QNxYDGQe/ylDSgjxE52Q9VnO7p75tJxg==",
|
|
82
|
+
"license": "MIT",
|
|
83
|
+
"peer": true,
|
|
84
|
+
"dependencies": {
|
|
85
|
+
"undici-types": ">=7.24.0 <7.24.7"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"node_modules/@types/validator": {
|
|
89
|
+
"version": "13.15.10",
|
|
90
|
+
"resolved": "https://registry.npmjs.org/@types/validator/-/validator-13.15.10.tgz",
|
|
91
|
+
"integrity": "sha512-T8L6i7wCuyoK8A/ZeLYt1+q0ty3Zb9+qbSSvrIVitzT3YjZqkTZ40IbRsPanlB4h1QB3JVL1SYCdR6ngtFYcuA==",
|
|
92
|
+
"license": "MIT"
|
|
93
|
+
},
|
|
94
|
+
"node_modules/acorn": {
|
|
95
|
+
"version": "8.16.0",
|
|
96
|
+
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz",
|
|
97
|
+
"integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==",
|
|
98
|
+
"license": "MIT",
|
|
99
|
+
"bin": {
|
|
100
|
+
"acorn": "bin/acorn"
|
|
101
|
+
},
|
|
102
|
+
"engines": {
|
|
103
|
+
"node": ">=0.4.0"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"node_modules/acorn-walk": {
|
|
107
|
+
"version": "8.3.5",
|
|
108
|
+
"resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.5.tgz",
|
|
109
|
+
"integrity": "sha512-HEHNfbars9v4pgpW6SO1KSPkfoS0xVOM/9UzkJltjlsHZmJasxg8aXkuZa7SMf8vKGIBhpUsPluQSqhJFCqebw==",
|
|
110
|
+
"license": "MIT",
|
|
111
|
+
"dependencies": {
|
|
112
|
+
"acorn": "^8.11.0"
|
|
113
|
+
},
|
|
114
|
+
"engines": {
|
|
115
|
+
"node": ">=0.4.0"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"node_modules/arg": {
|
|
119
|
+
"version": "4.1.3",
|
|
120
|
+
"resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz",
|
|
121
|
+
"integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==",
|
|
122
|
+
"license": "MIT"
|
|
123
|
+
},
|
|
124
|
+
"node_modules/class-validator": {
|
|
125
|
+
"version": "0.15.1",
|
|
126
|
+
"resolved": "https://registry.npmjs.org/class-validator/-/class-validator-0.15.1.tgz",
|
|
127
|
+
"integrity": "sha512-LqoS80HBBSCVhz/3KloUly0ovokxpdOLR++Al3J3+dHXWt9sTKlKd4eYtoxhxyUjoe5+UcIM+5k9MIxyBWnRTw==",
|
|
128
|
+
"license": "MIT",
|
|
129
|
+
"dependencies": {
|
|
130
|
+
"@types/validator": "^13.15.3",
|
|
131
|
+
"libphonenumber-js": "^1.11.1",
|
|
132
|
+
"validator": "^13.15.22"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"node_modules/create-require": {
|
|
136
|
+
"version": "1.1.1",
|
|
137
|
+
"resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz",
|
|
138
|
+
"integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==",
|
|
139
|
+
"license": "MIT"
|
|
140
|
+
},
|
|
141
|
+
"node_modules/diff": {
|
|
142
|
+
"version": "4.0.4",
|
|
143
|
+
"resolved": "https://registry.npmjs.org/diff/-/diff-4.0.4.tgz",
|
|
144
|
+
"integrity": "sha512-X07nttJQkwkfKfvTPG/KSnE2OMdcUCao6+eXF3wmnIQRn2aPAHH3VxDbDOdegkd6JbPsXqShpvEOHfAT+nCNwQ==",
|
|
145
|
+
"license": "BSD-3-Clause",
|
|
146
|
+
"engines": {
|
|
147
|
+
"node": ">=0.3.1"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"node_modules/libphonenumber-js": {
|
|
151
|
+
"version": "1.13.4",
|
|
152
|
+
"resolved": "https://registry.npmjs.org/libphonenumber-js/-/libphonenumber-js-1.13.4.tgz",
|
|
153
|
+
"integrity": "sha512-/lhWr7vq8foWN9Apksnd9v8/cfwzW6g6qKOCo25XBGkNaVCHucXO57hLy4CWHGvytvLz6Nt3J5Gs8p3jlCGFXA==",
|
|
154
|
+
"license": "MIT"
|
|
155
|
+
},
|
|
156
|
+
"node_modules/make-error": {
|
|
157
|
+
"version": "1.3.6",
|
|
158
|
+
"resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",
|
|
159
|
+
"integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==",
|
|
160
|
+
"license": "ISC"
|
|
161
|
+
},
|
|
162
|
+
"node_modules/ts-node": {
|
|
163
|
+
"version": "10.9.2",
|
|
164
|
+
"resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz",
|
|
165
|
+
"integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==",
|
|
166
|
+
"license": "MIT",
|
|
167
|
+
"dependencies": {
|
|
168
|
+
"@cspotcode/source-map-support": "^0.8.0",
|
|
169
|
+
"@tsconfig/node10": "^1.0.7",
|
|
170
|
+
"@tsconfig/node12": "^1.0.7",
|
|
171
|
+
"@tsconfig/node14": "^1.0.0",
|
|
172
|
+
"@tsconfig/node16": "^1.0.2",
|
|
173
|
+
"acorn": "^8.4.1",
|
|
174
|
+
"acorn-walk": "^8.1.1",
|
|
175
|
+
"arg": "^4.1.0",
|
|
176
|
+
"create-require": "^1.1.0",
|
|
177
|
+
"diff": "^4.0.1",
|
|
178
|
+
"make-error": "^1.1.1",
|
|
179
|
+
"v8-compile-cache-lib": "^3.0.1",
|
|
180
|
+
"yn": "3.1.1"
|
|
181
|
+
},
|
|
182
|
+
"bin": {
|
|
183
|
+
"ts-node": "dist/bin.js",
|
|
184
|
+
"ts-node-cwd": "dist/bin-cwd.js",
|
|
185
|
+
"ts-node-esm": "dist/bin-esm.js",
|
|
186
|
+
"ts-node-script": "dist/bin-script.js",
|
|
187
|
+
"ts-node-transpile-only": "dist/bin-transpile.js",
|
|
188
|
+
"ts-script": "dist/bin-script-deprecated.js"
|
|
189
|
+
},
|
|
190
|
+
"peerDependencies": {
|
|
191
|
+
"@swc/core": ">=1.2.50",
|
|
192
|
+
"@swc/wasm": ">=1.2.50",
|
|
193
|
+
"@types/node": "*",
|
|
194
|
+
"typescript": ">=2.7"
|
|
195
|
+
},
|
|
196
|
+
"peerDependenciesMeta": {
|
|
197
|
+
"@swc/core": {
|
|
198
|
+
"optional": true
|
|
199
|
+
},
|
|
200
|
+
"@swc/wasm": {
|
|
201
|
+
"optional": true
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"node_modules/typescript": {
|
|
206
|
+
"version": "6.0.3",
|
|
207
|
+
"resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz",
|
|
208
|
+
"integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==",
|
|
209
|
+
"license": "Apache-2.0",
|
|
210
|
+
"bin": {
|
|
211
|
+
"tsc": "bin/tsc",
|
|
212
|
+
"tsserver": "bin/tsserver"
|
|
213
|
+
},
|
|
214
|
+
"engines": {
|
|
215
|
+
"node": ">=14.17"
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"node_modules/undici-types": {
|
|
219
|
+
"version": "7.24.6",
|
|
220
|
+
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.24.6.tgz",
|
|
221
|
+
"integrity": "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==",
|
|
222
|
+
"license": "MIT",
|
|
223
|
+
"peer": true
|
|
224
|
+
},
|
|
225
|
+
"node_modules/v8-compile-cache-lib": {
|
|
226
|
+
"version": "3.0.1",
|
|
227
|
+
"resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz",
|
|
228
|
+
"integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==",
|
|
229
|
+
"license": "MIT"
|
|
230
|
+
},
|
|
231
|
+
"node_modules/validator": {
|
|
232
|
+
"version": "13.15.35",
|
|
233
|
+
"resolved": "https://registry.npmjs.org/validator/-/validator-13.15.35.tgz",
|
|
234
|
+
"integrity": "sha512-TQ5pAGhd5whStmqWvYF4OjQROlmv9SMFVt37qoCBdqRffuuklWYQlCNnEs2ZaIBD1kZRNnikiZOS1eqgkar0iw==",
|
|
235
|
+
"license": "MIT",
|
|
236
|
+
"engines": {
|
|
237
|
+
"node": ">= 0.10"
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"node_modules/yn": {
|
|
241
|
+
"version": "3.1.1",
|
|
242
|
+
"resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz",
|
|
243
|
+
"integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==",
|
|
244
|
+
"license": "MIT",
|
|
245
|
+
"engines": {
|
|
246
|
+
"node": ">=6"
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tmp-cv-test",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"main": "index.js",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
7
|
+
},
|
|
8
|
+
"keywords": [],
|
|
9
|
+
"author": "",
|
|
10
|
+
"license": "ISC",
|
|
11
|
+
"description": "",
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"class-validator": "^0.15.1",
|
|
14
|
+
"ts-node": "^10.9.2",
|
|
15
|
+
"typescript": "^6.0.3"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { validateSync, IsPhoneNumber } from 'class-validator';
|
|
2
|
+
|
|
3
|
+
class Test {
|
|
4
|
+
@IsPhoneNumber()
|
|
5
|
+
phone?: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
const t1 = new Test();
|
|
9
|
+
t1.phone = '+447455731149';
|
|
10
|
+
const errors1 = validateSync(t1);
|
|
11
|
+
console.log('Errors without libphonenumber-js:', errors1.map(e => e.constraints));
|