demo___customer_pitch-c4152739-a50b-4b5b-9d4d-0561461666d9.zip-extract/_dependencies/npm/lodash-4.17.20/_insertWrapDetails.js

Path
demo___customer_pitch-c4152739-a50b-4b5b-9d4d-0561461666d9.zip-extract/_dependencies/npm/lodash-4.17.20/_insertWrapDetails.js
Status
scanned
Type
file
Name
_insertWrapDetails.js
Extension
.js
Programming language
JavaScript
Mime type
text/plain
File type
ASCII text
Tag

      
    
Rootfs path

      
    
Size
748 (748 bytes)
MD5
698e6fdda209334223dd981ff8f2108a
SHA1
07c0c750900d12cf01ff9d99e429c6be76790f4b
SHA256
35f6152473a61cf36f99d584e8d83647e37f286edd29ee21e939ed0a4366c64b
SHA512

      
    
SHA1_git
e790808646d12892f54f890c6e17326945ae474d
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
_insertWrapDetails.js | 748 bytes |

/** Used to match wrap detail comments. */ var reWrapComment = /\{(?: \/\* \[wrapped with .+\] \*\/)? ?/; /** * Inserts wrapper `details` in a comment at the top of the `source` body. * * @private * @param {string} source The source to modify. * @returns {Array} details The details to insert. * @returns {string} Returns the modified source. */ function insertWrapDetails(source, details) { var length = details.length; if (!length) { return source; } var lastIndex = length - 1; details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex]; details = details.join(length > 2 ? ', ' : ' '); return source.replace(reWrapComment, '{ /* [wrapped with ' + details + '] */ '); } module.exports = insertWrapDetails;
Package URL License Primary language
pkg:npm/acme-demo-app@1.0.0 JavaScript
pkg:npm/lodash@4.17.20 mit JavaScript