Comparing version 0.5.0 to 0.5.1
@@ -82,10 +82,4 @@ const { ParserNode, Parser } = require('./parser') | ||
if (input && input.pipe) { | ||
const stream = Parser.createWriteStream() | ||
const { parser } = input.pipe(stream) | ||
return new this(parser, opts) | ||
} | ||
// default parser | ||
return new this(new Parser(), opts) | ||
return new this(Parser.from(input), opts) | ||
} | ||
@@ -92,0 +86,0 @@ |
{ | ||
"name": "mediaxml", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "A general purpose module for working with XML that includes first class support for media manifests like ADI, mRSS, and SCTE-236.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -254,3 +254,9 @@ const { clearScreenDown, cursorTo, moveCursor } = require('readline') | ||
if (self.server) { | ||
self.server.setPrompt(createPrompt('mxml', path.basename(info.uri))) | ||
let prompt = path.basename(info.uri).split('?')[0] | ||
if (prompt.length > 16) { | ||
prompt = `${prompt.slice(0, 13)}...` | ||
} | ||
self.server.setPrompt(createPrompt('mxml', prompt)) | ||
} | ||
@@ -257,0 +263,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2610413
14533