Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2642 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 114 114
Lines 2572 2572
Branches 651 651
=========================================
Hits 2572 2572 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
We should add tests for this as well, right? So we don't,t accidentally break this behaviour |
|
The
exports.default = isIBAN;
exports.locales = void 0;A default import then binds to Same shape in 13.15.35: import isIBAN from 'validator/lib/isIBAN.js';
typeof isIBAN; // 'object'
Object.keys(isIBAN); // ['default', 'locales']
isIBAN('DE89370400440532013000'); // TypeErrorimport isEmail from 'validator/lib/isEmail.js';
typeof isEmail; // 'function'
import validator from 'validator';
validator.isIBAN(value);Please do not document |
Updated the documentation to clarify that native Node.js ESM users should use the
/libpath with a.jsextension. The/esdirectory contains source code without file extensions in its internal imports, which causesERR_MODULE_NOT_FOUNDin native Node.js environments (as they don't perform automatic extension resolution).