From e329a461d46de5fc6515ed444ec4193c70151385 Mon Sep 17 00:00:00 2001 From: ExE Boss <3889017+ExE-Boss@users.noreply.github.com> Date: Tue, 25 Feb 2020 14:15:00 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20Use=C2=A0`hasOwnProperty.call`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tslib.es6.js | 6 +++--- tslib.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tslib.es6.js b/tslib.es6.js index 4d84182..089d17b 100644 --- a/tslib.es6.js +++ b/tslib.es6.js @@ -17,7 +17,7 @@ and limitations under the License. var extendStatics = function(d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; @@ -104,7 +104,7 @@ export function __generator(thisArg, body) { } export function __exportStar(m, exports) { - for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; + for (var p in m) if (!Object.prototype.hasOwnProperty.call(exports, p)) exports[p] = m[p]; } export function __values(o) { @@ -188,7 +188,7 @@ export function __makeTemplateObject(cooked, raw) { export function __importStar(mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; + if (mod != null) for (var k in mod) if (Object.prototype.hasOwnProperty.call(mod, k)) result[k] = mod[k]; result.default = mod; return result; } diff --git a/tslib.js b/tslib.js index 459b59e..6bd660c 100644 --- a/tslib.js +++ b/tslib.js @@ -61,7 +61,7 @@ var __classPrivateFieldSet; (function (exporter) { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; __extends = function (d, b) { extendStatics(d, b); @@ -143,7 +143,7 @@ var __classPrivateFieldSet; }; __exportStar = function (m, exports) { - for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; + for (var p in m) if (!Object.prototype.hasOwnProperty.call(exports, p)) exports[p] = m[p]; }; __values = function (o) { @@ -227,7 +227,7 @@ var __classPrivateFieldSet; __importStar = function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; + if (mod != null) for (var k in mod) if (Object.prototype.hasOwnProperty.call(mod, k)) result[k] = mod[k]; result["default"] = mod; return result; };