@jbrowse/cli 4.0.3 → 4.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bundle/index.js +22 -22
  2. package/package.json +1 -1
package/bundle/index.js CHANGED
@@ -53,80 +53,80 @@ eval("{var DuplexStream = __webpack_require__(/*! readable-stream/duplex */ \"..
53
53
 
54
54
  /***/ },
55
55
 
56
- /***/ "../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/index.js"
56
+ /***/ "../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/index.js"
57
57
  /*!************************************************************************************!*\
58
- !*** ../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/index.js ***!
58
+ !*** ../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/index.js ***!
59
59
  \************************************************************************************/
60
60
  (module, exports, __webpack_require__) {
61
61
 
62
62
  "use strict";
63
- eval("{/*!\n * body-parser\n * Copyright(c) 2014-2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n\n\n/**\n * @typedef Parsers\n * @type {function}\n * @property {function} json\n * @property {function} raw\n * @property {function} text\n * @property {function} urlencoded\n */\n\n/**\n * Module exports.\n * @type {Parsers}\n */\n\nexports = module.exports = bodyParser\n\n/**\n * JSON parser.\n * @public\n */\n\nObject.defineProperty(exports, \"json\", ({\n configurable: true,\n enumerable: true,\n get: () => __webpack_require__(/*! ./lib/types/json */ \"../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/types/json.js\")\n}))\n\n/**\n * Raw parser.\n * @public\n */\n\nObject.defineProperty(exports, \"raw\", ({\n configurable: true,\n enumerable: true,\n get: () => __webpack_require__(/*! ./lib/types/raw */ \"../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/types/raw.js\")\n}))\n\n/**\n * Text parser.\n * @public\n */\n\nObject.defineProperty(exports, \"text\", ({\n configurable: true,\n enumerable: true,\n get: () => __webpack_require__(/*! ./lib/types/text */ \"../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/types/text.js\")\n}))\n\n/**\n * URL-encoded parser.\n * @public\n */\n\nObject.defineProperty(exports, \"urlencoded\", ({\n configurable: true,\n enumerable: true,\n get: () => __webpack_require__(/*! ./lib/types/urlencoded */ \"../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/types/urlencoded.js\")\n}))\n\n/**\n * Create a middleware to parse json and urlencoded bodies.\n *\n * @param {object} [options]\n * @return {function}\n * @deprecated\n * @public\n */\n\nfunction bodyParser () {\n throw new Error('The bodyParser() generic has been split into individual middleware to use instead.')\n}\n\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/index.js?\n}");
63
+ eval("{/*!\n * body-parser\n * Copyright(c) 2014-2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n\n\n/**\n * @typedef {Object} Parsers\n * @property {Function} json JSON parser\n * @property {Function} raw Raw parser\n * @property {Function} text Text parser\n * @property {Function} urlencoded URL-encoded parser\n */\n\n/**\n * Module exports.\n * @type {Function & Parsers}\n */\nexports = module.exports = bodyParser\n\n/**\n * JSON parser.\n * @public\n */\nObject.defineProperty(exports, \"json\", ({\n configurable: true,\n enumerable: true,\n get: () => __webpack_require__(/*! ./lib/types/json */ \"../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/types/json.js\")\n}))\n\n/**\n * Raw parser.\n * @public\n */\nObject.defineProperty(exports, \"raw\", ({\n configurable: true,\n enumerable: true,\n get: () => __webpack_require__(/*! ./lib/types/raw */ \"../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/types/raw.js\")\n}))\n\n/**\n * Text parser.\n * @public\n */\nObject.defineProperty(exports, \"text\", ({\n configurable: true,\n enumerable: true,\n get: () => __webpack_require__(/*! ./lib/types/text */ \"../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/types/text.js\")\n}))\n\n/**\n * URL-encoded parser.\n * @public\n */\nObject.defineProperty(exports, \"urlencoded\", ({\n configurable: true,\n enumerable: true,\n get: () => __webpack_require__(/*! ./lib/types/urlencoded */ \"../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/types/urlencoded.js\")\n}))\n\n/**\n * Create a middleware to parse json and urlencoded bodies.\n *\n * @deprecated\n * @public\n */\nfunction bodyParser () {\n throw new Error('The bodyParser() generic has been split into individual middleware to use instead.')\n}\n\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/index.js?\n}");
64
64
 
65
65
  /***/ },
66
66
 
67
- /***/ "../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/read.js"
67
+ /***/ "../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/read.js"
68
68
  /*!***************************************************************************************!*\
69
- !*** ../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/read.js ***!
69
+ !*** ../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/read.js ***!
70
70
  \***************************************************************************************/
71
71
  (module, __unused_webpack_exports, __webpack_require__) {
72
72
 
73
73
  "use strict";
74
- eval("{/*!\n * body-parser\n * Copyright(c) 2014-2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n\n\n/**\n * Module dependencies.\n * @private\n */\n\nvar createError = __webpack_require__(/*! http-errors */ \"../../node_modules/.pnpm/http-errors@2.0.1/node_modules/http-errors/index.js\")\nvar getBody = __webpack_require__(/*! raw-body */ \"../../node_modules/.pnpm/raw-body@3.0.2/node_modules/raw-body/index.js\")\nvar iconv = __webpack_require__(/*! iconv-lite */ \"../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/lib/index.js\")\nvar onFinished = __webpack_require__(/*! on-finished */ \"../../node_modules/.pnpm/on-finished@2.4.1/node_modules/on-finished/index.js\")\nvar zlib = __webpack_require__(/*! node:zlib */ \"node:zlib\")\nvar hasBody = (__webpack_require__(/*! type-is */ \"../../node_modules/.pnpm/type-is@2.0.1/node_modules/type-is/index.js\").hasBody)\nvar { getCharset } = __webpack_require__(/*! ./utils */ \"../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/utils.js\")\n\n/**\n * Module exports.\n */\n\nmodule.exports = read\n\n/**\n * Read a request into a buffer and parse.\n *\n * @param {object} req\n * @param {object} res\n * @param {function} next\n * @param {function} parse\n * @param {function} debug\n * @param {object} options\n * @private\n */\n\nfunction read (req, res, next, parse, debug, options) {\n if (onFinished.isFinished(req)) {\n debug('body already parsed')\n next()\n return\n }\n\n if (!('body' in req)) {\n req.body = undefined\n }\n\n // skip requests without bodies\n if (!hasBody(req)) {\n debug('skip empty body')\n next()\n return\n }\n\n debug('content-type %j', req.headers['content-type'])\n\n // determine if request should be parsed\n if (!options.shouldParse(req)) {\n debug('skip parsing')\n next()\n return\n }\n\n var encoding = null\n if (options?.skipCharset !== true) {\n encoding = getCharset(req) || options.defaultCharset\n\n // validate charset\n if (!!options?.isValidCharset && !options.isValidCharset(encoding)) {\n debug('invalid charset')\n next(createError(415, 'unsupported charset \"' + encoding.toUpperCase() + '\"', {\n charset: encoding,\n type: 'charset.unsupported'\n }))\n return\n }\n }\n\n var length\n var opts = options\n var stream\n\n // read options\n var verify = opts.verify\n\n try {\n // get the content stream\n stream = contentstream(req, debug, opts.inflate)\n length = stream.length\n stream.length = undefined\n } catch (err) {\n return next(err)\n }\n\n // set raw-body options\n opts.length = length\n opts.encoding = verify\n ? null\n : encoding\n\n // assert charset is supported\n if (opts.encoding === null && encoding !== null && !iconv.encodingExists(encoding)) {\n return next(createError(415, 'unsupported charset \"' + encoding.toUpperCase() + '\"', {\n charset: encoding.toLowerCase(),\n type: 'charset.unsupported'\n }))\n }\n\n // read body\n debug('read body')\n getBody(stream, opts, function (error, body) {\n if (error) {\n var _error\n\n if (error.type === 'encoding.unsupported') {\n // echo back charset\n _error = createError(415, 'unsupported charset \"' + encoding.toUpperCase() + '\"', {\n charset: encoding.toLowerCase(),\n type: 'charset.unsupported'\n })\n } else {\n // set status code on error\n _error = createError(400, error)\n }\n\n // unpipe from stream and destroy\n if (stream !== req) {\n req.unpipe()\n stream.destroy()\n }\n\n // read off entire request\n dump(req, function onfinished () {\n next(createError(400, _error))\n })\n return\n }\n\n // verify\n if (verify) {\n try {\n debug('verify body')\n verify(req, res, body, encoding)\n } catch (err) {\n next(createError(403, err, {\n body: body,\n type: err.type || 'entity.verify.failed'\n }))\n return\n }\n }\n\n // parse\n var str = body\n try {\n debug('parse body')\n str = typeof body !== 'string' && encoding !== null\n ? iconv.decode(body, encoding)\n : body\n req.body = parse(str, encoding)\n } catch (err) {\n next(createError(400, err, {\n body: str,\n type: err.type || 'entity.parse.failed'\n }))\n return\n }\n\n next()\n })\n}\n\n/**\n * Get the content stream of the request.\n *\n * @param {object} req\n * @param {function} debug\n * @param {boolean} [inflate=true]\n * @return {object}\n * @api private\n */\n\nfunction contentstream (req, debug, inflate) {\n var encoding = (req.headers['content-encoding'] || 'identity').toLowerCase()\n var length = req.headers['content-length']\n\n debug('content-encoding \"%s\"', encoding)\n\n if (inflate === false && encoding !== 'identity') {\n throw createError(415, 'content encoding unsupported', {\n encoding: encoding,\n type: 'encoding.unsupported'\n })\n }\n\n if (encoding === 'identity') {\n req.length = length\n return req\n }\n\n var stream = createDecompressionStream(encoding, debug)\n req.pipe(stream)\n return stream\n}\n\n/**\n * Create a decompression stream for the given encoding.\n * @param {string} encoding\n * @param {function} debug\n * @return {object}\n * @api private\n */\nfunction createDecompressionStream (encoding, debug) {\n switch (encoding) {\n case 'deflate':\n debug('inflate body')\n return zlib.createInflate()\n case 'gzip':\n debug('gunzip body')\n return zlib.createGunzip()\n case 'br':\n debug('brotli decompress body')\n return zlib.createBrotliDecompress()\n default:\n throw createError(415, 'unsupported content encoding \"' + encoding + '\"', {\n encoding: encoding,\n type: 'encoding.unsupported'\n })\n }\n}\n\n/**\n * Dump the contents of a request.\n *\n * @param {object} req\n * @param {function} callback\n * @api private\n */\n\nfunction dump (req, callback) {\n if (onFinished.isFinished(req)) {\n callback(null)\n } else {\n onFinished(req, callback)\n req.resume()\n }\n}\n\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/read.js?\n}");
74
+ eval("{/*!\n * body-parser\n * Copyright(c) 2014-2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n\n\n/**\n * Module dependencies.\n * @private\n */\n\nvar createError = __webpack_require__(/*! http-errors */ \"../../node_modules/.pnpm/http-errors@2.0.1/node_modules/http-errors/index.js\")\nvar getBody = __webpack_require__(/*! raw-body */ \"../../node_modules/.pnpm/raw-body@3.0.2/node_modules/raw-body/index.js\")\nvar iconv = __webpack_require__(/*! iconv-lite */ \"../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/lib/index.js\")\nvar onFinished = __webpack_require__(/*! on-finished */ \"../../node_modules/.pnpm/on-finished@2.4.1/node_modules/on-finished/index.js\")\nvar zlib = __webpack_require__(/*! node:zlib */ \"node:zlib\")\nvar hasBody = (__webpack_require__(/*! type-is */ \"../../node_modules/.pnpm/type-is@2.0.1/node_modules/type-is/index.js\").hasBody)\nvar { getCharset } = __webpack_require__(/*! ./utils */ \"../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/utils.js\")\n\n/**\n * Module exports.\n */\n\nmodule.exports = read\n\n/**\n * Read a request into a buffer and parse.\n *\n * @param {Object} req\n * @param {Object} res\n * @param {Function} next\n * @param {Function} parse\n * @param {Function} debug\n * @param {Object} options\n * @private\n */\nfunction read (req, res, next, parse, debug, options) {\n if (onFinished.isFinished(req)) {\n debug('body already parsed')\n next()\n return\n }\n\n if (!('body' in req)) {\n req.body = undefined\n }\n\n // skip requests without bodies\n if (!hasBody(req)) {\n debug('skip empty body')\n next()\n return\n }\n\n debug('content-type %j', req.headers['content-type'])\n\n // determine if request should be parsed\n if (!options.shouldParse(req)) {\n debug('skip parsing')\n next()\n return\n }\n\n var encoding = null\n if (options?.skipCharset !== true) {\n encoding = getCharset(req) || options.defaultCharset\n\n // validate charset\n if (!!options?.isValidCharset && !options.isValidCharset(encoding)) {\n debug('invalid charset')\n next(createError(415, 'unsupported charset \"' + encoding.toUpperCase() + '\"', {\n charset: encoding,\n type: 'charset.unsupported'\n }))\n return\n }\n }\n\n var length\n var opts = options\n var stream\n\n // read options\n var verify = opts.verify\n\n try {\n // get the content stream\n stream = contentstream(req, debug, opts.inflate)\n length = stream.length\n stream.length = undefined\n } catch (err) {\n return next(err)\n }\n\n // set raw-body options\n opts.length = length\n opts.encoding = verify\n ? null\n : encoding\n\n // assert charset is supported\n if (opts.encoding === null && encoding !== null && !iconv.encodingExists(encoding)) {\n return next(createError(415, 'unsupported charset \"' + encoding.toUpperCase() + '\"', {\n charset: encoding.toLowerCase(),\n type: 'charset.unsupported'\n }))\n }\n\n // read body\n debug('read body')\n getBody(stream, opts, function (error, body) {\n if (error) {\n var _error\n\n if (error.type === 'encoding.unsupported') {\n // echo back charset\n _error = createError(415, 'unsupported charset \"' + encoding.toUpperCase() + '\"', {\n charset: encoding.toLowerCase(),\n type: 'charset.unsupported'\n })\n } else {\n // set status code on error\n _error = createError(400, error)\n }\n\n // unpipe from stream and destroy\n if (stream !== req) {\n req.unpipe()\n stream.destroy()\n }\n\n // read off entire request\n dump(req, function onfinished () {\n next(createError(400, _error))\n })\n return\n }\n\n // verify\n if (verify) {\n try {\n debug('verify body')\n verify(req, res, body, encoding)\n } catch (err) {\n next(createError(403, err, {\n body: body,\n type: err.type || 'entity.verify.failed'\n }))\n return\n }\n }\n\n // parse\n var str = body\n try {\n debug('parse body')\n str = typeof body !== 'string' && encoding !== null\n ? iconv.decode(body, encoding)\n : body\n req.body = parse(str, encoding)\n } catch (err) {\n next(createError(400, err, {\n body: str,\n type: err.type || 'entity.parse.failed'\n }))\n return\n }\n\n next()\n })\n}\n\n/**\n * Get the content stream of the request.\n *\n * @param {Object} req\n * @param {Function} debug\n * @param {boolean} inflate\n * @returns {Object}\n * @private\n */\nfunction contentstream (req, debug, inflate) {\n var encoding = (req.headers['content-encoding'] || 'identity').toLowerCase()\n var length = req.headers['content-length']\n\n debug('content-encoding \"%s\"', encoding)\n\n if (inflate === false && encoding !== 'identity') {\n throw createError(415, 'content encoding unsupported', {\n encoding: encoding,\n type: 'encoding.unsupported'\n })\n }\n\n if (encoding === 'identity') {\n req.length = length\n return req\n }\n\n var stream = createDecompressionStream(encoding, debug)\n req.pipe(stream)\n return stream\n}\n\n/**\n * Create a decompression stream for the given encoding.\n * @param {string} encoding\n * @param {Function} debug\n * @returns {Object}\n * @private\n */\nfunction createDecompressionStream (encoding, debug) {\n switch (encoding) {\n case 'deflate':\n debug('inflate body')\n return zlib.createInflate()\n case 'gzip':\n debug('gunzip body')\n return zlib.createGunzip()\n case 'br':\n debug('brotli decompress body')\n return zlib.createBrotliDecompress()\n default:\n throw createError(415, 'unsupported content encoding \"' + encoding + '\"', {\n encoding: encoding,\n type: 'encoding.unsupported'\n })\n }\n}\n\n/**\n * Dump the contents of a request.\n *\n * @param {Object} req\n * @param {Function} callback\n * @private\n */\nfunction dump (req, callback) {\n if (onFinished.isFinished(req)) {\n callback(null)\n } else {\n onFinished(req, callback)\n req.resume()\n }\n}\n\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/read.js?\n}");
75
75
 
76
76
  /***/ },
77
77
 
78
- /***/ "../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/types/json.js"
78
+ /***/ "../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/types/json.js"
79
79
  /*!*********************************************************************************************!*\
80
- !*** ../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/types/json.js ***!
80
+ !*** ../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/types/json.js ***!
81
81
  \*********************************************************************************************/
82
82
  (module, __unused_webpack_exports, __webpack_require__) {
83
83
 
84
84
  "use strict";
85
- eval("{/*!\n * body-parser\n * Copyright(c) 2014 Jonathan Ong\n * Copyright(c) 2014-2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n\n\n/**\n * Module dependencies.\n * @private\n */\n\nvar debug = __webpack_require__(/*! debug */ \"../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js\")('body-parser:json')\nvar read = __webpack_require__(/*! ../read */ \"../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/read.js\")\nvar { normalizeOptions } = __webpack_require__(/*! ../utils */ \"../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/utils.js\")\n\n/**\n * Module exports.\n */\n\nmodule.exports = json\n\n/**\n * RegExp to match the first non-space in a string.\n *\n * Allowed whitespace is defined in RFC 7159:\n *\n * ws = *(\n * %x20 / ; Space\n * %x09 / ; Horizontal tab\n * %x0A / ; Line feed or New line\n * %x0D ) ; Carriage return\n */\n\nvar FIRST_CHAR_REGEXP = /^[\\x20\\x09\\x0a\\x0d]*([^\\x20\\x09\\x0a\\x0d])/ // eslint-disable-line no-control-regex\n\nvar JSON_SYNTAX_CHAR = '#'\nvar JSON_SYNTAX_REGEXP = /#+/g\n\n/**\n * Create a middleware to parse JSON bodies.\n *\n * @param {object} [options]\n * @return {function}\n * @public\n */\n\nfunction json (options) {\n const normalizedOptions = normalizeOptions(options, 'application/json')\n\n var reviver = options?.reviver\n var strict = options?.strict !== false\n\n function parse (body) {\n if (body.length === 0) {\n // special-case empty json body, as it's a common client-side mistake\n // TODO: maybe make this configurable or part of \"strict\" option\n return {}\n }\n\n if (strict) {\n var first = firstchar(body)\n\n if (first !== '{' && first !== '[') {\n debug('strict violation')\n throw createStrictSyntaxError(body, first)\n }\n }\n\n try {\n debug('parse json')\n return JSON.parse(body, reviver)\n } catch (e) {\n throw normalizeJsonSyntaxError(e, {\n message: e.message,\n stack: e.stack\n })\n }\n }\n\n const readOptions = {\n ...normalizedOptions,\n // assert charset per RFC 7159 sec 8.1\n isValidCharset: (charset) => charset.slice(0, 4) === 'utf-'\n }\n\n return function jsonParser (req, res, next) {\n read(req, res, next, parse, debug, readOptions)\n }\n}\n\n/**\n * Create strict violation syntax error matching native error.\n *\n * @param {string} str\n * @param {string} char\n * @return {Error}\n * @private\n */\n\nfunction createStrictSyntaxError (str, char) {\n var index = str.indexOf(char)\n var partial = ''\n\n if (index !== -1) {\n partial = str.substring(0, index) + JSON_SYNTAX_CHAR\n\n for (var i = index + 1; i < str.length; i++) {\n partial += JSON_SYNTAX_CHAR\n }\n }\n\n try {\n JSON.parse(partial); /* istanbul ignore next */ throw new SyntaxError('strict violation')\n } catch (e) {\n return normalizeJsonSyntaxError(e, {\n message: e.message.replace(JSON_SYNTAX_REGEXP, function (placeholder) {\n return str.substring(index, index + placeholder.length)\n }),\n stack: e.stack\n })\n }\n}\n\n/**\n * Get the first non-whitespace character in a string.\n *\n * @param {string} str\n * @return {function}\n * @private\n */\n\nfunction firstchar (str) {\n var match = FIRST_CHAR_REGEXP.exec(str)\n\n return match\n ? match[1]\n : undefined\n}\n\n/**\n * Normalize a SyntaxError for JSON.parse.\n *\n * @param {SyntaxError} error\n * @param {object} obj\n * @return {SyntaxError}\n */\n\nfunction normalizeJsonSyntaxError (error, obj) {\n var keys = Object.getOwnPropertyNames(error)\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i]\n if (key !== 'stack' && key !== 'message') {\n delete error[key]\n }\n }\n\n // replace stack before message for Node.js 0.10 and below\n error.stack = obj.stack.replace(error.message, obj.message)\n error.message = obj.message\n\n return error\n}\n\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/types/json.js?\n}");
85
+ eval("{/*!\n * body-parser\n * Copyright(c) 2014 Jonathan Ong\n * Copyright(c) 2014-2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n\n\n/**\n * Module dependencies.\n * @private\n */\n\nvar debug = __webpack_require__(/*! debug */ \"../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js\")('body-parser:json')\nvar read = __webpack_require__(/*! ../read */ \"../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/read.js\")\nvar { normalizeOptions } = __webpack_require__(/*! ../utils */ \"../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/utils.js\")\n\n/**\n * Module exports.\n */\n\nmodule.exports = json\n\n/**\n * RegExp to match the first non-space in a string.\n *\n * Allowed whitespace is defined in RFC 7159:\n *\n * ws = *(\n * %x20 / ; Space\n * %x09 / ; Horizontal tab\n * %x0A / ; Line feed or New line\n * %x0D ) ; Carriage return\n */\nvar FIRST_CHAR_REGEXP = /^[\\x20\\x09\\x0a\\x0d]*([^\\x20\\x09\\x0a\\x0d])/ // eslint-disable-line no-control-regex\n\nvar JSON_SYNTAX_CHAR = '#'\nvar JSON_SYNTAX_REGEXP = /#+/g\n\n/**\n * Create a middleware to parse JSON bodies.\n *\n * @param {Object} [options]\n * @returns {Function}\n * @public\n */\nfunction json (options) {\n const normalizedOptions = normalizeOptions(options, 'application/json')\n\n var reviver = options?.reviver\n var strict = options?.strict !== false\n\n function parse (body) {\n if (body.length === 0) {\n // special-case empty json body, as it's a common client-side mistake\n // TODO: maybe make this configurable or part of \"strict\" option\n return {}\n }\n\n if (strict) {\n var first = firstchar(body)\n\n if (first !== '{' && first !== '[') {\n debug('strict violation')\n throw createStrictSyntaxError(body, first)\n }\n }\n\n try {\n debug('parse json')\n return JSON.parse(body, reviver)\n } catch (e) {\n throw normalizeJsonSyntaxError(e, {\n message: e.message,\n stack: e.stack\n })\n }\n }\n\n const readOptions = {\n ...normalizedOptions,\n // assert charset per RFC 7159 sec 8.1\n isValidCharset: (charset) => charset.slice(0, 4) === 'utf-'\n }\n\n return function jsonParser (req, res, next) {\n read(req, res, next, parse, debug, readOptions)\n }\n}\n\n/**\n * Create strict violation syntax error matching native error.\n *\n * @param {string} str\n * @param {string} char\n * @returns {Error}\n * @private\n */\nfunction createStrictSyntaxError (str, char) {\n var index = str.indexOf(char)\n var partial = ''\n\n if (index !== -1) {\n partial = str.substring(0, index) + JSON_SYNTAX_CHAR.repeat(str.length - index)\n }\n\n try {\n JSON.parse(partial); /* istanbul ignore next */ throw new SyntaxError('strict violation')\n } catch (e) {\n return normalizeJsonSyntaxError(e, {\n message: e.message.replace(JSON_SYNTAX_REGEXP, function (placeholder) {\n return str.substring(index, index + placeholder.length)\n }),\n stack: e.stack\n })\n }\n}\n\n/**\n * Get the first non-whitespace character in a string.\n *\n * @param {string} str\n * @returns {string|undefined}\n * @private\n */\nfunction firstchar (str) {\n var match = FIRST_CHAR_REGEXP.exec(str)\n\n return match\n ? match[1]\n : undefined\n}\n\n/**\n * Normalize a SyntaxError for JSON.parse.\n *\n * @param {SyntaxError} error\n * @param {Object} obj\n * @returns {SyntaxError}\n * @private\n */\nfunction normalizeJsonSyntaxError (error, obj) {\n var keys = Object.getOwnPropertyNames(error)\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i]\n if (key !== 'stack' && key !== 'message') {\n delete error[key]\n }\n }\n\n // replace stack before message for Node.js 0.10 and below\n error.stack = obj.stack.replace(error.message, obj.message)\n error.message = obj.message\n\n return error\n}\n\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/types/json.js?\n}");
86
86
 
87
87
  /***/ },
88
88
 
89
- /***/ "../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/types/raw.js"
89
+ /***/ "../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/types/raw.js"
90
90
  /*!********************************************************************************************!*\
91
- !*** ../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/types/raw.js ***!
91
+ !*** ../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/types/raw.js ***!
92
92
  \********************************************************************************************/
93
93
  (module, __unused_webpack_exports, __webpack_require__) {
94
94
 
95
95
  "use strict";
96
- eval("{/*!\n * body-parser\n * Copyright(c) 2014-2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n\n\n/**\n * Module dependencies.\n */\n\nvar debug = __webpack_require__(/*! debug */ \"../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js\")('body-parser:raw')\nvar read = __webpack_require__(/*! ../read */ \"../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/read.js\")\nvar { normalizeOptions, passthrough } = __webpack_require__(/*! ../utils */ \"../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/utils.js\")\n\n/**\n * Module exports.\n */\n\nmodule.exports = raw\n\n/**\n * Create a middleware to parse raw bodies.\n *\n * @param {object} [options]\n * @return {function}\n * @api public\n */\n\nfunction raw (options) {\n const normalizedOptions = normalizeOptions(options, 'application/octet-stream')\n\n const readOptions = {\n ...normalizedOptions,\n // Skip charset validation and parse the body as is\n skipCharset: true\n }\n\n return function rawParser (req, res, next) {\n read(req, res, next, passthrough, debug, readOptions)\n }\n}\n\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/types/raw.js?\n}");
96
+ eval("{/*!\n * body-parser\n * Copyright(c) 2014-2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n\n\n/**\n * Module dependencies.\n */\n\nvar debug = __webpack_require__(/*! debug */ \"../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js\")('body-parser:raw')\nvar read = __webpack_require__(/*! ../read */ \"../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/read.js\")\nvar { normalizeOptions, passthrough } = __webpack_require__(/*! ../utils */ \"../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/utils.js\")\n\n/**\n * Module exports.\n */\n\nmodule.exports = raw\n\n/**\n * Create a middleware to parse raw bodies.\n *\n * @param {Object} [options]\n * @returns {Function}\n * @public\n */\nfunction raw (options) {\n const normalizedOptions = normalizeOptions(options, 'application/octet-stream')\n\n const readOptions = {\n ...normalizedOptions,\n // Skip charset validation and parse the body as is\n skipCharset: true\n }\n\n return function rawParser (req, res, next) {\n read(req, res, next, passthrough, debug, readOptions)\n }\n}\n\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/types/raw.js?\n}");
97
97
 
98
98
  /***/ },
99
99
 
100
- /***/ "../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/types/text.js"
100
+ /***/ "../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/types/text.js"
101
101
  /*!*********************************************************************************************!*\
102
- !*** ../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/types/text.js ***!
102
+ !*** ../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/types/text.js ***!
103
103
  \*********************************************************************************************/
104
104
  (module, __unused_webpack_exports, __webpack_require__) {
105
105
 
106
106
  "use strict";
107
- eval("{/*!\n * body-parser\n * Copyright(c) 2014-2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n\n\n/**\n * Module dependencies.\n */\n\nvar debug = __webpack_require__(/*! debug */ \"../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js\")('body-parser:text')\nvar read = __webpack_require__(/*! ../read */ \"../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/read.js\")\nvar { normalizeOptions, passthrough } = __webpack_require__(/*! ../utils */ \"../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/utils.js\")\n\n/**\n * Module exports.\n */\n\nmodule.exports = text\n\n/**\n * Create a middleware to parse text bodies.\n *\n * @param {object} [options]\n * @return {function}\n * @api public\n */\n\nfunction text (options) {\n const normalizedOptions = normalizeOptions(options, 'text/plain')\n\n return function textParser (req, res, next) {\n read(req, res, next, passthrough, debug, normalizedOptions)\n }\n}\n\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/types/text.js?\n}");
107
+ eval("{/*!\n * body-parser\n * Copyright(c) 2014-2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n\n\n/**\n * Module dependencies.\n */\n\nvar debug = __webpack_require__(/*! debug */ \"../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js\")('body-parser:text')\nvar read = __webpack_require__(/*! ../read */ \"../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/read.js\")\nvar { normalizeOptions, passthrough } = __webpack_require__(/*! ../utils */ \"../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/utils.js\")\n\n/**\n * Module exports.\n */\n\nmodule.exports = text\n\n/**\n * Create a middleware to parse text bodies.\n *\n * @param {Object} [options]\n * @returns {Function}\n * @public\n */\nfunction text (options) {\n const normalizedOptions = normalizeOptions(options, 'text/plain')\n\n return function textParser (req, res, next) {\n read(req, res, next, passthrough, debug, normalizedOptions)\n }\n}\n\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/types/text.js?\n}");
108
108
 
109
109
  /***/ },
110
110
 
111
- /***/ "../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/types/urlencoded.js"
111
+ /***/ "../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/types/urlencoded.js"
112
112
  /*!***************************************************************************************************!*\
113
- !*** ../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/types/urlencoded.js ***!
113
+ !*** ../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/types/urlencoded.js ***!
114
114
  \***************************************************************************************************/
115
115
  (module, __unused_webpack_exports, __webpack_require__) {
116
116
 
117
117
  "use strict";
118
- eval("{/*!\n * body-parser\n * Copyright(c) 2014 Jonathan Ong\n * Copyright(c) 2014-2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n\n\n/**\n * Module dependencies.\n * @private\n */\n\nvar createError = __webpack_require__(/*! http-errors */ \"../../node_modules/.pnpm/http-errors@2.0.1/node_modules/http-errors/index.js\")\nvar debug = __webpack_require__(/*! debug */ \"../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js\")('body-parser:urlencoded')\nvar read = __webpack_require__(/*! ../read */ \"../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/read.js\")\nvar qs = __webpack_require__(/*! qs */ \"../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/index.js\")\nvar { normalizeOptions } = __webpack_require__(/*! ../utils */ \"../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/utils.js\")\n\n/**\n * Module exports.\n */\n\nmodule.exports = urlencoded\n\n/**\n * Create a middleware to parse urlencoded bodies.\n *\n * @param {object} [options]\n * @return {function}\n * @public\n */\n\nfunction urlencoded (options) {\n const normalizedOptions = normalizeOptions(options, 'application/x-www-form-urlencoded')\n\n if (normalizedOptions.defaultCharset !== 'utf-8' && normalizedOptions.defaultCharset !== 'iso-8859-1') {\n throw new TypeError('option defaultCharset must be either utf-8 or iso-8859-1')\n }\n\n // create the appropriate query parser\n var queryparse = createQueryParser(options)\n\n function parse (body, encoding) {\n return body.length\n ? queryparse(body, encoding)\n : {}\n }\n\n const readOptions = {\n ...normalizedOptions,\n // assert charset\n isValidCharset: (charset) => charset === 'utf-8' || charset === 'iso-8859-1'\n }\n\n return function urlencodedParser (req, res, next) {\n read(req, res, next, parse, debug, readOptions)\n }\n}\n\n/**\n * Get the extended query parser.\n *\n * @param {object} options\n */\n\nfunction createQueryParser (options) {\n var extended = Boolean(options?.extended)\n var parameterLimit = options?.parameterLimit !== undefined\n ? options?.parameterLimit\n : 1000\n var charsetSentinel = options?.charsetSentinel\n var interpretNumericEntities = options?.interpretNumericEntities\n var depth = extended ? (options?.depth !== undefined ? options?.depth : 32) : 0\n\n if (isNaN(parameterLimit) || parameterLimit < 1) {\n throw new TypeError('option parameterLimit must be a positive number')\n }\n\n if (isNaN(depth) || depth < 0) {\n throw new TypeError('option depth must be a zero or a positive number')\n }\n\n if (isFinite(parameterLimit)) {\n parameterLimit = parameterLimit | 0\n }\n\n return function queryparse (body, encoding) {\n var paramCount = parameterCount(body, parameterLimit)\n\n if (paramCount === undefined) {\n debug('too many parameters')\n throw createError(413, 'too many parameters', {\n type: 'parameters.too.many'\n })\n }\n\n var arrayLimit = extended ? Math.max(100, paramCount) : 0\n\n debug('parse ' + (extended ? 'extended ' : '') + 'urlencoding')\n try {\n return qs.parse(body, {\n allowPrototypes: true,\n arrayLimit: arrayLimit,\n depth: depth,\n charsetSentinel: charsetSentinel,\n interpretNumericEntities: interpretNumericEntities,\n charset: encoding,\n parameterLimit: parameterLimit,\n strictDepth: true\n })\n } catch (err) {\n if (err instanceof RangeError) {\n throw createError(400, 'The input exceeded the depth', {\n type: 'querystring.parse.rangeError'\n })\n } else {\n throw err\n }\n }\n }\n}\n\n/**\n * Count the number of parameters, stopping once limit reached\n *\n * @param {string} body\n * @param {number} limit\n * @return {number|undefined} Returns undefined if limit exceeded\n * @api private\n */\nfunction parameterCount (body, limit) {\n let count = 0\n let index = -1\n do {\n count++\n if (count > limit) return undefined // Early exit if limit exceeded\n index = body.indexOf('&', index + 1)\n } while (index !== -1)\n return count\n}\n\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/types/urlencoded.js?\n}");
118
+ eval("{/*!\n * body-parser\n * Copyright(c) 2014 Jonathan Ong\n * Copyright(c) 2014-2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n\n\n/**\n * Module dependencies.\n * @private\n */\n\nvar createError = __webpack_require__(/*! http-errors */ \"../../node_modules/.pnpm/http-errors@2.0.1/node_modules/http-errors/index.js\")\nvar debug = __webpack_require__(/*! debug */ \"../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js\")('body-parser:urlencoded')\nvar read = __webpack_require__(/*! ../read */ \"../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/read.js\")\nvar qs = __webpack_require__(/*! qs */ \"../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/index.js\")\nvar { normalizeOptions } = __webpack_require__(/*! ../utils */ \"../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/utils.js\")\n\n/**\n * Module exports.\n */\n\nmodule.exports = urlencoded\n\n/**\n * Create a middleware to parse urlencoded bodies.\n *\n * @param {Object} [options]\n * @returns {Function}\n * @public\n */\nfunction urlencoded (options) {\n const normalizedOptions = normalizeOptions(options, 'application/x-www-form-urlencoded')\n\n if (normalizedOptions.defaultCharset !== 'utf-8' && normalizedOptions.defaultCharset !== 'iso-8859-1') {\n throw new TypeError('option defaultCharset must be either utf-8 or iso-8859-1')\n }\n\n // create the appropriate query parser\n var queryparse = createQueryParser(options)\n\n function parse (body, encoding) {\n return body.length\n ? queryparse(body, encoding)\n : {}\n }\n\n const readOptions = {\n ...normalizedOptions,\n // assert charset\n isValidCharset: (charset) => charset === 'utf-8' || charset === 'iso-8859-1'\n }\n\n return function urlencodedParser (req, res, next) {\n read(req, res, next, parse, debug, readOptions)\n }\n}\n\n/**\n * Get the extended query parser.\n *\n * @param {Object} options\n * @returns {Function}\n * @private\n */\nfunction createQueryParser (options) {\n var extended = Boolean(options?.extended)\n var parameterLimit = options?.parameterLimit !== undefined\n ? options?.parameterLimit\n : 1000\n var charsetSentinel = options?.charsetSentinel\n var interpretNumericEntities = options?.interpretNumericEntities\n var depth = extended ? (options?.depth !== undefined ? options?.depth : 32) : 0\n\n if (isNaN(parameterLimit) || parameterLimit < 1) {\n throw new TypeError('option parameterLimit must be a positive number')\n }\n\n if (isNaN(depth) || depth < 0) {\n throw new TypeError('option depth must be a zero or a positive number')\n }\n\n if (isFinite(parameterLimit)) {\n parameterLimit = parameterLimit | 0\n }\n\n return function queryparse (body, encoding) {\n var paramCount = parameterCount(body, parameterLimit)\n\n if (paramCount === undefined) {\n debug('too many parameters')\n throw createError(413, 'too many parameters', {\n type: 'parameters.too.many'\n })\n }\n\n var arrayLimit = extended ? Math.max(100, paramCount) : paramCount\n\n debug('parse ' + (extended ? 'extended ' : '') + 'urlencoding')\n try {\n return qs.parse(body, {\n allowPrototypes: true,\n arrayLimit: arrayLimit,\n depth: depth,\n charsetSentinel: charsetSentinel,\n interpretNumericEntities: interpretNumericEntities,\n charset: encoding,\n parameterLimit: parameterLimit,\n strictDepth: true\n })\n } catch (err) {\n if (err instanceof RangeError) {\n throw createError(400, 'The input exceeded the depth', {\n type: 'querystring.parse.rangeError'\n })\n } else {\n throw err\n }\n }\n }\n}\n\n/**\n * Count the number of parameters, stopping once limit reached\n *\n * @param {string} body\n * @param {number} limit\n * @returns {number|undefined} Returns undefined if limit exceeded\n * @private\n */\nfunction parameterCount (body, limit) {\n let count = 0\n let index = -1\n do {\n count++\n if (count > limit) return undefined // Early exit if limit exceeded\n index = body.indexOf('&', index + 1)\n } while (index !== -1)\n return count\n}\n\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/types/urlencoded.js?\n}");
119
119
 
120
120
  /***/ },
121
121
 
122
- /***/ "../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/utils.js"
122
+ /***/ "../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/utils.js"
123
123
  /*!****************************************************************************************!*\
124
- !*** ../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/utils.js ***!
124
+ !*** ../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/utils.js ***!
125
125
  \****************************************************************************************/
126
126
  (module, __unused_webpack_exports, __webpack_require__) {
127
127
 
128
128
  "use strict";
129
- eval("{\n\n/**\n * Module dependencies.\n */\n\nvar bytes = __webpack_require__(/*! bytes */ \"../../node_modules/.pnpm/bytes@3.1.2/node_modules/bytes/index.js\")\nvar contentType = __webpack_require__(/*! content-type */ \"../../node_modules/.pnpm/content-type@1.0.5/node_modules/content-type/index.js\")\nvar typeis = __webpack_require__(/*! type-is */ \"../../node_modules/.pnpm/type-is@2.0.1/node_modules/type-is/index.js\")\n\n/**\n * Module exports.\n */\nmodule.exports = {\n getCharset,\n normalizeOptions,\n passthrough\n}\n\n/**\n * Get the charset of a request.\n *\n * @param {object} req\n * @api private\n */\n\nfunction getCharset (req) {\n try {\n return (contentType.parse(req).parameters.charset || '').toLowerCase()\n } catch {\n return undefined\n }\n}\n\n/**\n * Get the simple type checker.\n *\n * @param {string | string[]} type\n * @return {function}\n */\n\nfunction typeChecker (type) {\n return function checkType (req) {\n return Boolean(typeis(req, type))\n }\n}\n\n/**\n * Normalizes the common options for all parsers.\n *\n * @param {object} options options to normalize\n * @param {string | string[] | function} defaultType default content type(s) or a function to determine it\n * @returns {object}\n */\nfunction normalizeOptions (options, defaultType) {\n if (!defaultType) {\n // Parsers must define a default content type\n throw new TypeError('defaultType must be provided')\n }\n\n var inflate = options?.inflate !== false\n var limit = typeof options?.limit !== 'number'\n ? bytes.parse(options?.limit || '100kb')\n : options?.limit\n var type = options?.type || defaultType\n var verify = options?.verify || false\n var defaultCharset = options?.defaultCharset || 'utf-8'\n\n if (verify !== false && typeof verify !== 'function') {\n throw new TypeError('option verify must be function')\n }\n\n // create the appropriate type checking function\n var shouldParse = typeof type !== 'function'\n ? typeChecker(type)\n : type\n\n return {\n inflate,\n limit,\n verify,\n defaultCharset,\n shouldParse\n }\n}\n\n/**\n * Passthrough function that returns input unchanged.\n * Used by parsers that don't need to transform the data.\n *\n * @param {*} value\n * @return {*}\n */\nfunction passthrough (value) {\n return value\n}\n\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/lib/utils.js?\n}");
129
+ eval("{\n\n/**\n * Module dependencies.\n */\n\nvar bytes = __webpack_require__(/*! bytes */ \"../../node_modules/.pnpm/bytes@3.1.2/node_modules/bytes/index.js\")\nvar contentType = __webpack_require__(/*! content-type */ \"../../node_modules/.pnpm/content-type@1.0.5/node_modules/content-type/index.js\")\nvar typeis = __webpack_require__(/*! type-is */ \"../../node_modules/.pnpm/type-is@2.0.1/node_modules/type-is/index.js\")\n\n/**\n * Module exports.\n */\nmodule.exports = {\n getCharset,\n normalizeOptions,\n passthrough\n}\n\n/**\n * Get the charset of a request.\n *\n * @param {Object} req\n * @returns {string | undefined}\n * @private\n */\nfunction getCharset (req) {\n try {\n return (contentType.parse(req).parameters.charset || '').toLowerCase()\n } catch {\n return undefined\n }\n}\n\n/**\n * Get the simple type checker.\n *\n * @param {string | string[]} type\n * @returns {Function}\n * @private\n */\nfunction typeChecker (type) {\n return function checkType (req) {\n return Boolean(typeis(req, type))\n }\n}\n\n/**\n * Normalizes the common options for all parsers.\n *\n * @param {Object} options options to normalize\n * @param {string | string[] | Function} defaultType default content type(s) or a function to determine it\n * @returns {Object}\n * @private\n */\nfunction normalizeOptions (options, defaultType) {\n if (!defaultType) {\n // Parsers must define a default content type\n throw new TypeError('defaultType must be provided')\n }\n\n var inflate = options?.inflate !== false\n var limit = typeof options?.limit !== 'number'\n ? bytes.parse(options?.limit || '100kb')\n : options?.limit\n var type = options?.type || defaultType\n var verify = options?.verify || false\n var defaultCharset = options?.defaultCharset || 'utf-8'\n\n if (verify !== false && typeof verify !== 'function') {\n throw new TypeError('option verify must be function')\n }\n\n // create the appropriate type checking function\n var shouldParse = typeof type !== 'function'\n ? typeChecker(type)\n : type\n\n return {\n inflate,\n limit,\n verify,\n defaultCharset,\n shouldParse\n }\n}\n\n/**\n * Passthrough function that returns input unchanged.\n * Used by parsers that don't need to transform the data.\n *\n * @param {*} value\n * @returns {*}\n * @private\n */\nfunction passthrough (value) {\n return value\n}\n\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/utils.js?\n}");
130
130
 
131
131
  /***/ },
132
132
 
@@ -843,7 +843,7 @@ eval("{/*!\n * express\n * Copyright(c) 2009-2013 TJ Holowaychuk\n * Copyright(c
843
843
  (module, exports, __webpack_require__) {
844
844
 
845
845
  "use strict";
846
- eval("{/*!\n * express\n * Copyright(c) 2009-2013 TJ Holowaychuk\n * Copyright(c) 2013 Roman Shtylman\n * Copyright(c) 2014-2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n\n\n/**\n * Module dependencies.\n */\n\nvar bodyParser = __webpack_require__(/*! body-parser */ \"../../node_modules/.pnpm/body-parser@2.2.1/node_modules/body-parser/index.js\")\nvar EventEmitter = (__webpack_require__(/*! node:events */ \"node:events\").EventEmitter);\nvar mixin = __webpack_require__(/*! merge-descriptors */ \"../../node_modules/.pnpm/merge-descriptors@2.0.0/node_modules/merge-descriptors/index.js\");\nvar proto = __webpack_require__(/*! ./application */ \"../../node_modules/.pnpm/express@5.2.1/node_modules/express/lib/application.js\");\nvar Router = __webpack_require__(/*! router */ \"../../node_modules/.pnpm/router@2.2.0/node_modules/router/index.js\");\nvar req = __webpack_require__(/*! ./request */ \"../../node_modules/.pnpm/express@5.2.1/node_modules/express/lib/request.js\");\nvar res = __webpack_require__(/*! ./response */ \"../../node_modules/.pnpm/express@5.2.1/node_modules/express/lib/response.js\");\n\n/**\n * Expose `createApplication()`.\n */\n\nexports = module.exports = createApplication;\n\n/**\n * Create an express application.\n *\n * @return {Function}\n * @api public\n */\n\nfunction createApplication() {\n var app = function(req, res, next) {\n app.handle(req, res, next);\n };\n\n mixin(app, EventEmitter.prototype, false);\n mixin(app, proto, false);\n\n // expose the prototype that will get set on requests\n app.request = Object.create(req, {\n app: { configurable: true, enumerable: true, writable: true, value: app }\n })\n\n // expose the prototype that will get set on responses\n app.response = Object.create(res, {\n app: { configurable: true, enumerable: true, writable: true, value: app }\n })\n\n app.init();\n return app;\n}\n\n/**\n * Expose the prototypes.\n */\n\nexports.application = proto;\nexports.request = req;\nexports.response = res;\n\n/**\n * Expose constructors.\n */\n\nexports.Route = Router.Route;\nexports.Router = Router;\n\n/**\n * Expose middleware\n */\n\nexports.json = bodyParser.json\nexports.raw = bodyParser.raw\nexports[\"static\"] = __webpack_require__(/*! serve-static */ \"../../node_modules/.pnpm/serve-static@2.2.1/node_modules/serve-static/index.js\");\nexports.text = bodyParser.text\nexports.urlencoded = bodyParser.urlencoded\n\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/express@5.2.1/node_modules/express/lib/express.js?\n}");
846
+ eval("{/*!\n * express\n * Copyright(c) 2009-2013 TJ Holowaychuk\n * Copyright(c) 2013 Roman Shtylman\n * Copyright(c) 2014-2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n\n\n/**\n * Module dependencies.\n */\n\nvar bodyParser = __webpack_require__(/*! body-parser */ \"../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/index.js\")\nvar EventEmitter = (__webpack_require__(/*! node:events */ \"node:events\").EventEmitter);\nvar mixin = __webpack_require__(/*! merge-descriptors */ \"../../node_modules/.pnpm/merge-descriptors@2.0.0/node_modules/merge-descriptors/index.js\");\nvar proto = __webpack_require__(/*! ./application */ \"../../node_modules/.pnpm/express@5.2.1/node_modules/express/lib/application.js\");\nvar Router = __webpack_require__(/*! router */ \"../../node_modules/.pnpm/router@2.2.0/node_modules/router/index.js\");\nvar req = __webpack_require__(/*! ./request */ \"../../node_modules/.pnpm/express@5.2.1/node_modules/express/lib/request.js\");\nvar res = __webpack_require__(/*! ./response */ \"../../node_modules/.pnpm/express@5.2.1/node_modules/express/lib/response.js\");\n\n/**\n * Expose `createApplication()`.\n */\n\nexports = module.exports = createApplication;\n\n/**\n * Create an express application.\n *\n * @return {Function}\n * @api public\n */\n\nfunction createApplication() {\n var app = function(req, res, next) {\n app.handle(req, res, next);\n };\n\n mixin(app, EventEmitter.prototype, false);\n mixin(app, proto, false);\n\n // expose the prototype that will get set on requests\n app.request = Object.create(req, {\n app: { configurable: true, enumerable: true, writable: true, value: app }\n })\n\n // expose the prototype that will get set on responses\n app.response = Object.create(res, {\n app: { configurable: true, enumerable: true, writable: true, value: app }\n })\n\n app.init();\n return app;\n}\n\n/**\n * Expose the prototypes.\n */\n\nexports.application = proto;\nexports.request = req;\nexports.response = res;\n\n/**\n * Expose constructors.\n */\n\nexports.Route = Router.Route;\nexports.Router = Router;\n\n/**\n * Expose middleware\n */\n\nexports.json = bodyParser.json\nexports.raw = bodyParser.raw\nexports[\"static\"] = __webpack_require__(/*! serve-static */ \"../../node_modules/.pnpm/serve-static@2.2.1/node_modules/serve-static/index.js\");\nexports.text = bodyParser.text\nexports.urlencoded = bodyParser.urlencoded\n\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/express@5.2.1/node_modules/express/lib/express.js?\n}");
847
847
 
848
848
  /***/ },
849
849
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/cli",
3
- "version": "4.0.3",
3
+ "version": "4.0.4",
4
4
  "description": "A command line tool for working with JBrowse 2",
5
5
  "keywords": [
6
6
  "jbrowse",