(template)
| 884 | let nonPortableTemplateWarn = true; |
| 885 | |
| 886 | function warnOnNonPortableTemplate(template) { |
| 887 | // Template strings passed to the mkdtemp() family of functions should not |
| 888 | // end with 'X' because they are handled inconsistently across platforms. |
| 889 | if (nonPortableTemplateWarn && |
| 890 | ((typeof template === 'string' && StringPrototypeEndsWith(template, 'X')) || |
| 891 | (typeof template !== 'string' && TypedArrayPrototypeAt(template, -1) === 0x58))) { |
| 892 | process.emitWarning('mkdtemp() templates ending with X are not portable. ' + |
| 893 | 'For details see: https://nodejs.org/api/fs.html'); |
| 894 | nonPortableTemplateWarn = false; |
| 895 | } |
| 896 | } |
| 897 | |
| 898 | const defaultCpOptions = { |
| 899 | dereference: false, |
no outgoing calls
no test coverage detected
searching dependent graphs…