Skip to content

Commit

Permalink
Remove gonzales-primitives
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhsianw committed Sep 26, 2023
1 parent 65f7972 commit d361f8e
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 11,372 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

12 changes: 5 additions & 7 deletions lib/core/gonzales.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import gonzales from 'gonzales-pe';
import gonzalesPrimitive from '../../packages/gonzales-primitives';

/**
* A wrapper to prevent failure on parsing error.
*/
export default {
parse: (...args) => {
try {
return gonzales.parse(...args);
} catch (e) {
try {
return gonzalesPrimitive.parse(...args);
} catch (e) {
return null;
}
return null;
}
}
},
};
Loading

0 comments on commit d361f8e

Please # to comment.