Compare commits

...

2 Commits

Author SHA1 Message Date
Sven Slootweg e5b7638bfc 2.0.1 5 months ago
Sven Slootweg 9f1b410416 Fix typo 5 months ago

@ -44,6 +44,10 @@ Possible error codes:
## Changelog
### 2.0.1 (July 14, 2024)
Fixed internal typo.
### 2.0.0 (July 14, 2024)
__BREAKING:__ Replace internal string checking implementation with a faster one; the new implementation will not recognize String objects from another realm (but will still work fine with regular, non-object strings).

@ -14,5 +14,5 @@ module.exports = function isString(value) {
if (typeof value !== 'object') {
return false;
}
return hasToStringTag ? string instanceof String : toStr.call(value) === strClass;
return hasToStringTag ? value instanceof String : toStr.call(value) === strClass;
};

@ -5,7 +5,7 @@
"validatem",
"validator"
],
"version": "2.0.0",
"version": "2.0.1",
"main": "index.js",
"repository": "http://git.cryto.net/validatem/is-string.git",
"author": "Sven Slootweg <admin@cryto.net>",

Loading…
Cancel
Save