File tree Expand file tree Collapse file tree 9 files changed +11
-10
lines changed
Expand file tree Collapse file tree 9 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ yarn.lock
88/es
99/lib
1010/index.js
11+ /esm.js
1112validator.js
1213validator.min.js
1314
Original file line number Diff line number Diff line change 55 "sideEffects" : false ,
66 "homepage" : " https://github.com/validatorjs/validator.js" ,
77 "files" : [
8+ " src" ,
89 " index.js" ,
910 " es" ,
1011 " lib" ,
2829 " Anthony Nandaa (https://github.com/profnandaa)"
2930 ],
3031 "main" : " index.js" ,
32+ "module" : " src/esm.js" ,
3133 "bugs" : {
3234 "url" : " https://github.com/validatorjs/validator.js/issues"
3335 },
File renamed without changes.
Original file line number Diff line number Diff line change 1- import * as validator from './index. esm' ;
1+ import * as validator from './esm' ;
22
3- const things = { ...validator } ;
4-
5- export default things ;
3+ export default { ...validator } ;
Original file line number Diff line number Diff line change 11import assert from 'assert' ;
2- import * as validator from '../validator' ;
3- import * as min from '../validator.min' ;
2+ import validator from '../validator' ;
3+ import min from '../validator.min' ;
44
55describe ( 'Minified version' , ( ) => {
66 it ( 'should export the same things as the server-side version' , ( ) => {
Original file line number Diff line number Diff line change 11import assert from 'assert' ;
2- import * as validator from '../index' ;
2+ import validator from '../index' ;
33import { locales as isPostalCodeLocales } from '../src/lib/isPostalCode' ;
44import { locales as isAlphaLocales } from '../src/lib/isAlpha' ;
55import { locales as isAlphanumericLocales } from '../src/lib/isAlphanumeric' ;
Original file line number Diff line number Diff line change 11import { format } from 'util' ;
2- import * as validator from '../src/index' ;
2+ import validator from '../src/index' ;
33
44function test ( options ) {
55 let args = options . args || [ ] ;
Original file line number Diff line number Diff line change 11import assert from 'assert' ;
22import { format } from 'util' ;
3- import * as validator from '../src/index' ;
3+ import validator from '../src/index' ;
44
55function stringifyArgs ( argsArr ) {
66 return argsArr . map ( arg => JSON . stringify ( arg ) ) . join ( ', ' ) ;
Original file line number Diff line number Diff line change 11import { format } from 'util' ;
22import test from '../testFunctions' ;
3- import * as validator from '../../src' ;
3+ import validator from '../../src' ;
44
55describe ( 'isBase64' , ( ) => {
66 it ( 'should validate base64 strings with default options' , ( ) => {
You can’t perform that action at this time.
0 commit comments