|
184 | 184 |
|
185 | 185 | 'use strict'; |
186 | 186 |
|
187 | | - var util = {inspect: {}}; |
188 | | - |
189 | 187 | /* istanbul ignore else */ |
190 | 188 | if (typeof module === 'object' && typeof module.exports === 'object') { |
191 | | - module.exports = f (require ('util'), |
192 | | - require ('sanctuary-either'), |
| 189 | + module.exports = f (require ('sanctuary-either'), |
193 | 190 | require ('sanctuary-show'), |
194 | 191 | require ('sanctuary-type-classes'), |
195 | 192 | require ('sanctuary-type-identifiers')); |
|
198 | 195 | 'sanctuary-show', |
199 | 196 | 'sanctuary-type-classes', |
200 | 197 | 'sanctuary-type-identifiers'], |
201 | | - function(Either, show, Z, type) { |
202 | | - return f (util, Either, show, Z, type); |
203 | | - }); |
| 198 | + f); |
204 | 199 | } else { |
205 | | - self.sanctuaryDef = f (util, |
206 | | - self.sanctuaryEither, |
| 200 | + self.sanctuaryDef = f (self.sanctuaryEither, |
207 | 201 | self.sanctuaryShow, |
208 | 202 | self.sanctuaryTypeClasses, |
209 | 203 | self.sanctuaryTypeIdentifiers); |
210 | 204 | } |
211 | 205 |
|
212 | | -} (function(util, Either, show, Z, type) { |
| 206 | +} (function(Either, show, Z, type) { |
213 | 207 |
|
214 | 208 | 'use strict'; |
215 | 209 |
|
|
220 | 214 | var hasOwnProperty = Object.prototype.hasOwnProperty; |
221 | 215 | var toString = Object.prototype.toString; |
222 | 216 |
|
223 | | - var inspect = typeof util.inspect.custom === 'symbol' ? |
224 | | - util.inspect.custom : |
225 | | - /* istanbul ignore next */ 'inspect'; |
226 | | - |
227 | 217 | // Left :: a -> Either a b |
228 | 218 | var Left = Either.Left; |
229 | 219 |
|
|
2780 | 2770 | } : |
2781 | 2771 | wrapNext ({}, [], 0); |
2782 | 2772 |
|
2783 | | - wrapped[inspect] = wrapped.toString = always0 (typeSignature (typeInfo)); |
| 2773 | + wrapped.toString = always0 (typeSignature (typeInfo)); |
| 2774 | + /* istanbul ignore else */ |
| 2775 | + if ( |
| 2776 | + typeof process !== 'undefined' && |
| 2777 | + process != null && |
| 2778 | + process.versions != null && |
| 2779 | + process.versions.node != null |
| 2780 | + ) wrapped[Symbol.for ('nodejs.util.inspect.custom')] = wrapped.toString; |
2784 | 2781 | /* istanbul ignore if */ |
2785 | 2782 | if (typeof Deno !== 'undefined') { |
2786 | 2783 | if (Deno != null && typeof Deno.customInspect === 'symbol') { |
|
0 commit comments