From cf8bb34a76aa0599d01117b0c5a0ec92fc179a38 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 24 Apr 2018 10:35:43 -0700 Subject: [PATCH] Bump to v4.17.9. --- README.md | 4 ++-- _nodeUtil.js | 8 ++++++++ main.js | 10 +++++++++- package.json | 2 +- 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 39f751750..62af92c5d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# lodash-amd v4.17.5 +# lodash-amd v4.17.9 The [Lodash](https://lodash.com/) library exported as [AMD](https://github.com/amdjs/amdjs-api/wiki/AMD) modules. @@ -27,4 +27,4 @@ require({ }); ``` -See the [package source](https://github.com/lodash/lodash/tree/4.17.5-amd) for more details. +See the [package source](https://github.com/lodash/lodash/tree/4.17.9-amd) for more details. diff --git a/_nodeUtil.js b/_nodeUtil.js index e8e7e9ab3..e7515a3c9 100644 --- a/_nodeUtil.js +++ b/_nodeUtil.js @@ -15,6 +15,14 @@ define(['./_freeGlobal'], function(freeGlobal) { /** Used to access faster Node.js helpers. */ var nodeUtil = (function() { try { + // Use `util.types` for Node.js 10+. + var types = freeModule && freeModule.require && freeModule.require('util').types; + + if (types) { + return types; + } + + // Legacy `process.binding('util')` for Node.js < 10. return freeProcess && freeProcess.binding && freeProcess.binding('util'); } catch (e) {} }()); diff --git a/main.js b/main.js index 265ee82da..48923f58f 100644 --- a/main.js +++ b/main.js @@ -13,7 +13,7 @@ var undefined; /** Used as the semantic version number. */ - var VERSION = '4.17.5'; + var VERSION = '4.17.9'; /** Used as the size to enable large array optimizations. */ var LARGE_ARRAY_SIZE = 200; @@ -437,6 +437,14 @@ /** Used to access faster Node.js helpers. */ var nodeUtil = (function() { try { + // Use `util.types` for Node.js 10+. + var types = freeModule && freeModule.require && freeModule.require('util').types; + + if (types) { + return types; + } + + // Legacy `process.binding('util')` for Node.js < 10. return freeProcess && freeProcess.binding && freeProcess.binding('util'); } catch (e) {} }()); diff --git a/package.json b/package.json index 4be51d0ef..6cf74c721 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lodash-amd", - "version": "4.17.5", + "version": "4.17.9", "description": "Lodash exported as AMD modules.", "keywords": "amd, modules, stdlib, util", "homepage": "https://lodash.com/custom-builds",