(opts)
| 26281 | return this.toString() |
| 26282 | } |
| 26283 | toString (opts) { |
| 26284 | opts = opts || {} |
| 26285 | let sep = opts.sep || ' ' |
| 26286 | if (opts.strict) { |
| 26287 | // Entries must be separated by whitespace, according to spec. |
| 26288 | sep = sep.replace(/\S+/g, ' ') |
| 26289 | } |
| 26290 | return Object.keys(this).map(k => { |
| 26291 | return this[k].map(hash => { |
| 26292 | return Hash.prototype.toString.call(hash, opts) |
| 26293 | }).filter(x => x.length).join(sep) |
| 26294 | }).filter(x => x.length).join(sep) |
| 26295 | } |
| 26296 | concat (integrity, opts) { |
| 26297 | const other = typeof integrity === 'string' |
| 26298 | ? integrity |
no test coverage detected