Socket
Socket
Sign inDemoInstall

es5-ext

Package Overview
Dependencies
8
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.10.41 to 0.10.42

16

CHANGELOG.md

@@ -5,2 +5,18 @@ # Change Log

<a name="0.10.42"></a>
## [0.10.42](https://github.com/medikoo/es5-ext/compare/v0.10.41...v0.10.42) (2018-03-28)
### Bug Fixes
* Date.isDate to exclude NaN dates ([3b61bc6](https://github.com/medikoo/es5-ext/commit/3b61bc6))
### Features
* improve non-coercible string representation ([20bfb78](https://github.com/medikoo/es5-ext/commit/20bfb78))
* improve non-stringifiable string representation ([2e4512d](https://github.com/medikoo/es5-ext/commit/2e4512d))
<a name="0.10.41"></a>

@@ -7,0 +23,0 @@ ## [0.10.41](https://github.com/medikoo/es5-ext/compare/v0.10.40...v0.10.41) (2018-03-16)

5

date/is-date.js

@@ -6,3 +6,6 @@ "use strict";

module.exports = function (value) {
return (value && (value instanceof Date || objToString.call(value) === id)) || false;
return (
(value && !isNaN(value) && (value instanceof Date || objToString.call(value) === id)) ||
false
);
};

2

date/valid-date.js

@@ -6,4 +6,4 @@ "use strict";

module.exports = function (value) {
if (!isDate(value) || isNaN(value)) throw new TypeError(value + " is not valid Date object");
if (!isDate(value)) throw new TypeError(value + " is not valid Date object");
return value;
};
{
"name": "es5-ext",
"version": "0.10.41",
"version": "0.10.42",
"description": "ECMAScript extensions and shims",

@@ -35,3 +35,3 @@ "author": "Mariusz Nowak <medyk@medikoo.com> (http://www.medikoo.com/)",

"eslint": "^4.15",
"eslint-config-medikoo-es5": "^1.4.7",
"eslint-config-medikoo-es5": "^1.4.8",
"tad": "~0.2.7"

@@ -38,0 +38,0 @@ },

@@ -10,4 +10,4 @@ "use strict";

} catch (e) {
return "<non-stringifiable value>";
return "[Non-coercible (to string) value]";
}
};

@@ -18,3 +18,3 @@ "use strict";

if (typeof Symbol === "function") a(t(Symbol()), "Symbol()");
a(t(Object.create(null)), "<non-stringifiable value>");
a(t(Object.create(null)), "[Non-coercible (to string) value]");
};
"use strict";
module.exports = function (t, a) {
t = t({ a: "A",
aa: "B",
ab: "C",
b: "D",
t = t({
a: "A",
aa: "B",
ab: "C",
b: "D",
c: function () {
return ++this.a;
} });
return ++this.a;
}
});
a(t.call({ a: 0 }, " %a%aab%abb%b\\%aa%ab%c%c "), " ABbCbD%aaC12 ");
};

@@ -20,5 +20,5 @@ "use strict";

if (typeof Symbol === "function") a(t(Symbol()), "Symbol()");
a(t(Object.create(null)), "<non-stringifiable value>");
a(t(Object.create(null)), "[Non-coercible (to string) value]");
a(t(repeat.call("a", 300)), repeat.call("a", 99) + "…");
a(t("mar\ntoo\nfar"), "mar\\ntoo\\nfar");
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc