@pipelab/plugin-electron 1.0.0-beta.1 → 1.0.0-beta.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.
- package/dist/index.cjs +14 -2
- package/dist/index.mjs +14 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -7
- package/CHANGELOG.md +0 -20
- package/src/configure.ts +0 -23
- package/src/declarations.d.ts +0 -1
- package/src/fixtures/build/index.html +0 -11
- package/src/forge.ts +0 -851
- package/src/index.ts +0 -94
- package/src/make.spec.ts +0 -57
- package/src/make.ts +0 -22
- package/src/package-v2.ts +0 -52
- package/src/package.ts +0 -22
- package/src/preview.ts +0 -35
- package/src/public/electron.webp +0 -0
- package/src/utils.ts +0 -35
- package/tests/e2e/electron.spec.ts +0 -64
- package/tests/e2e/fixtures/folder-to-electron.json +0 -171
- package/tests/e2e/fixtures/folder-to-tauri.json +0 -58
- package/tests/e2e/vitest.config.mts +0 -20
- package/tsconfig.json +0 -10
- package/tsdown.config.ts +0 -15
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["semver","osPlatform","osArch"],"sources":["../../../node_modules/change-case/dist/index.js","../../../node_modules/semver/internal/constants.js","../../../node_modules/semver/internal/debug.js","../../../node_modules/semver/internal/re.js","../../../node_modules/semver/internal/parse-options.js","../../../node_modules/semver/internal/identifiers.js","../../../node_modules/semver/classes/semver.js","../../../node_modules/semver/functions/parse.js","../../../node_modules/semver/functions/valid.js","../../../node_modules/semver/functions/clean.js","../../../node_modules/semver/functions/inc.js","../../../node_modules/semver/functions/diff.js","../../../node_modules/semver/functions/major.js","../../../node_modules/semver/functions/minor.js","../../../node_modules/semver/functions/patch.js","../../../node_modules/semver/functions/prerelease.js","../../../node_modules/semver/functions/compare.js","../../../node_modules/semver/functions/rcompare.js","../../../node_modules/semver/functions/compare-loose.js","../../../node_modules/semver/functions/compare-build.js","../../../node_modules/semver/functions/sort.js","../../../node_modules/semver/functions/rsort.js","../../../node_modules/semver/functions/gt.js","../../../node_modules/semver/functions/lt.js","../../../node_modules/semver/functions/eq.js","../../../node_modules/semver/functions/neq.js","../../../node_modules/semver/functions/gte.js","../../../node_modules/semver/functions/lte.js","../../../node_modules/semver/functions/cmp.js","../../../node_modules/semver/functions/coerce.js","../../../node_modules/semver/internal/lrucache.js","../../../node_modules/semver/classes/range.js","../../../node_modules/semver/classes/comparator.js","../../../node_modules/semver/functions/satisfies.js","../../../node_modules/semver/ranges/to-comparators.js","../../../node_modules/semver/ranges/max-satisfying.js","../../../node_modules/semver/ranges/min-satisfying.js","../../../node_modules/semver/ranges/min-version.js","../../../node_modules/semver/ranges/valid.js","../../../node_modules/semver/ranges/outside.js","../../../node_modules/semver/ranges/gtr.js","../../../node_modules/semver/ranges/ltr.js","../../../node_modules/semver/ranges/intersects.js","../../../node_modules/semver/ranges/simplify.js","../../../node_modules/semver/ranges/subset.js","../../../node_modules/semver/index.js","../src/forge.ts","../src/utils.ts","../src/make.ts","../src/package.ts","../src/preview.ts","../src/configure.ts","../src/package-v2.ts","../src/index.ts"],"sourcesContent":["// Regexps involved with splitting words in various case formats.\nconst SPLIT_LOWER_UPPER_RE = /([\\p{Ll}\\d])(\\p{Lu})/gu;\nconst SPLIT_UPPER_UPPER_RE = /(\\p{Lu})([\\p{Lu}][\\p{Ll}])/gu;\n// Used to iterate over the initial split result and separate numbers.\nconst SPLIT_SEPARATE_NUMBER_RE = /(\\d)\\p{Ll}|(\\p{L})\\d/u;\n// Regexp involved with stripping non-word characters from the result.\nconst DEFAULT_STRIP_REGEXP = /[^\\p{L}\\d]+/giu;\n// The replacement value for splits.\nconst SPLIT_REPLACE_VALUE = \"$1\\0$2\";\n// The default characters to keep after transforming case.\nconst DEFAULT_PREFIX_SUFFIX_CHARACTERS = \"\";\n/**\n * Split any cased input strings into an array of words.\n */\nexport function split(value) {\n let result = value.trim();\n result = result\n .replace(SPLIT_LOWER_UPPER_RE, SPLIT_REPLACE_VALUE)\n .replace(SPLIT_UPPER_UPPER_RE, SPLIT_REPLACE_VALUE);\n result = result.replace(DEFAULT_STRIP_REGEXP, \"\\0\");\n let start = 0;\n let end = result.length;\n // Trim the delimiter from around the output string.\n while (result.charAt(start) === \"\\0\")\n start++;\n if (start === end)\n return [];\n while (result.charAt(end - 1) === \"\\0\")\n end--;\n return result.slice(start, end).split(/\\0/g);\n}\n/**\n * Split the input string into an array of words, separating numbers.\n */\nexport function splitSeparateNumbers(value) {\n const words = split(value);\n for (let i = 0; i < words.length; i++) {\n const word = words[i];\n const match = SPLIT_SEPARATE_NUMBER_RE.exec(word);\n if (match) {\n const offset = match.index + (match[1] ?? match[2]).length;\n words.splice(i, 1, word.slice(0, offset), word.slice(offset));\n }\n }\n return words;\n}\n/**\n * Convert a string to space separated lower case (`foo bar`).\n */\nexport function noCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n return (prefix +\n words.map(lowerFactory(options?.locale)).join(options?.delimiter ?? \" \") +\n suffix);\n}\n/**\n * Convert a string to camel case (`fooBar`).\n */\nexport function camelCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n const lower = lowerFactory(options?.locale);\n const upper = upperFactory(options?.locale);\n const transform = options?.mergeAmbiguousCharacters\n ? capitalCaseTransformFactory(lower, upper)\n : pascalCaseTransformFactory(lower, upper);\n return (prefix +\n words\n .map((word, index) => {\n if (index === 0)\n return lower(word);\n return transform(word, index);\n })\n .join(options?.delimiter ?? \"\") +\n suffix);\n}\n/**\n * Convert a string to pascal case (`FooBar`).\n */\nexport function pascalCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n const lower = lowerFactory(options?.locale);\n const upper = upperFactory(options?.locale);\n const transform = options?.mergeAmbiguousCharacters\n ? capitalCaseTransformFactory(lower, upper)\n : pascalCaseTransformFactory(lower, upper);\n return prefix + words.map(transform).join(options?.delimiter ?? \"\") + suffix;\n}\n/**\n * Convert a string to pascal snake case (`Foo_Bar`).\n */\nexport function pascalSnakeCase(input, options) {\n return capitalCase(input, { delimiter: \"_\", ...options });\n}\n/**\n * Convert a string to capital case (`Foo Bar`).\n */\nexport function capitalCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n const lower = lowerFactory(options?.locale);\n const upper = upperFactory(options?.locale);\n return (prefix +\n words\n .map(capitalCaseTransformFactory(lower, upper))\n .join(options?.delimiter ?? \" \") +\n suffix);\n}\n/**\n * Convert a string to constant case (`FOO_BAR`).\n */\nexport function constantCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n return (prefix +\n words.map(upperFactory(options?.locale)).join(options?.delimiter ?? \"_\") +\n suffix);\n}\n/**\n * Convert a string to dot case (`foo.bar`).\n */\nexport function dotCase(input, options) {\n return noCase(input, { delimiter: \".\", ...options });\n}\n/**\n * Convert a string to kebab case (`foo-bar`).\n */\nexport function kebabCase(input, options) {\n return noCase(input, { delimiter: \"-\", ...options });\n}\n/**\n * Convert a string to path case (`foo/bar`).\n */\nexport function pathCase(input, options) {\n return noCase(input, { delimiter: \"/\", ...options });\n}\n/**\n * Convert a string to path case (`Foo bar`).\n */\nexport function sentenceCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n const lower = lowerFactory(options?.locale);\n const upper = upperFactory(options?.locale);\n const transform = capitalCaseTransformFactory(lower, upper);\n return (prefix +\n words\n .map((word, index) => {\n if (index === 0)\n return transform(word);\n return lower(word);\n })\n .join(options?.delimiter ?? \" \") +\n suffix);\n}\n/**\n * Convert a string to snake case (`foo_bar`).\n */\nexport function snakeCase(input, options) {\n return noCase(input, { delimiter: \"_\", ...options });\n}\n/**\n * Convert a string to header case (`Foo-Bar`).\n */\nexport function trainCase(input, options) {\n return capitalCase(input, { delimiter: \"-\", ...options });\n}\nfunction lowerFactory(locale) {\n return locale === false\n ? (input) => input.toLowerCase()\n : (input) => input.toLocaleLowerCase(locale);\n}\nfunction upperFactory(locale) {\n return locale === false\n ? (input) => input.toUpperCase()\n : (input) => input.toLocaleUpperCase(locale);\n}\nfunction capitalCaseTransformFactory(lower, upper) {\n return (word) => `${upper(word[0])}${lower(word.slice(1))}`;\n}\nfunction pascalCaseTransformFactory(lower, upper) {\n return (word, index) => {\n const char0 = word[0];\n const initial = index > 0 && char0 >= \"0\" && char0 <= \"9\" ? \"_\" + char0 : upper(char0);\n return initial + lower(word.slice(1));\n };\n}\nfunction splitPrefixSuffix(input, options = {}) {\n const splitFn = options.split ?? (options.separateNumbers ? splitSeparateNumbers : split);\n const prefixCharacters = options.prefixCharacters ?? DEFAULT_PREFIX_SUFFIX_CHARACTERS;\n const suffixCharacters = options.suffixCharacters ?? DEFAULT_PREFIX_SUFFIX_CHARACTERS;\n let prefixIndex = 0;\n let suffixIndex = input.length;\n while (prefixIndex < input.length) {\n const char = input.charAt(prefixIndex);\n if (!prefixCharacters.includes(char))\n break;\n prefixIndex++;\n }\n while (suffixIndex > prefixIndex) {\n const index = suffixIndex - 1;\n const char = input.charAt(index);\n if (!suffixCharacters.includes(char))\n break;\n suffixIndex = index;\n }\n return [\n input.slice(0, prefixIndex),\n splitFn(input.slice(prefixIndex, suffixIndex)),\n input.slice(suffixIndex),\n ];\n}\n//# sourceMappingURL=index.js.map","'use strict'\n\n// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst SEMVER_SPEC_VERSION = '2.0.0'\n\nconst MAX_LENGTH = 256\nconst MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n/* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nconst MAX_SAFE_COMPONENT_LENGTH = 16\n\n// Max safe length for a build identifier. The max length minus 6 characters for\n// the shortest version with a build 0.0.0+BUILD.\nconst MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6\n\nconst RELEASE_TYPES = [\n 'major',\n 'premajor',\n 'minor',\n 'preminor',\n 'patch',\n 'prepatch',\n 'prerelease',\n]\n\nmodule.exports = {\n MAX_LENGTH,\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_SAFE_INTEGER,\n RELEASE_TYPES,\n SEMVER_SPEC_VERSION,\n FLAG_INCLUDE_PRERELEASE: 0b001,\n FLAG_LOOSE: 0b010,\n}\n","'use strict'\n\nconst debug = (\n typeof process === 'object' &&\n process.env &&\n process.env.NODE_DEBUG &&\n /\\bsemver\\b/i.test(process.env.NODE_DEBUG)\n) ? (...args) => console.error('SEMVER', ...args)\n : () => {}\n\nmodule.exports = debug\n","'use strict'\n\nconst {\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_LENGTH,\n} = require('./constants')\nconst debug = require('./debug')\nexports = module.exports = {}\n\n// The actual regexps go on exports.re\nconst re = exports.re = []\nconst safeRe = exports.safeRe = []\nconst src = exports.src = []\nconst safeSrc = exports.safeSrc = []\nconst t = exports.t = {}\nlet R = 0\n\nconst LETTERDASHNUMBER = '[a-zA-Z0-9-]'\n\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nconst safeRegexReplacements = [\n ['\\\\s', 1],\n ['\\\\d', MAX_LENGTH],\n [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],\n]\n\nconst makeSafeRegex = (value) => {\n for (const [token, max] of safeRegexReplacements) {\n value = value\n .split(`${token}*`).join(`${token}{0,${max}}`)\n .split(`${token}+`).join(`${token}{1,${max}}`)\n }\n return value\n}\n\nconst createToken = (name, value, isGlobal) => {\n const safe = makeSafeRegex(value)\n const index = R++\n debug(name, index, value)\n t[name] = index\n src[index] = value\n safeSrc[index] = safe\n re[index] = new RegExp(value, isGlobal ? 'g' : undefined)\n safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined)\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ncreateToken('NUMERICIDENTIFIER', '0|[1-9]\\\\d*')\ncreateToken('NUMERICIDENTIFIERLOOSE', '\\\\d+')\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ncreateToken('NONNUMERICIDENTIFIER', `\\\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`)\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ncreateToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n// Non-numeric identifiers include numeric identifiers but can be longer.\n// Therefore non-numeric identifiers must go first.\n\ncreateToken('PRERELEASEIDENTIFIER', `(?:${src[t.NONNUMERICIDENTIFIER]\n}|${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NONNUMERICIDENTIFIER]\n}|${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ncreateToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`)\n\ncreateToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`)\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ncreateToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`)\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ncreateToken('BUILD', `(?:\\\\+(${src[t.BUILDIDENTIFIER]\n}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`)\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ncreateToken('FULLPLAIN', `v?${src[t.MAINVERSION]\n}${src[t.PRERELEASE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('FULL', `^${src[t.FULLPLAIN]}$`)\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken('LOOSEPLAIN', `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]\n}${src[t.PRERELEASELOOSE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)\n\ncreateToken('GTLT', '((?:<|>)?=?)')\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`)\ncreateToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`)\n\ncreateToken('XRANGEPLAIN', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:${src[t.PRERELEASE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGEPLAINLOOSE', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:${src[t.PRERELEASELOOSE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`)\ncreateToken('XRANGELOOSE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken('COERCEPLAIN', `${'(^|[^\\\\d])' +\n '(\\\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`)\ncreateToken('COERCE', `${src[t.COERCEPLAIN]}(?:$|[^\\\\d])`)\ncreateToken('COERCEFULL', src[t.COERCEPLAIN] +\n `(?:${src[t.PRERELEASE]})?` +\n `(?:${src[t.BUILD]})?` +\n `(?:$|[^\\\\d])`)\ncreateToken('COERCERTL', src[t.COERCE], true)\ncreateToken('COERCERTLFULL', src[t.COERCEFULL], true)\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken('LONETILDE', '(?:~>?)')\n\ncreateToken('TILDETRIM', `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true)\nexports.tildeTrimReplace = '$1~'\n\ncreateToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken('LONECARET', '(?:\\\\^)')\n\ncreateToken('CARETTRIM', `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true)\nexports.caretTrimReplace = '$1^'\n\ncreateToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`)\ncreateToken('COMPARATOR', `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`)\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken('COMPARATORTRIM', `(\\\\s*)${src[t.GTLT]\n}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true)\nexports.comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken('HYPHENRANGE', `^\\\\s*(${src[t.XRANGEPLAIN]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAIN]})` +\n `\\\\s*$`)\n\ncreateToken('HYPHENRANGELOOSE', `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s*$`)\n\n// Star ranges basically just allow anything at all.\ncreateToken('STAR', '(<|>)?=?\\\\s*\\\\*')\n// >=0.0.0 is like a star\ncreateToken('GTE0', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0\\\\s*$')\ncreateToken('GTE0PRE', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0-0\\\\s*$')\n","'use strict'\n\n// parse out just the options we care about\nconst looseOption = Object.freeze({ loose: true })\nconst emptyOpts = Object.freeze({ })\nconst parseOptions = options => {\n if (!options) {\n return emptyOpts\n }\n\n if (typeof options !== 'object') {\n return looseOption\n }\n\n return options\n}\nmodule.exports = parseOptions\n","'use strict'\n\nconst numeric = /^[0-9]+$/\nconst compareIdentifiers = (a, b) => {\n if (typeof a === 'number' && typeof b === 'number') {\n return a === b ? 0 : a < b ? -1 : 1\n }\n\n const anum = numeric.test(a)\n const bnum = numeric.test(b)\n\n if (anum && bnum) {\n a = +a\n b = +b\n }\n\n return a === b ? 0\n : (anum && !bnum) ? -1\n : (bnum && !anum) ? 1\n : a < b ? -1\n : 1\n}\n\nconst rcompareIdentifiers = (a, b) => compareIdentifiers(b, a)\n\nmodule.exports = {\n compareIdentifiers,\n rcompareIdentifiers,\n}\n","'use strict'\n\nconst debug = require('../internal/debug')\nconst { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst parseOptions = require('../internal/parse-options')\nconst { compareIdentifiers } = require('../internal/identifiers')\nclass SemVer {\n constructor (version, options) {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n if (version.loose === !!options.loose &&\n version.includePrerelease === !!options.includePrerelease) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof version}\".`)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError(\n `version is longer than ${MAX_LENGTH} characters`\n )\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease\n\n const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])\n\n if (!m) {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map((id) => {\n if (/^[0-9]+$/.test(id)) {\n const num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n }\n\n format () {\n this.version = `${this.major}.${this.minor}.${this.patch}`\n if (this.prerelease.length) {\n this.version += `-${this.prerelease.join('.')}`\n }\n return this.version\n }\n\n toString () {\n return this.version\n }\n\n compare (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n if (typeof other === 'string' && other === this.version) {\n return 0\n }\n other = new SemVer(other, this.options)\n }\n\n if (other.version === this.version) {\n return 0\n }\n\n return this.compareMain(other) || this.comparePre(other)\n }\n\n compareMain (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n if (this.major < other.major) {\n return -1\n }\n if (this.major > other.major) {\n return 1\n }\n if (this.minor < other.minor) {\n return -1\n }\n if (this.minor > other.minor) {\n return 1\n }\n if (this.patch < other.patch) {\n return -1\n }\n if (this.patch > other.patch) {\n return 1\n }\n return 0\n }\n\n comparePre (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n let i = 0\n do {\n const a = this.prerelease[i]\n const b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n compareBuild (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n let i = 0\n do {\n const a = this.build[i]\n const b = other.build[i]\n debug('build compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc (release, identifier, identifierBase) {\n if (release.startsWith('pre')) {\n if (!identifier && identifierBase === false) {\n throw new Error('invalid increment argument: identifier is empty')\n }\n // Avoid an invalid semver results\n if (identifier) {\n const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE])\n if (!match || match[1] !== identifier) {\n throw new Error(`invalid identifier: ${identifier}`)\n }\n }\n }\n\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier, identifierBase)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier, identifierBase)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier, identifierBase)\n this.inc('pre', identifier, identifierBase)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier, identifierBase)\n }\n this.inc('pre', identifier, identifierBase)\n break\n case 'release':\n if (this.prerelease.length === 0) {\n throw new Error(`version ${this.raw} is not a prerelease`)\n }\n this.prerelease.length = 0\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (\n this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0\n ) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case 'pre': {\n const base = Number(identifierBase) ? 1 : 0\n\n if (this.prerelease.length === 0) {\n this.prerelease = [base]\n } else {\n let i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n if (identifier === this.prerelease.join('.') && identifierBase === false) {\n throw new Error('invalid increment argument: identifier already exists')\n }\n this.prerelease.push(base)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n let prerelease = [identifier, base]\n if (identifierBase === false) {\n prerelease = [identifier]\n }\n if (compareIdentifiers(this.prerelease[0], identifier) === 0) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = prerelease\n }\n } else {\n this.prerelease = prerelease\n }\n }\n break\n }\n default:\n throw new Error(`invalid increment argument: ${release}`)\n }\n this.raw = this.format()\n if (this.build.length) {\n this.raw += `+${this.build.join('.')}`\n }\n return this\n }\n}\n\nmodule.exports = SemVer\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst parse = (version, options, throwErrors = false) => {\n if (version instanceof SemVer) {\n return version\n }\n try {\n return new SemVer(version, options)\n } catch (er) {\n if (!throwErrors) {\n return null\n }\n throw er\n }\n}\n\nmodule.exports = parse\n","'use strict'\n\nconst parse = require('./parse')\nconst valid = (version, options) => {\n const v = parse(version, options)\n return v ? v.version : null\n}\nmodule.exports = valid\n","'use strict'\n\nconst parse = require('./parse')\nconst clean = (version, options) => {\n const s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\nmodule.exports = clean\n","'use strict'\n\nconst SemVer = require('../classes/semver')\n\nconst inc = (version, release, options, identifier, identifierBase) => {\n if (typeof (options) === 'string') {\n identifierBase = identifier\n identifier = options\n options = undefined\n }\n\n try {\n return new SemVer(\n version instanceof SemVer ? version.version : version,\n options\n ).inc(release, identifier, identifierBase).version\n } catch (er) {\n return null\n }\n}\nmodule.exports = inc\n","'use strict'\n\nconst parse = require('./parse.js')\n\nconst diff = (version1, version2) => {\n const v1 = parse(version1, null, true)\n const v2 = parse(version2, null, true)\n const comparison = v1.compare(v2)\n\n if (comparison === 0) {\n return null\n }\n\n const v1Higher = comparison > 0\n const highVersion = v1Higher ? v1 : v2\n const lowVersion = v1Higher ? v2 : v1\n const highHasPre = !!highVersion.prerelease.length\n const lowHasPre = !!lowVersion.prerelease.length\n\n if (lowHasPre && !highHasPre) {\n // Going from prerelease -> no prerelease requires some special casing\n\n // If the low version has only a major, then it will always be a major\n // Some examples:\n // 1.0.0-1 -> 1.0.0\n // 1.0.0-1 -> 1.1.1\n // 1.0.0-1 -> 2.0.0\n if (!lowVersion.patch && !lowVersion.minor) {\n return 'major'\n }\n\n // If the main part has no difference\n if (lowVersion.compareMain(highVersion) === 0) {\n if (lowVersion.minor && !lowVersion.patch) {\n return 'minor'\n }\n return 'patch'\n }\n }\n\n // add the `pre` prefix if we are going to a prerelease version\n const prefix = highHasPre ? 'pre' : ''\n\n if (v1.major !== v2.major) {\n return prefix + 'major'\n }\n\n if (v1.minor !== v2.minor) {\n return prefix + 'minor'\n }\n\n if (v1.patch !== v2.patch) {\n return prefix + 'patch'\n }\n\n // high and low are prereleases\n return 'prerelease'\n}\n\nmodule.exports = diff\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst major = (a, loose) => new SemVer(a, loose).major\nmodule.exports = major\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst minor = (a, loose) => new SemVer(a, loose).minor\nmodule.exports = minor\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst patch = (a, loose) => new SemVer(a, loose).patch\nmodule.exports = patch\n","'use strict'\n\nconst parse = require('./parse')\nconst prerelease = (version, options) => {\n const parsed = parse(version, options)\n return (parsed && parsed.prerelease.length) ? parsed.prerelease : null\n}\nmodule.exports = prerelease\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst compare = (a, b, loose) =>\n new SemVer(a, loose).compare(new SemVer(b, loose))\n\nmodule.exports = compare\n","'use strict'\n\nconst compare = require('./compare')\nconst rcompare = (a, b, loose) => compare(b, a, loose)\nmodule.exports = rcompare\n","'use strict'\n\nconst compare = require('./compare')\nconst compareLoose = (a, b) => compare(a, b, true)\nmodule.exports = compareLoose\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst compareBuild = (a, b, loose) => {\n const versionA = new SemVer(a, loose)\n const versionB = new SemVer(b, loose)\n return versionA.compare(versionB) || versionA.compareBuild(versionB)\n}\nmodule.exports = compareBuild\n","'use strict'\n\nconst compareBuild = require('./compare-build')\nconst sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))\nmodule.exports = sort\n","'use strict'\n\nconst compareBuild = require('./compare-build')\nconst rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose))\nmodule.exports = rsort\n","'use strict'\n\nconst compare = require('./compare')\nconst gt = (a, b, loose) => compare(a, b, loose) > 0\nmodule.exports = gt\n","'use strict'\n\nconst compare = require('./compare')\nconst lt = (a, b, loose) => compare(a, b, loose) < 0\nmodule.exports = lt\n","'use strict'\n\nconst compare = require('./compare')\nconst eq = (a, b, loose) => compare(a, b, loose) === 0\nmodule.exports = eq\n","'use strict'\n\nconst compare = require('./compare')\nconst neq = (a, b, loose) => compare(a, b, loose) !== 0\nmodule.exports = neq\n","'use strict'\n\nconst compare = require('./compare')\nconst gte = (a, b, loose) => compare(a, b, loose) >= 0\nmodule.exports = gte\n","'use strict'\n\nconst compare = require('./compare')\nconst lte = (a, b, loose) => compare(a, b, loose) <= 0\nmodule.exports = lte\n","'use strict'\n\nconst eq = require('./eq')\nconst neq = require('./neq')\nconst gt = require('./gt')\nconst gte = require('./gte')\nconst lt = require('./lt')\nconst lte = require('./lte')\n\nconst cmp = (a, op, b, loose) => {\n switch (op) {\n case '===':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a === b\n\n case '!==':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError(`Invalid operator: ${op}`)\n }\n}\nmodule.exports = cmp\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst parse = require('./parse')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst coerce = (version, options) => {\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version === 'number') {\n version = String(version)\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n options = options || {}\n\n let match = null\n if (!options.rtl) {\n match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE])\n } else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n // With includePrerelease option set, '1.2.3.4-rc' wants to coerce '2.3.4-rc', not '2.3.4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL]\n let next\n while ((next = coerceRtlRegex.exec(version)) &&\n (!match || match.index + match[0].length !== version.length)\n ) {\n if (!match ||\n next.index + next[0].length !== match.index + match[0].length) {\n match = next\n }\n coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length\n }\n // leave it in a clean state\n coerceRtlRegex.lastIndex = -1\n }\n\n if (match === null) {\n return null\n }\n\n const major = match[2]\n const minor = match[3] || '0'\n const patch = match[4] || '0'\n const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : ''\n const build = options.includePrerelease && match[6] ? `+${match[6]}` : ''\n\n return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options)\n}\nmodule.exports = coerce\n","'use strict'\n\nclass LRUCache {\n constructor () {\n this.max = 1000\n this.map = new Map()\n }\n\n get (key) {\n const value = this.map.get(key)\n if (value === undefined) {\n return undefined\n } else {\n // Remove the key from the map and add it to the end\n this.map.delete(key)\n this.map.set(key, value)\n return value\n }\n }\n\n delete (key) {\n return this.map.delete(key)\n }\n\n set (key, value) {\n const deleted = this.delete(key)\n\n if (!deleted && value !== undefined) {\n // If cache is full, delete the least recently used item\n if (this.map.size >= this.max) {\n const firstKey = this.map.keys().next().value\n this.delete(firstKey)\n }\n\n this.map.set(key, value)\n }\n\n return this\n }\n}\n\nmodule.exports = LRUCache\n","'use strict'\n\nconst SPACE_CHARACTERS = /\\s+/g\n\n// hoisted class for cyclic dependency\nclass Range {\n constructor (range, options) {\n options = parseOptions(options)\n\n if (range instanceof Range) {\n if (\n range.loose === !!options.loose &&\n range.includePrerelease === !!options.includePrerelease\n ) {\n return range\n } else {\n return new Range(range.raw, options)\n }\n }\n\n if (range instanceof Comparator) {\n // just put it in the set and return\n this.raw = range.value\n this.set = [[range]]\n this.formatted = undefined\n return this\n }\n\n this.options = options\n this.loose = !!options.loose\n this.includePrerelease = !!options.includePrerelease\n\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range.trim().replace(SPACE_CHARACTERS, ' ')\n\n // First, split on ||\n this.set = this.raw\n .split('||')\n // map the range to a 2d array of comparators\n .map(r => this.parseRange(r.trim()))\n // throw out any comparator lists that are empty\n // this generally means that it was not a valid range, which is allowed\n // in loose mode, but will still throw if the WHOLE range is invalid.\n .filter(c => c.length)\n\n if (!this.set.length) {\n throw new TypeError(`Invalid SemVer Range: ${this.raw}`)\n }\n\n // if we have any that are not the null set, throw out null sets.\n if (this.set.length > 1) {\n // keep the first one, in case they're all null sets\n const first = this.set[0]\n this.set = this.set.filter(c => !isNullSet(c[0]))\n if (this.set.length === 0) {\n this.set = [first]\n } else if (this.set.length > 1) {\n // if we have any that are *, then the range is just *\n for (const c of this.set) {\n if (c.length === 1 && isAny(c[0])) {\n this.set = [c]\n break\n }\n }\n }\n }\n\n this.formatted = undefined\n }\n\n get range () {\n if (this.formatted === undefined) {\n this.formatted = ''\n for (let i = 0; i < this.set.length; i++) {\n if (i > 0) {\n this.formatted += '||'\n }\n const comps = this.set[i]\n for (let k = 0; k < comps.length; k++) {\n if (k > 0) {\n this.formatted += ' '\n }\n this.formatted += comps[k].toString().trim()\n }\n }\n }\n return this.formatted\n }\n\n format () {\n return this.range\n }\n\n toString () {\n return this.range\n }\n\n parseRange (range) {\n // memoize range parsing for performance.\n // this is a very hot path, and fully deterministic.\n const memoOpts =\n (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) |\n (this.options.loose && FLAG_LOOSE)\n const memoKey = memoOpts + ':' + range\n const cached = cache.get(memoKey)\n if (cached) {\n return cached\n }\n\n const loose = this.options.loose\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]\n range = range.replace(hr, hyphenReplace(this.options.includePrerelease))\n debug('hyphen replace', range)\n\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)\n debug('comparator trim', range)\n\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(re[t.TILDETRIM], tildeTrimReplace)\n debug('tilde trim', range)\n\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(re[t.CARETTRIM], caretTrimReplace)\n debug('caret trim', range)\n\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n\n let rangeList = range\n .split(' ')\n .map(comp => parseComparator(comp, this.options))\n .join(' ')\n .split(/\\s+/)\n // >=0.0.0 is equivalent to *\n .map(comp => replaceGTE0(comp, this.options))\n\n if (loose) {\n // in loose mode, throw out any that are not valid comparators\n rangeList = rangeList.filter(comp => {\n debug('loose invalid filter', comp, this.options)\n return !!comp.match(re[t.COMPARATORLOOSE])\n })\n }\n debug('range list', rangeList)\n\n // if any comparators are the null set, then replace with JUST null set\n // if more than one comparator, remove any * comparators\n // also, don't include the same comparator more than once\n const rangeMap = new Map()\n const comparators = rangeList.map(comp => new Comparator(comp, this.options))\n for (const comp of comparators) {\n if (isNullSet(comp)) {\n return [comp]\n }\n rangeMap.set(comp.value, comp)\n }\n if (rangeMap.size > 1 && rangeMap.has('')) {\n rangeMap.delete('')\n }\n\n const result = [...rangeMap.values()]\n cache.set(memoKey, result)\n return result\n }\n\n intersects (range, options) {\n if (!(range instanceof Range)) {\n throw new TypeError('a Range is required')\n }\n\n return this.set.some((thisComparators) => {\n return (\n isSatisfiable(thisComparators, options) &&\n range.set.some((rangeComparators) => {\n return (\n isSatisfiable(rangeComparators, options) &&\n thisComparators.every((thisComparator) => {\n return rangeComparators.every((rangeComparator) => {\n return thisComparator.intersects(rangeComparator, options)\n })\n })\n )\n })\n )\n })\n }\n\n // if ANY of the sets match ALL of its comparators, then pass\n test (version) {\n if (!version) {\n return false\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n for (let i = 0; i < this.set.length; i++) {\n if (testSet(this.set[i], version, this.options)) {\n return true\n }\n }\n return false\n }\n}\n\nmodule.exports = Range\n\nconst LRU = require('../internal/lrucache')\nconst cache = new LRU()\n\nconst parseOptions = require('../internal/parse-options')\nconst Comparator = require('./comparator')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst {\n safeRe: re,\n t,\n comparatorTrimReplace,\n tildeTrimReplace,\n caretTrimReplace,\n} = require('../internal/re')\nconst { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require('../internal/constants')\n\nconst isNullSet = c => c.value === '<0.0.0-0'\nconst isAny = c => c.value === ''\n\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nconst isSatisfiable = (comparators, options) => {\n let result = true\n const remainingComparators = comparators.slice()\n let testComparator = remainingComparators.pop()\n\n while (result && remainingComparators.length) {\n result = remainingComparators.every((otherComparator) => {\n return testComparator.intersects(otherComparator, options)\n })\n\n testComparator = remainingComparators.pop()\n }\n\n return result\n}\n\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nconst parseComparator = (comp, options) => {\n comp = comp.replace(re[t.BUILD], '')\n debug('comp', comp, options)\n comp = replaceCarets(comp, options)\n debug('caret', comp)\n comp = replaceTildes(comp, options)\n debug('tildes', comp)\n comp = replaceXRanges(comp, options)\n debug('xrange', comp)\n comp = replaceStars(comp, options)\n debug('stars', comp)\n return comp\n}\n\nconst isX = id => !id || id.toLowerCase() === 'x' || id === '*'\n\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0\n// ~0.0.1 --> >=0.0.1 <0.1.0-0\nconst replaceTildes = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceTilde(c, options))\n .join(' ')\n}\n\nconst replaceTilde = (comp, options) => {\n const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('tilde', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0 <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n // ~1.2 == >=1.2.0 <1.3.0-0\n ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`\n } else if (pr) {\n debug('replaceTilde pr', pr)\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n } else {\n // ~1.2.3 == >=1.2.3 <1.3.0-0\n ret = `>=${M}.${m}.${p\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('tilde return', ret)\n return ret\n })\n}\n\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0\n// ^1.2.3 --> >=1.2.3 <2.0.0-0\n// ^1.2.0 --> >=1.2.0 <2.0.0-0\n// ^0.0.1 --> >=0.0.1 <0.0.2-0\n// ^0.1.0 --> >=0.1.0 <0.2.0-0\nconst replaceCarets = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceCaret(c, options))\n .join(' ')\n}\n\nconst replaceCaret = (comp, options) => {\n debug('caret', comp, options)\n const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]\n const z = options.includePrerelease ? '-0' : ''\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('caret', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n if (M === '0') {\n ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`\n } else {\n ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`\n }\n } else if (pr) {\n debug('replaceCaret pr', pr)\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${+M + 1}.0.0-0`\n }\n } else {\n debug('no pr')\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p\n } <${+M + 1}.0.0-0`\n }\n }\n\n debug('caret return', ret)\n return ret\n })\n}\n\nconst replaceXRanges = (comp, options) => {\n debug('replaceXRanges', comp, options)\n return comp\n .split(/\\s+/)\n .map((c) => replaceXRange(c, options))\n .join(' ')\n}\n\nconst replaceXRange = (comp, options) => {\n comp = comp.trim()\n const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]\n return comp.replace(r, (ret, gtlt, M, m, p, pr) => {\n debug('xRange', comp, ret, gtlt, M, m, p, pr)\n const xM = isX(M)\n const xm = xM || isX(m)\n const xp = xm || isX(p)\n const anyX = xp\n\n if (gtlt === '=' && anyX) {\n gtlt = ''\n }\n\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? '-0' : ''\n\n if (xM) {\n if (gtlt === '>' || gtlt === '<') {\n // nothing is allowed\n ret = '<0.0.0-0'\n } else {\n // nothing is forbidden\n ret = '*'\n }\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) {\n m = 0\n }\n p = 0\n\n if (gtlt === '>') {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n gtlt = '>='\n if (xm) {\n M = +M + 1\n m = 0\n p = 0\n } else {\n m = +m + 1\n p = 0\n }\n } else if (gtlt === '<=') {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = '<'\n if (xm) {\n M = +M + 1\n } else {\n m = +m + 1\n }\n }\n\n if (gtlt === '<') {\n pr = '-0'\n }\n\n ret = `${gtlt + M}.${m}.${p}${pr}`\n } else if (xm) {\n ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`\n } else if (xp) {\n ret = `>=${M}.${m}.0${pr\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('xRange return', ret)\n\n return ret\n })\n}\n\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nconst replaceStars = (comp, options) => {\n debug('replaceStars', comp, options)\n // Looseness is ignored here. star is always as loose as it gets!\n return comp\n .trim()\n .replace(re[t.STAR], '')\n}\n\nconst replaceGTE0 = (comp, options) => {\n debug('replaceGTE0', comp, options)\n return comp\n .trim()\n .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')\n}\n\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0-0\n// TODO build?\nconst hyphenReplace = incPr => ($0,\n from, fM, fm, fp, fpr, fb,\n to, tM, tm, tp, tpr) => {\n if (isX(fM)) {\n from = ''\n } else if (isX(fm)) {\n from = `>=${fM}.0.0${incPr ? '-0' : ''}`\n } else if (isX(fp)) {\n from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`\n } else if (fpr) {\n from = `>=${from}`\n } else {\n from = `>=${from}${incPr ? '-0' : ''}`\n }\n\n if (isX(tM)) {\n to = ''\n } else if (isX(tm)) {\n to = `<${+tM + 1}.0.0-0`\n } else if (isX(tp)) {\n to = `<${tM}.${+tm + 1}.0-0`\n } else if (tpr) {\n to = `<=${tM}.${tm}.${tp}-${tpr}`\n } else if (incPr) {\n to = `<${tM}.${tm}.${+tp + 1}-0`\n } else {\n to = `<=${to}`\n }\n\n return `${from} ${to}`.trim()\n}\n\nconst testSet = (set, version, options) => {\n for (let i = 0; i < set.length; i++) {\n if (!set[i].test(version)) {\n return false\n }\n }\n\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for (let i = 0; i < set.length; i++) {\n debug(set[i].semver)\n if (set[i].semver === Comparator.ANY) {\n continue\n }\n\n if (set[i].semver.prerelease.length > 0) {\n const allowed = set[i].semver\n if (allowed.major === version.major &&\n allowed.minor === version.minor &&\n allowed.patch === version.patch) {\n return true\n }\n }\n }\n\n // Version has a -pre, but it's not one of the ones we like.\n return false\n }\n\n return true\n}\n","'use strict'\n\nconst ANY = Symbol('SemVer ANY')\n// hoisted class for cyclic dependency\nclass Comparator {\n static get ANY () {\n return ANY\n }\n\n constructor (comp, options) {\n options = parseOptions(options)\n\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) {\n return comp\n } else {\n comp = comp.value\n }\n }\n\n comp = comp.trim().split(/\\s+/).join(' ')\n debug('comparator', comp, options)\n this.options = options\n this.loose = !!options.loose\n this.parse(comp)\n\n if (this.semver === ANY) {\n this.value = ''\n } else {\n this.value = this.operator + this.semver.version\n }\n\n debug('comp', this)\n }\n\n parse (comp) {\n const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]\n const m = comp.match(r)\n\n if (!m) {\n throw new TypeError(`Invalid comparator: ${comp}`)\n }\n\n this.operator = m[1] !== undefined ? m[1] : ''\n if (this.operator === '=') {\n this.operator = ''\n }\n\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) {\n this.semver = ANY\n } else {\n this.semver = new SemVer(m[2], this.options.loose)\n }\n }\n\n toString () {\n return this.value\n }\n\n test (version) {\n debug('Comparator.test', version, this.options.loose)\n\n if (this.semver === ANY || version === ANY) {\n return true\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n return cmp(version, this.operator, this.semver, this.options)\n }\n\n intersects (comp, options) {\n if (!(comp instanceof Comparator)) {\n throw new TypeError('a Comparator is required')\n }\n\n if (this.operator === '') {\n if (this.value === '') {\n return true\n }\n return new Range(comp.value, options).test(this.value)\n } else if (comp.operator === '') {\n if (comp.value === '') {\n return true\n }\n return new Range(this.value, options).test(comp.semver)\n }\n\n options = parseOptions(options)\n\n // Special cases where nothing can possibly be lower\n if (options.includePrerelease &&\n (this.value === '<0.0.0-0' || comp.value === '<0.0.0-0')) {\n return false\n }\n if (!options.includePrerelease &&\n (this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) {\n return false\n }\n\n // Same direction increasing (> or >=)\n if (this.operator.startsWith('>') && comp.operator.startsWith('>')) {\n return true\n }\n // Same direction decreasing (< or <=)\n if (this.operator.startsWith('<') && comp.operator.startsWith('<')) {\n return true\n }\n // same SemVer and both sides are inclusive (<= or >=)\n if (\n (this.semver.version === comp.semver.version) &&\n this.operator.includes('=') && comp.operator.includes('=')) {\n return true\n }\n // opposite directions less than\n if (cmp(this.semver, '<', comp.semver, options) &&\n this.operator.startsWith('>') && comp.operator.startsWith('<')) {\n return true\n }\n // opposite directions greater than\n if (cmp(this.semver, '>', comp.semver, options) &&\n this.operator.startsWith('<') && comp.operator.startsWith('>')) {\n return true\n }\n return false\n }\n}\n\nmodule.exports = Comparator\n\nconst parseOptions = require('../internal/parse-options')\nconst { safeRe: re, t } = require('../internal/re')\nconst cmp = require('../functions/cmp')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst Range = require('./range')\n","'use strict'\n\nconst Range = require('../classes/range')\nconst satisfies = (version, range, options) => {\n try {\n range = new Range(range, options)\n } catch (er) {\n return false\n }\n return range.test(version)\n}\nmodule.exports = satisfies\n","'use strict'\n\nconst Range = require('../classes/range')\n\n// Mostly just for testing and legacy API reasons\nconst toComparators = (range, options) =>\n new Range(range, options).set\n .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))\n\nmodule.exports = toComparators\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\n\nconst maxSatisfying = (versions, range, options) => {\n let max = null\n let maxSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v\n maxSV = new SemVer(max, options)\n }\n }\n })\n return max\n}\nmodule.exports = maxSatisfying\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst minSatisfying = (versions, range, options) => {\n let min = null\n let minSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v\n minSV = new SemVer(min, options)\n }\n }\n })\n return min\n}\nmodule.exports = minSatisfying\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst gt = require('../functions/gt')\n\nconst minVersion = (range, loose) => {\n range = new Range(range, loose)\n\n let minver = new SemVer('0.0.0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = new SemVer('0.0.0-0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = null\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let setMin = null\n comparators.forEach((comparator) => {\n // Clone to avoid manipulating the comparator's semver object.\n const compver = new SemVer(comparator.semver.version)\n switch (comparator.operator) {\n case '>':\n if (compver.prerelease.length === 0) {\n compver.patch++\n } else {\n compver.prerelease.push(0)\n }\n compver.raw = compver.format()\n /* fallthrough */\n case '':\n case '>=':\n if (!setMin || gt(compver, setMin)) {\n setMin = compver\n }\n break\n case '<':\n case '<=':\n /* Ignore maximum versions */\n break\n /* istanbul ignore next */\n default:\n throw new Error(`Unexpected operation: ${comparator.operator}`)\n }\n })\n if (setMin && (!minver || gt(minver, setMin))) {\n minver = setMin\n }\n }\n\n if (minver && range.test(minver)) {\n return minver\n }\n\n return null\n}\nmodule.exports = minVersion\n","'use strict'\n\nconst Range = require('../classes/range')\nconst validRange = (range, options) => {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || '*'\n } catch (er) {\n return null\n }\n}\nmodule.exports = validRange\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst Comparator = require('../classes/comparator')\nconst { ANY } = Comparator\nconst Range = require('../classes/range')\nconst satisfies = require('../functions/satisfies')\nconst gt = require('../functions/gt')\nconst lt = require('../functions/lt')\nconst lte = require('../functions/lte')\nconst gte = require('../functions/gte')\n\nconst outside = (version, range, hilo, options) => {\n version = new SemVer(version, options)\n range = new Range(range, options)\n\n let gtfn, ltefn, ltfn, comp, ecomp\n switch (hilo) {\n case '>':\n gtfn = gt\n ltefn = lte\n ltfn = lt\n comp = '>'\n ecomp = '>='\n break\n case '<':\n gtfn = lt\n ltefn = gte\n ltfn = gt\n comp = '<'\n ecomp = '<='\n break\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"')\n }\n\n // If it satisfies the range it is not outside\n if (satisfies(version, range, options)) {\n return false\n }\n\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let high = null\n let low = null\n\n comparators.forEach((comparator) => {\n if (comparator.semver === ANY) {\n comparator = new Comparator('>=0.0.0')\n }\n high = high || comparator\n low = low || comparator\n if (gtfn(comparator.semver, high.semver, options)) {\n high = comparator\n } else if (ltfn(comparator.semver, low.semver, options)) {\n low = comparator\n }\n })\n\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) {\n return false\n }\n\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) &&\n ltefn(version, low.semver)) {\n return false\n } else if (low.operator === ecomp && ltfn(version, low.semver)) {\n return false\n }\n }\n return true\n}\n\nmodule.exports = outside\n","'use strict'\n\n// Determine if version is greater than all the versions possible in the range.\nconst outside = require('./outside')\nconst gtr = (version, range, options) => outside(version, range, '>', options)\nmodule.exports = gtr\n","'use strict'\n\nconst outside = require('./outside')\n// Determine if version is less than all the versions possible in the range\nconst ltr = (version, range, options) => outside(version, range, '<', options)\nmodule.exports = ltr\n","'use strict'\n\nconst Range = require('../classes/range')\nconst intersects = (r1, r2, options) => {\n r1 = new Range(r1, options)\n r2 = new Range(r2, options)\n return r1.intersects(r2, options)\n}\nmodule.exports = intersects\n","'use strict'\n\n// given a set of versions and a range, create a \"simplified\" range\n// that includes the same versions that the original range does\n// If the original range is shorter than the simplified one, return that.\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\nmodule.exports = (versions, range, options) => {\n const set = []\n let first = null\n let prev = null\n const v = versions.sort((a, b) => compare(a, b, options))\n for (const version of v) {\n const included = satisfies(version, range, options)\n if (included) {\n prev = version\n if (!first) {\n first = version\n }\n } else {\n if (prev) {\n set.push([first, prev])\n }\n prev = null\n first = null\n }\n }\n if (first) {\n set.push([first, null])\n }\n\n const ranges = []\n for (const [min, max] of set) {\n if (min === max) {\n ranges.push(min)\n } else if (!max && min === v[0]) {\n ranges.push('*')\n } else if (!max) {\n ranges.push(`>=${min}`)\n } else if (min === v[0]) {\n ranges.push(`<=${max}`)\n } else {\n ranges.push(`${min} - ${max}`)\n }\n }\n const simplified = ranges.join(' || ')\n const original = typeof range.raw === 'string' ? range.raw : String(range)\n return simplified.length < original.length ? simplified : range\n}\n","'use strict'\n\nconst Range = require('../classes/range.js')\nconst Comparator = require('../classes/comparator.js')\nconst { ANY } = Comparator\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\n\n// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:\n// - Every simple range `r1, r2, ...` is a null set, OR\n// - Every simple range `r1, r2, ...` which is not a null set is a subset of\n// some `R1, R2, ...`\n//\n// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:\n// - If c is only the ANY comparator\n// - If C is only the ANY comparator, return true\n// - Else if in prerelease mode, return false\n// - else replace c with `[>=0.0.0]`\n// - If C is only the ANY comparator\n// - if in prerelease mode, return true\n// - else replace C with `[>=0.0.0]`\n// - Let EQ be the set of = comparators in c\n// - If EQ is more than one, return true (null set)\n// - Let GT be the highest > or >= comparator in c\n// - Let LT be the lowest < or <= comparator in c\n// - If GT and LT, and GT.semver > LT.semver, return true (null set)\n// - If any C is a = range, and GT or LT are set, return false\n// - If EQ\n// - If GT, and EQ does not satisfy GT, return true (null set)\n// - If LT, and EQ does not satisfy LT, return true (null set)\n// - If EQ satisfies every C, return true\n// - Else return false\n// - If GT\n// - If GT.semver is lower than any > or >= comp in C, return false\n// - If GT is >=, and GT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the GT.semver tuple, return false\n// - If LT\n// - If LT.semver is greater than any < or <= comp in C, return false\n// - If LT is <=, and LT.semver does not satisfy every C, return false\n// - If LT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the LT.semver tuple, return false\n// - Else return true\n\nconst subset = (sub, dom, options = {}) => {\n if (sub === dom) {\n return true\n }\n\n sub = new Range(sub, options)\n dom = new Range(dom, options)\n let sawNonNull = false\n\n OUTER: for (const simpleSub of sub.set) {\n for (const simpleDom of dom.set) {\n const isSub = simpleSubset(simpleSub, simpleDom, options)\n sawNonNull = sawNonNull || isSub !== null\n if (isSub) {\n continue OUTER\n }\n }\n // the null set is a subset of everything, but null simple ranges in\n // a complex range should be ignored. so if we saw a non-null range,\n // then we know this isn't a subset, but if EVERY simple range was null,\n // then it is a subset.\n if (sawNonNull) {\n return false\n }\n }\n return true\n}\n\nconst minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')]\nconst minimumVersion = [new Comparator('>=0.0.0')]\n\nconst simpleSubset = (sub, dom, options) => {\n if (sub === dom) {\n return true\n }\n\n if (sub.length === 1 && sub[0].semver === ANY) {\n if (dom.length === 1 && dom[0].semver === ANY) {\n return true\n } else if (options.includePrerelease) {\n sub = minimumVersionWithPreRelease\n } else {\n sub = minimumVersion\n }\n }\n\n if (dom.length === 1 && dom[0].semver === ANY) {\n if (options.includePrerelease) {\n return true\n } else {\n dom = minimumVersion\n }\n }\n\n const eqSet = new Set()\n let gt, lt\n for (const c of sub) {\n if (c.operator === '>' || c.operator === '>=') {\n gt = higherGT(gt, c, options)\n } else if (c.operator === '<' || c.operator === '<=') {\n lt = lowerLT(lt, c, options)\n } else {\n eqSet.add(c.semver)\n }\n }\n\n if (eqSet.size > 1) {\n return null\n }\n\n let gtltComp\n if (gt && lt) {\n gtltComp = compare(gt.semver, lt.semver, options)\n if (gtltComp > 0) {\n return null\n } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) {\n return null\n }\n }\n\n // will iterate one or zero times\n for (const eq of eqSet) {\n if (gt && !satisfies(eq, String(gt), options)) {\n return null\n }\n\n if (lt && !satisfies(eq, String(lt), options)) {\n return null\n }\n\n for (const c of dom) {\n if (!satisfies(eq, String(c), options)) {\n return false\n }\n }\n\n return true\n }\n\n let higher, lower\n let hasDomLT, hasDomGT\n // if the subset has a prerelease, we need a comparator in the superset\n // with the same tuple and a prerelease, or it's not a subset\n let needDomLTPre = lt &&\n !options.includePrerelease &&\n lt.semver.prerelease.length ? lt.semver : false\n let needDomGTPre = gt &&\n !options.includePrerelease &&\n gt.semver.prerelease.length ? gt.semver : false\n // exception: <1.2.3-0 is the same as <1.2.3\n if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&\n lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {\n needDomLTPre = false\n }\n\n for (const c of dom) {\n hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='\n hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='\n if (gt) {\n if (needDomGTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomGTPre.major &&\n c.semver.minor === needDomGTPre.minor &&\n c.semver.patch === needDomGTPre.patch) {\n needDomGTPre = false\n }\n }\n if (c.operator === '>' || c.operator === '>=') {\n higher = higherGT(gt, c, options)\n if (higher === c && higher !== gt) {\n return false\n }\n } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) {\n return false\n }\n }\n if (lt) {\n if (needDomLTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomLTPre.major &&\n c.semver.minor === needDomLTPre.minor &&\n c.semver.patch === needDomLTPre.patch) {\n needDomLTPre = false\n }\n }\n if (c.operator === '<' || c.operator === '<=') {\n lower = lowerLT(lt, c, options)\n if (lower === c && lower !== lt) {\n return false\n }\n } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) {\n return false\n }\n }\n if (!c.operator && (lt || gt) && gtltComp !== 0) {\n return false\n }\n }\n\n // if there was a < or >, and nothing in the dom, then must be false\n // UNLESS it was limited by another range in the other direction.\n // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0\n if (gt && hasDomLT && !lt && gtltComp !== 0) {\n return false\n }\n\n if (lt && hasDomGT && !gt && gtltComp !== 0) {\n return false\n }\n\n // we needed a prerelease range in a specific tuple, but didn't get one\n // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,\n // because it includes prereleases in the 1.2.3 tuple\n if (needDomGTPre || needDomLTPre) {\n return false\n }\n\n return true\n}\n\n// >=1.2.3 is lower than >1.2.3\nconst higherGT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp > 0 ? a\n : comp < 0 ? b\n : b.operator === '>' && a.operator === '>=' ? b\n : a\n}\n\n// <=1.2.3 is higher than <1.2.3\nconst lowerLT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp < 0 ? a\n : comp > 0 ? b\n : b.operator === '<' && a.operator === '<=' ? b\n : a\n}\n\nmodule.exports = subset\n","'use strict'\n\n// just pre-load all the stuff that index.js lazily exports\nconst internalRe = require('./internal/re')\nconst constants = require('./internal/constants')\nconst SemVer = require('./classes/semver')\nconst identifiers = require('./internal/identifiers')\nconst parse = require('./functions/parse')\nconst valid = require('./functions/valid')\nconst clean = require('./functions/clean')\nconst inc = require('./functions/inc')\nconst diff = require('./functions/diff')\nconst major = require('./functions/major')\nconst minor = require('./functions/minor')\nconst patch = require('./functions/patch')\nconst prerelease = require('./functions/prerelease')\nconst compare = require('./functions/compare')\nconst rcompare = require('./functions/rcompare')\nconst compareLoose = require('./functions/compare-loose')\nconst compareBuild = require('./functions/compare-build')\nconst sort = require('./functions/sort')\nconst rsort = require('./functions/rsort')\nconst gt = require('./functions/gt')\nconst lt = require('./functions/lt')\nconst eq = require('./functions/eq')\nconst neq = require('./functions/neq')\nconst gte = require('./functions/gte')\nconst lte = require('./functions/lte')\nconst cmp = require('./functions/cmp')\nconst coerce = require('./functions/coerce')\nconst Comparator = require('./classes/comparator')\nconst Range = require('./classes/range')\nconst satisfies = require('./functions/satisfies')\nconst toComparators = require('./ranges/to-comparators')\nconst maxSatisfying = require('./ranges/max-satisfying')\nconst minSatisfying = require('./ranges/min-satisfying')\nconst minVersion = require('./ranges/min-version')\nconst validRange = require('./ranges/valid')\nconst outside = require('./ranges/outside')\nconst gtr = require('./ranges/gtr')\nconst ltr = require('./ranges/ltr')\nconst intersects = require('./ranges/intersects')\nconst simplifyRange = require('./ranges/simplify')\nconst subset = require('./ranges/subset')\nmodule.exports = {\n parse,\n valid,\n clean,\n inc,\n diff,\n major,\n minor,\n patch,\n prerelease,\n compare,\n rcompare,\n compareLoose,\n compareBuild,\n sort,\n rsort,\n gt,\n lt,\n eq,\n neq,\n gte,\n lte,\n cmp,\n coerce,\n Comparator,\n Range,\n satisfies,\n toComparators,\n maxSatisfying,\n minSatisfying,\n minVersion,\n validRange,\n outside,\n gtr,\n ltr,\n intersects,\n simplifyRange,\n subset,\n SemVer,\n re: internalRe.re,\n src: internalRe.src,\n tokens: internalRe.t,\n SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,\n RELEASE_TYPES: constants.RELEASE_TYPES,\n compareIdentifiers: identifiers.compareIdentifiers,\n rcompareIdentifiers: identifiers.rcompareIdentifiers,\n}\n","import { getBinName, outFolderName } from \"@pipelab/constants\";\nimport {\n ActionRunnerData,\n createAction,\n createArray,\n createBooleanParam,\n createColorPicker,\n createNumberParam,\n createPathParam,\n createStringParam,\n detectRuntime,\n generateTempFolder,\n InputsDefinition,\n OutputsDefinition,\n runPnpm,\n runWithLiveLogs,\n fetchPipelabAsset,\n} from \"@pipelab/plugin-core\";\n\nimport { dirname, join, basename, delimiter } from \"node:path\";\nimport { cp, readFile, writeFile, rm } from \"node:fs/promises\";\nimport { platform as osPlatform, arch as osArch } from \"node:os\";\nimport { kebabCase } from \"change-case\";\nimport semver from \"semver\";\nimport * as esbuild from \"esbuild\";\n\n// TODO: https://js.electronforge.io/modules/_electron_forge_core.html\n\nexport const IDMake = \"electron:make\";\nexport const IDPackage = \"electron:package\";\nexport const IDPackageV2 = \"electron:package:v2\";\nexport const IDPackageV3 = \"electron:package:v3\";\nexport const IDPreview = \"electron:preview\";\n\nconst paramsInputFolder = {\n \"input-folder\": createPathParam(\"\", {\n label: \"Folder to package\",\n required: true,\n control: {\n type: \"path\",\n options: {\n properties: [\"openDirectory\"],\n },\n },\n }),\n} satisfies InputsDefinition;\n\nconst paramsInputURL = {\n \"input-url\": createStringParam(\"\", {\n label: \"URL to preview\",\n required: true,\n }),\n} satisfies InputsDefinition;\n\nconst params = {\n arch: {\n value: \"\" as NodeJS.Architecture | \"\", // MakeOptions['arch'],\n label: \"Architecture\",\n required: false,\n control: {\n type: \"select\",\n options: {\n placeholder: \"Architecture\",\n options: [\n {\n label: \"Older PCs (ia32)\",\n value: \"ia32\",\n },\n {\n label: \"Modern PCs (x64)\",\n value: \"x64\",\n },\n {\n label: \"Older Mobile/Pi (armv7l)\",\n value: \"armv7l\",\n },\n {\n label: \"New Mobile/Apple Silicon (arm64)\",\n value: \"arm64\",\n },\n {\n label: \"Mac Universal (universal)\",\n value: \"universal\",\n },\n {\n label: \"Special Systems (mips64el)\",\n value: \"mips64el\",\n },\n ],\n },\n },\n },\n platform: {\n value: \"\" as NodeJS.Platform | \"\", // MakeOptions['platform'],\n label: \"Platform\",\n required: false,\n control: {\n type: \"select\",\n options: {\n placeholder: \"Platform\",\n options: [\n {\n label: \"Windows (win32)\",\n value: \"win32\",\n },\n {\n label: \"macOS (darwin)\",\n value: \"darwin\",\n },\n {\n label: \"Linux (linux)\",\n value: \"linux\",\n },\n ],\n },\n },\n },\n configuration: {\n label: \"Electron configuration\",\n value: undefined as Partial<DesktopApp.Electron> | undefined,\n required: true,\n control: {\n type: \"json\",\n },\n },\n} satisfies InputsDefinition;\n\nexport const configureParams = {\n name: createStringParam(\"Pipelab\", {\n label: \"Application name\",\n description: \"The name of the application\",\n required: true,\n }),\n appBundleId: createStringParam(\"com.pipelab.app\", {\n label: \"Application bundle ID\",\n description: \"The bundle ID of the application\",\n required: true,\n }),\n appCopyright: createStringParam(\"Copyright © 2024 Pipelab\", {\n label: \"Application copyright\",\n description: \"The copyright of the application\",\n required: false,\n }),\n appVersion: createStringParam(\"1.0.0\", {\n label: \"Application version\",\n description: \"The version of the application\",\n required: true,\n }),\n icon: createPathParam(\"\", {\n label: \"Application icon\",\n description: \"The icon of the application. macOS: .icns. Windows: .ico\",\n required: false,\n control: {\n type: \"path\",\n options: {\n filters: [\n { name: \"Image\", extensions: [\"png\", \"jpg\", \"jpeg\", \"gif\", \"bmp\", \"ico\", \"icns\"] },\n ],\n },\n label: \"Path to an image file\",\n },\n }),\n author: createStringParam(\"Pipelab\", {\n label: \"Application author\",\n description: \"The author of the application\",\n required: true,\n }),\n description: createStringParam(\"A simple Electron application\", {\n label: \"Application description\",\n description: \"The description of the application\",\n required: false,\n }),\n customPackages: createArray<string[]>(\n `[\n // e.g. \"lodash\" or \"express@4.17.1\"\n]`,\n {\n label: \"Custom npm packages\",\n description:\n 'A list of additional npm packages to install (format: \"package\" or \"package@version\")',\n required: false,\n control: {\n type: \"array\",\n options: {\n kind: \"text\",\n },\n },\n },\n ),\n\n appCategoryType: createStringParam(\"public.app-category.developer-tools\", {\n platforms: [\"darwin\"],\n label: \"Application category type\",\n description: \"The category type of the application\",\n required: false,\n }),\n\n // window\n width: createNumberParam(800, {\n label: \"Window width\",\n description: \"The width of the window\",\n required: false,\n }),\n height: createNumberParam(600, {\n label: \"Window height\",\n description: \"The height of the window\",\n required: false,\n }),\n fullscreen: {\n label: \"Fullscreen\",\n value: false,\n description: \"Whether to start the application in fullscreen mode\",\n required: false,\n control: {\n type: \"boolean\",\n },\n },\n frame: {\n label: \"Frame\",\n value: true,\n description: \"Whether to show the window frame\",\n required: false,\n control: {\n type: \"boolean\",\n },\n },\n transparent: {\n label: \"Transparent\",\n value: false,\n description: \"Whether to make the window transparent\",\n required: false,\n control: {\n type: \"boolean\",\n },\n },\n toolbar: {\n label: \"Toolbar\",\n value: true,\n description: \"Whether to show the toolbar\",\n required: false,\n control: {\n type: \"boolean\",\n },\n },\n alwaysOnTop: {\n label: \"Always on top\",\n value: false,\n description: \"Whether to always keep the window on top\",\n required: false,\n control: {\n type: \"boolean\",\n },\n },\n\n backgroundColor: createColorPicker(\"#ffffff\", {\n label: \"Background Color\",\n description: \"The background color of the window\",\n required: false,\n }),\n\n electronVersion: createStringParam(\"\", {\n label: \"Electron version\",\n description:\n \"The version of Electron to use. If no version specified, it will use the latest one.\",\n required: false,\n }),\n customMainCode: createPathParam(\"\", {\n required: false,\n label: \"Custom main code\",\n control: {\n type: \"path\",\n options: {\n filters: [{ name: \"JavaScript\", extensions: [\"js\"] }],\n },\n label: \"Path to a file containing custom main code\",\n },\n }),\n disableAsarPackaging: {\n required: false,\n label: \"Disable ASAR packaging\",\n value: true,\n control: {\n type: \"boolean\",\n },\n description: \"Whether to disable packaging project files in a single binary or not\",\n },\n enableExtraLogging: {\n required: false,\n label: \"Enable extra logging\",\n value: false,\n control: {\n type: \"boolean\",\n },\n description: \"Whether to enable extra logging of internal tools while bundling\",\n },\n clearServiceWorkerOnBoot: {\n required: false,\n label: \"Clear service worker on boot\",\n value: false,\n control: {\n type: \"boolean\",\n },\n description: \"Whether to clear service worker on boot\",\n },\n openDevtoolsOnStart: createBooleanParam(false, {\n label: \"Open devtools on app start\",\n required: false,\n description: \"Whether to open devtools on app start\",\n }),\n\n // Flags\n\n enableInProcessGPU: {\n required: false,\n label: \"Enable in-process GPU\",\n description:\n \"When enabled, the GPU process runs inside the main browser process instead of a separate one. This can reduce overhead but may lead to instability or crashes if the GPU process fails.\",\n value: false,\n control: {\n type: \"boolean\",\n },\n },\n enableDisableRendererBackgrounding: {\n required: false,\n description:\n \"Enabling this prevents background tabs from being throttled, which can be useful for web apps that need continuous performance.\",\n label: \"Disable renderer backgrounding\",\n value: false,\n control: {\n type: \"boolean\",\n },\n },\n forceHighPerformanceGpu: {\n required: false,\n description:\n \"Enabling this forces the app to always use the high-performance GPU, which can improve rendering but may increase power consumption.\",\n label: \"Force high performance GPU\",\n value: false,\n control: {\n type: \"boolean\",\n },\n },\n\n // websocket apis\n websocketApi: {\n required: false,\n label: \"WebSocket APIs to allow (empty = all)\",\n value: \"[]\",\n control: {\n type: \"array\",\n options: {\n kind: \"text\",\n },\n },\n },\n ignore: createArray<(string | RegExp)[]>(\n `[\n // use 'src/app/' as starting point\n]`,\n {\n required: false,\n label: \"Folders to ignore\",\n description:\n \"An array of string or Regex that allow ignoring certain files or folders from being packaged\",\n control: {\n type: \"array\",\n options: {\n kind: \"text\",\n },\n },\n },\n ),\n\n // integrations\n\n enableSteamSupport: {\n required: false,\n label: \"Enable steam support\",\n description: \"Whether to enable Steam support\",\n value: false,\n control: {\n type: \"boolean\",\n },\n },\n steamGameId: createNumberParam(480, {\n required: false,\n label: \"Steam game ID\",\n description: \"The Steam game ID\",\n }),\n enableDiscordSupport: {\n required: false,\n label: \"Enable Discord support\",\n description: \"Whether to enable Discord support\",\n value: false,\n control: {\n type: \"boolean\",\n },\n },\n discordAppId: createStringParam(\"\", {\n required: false,\n label: \"Discord application ID\",\n description: \"The Discord application ID\",\n }),\n enableDoctor: createBooleanParam(true, {\n required: false,\n label: \"Enable doctor file\",\n description:\n \"Whether to include the doctor.bat file in Windows builds for prerequisite checking and app launching\",\n }),\n serverMode: {\n value: '\"default\"' as \"default\" | \"customProtocol\",\n required: false,\n label: \"Server mode\",\n description: \"The server mode to use\",\n control: {\n type: \"select\",\n options: {\n placeholder: \"Mode\",\n options: [\n {\n value: \"default\",\n label: \"Default\",\n },\n {\n value: \"customProtocol\",\n label: \"Custom Protocol\",\n },\n ],\n },\n },\n },\n} satisfies InputsDefinition;\n\nconst outputs = {\n output: {\n label: \"Output\",\n value: \"\",\n control: {\n type: \"path\",\n options: {\n properties: [\"openDirectory\"],\n },\n },\n },\n} satisfies OutputsDefinition;\n\n// type Inputs = ParamsToInput<typeof params>\n\nexport const createMakeProps = (\n id: string,\n name: string,\n description: string,\n icon: string,\n displayString: string,\n) =>\n createAction({\n id,\n name,\n description,\n icon,\n displayString,\n meta: {},\n params: {\n ...params,\n ...paramsInputFolder,\n },\n outputs,\n });\n\nexport const createPackageProps = (\n id: string,\n name: string,\n description: string,\n icon: string,\n displayString: string,\n advanced?: boolean,\n deprecated?: boolean,\n deprecatedMessage?: string,\n disabled?: false,\n updateAvailable?: boolean,\n) =>\n createAction({\n id,\n name,\n description,\n icon,\n displayString,\n meta: {},\n advanced,\n deprecated,\n deprecatedMessage,\n disabled,\n updateAvailable,\n params: {\n ...params,\n ...paramsInputFolder,\n },\n outputs: outputs,\n });\nexport const createPackageV2Props = (\n id: string,\n name: string,\n description: string,\n icon: string,\n displayString: string,\n advanced?: boolean,\n deprecated?: boolean,\n deprecatedMessage?: string,\n disabled?: false,\n updateAvailable?: boolean,\n) => {\n const { arch, platform } = params;\n return createAction({\n id,\n name,\n description,\n icon,\n displayString,\n meta: {},\n advanced,\n deprecated,\n deprecatedMessage,\n disabled,\n updateAvailable,\n params: {\n arch,\n platform,\n ...paramsInputFolder,\n ...configureParams,\n },\n outputs: outputs,\n });\n};\n\nexport const createPreviewProps = (\n id: string,\n name: string,\n description: string,\n icon: string,\n displayString: string,\n) =>\n createAction({\n id,\n name,\n description,\n icon,\n displayString,\n meta: {},\n params: {\n ...params,\n ...paramsInputURL,\n },\n outputs: outputs,\n });\n\nexport const forge = async (\n action: \"make\" | \"package\" | \"preview\",\n appFolder: string | undefined,\n {\n cwd,\n log,\n inputs,\n setOutput,\n paths,\n abortSignal,\n context,\n }: ActionRunnerData<\n | ReturnType<typeof createMakeProps>\n | ReturnType<typeof createPackageProps>\n | ReturnType<typeof createPackageV2Props>\n | ReturnType<typeof createPreviewProps>\n >,\n completeConfiguration: DesktopApp.Electron,\n): Promise<{ folder: string; binary: string | undefined } | undefined> => {\n log(\"Building electron\");\n\n if (action !== \"preview\") {\n await detectRuntime(appFolder);\n }\n\n const { modules, node } = paths;\n const destinationFolder = await generateTempFolder(paths.cache);\n log(`Staging build in ${destinationFolder}`);\n\n try {\n const forge = join(\n destinationFolder,\n \"node_modules\",\n \"@electron-forge\",\n \"cli\",\n \"dist\",\n \"electron-forge.js\",\n );\n\n const rawAssetFolder = await fetchPipelabAsset(\"@pipelab/asset-electron\", \"^1.0.0\", {\n context,\n });\n const templateFolder = join(rawAssetFolder, \"template\");\n console.log(\"templateFolder\", templateFolder);\n console.log(\"destinationFolder\", destinationFolder);\n\n // copy template to destination\n await cp(templateFolder, destinationFolder, {\n recursive: true,\n filter: (src) => {\n return basename(src) !== \"node_modules\";\n },\n });\n\n console.log(\"copy done\");\n\n const pkgJSONPath = join(destinationFolder, \"package.json\");\n const pkgJSONContent = await readFile(pkgJSONPath, \"utf8\");\n const sanitizedName = kebabCase(completeConfiguration.name);\n\n const originalIconPath = completeConfiguration.icon;\n const hasIcon = completeConfiguration.icon !== undefined && completeConfiguration.icon !== \"\";\n const iconFilename = hasIcon ? basename(completeConfiguration.icon) : \"\";\n const newIconPath = hasIcon ? join(destinationFolder, iconFilename) : \"\";\n const relativeIconPath = hasIcon ? join(\"./\", \"build\", iconFilename) : \"\";\n const relativeIconPath1 = hasIcon ? join(\"./\", iconFilename) : \"\";\n\n log(\"relativeIconPath\", relativeIconPath);\n log(\"relativeIconPath1\", relativeIconPath1);\n\n const hasElectronVersion =\n completeConfiguration.electronVersion !== undefined &&\n completeConfiguration.electronVersion !== \"\";\n const isCJSOnly =\n hasElectronVersion &&\n semver.lt(semver.coerce(completeConfiguration.electronVersion) || \"0.0.0\", \"28.0.0\");\n\n const pkgJSON = JSON.parse(pkgJSONContent);\n log(\"Setting name to\", sanitizedName);\n pkgJSON.name = sanitizedName;\n log(\"Setting productName to\", completeConfiguration.name);\n pkgJSON.productName = completeConfiguration.name;\n\n completeConfiguration.icon = relativeIconPath1;\n\n writeFile(\n join(destinationFolder, \"config.cjs\"),\n `module.exports = ${JSON.stringify(completeConfiguration, undefined, 2)}`,\n \"utf8\",\n );\n\n if (isCJSOnly) {\n log(\"Setting type to\", \"commonjs\");\n pkgJSON.type = \"commonjs\";\n } else {\n log(\"Setting type to\", \"module\");\n pkgJSON.type = \"module\";\n }\n\n await writeFile(pkgJSONPath, JSON.stringify(pkgJSON, null, 2));\n\n log(\"Installing packages\");\n const { all: installAll } = await runPnpm(destinationFolder, {\n args: [\"install\", \"--prefer-offline\"],\n signal: abortSignal,\n context,\n });\n if (installAll) log(installAll);\n\n console.log(\"done install\");\n\n // install user-defined custom packages\n if (\n Array.isArray(completeConfiguration.customPackages) &&\n completeConfiguration.customPackages.length > 0\n ) {\n log(`Installing custom packages: ${completeConfiguration.customPackages.join(\", \")}`);\n const { all: customAll } = await runPnpm(destinationFolder, {\n args: [\"install\", ...completeConfiguration.customPackages, \"--prefer-offline\"],\n signal: abortSignal,\n context,\n });\n if (customAll) log(customAll);\n }\n\n // override electron version\n if (completeConfiguration.electronVersion && completeConfiguration.electronVersion !== \"\") {\n log(`Installing electron@${completeConfiguration.electronVersion}`);\n const { all: electronAll } = await runPnpm(destinationFolder, {\n args: [\"install\", `electron@${completeConfiguration.electronVersion}`, \"--prefer-offline\"],\n signal: abortSignal,\n context,\n });\n if (electronAll) log(electronAll);\n }\n\n if (isCJSOnly) {\n log(`Installing execa@8`);\n const { all: execaAll } = await runPnpm(destinationFolder, {\n args: [\"install\", `execa@8`, \"--prefer-offline\"],\n signal: abortSignal,\n context,\n });\n if (execaAll) log(execaAll);\n }\n\n console.log(\"completeConfiguration.icon\", completeConfiguration.icon);\n\n // copy icon\n if (hasIcon) {\n await cp(originalIconPath, newIconPath, { recursive: true });\n }\n\n // copy custom main code\n const destinationFile = join(destinationFolder, \"src\", \"custom-main.js\");\n if (completeConfiguration.customMainCode) {\n await cp(completeConfiguration.customMainCode, destinationFile, { recursive: true });\n } else {\n await writeFile(destinationFile, 'console.log(\"No custom main code provided\")', {\n signal: abortSignal,\n });\n }\n\n if (isCJSOnly) {\n /* ESBUILD transpilation */\n const external = [\n \"electron\",\n \"@pipelab/steamworks.js\",\n \"electron\",\n \"node:*\",\n \"http\",\n \"node:stream\",\n ];\n await esbuild.build({\n entryPoints: [join(destinationFolder, \"src\", \"index.js\")],\n bundle: true,\n write: true,\n format: \"cjs\",\n platform: \"node\",\n external,\n outfile: join(destinationFolder, \"dist\", \"index.js\"),\n });\n await esbuild.build({\n entryPoints: [join(destinationFolder, \"src\", \"preload.js\")],\n bundle: true,\n platform: \"node\",\n external,\n format: \"cjs\",\n write: true,\n outfile: join(destinationFolder, \"dist\", \"preload.js\"),\n });\n await esbuild.build({\n entryPoints: [join(destinationFolder, \"src\", \"custom-main.js\")],\n bundle: true,\n platform: \"node\",\n external,\n format: \"cjs\",\n write: true,\n outfile: join(destinationFolder, \"dist\", \"custom-main.js\"),\n });\n await rm(join(destinationFolder, \"src\"), { recursive: true });\n await cp(join(destinationFolder, \"dist\"), join(destinationFolder, \"src\"), {\n recursive: true,\n });\n await rm(join(destinationFolder, \"dist\"), { recursive: true });\n /* ESBUILD transpilation */\n }\n\n const placeAppFolder = join(destinationFolder, \"src\", \"app\");\n\n // if input is folder, copy folder to destination\n if (appFolder && action !== \"preview\") {\n // copy app to template\n await cp(appFolder, placeAppFolder, { recursive: true });\n }\n\n const inputPlatform = inputs.platform === \"\" ? undefined : inputs.platform;\n const inputArch = inputs.arch === \"\" ? undefined : inputs.arch;\n\n try {\n log(\"typeof inputs.platform\", typeof inputs.platform);\n const finalPlatform = inputPlatform ?? osPlatform() ?? \"\";\n log(\"finalPlatform\", finalPlatform);\n const finalArch = inputArch ?? osArch() ?? \"\";\n\n await runWithLiveLogs(\n node,\n [forge, action, /* '--', */ \"--arch\", finalArch, \"--platform\", finalPlatform],\n {\n cwd: destinationFolder,\n env: {\n DEBUG: completeConfiguration.enableExtraLogging ? \"*\" : \"\",\n ELECTRON_NO_ASAR: \"1\",\n PATH: `${dirname(node)}${delimiter}${process.env.PATH}`,\n // DEBUG: \"electron-packager\"\n },\n cancelSignal: abortSignal,\n },\n log,\n {\n onStderr(data) {\n log(data);\n },\n onStdout(data) {\n log(data);\n },\n },\n );\n\n if (action === \"package\") {\n const outName = outFolderName(\n completeConfiguration.name,\n finalPlatform as NodeJS.Platform,\n finalArch as NodeJS.Architecture,\n );\n const binName = getBinName(completeConfiguration.name);\n\n const output = join(cwd, \"out\", outName);\n setOutput(\"output\", output);\n return {\n folder: output,\n binary: join(output, binName),\n };\n } else {\n const output = join(cwd, \"out\", \"make\");\n setOutput(\"output\", output);\n return {\n folder: output,\n binary: undefined,\n };\n }\n } catch (e) {\n if (e instanceof Error) {\n if (e.name === \"RequestError\") {\n log(\"Request error\");\n }\n if (e.name === \"RequestError\") {\n log(\"Request error\");\n }\n }\n log(e);\n throw e;\n }\n } finally {\n try {\n if (action !== \"preview\") {\n const outDir = join(destinationFolder, \"out\");\n const finalOutDir = join(cwd, \"out\");\n await cp(outDir, finalOutDir, { recursive: true });\n }\n } catch (e) {\n log(\"Failed to copy build output back to cwd:\", e);\n }\n await rm(destinationFolder, { recursive: true, force: true });\n }\n};\n","export const defaultElectronConfig = {\n alwaysOnTop: false,\n appBundleId: \"com.pipelab.app\",\n appCategoryType: \"\",\n appCopyright: \"Copyright © 2024 Pipelab\",\n appVersion: \"1.0.0\",\n author: \"Pipelab\",\n customMainCode: \"\",\n description: \"A simple Electron application\",\n electronVersion: \"\",\n disableAsarPackaging: true,\n forceHighPerformanceGpu: false,\n enableExtraLogging: false,\n clearServiceWorkerOnBoot: false,\n enableDisableRendererBackgrounding: false,\n enableInProcessGPU: false,\n frame: true,\n fullscreen: false,\n icon: \"\",\n height: 600,\n name: \"Pipelab\",\n toolbar: true,\n transparent: false,\n width: 800,\n enableSteamSupport: false,\n steamGameId: 480,\n enableDiscordSupport: false,\n discordAppId: \"\",\n ignore: [] as string[],\n backgroundColor: \"#FFF\",\n openDevtoolsOnStart: false,\n enableDoctor: false,\n customPackages: [] as string[],\n serverMode: \"default\",\n} satisfies DesktopApp.Electron;\n","import { createActionRunner } from \"@pipelab/plugin-core\";\nimport { forge, createMakeProps } from \"./forge\";\nimport { merge } from \"ts-deepmerge\";\nimport { defaultElectronConfig } from \"./utils\";\n\nexport const makeRunner = createActionRunner<ReturnType<typeof createMakeProps>>(\n async (options) => {\n const appFolder = options.inputs[\"input-folder\"];\n\n if (!options.inputs.configuration) {\n throw new Error(\"Missing electron configuration\");\n }\n\n const completeConfiguration = merge(\n defaultElectronConfig,\n options.inputs.configuration,\n ) as DesktopApp.Electron;\n\n // @ts-expect-error options is not really compatible\n return await forge(\"make\", appFolder, options, completeConfiguration);\n },\n);\n","import { createActionRunner } from \"@pipelab/plugin-core\";\nimport { createPackageProps, forge } from \"./forge\";\nimport { merge } from \"ts-deepmerge\";\nimport { defaultElectronConfig } from \"./utils\";\n\nexport const packageRunner = createActionRunner<ReturnType<typeof createPackageProps>>(\n async (options) => {\n const appFolder = options.inputs[\"input-folder\"];\n\n if (!options.inputs.configuration) {\n throw new Error(\"Missing electron configuration\");\n }\n\n const completeConfiguration = merge(\n defaultElectronConfig,\n options.inputs.configuration,\n ) as DesktopApp.Electron;\n\n // @ts-expect-error options is not really compatible\n return await forge(\"package\", appFolder, options, completeConfiguration);\n },\n);\n","import { createActionRunner, runWithLiveLogs } from \"@pipelab/plugin-core\";\nimport { createPreviewProps, forge } from \"./forge\";\nimport { merge } from \"ts-deepmerge\";\nimport { defaultElectronConfig } from \"./utils\";\n\nexport const previewRunner = createActionRunner<ReturnType<typeof createPreviewProps>>(\n async (options) => {\n const url = options.inputs[\"input-url\"];\n if (url === \"\") {\n throw new Error(\"URL can't be empty\");\n }\n\n if (!options.inputs.configuration) {\n throw new Error(\"Missing electron configuration\");\n }\n\n const completeConfiguration = merge(\n defaultElectronConfig,\n options.inputs.configuration,\n ) as DesktopApp.Electron;\n\n const output = await forge(\"package\", undefined, options, completeConfiguration);\n options.log(\"Opening preview\", JSON.stringify(output));\n options.log(\"Opening url\", url);\n await runWithLiveLogs(\n output.binary,\n [\"--url\", url],\n {\n cancelSignal: options.abortSignal,\n },\n options.log,\n );\n return;\n },\n);\n","import { createAction, createActionRunner } from \"@pipelab/plugin-core\";\nimport { configureParams } from \"./forge\";\n\nexport const props = createAction({\n id: \"electron:configure\",\n description: \"Configure electron\",\n displayString: \"'Configure Electron'\",\n icon: \"\",\n meta: {},\n name: \"Configure Electron\",\n advanced: true,\n outputs: {\n configuration: {\n label: \"Configuration\",\n value: {} as Partial<DesktopApp.Electron>,\n },\n },\n params: configureParams,\n});\n\nexport const configureRunner = createActionRunner<typeof props>(async ({ setOutput, inputs }) => {\n setOutput(\"configuration\", inputs);\n});\n","import { createActionRunner } from \"@pipelab/plugin-core\";\nimport { forge } from \"./forge\";\nimport { createPackageV2Props } from \"./forge\";\nimport { merge } from \"ts-deepmerge\";\nimport { defaultElectronConfig } from \"./utils\";\n\nexport const packageV2Runner = createActionRunner<ReturnType<typeof createPackageV2Props>>(\n async (options) => {\n const appFolder = options.inputs[\"input-folder\"];\n\n const completeConfiguration = merge(defaultElectronConfig, {\n alwaysOnTop: options.inputs[\"alwaysOnTop\"],\n appBundleId: options.inputs[\"appBundleId\"],\n appCategoryType: options.inputs[\"appCategoryType\"],\n appCopyright: options.inputs[\"appCopyright\"],\n appVersion: options.inputs[\"appVersion\"],\n author: options.inputs[\"author\"],\n customMainCode: options.inputs[\"customMainCode\"],\n description: options.inputs[\"description\"],\n electronVersion: options.inputs[\"electronVersion\"],\n disableAsarPackaging: options.inputs[\"disableAsarPackaging\"],\n forceHighPerformanceGpu: options.inputs[\"forceHighPerformanceGpu\"],\n enableExtraLogging: options.inputs[\"enableExtraLogging\"],\n clearServiceWorkerOnBoot: options.inputs[\"clearServiceWorkerOnBoot\"],\n enableDisableRendererBackgrounding: options.inputs[\"enableDisableRendererBackgrounding\"],\n enableInProcessGPU: options.inputs[\"enableInProcessGPU\"],\n frame: options.inputs[\"frame\"],\n fullscreen: options.inputs[\"fullscreen\"],\n icon: options.inputs[\"icon\"],\n height: options.inputs[\"height\"],\n name: options.inputs[\"name\"],\n toolbar: options.inputs[\"toolbar\"],\n transparent: options.inputs[\"transparent\"],\n width: options.inputs[\"width\"],\n enableSteamSupport: options.inputs[\"enableSteamSupport\"],\n steamGameId: options.inputs[\"steamGameId\"],\n ignore: options.inputs[\"ignore\"],\n openDevtoolsOnStart: options.inputs[\"openDevtoolsOnStart\"],\n enableDiscordSupport: options.inputs[\"enableDiscordSupport\"],\n discordAppId: options.inputs[\"discordAppId\"],\n customPackages: options.inputs[\"customPackages\"],\n backgroundColor: options.inputs[\"backgroundColor\"],\n enableDoctor: options.inputs[\"enableDoctor\"],\n serverMode: options.inputs[\"serverMode\"],\n } satisfies DesktopApp.Electron) as DesktopApp.Electron;\n\n options.log(\"completeConfiguration\", completeConfiguration);\n\n // @ts-expect-error options is not really compatible\n return await forge(\"package\", appFolder, options, completeConfiguration);\n },\n);\n","import { makeRunner } from \"./make\";\nimport { packageRunner } from \"./package\";\nimport { previewRunner } from \"./preview\";\n\nimport { createNodeDefinition } from \"@pipelab/plugin-core\";\nconst icon = new URL(\"./public/electron.webp\", import.meta.url).href;\nimport {\n createMakeProps,\n createPackageProps,\n createPackageV2Props,\n createPreviewProps,\n IDMake,\n IDPackage,\n IDPackageV2,\n IDPreview,\n} from \"./forge\";\nimport { configureRunner, props } from \"./configure\";\nimport { packageV2Runner } from \"./package-v2\";\n\nexport default createNodeDefinition({\n description: \"Electron\",\n name: \"Electron\",\n id: \"electron\",\n icon: {\n type: \"image\",\n image: icon,\n },\n nodes: [\n // make and package\n {\n node: createMakeProps(\n IDMake,\n \"Create Installer\",\n \"Create a distributable installer for your chosen platform\",\n \"\",\n \"`Build package for ${fmt.param(params['input-folder'], 'primary', 'Input folder not set')}`\",\n ),\n runner: makeRunner,\n // disabled: platform === 'linux' ? 'Electron is not supported on Linux' : undefined\n },\n // package\n // v1\n {\n node: createPackageProps(\n IDPackage,\n \"Package app\",\n \"Gather all necessary files and prepare your app for distribution, creating a platform-specific bundle.\",\n \"\",\n \"`Package app from ${fmt.param(params['input-folder'], 'primary', 'Input folder not set')}`\",\n true,\n ),\n runner: packageRunner,\n },\n // v2\n {\n node: createPackageV2Props(\n IDPackageV2,\n \"Package app with configuration\",\n \"Gather all necessary files and prepare your app for distribution, creating a platform-specific bundle.\",\n \"\",\n \"`Package app from ${fmt.param(params['input-folder'], 'primary', 'Input folder not set')}`\",\n false,\n false,\n undefined,\n false,\n false,\n ),\n runner: packageV2Runner,\n },\n {\n node: createPreviewProps(\n IDPreview,\n \"Preview app\",\n \"Package and preview your app from an URL\",\n \"\",\n \"`Preview app from ${fmt.param(params['input-url'], 'primary', 'URL not set')}`\",\n ),\n runner: previewRunner,\n },\n {\n node: props,\n runner: configureRunner,\n },\n // {\n // node: propsConfigureV2,\n // runner: configureV2Runner\n // }\n // make without package\n // {\n // node: packageApp,\n // runner: packageRunner,\n // },\n ],\n});\n"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,MAAM,uBAAuB;AAC7B,MAAM,uBAAuB;AAE7B,MAAM,2BAA2B;AAEjC,MAAM,uBAAuB;AAE7B,MAAM,sBAAsB;AAE5B,MAAM,mCAAmC;;;;AAIzC,SAAgB,MAAM,OAAO;CACzB,IAAI,SAAS,MAAM,MAAM;AACzB,UAAS,OACJ,QAAQ,sBAAsB,oBAAoB,CAClD,QAAQ,sBAAsB,oBAAoB;AACvD,UAAS,OAAO,QAAQ,sBAAsB,KAAK;CACnD,IAAI,QAAQ;CACZ,IAAI,MAAM,OAAO;AAEjB,QAAO,OAAO,OAAO,MAAM,KAAK,KAC5B;AACJ,KAAI,UAAU,IACV,QAAO,EAAE;AACb,QAAO,OAAO,OAAO,MAAM,EAAE,KAAK,KAC9B;AACJ,QAAO,OAAO,MAAM,OAAO,IAAI,CAAC,MAAM,MAAM;;;;;AAKhD,SAAgB,qBAAqB,OAAO;CACxC,MAAM,QAAQ,MAAM,MAAM;AAC1B,MAAK,IAAI,IAAI,GAAG,IAAI,MAAM,QAAQ,KAAK;EACnC,MAAM,OAAO,MAAM;EACnB,MAAM,QAAQ,yBAAyB,KAAK,KAAK;AACjD,MAAI,OAAO;GACP,MAAM,SAAS,MAAM,SAAS,MAAM,MAAM,MAAM,IAAI;AACpD,SA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MAAM,iBAAiB,EACrB,aAAa,kBAAkB,IAAI;CACjC,OAAO;CACP,UAAU;CACX,CAAC,EACH;AAED,MAAM,SAAS;CACb,MAAM;EACJ,OAAO;EACP,OAAO;EACP,UAAU;EACV,SAAS;GACP,MAAM;GACN,SAAS;IACP,aAAa;IACb,SAAS;KACP;MACE,OAAO;MACP,OAAO;MACR;KACD;MACE,OAAO;MACP,OAAO;MACR;KACD;MACE,OAAO;MACP,OAAO;MACR;KACD;MACE,OAAO;MACP,OAAO;MACR;KACD;MACE,OAAO;MACP,OAAO;MACR;KACD;MACE,OAAO;MACP,OAAO;MACR;KACF;IACF;GACF;EACF;CACD,UAAU;EACR,OAAO;EACP,OAAO;EACP,UAAU;EACV,SAAS;GACP,MAAM;GACN,SAAS;IACP,aAAa;IACb,SAAS;KACP;MACE,OAAO;MACP,OAAO;MACR;KACD;MACE,OAAO;MACP,OAAO;MACR;KACD;MACE,OAAO;MACP,OAAO;MACR;KACF;IACF;GACF;EACF;CACD,eAAe;EACb,OAAO;EACP,OAAO,KAAA;EACP,UAAU;EACV,SAAS,EACP,MAAM,QACP;EACF;CACF;AAED,MAAa,kBAAkB;CAC7B,MAAM,kBAAkB,WAAW;EACjC,OAAO;EACP,aAAa;EACb,UAAU;EACX,CAAC;CACF,aAAa,kBAAkB,mBAAmB;EAChD,OAAO;EACP,aAAa;EACb,UAAU;EACX,CAAC;CACF,cAAc,kBAAkB,4BAA4B;EAC1D,OAAO;EACP,aAAa;EACb,UAAU;EACX,CAAC;CACF,YAAY,kBAAkB,SAAS;EACrC,OAAO;EACP,aAAa;EACb,UAAU;EACX,CAAC;CACF,MAAM,gBAAgB,IAAI;EACxB,OAAO;EACP,aAAa;EACb,UAAU;EACV,SAAS;GACP,MAAM;GACN,SAAS,EACP,SAAS,CACP;IAAE,MAAM;IAAS,YAAY;KAAC;KAAO;KAAO;KAAQ;KAAO;KAAO;KAAO;KAAO;IAAE,CACnF,EACF;GACD,OAAO;GACR;EACF,CAAC;CACF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D,OAAO;GACR;EACF,CAAC;CACF,sBAAsB;EACpB,UAAU;EACV,OAAO;EACP,OAAO;EACP,SAAS,EACP,MAAM,WACP;EACD,aAAa;EACd;CACD,oBAAoB;EAClB,UAAU;EACV,OAAO;EACP,OAAO;EACP,SAAS,EACP,MAAM,WACP;EACD,aAAa;EACd;CACD,0BAA0B;EACxB,UAAU;EACV,OAAO;EACP,OAAO;EACP,SAAS,EACP,MAAM,WACP;EACD,aAAa;EACd;CACD,qBAAqB,mBAAmB,OAAO;EAC7C,OAAO;EACP,UAAU;EACV,aAAa;EACd,CAAC;CAIF,oBAAoB;EAClB,UAAU;EACV,OAAO;EACP,aACE;EACF,OAAO;EACP,SAAS,EACP,MAAM,WACP;EACF;CACD,oCAAoC;EAClC,UAAU;EACV,aACE;EACF,OAAO;EACP,OAAO;EACP,SAAS,EACP,MAAM,WACP;EACF;CACD,yBAAyB;EACvB,UAAU;EACV,aACE;EACF,OAAO;EACP,OAAO;EACP,SAAS,EACP,MAAM,WACP;EACF;CAGD,cAAc;EACZ,UAAU;EACV,OAAO;EACP,OAAO;EACP,SAAS;GACP,MAAM;GACN,SAAS,EACP,MAAM,QACP;GACF;EACF;CACD,QAAQ,YACN;;IAGA;EACE,UAAU;EACV,OAAO;EACP,aACE;EACF,SAAS;GACP,MAAM;GACN,SAAS,EACP,MAAM,QACP;GACF;EACF,CACF;CAID,oBAAoB;EAClB,UAAU;EACV,OAAO;EACP,aAAa;EACb,OAAO;EACP,SAAS,EACP,MAAM,WACP;EACF;CACD,aAAa,kBAAkB,KAAK;EAClC,UAAU;EACV,OAAO;EACP,aAAa;EACd,CAAC;CACF,sBAAsB;EACpB,UAAU;EACV,OAAO;EACP,aAAa;EACb,OAAO;EACP,SAAS,EACP,MAAM,WACP;EACF;CACD,cAAc,kBAAkB,IAAI;EAClC,UAAU;EACV,OAAO;EACP,aAAa;EACd,CAAC;CACF,cAAc,mBAAmB,MAAM;EACrC,UAAU;EACV,OAAO;EACP,aACE;EACH,CAAC;CACF,YAAY;EACV,OAAO;EACP,UAAU;EACV,OAAO;EACP,aAAa;EACb,SAAS;GACP,MAAM;GACN,SAAS;IACP,aAAa;IACb,SAAS,CACP;KACE,OAAO;KACP,OAAO;KACR,EACD;KACE,OAAO;KACP,OAAO;KACR,CACF;IACF;GACF;EACF;CACF;AAED,MAAM,UAAU,EACd,QAAQ;CACN,OAAO;CACP,OAAO;CACP,SAAS;EACP,MAAM;EACN,SAAS,EACP,YAAY,CAAC,gBAAgB,EAC9B;EACF;CACF,EACF;AAID,MAAa,mBACX,IACA,MACA,aACA,MACA,kBAEA,aAAa;CACX;CACA;CACA;CACA;CACA;CACA,MAAM,EAAE;CACR,QAAQ;EACN,GAAG;EACH,GAAG;EACJ;CACD;CACD,CAAC;AAEJ,MAAa,sBACX,IACA,MACA,aACA,MACA,eACA,UACA,YACA,mBACA,UACA,oBAEA,aAAa;CACX;CACA;CACA;CACA;CACA;CACA,MAAM,EAAE;CACR;CACA;CACA;CACA;CACA;CACA,QAAQ;EACN,GAAG;EACH,GAAG;EACJ;CACQ;CACV,CAAC;AACJ,MAAa,wBACX,IACA,MACA,aACA,MACA,eACA,UACA,YACA,mBACA,UACA,oBACG;CACH,MAAM,EAAE,MAAM,aAAa;AAC3B,QAAO,aAAa;EAClB;EACA;EACA;EACA;EACA;EACA,MAAM,EAAE;EACR;EACA;EACA;EACA;EACA;EACA,QAAQ;GACN;GACA;GACA,GAAG;GACH,GAAG;GACJ;EACQ;EACV,CAAC;;AAGJ,MAAa,sBACX,IACA,MACA,aACA,MACA,kBAEA,aAAa;CACX;CACA;CACA;CACA;CACA;CACA,MAAM,EAAE;CACR,QAAQ;EACN,GAAG;EACH,GAAG;EACJ;CACQ;CACV,CAAC;AAEJ,MAAa,QAAQ,OACnB,QACA,WACA,EACE,KACA,KACA,QACA,WACA,OACA,aACA,WAOF,0BACwE;AACxE,KAAI,oBAAoB;AAExB,KAAI,WAAW,UACb,OAAM,cAAc,UAAU;CAGhC,MAAM,E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rB,SAAS,QAAQ,OAAO;EACxB,aAAa,QAAQ,OAAO;EAC5B,OAAO,QAAQ,OAAO;EACtB,oBAAoB,QAAQ,OAAO;EACnC,aAAa,QAAQ,OAAO;EAC5B,QAAQ,QAAQ,OAAO;EACvB,qBAAqB,QAAQ,OAAO;EACpC,sBAAsB,QAAQ,OAAO;EACrC,cAAc,QAAQ,OAAO;EAC7B,gBAAgB,QAAQ,OAAO;EAC/B,iBAAiB,QAAQ,OAAO;EAChC,cAAc,QAAQ,OAAO;EAC7B,YAAY,QAAQ,OAAO;EAC5B,CAA+B;AAEhC,SAAQ,IAAI,yBAAyB,sBAAsB;AAG3D,QAAO,MAAM,MAAM,WAAW,WAAW,SAAS,sBAAsB;EAE3E;;;AC9CD,MAAM,OAAO,IAAI,IAAI,0BAA0B,OAAO,KAAK,IAAI,CAAC;AAchE,IAAA,cAAe,qBAAqB;CAClC,aAAa;CACb,MAAM;CACN,IAAI;CACJ,MAAM;EACJ,MAAM;EACN,OAAO;EACR;CACD,OAAO;EAEL;GACE,MAAM,gBACJ,QACA,oBACA,6DACA,IACA,8FACD;GACD,QAAQ;GAET;EAGD;GACE,MAAM,mBACJ,WACA,eACA,0GACA,IACA,8FACA,KACD;GACD,QAAQ;GACT;EAED;GACE,MAAM,qBACJ,aACA,kCACA,0GACA,IACA,8FACA,OACA,OACA,KAAA,GACA,OACA,MACD;GACD,QAAQ;GACT;EACD;GACE,MAAM,mBACJ,WACA,eACA,4CACA,IACA,iFACD;GACD,QAAQ;GACT;EACD;GACE,MAAM;GACN,QAAQ;GACT;EAUF;CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["semver","osPlatform","osArch"],"sources":["../../../node_modules/change-case/dist/index.js","../../../node_modules/semver/internal/constants.js","../../../node_modules/semver/internal/debug.js","../../../node_modules/semver/internal/re.js","../../../node_modules/semver/internal/parse-options.js","../../../node_modules/semver/internal/identifiers.js","../../../node_modules/semver/classes/semver.js","../../../node_modules/semver/functions/parse.js","../../../node_modules/semver/functions/valid.js","../../../node_modules/semver/functions/clean.js","../../../node_modules/semver/functions/inc.js","../../../node_modules/semver/functions/diff.js","../../../node_modules/semver/functions/major.js","../../../node_modules/semver/functions/minor.js","../../../node_modules/semver/functions/patch.js","../../../node_modules/semver/functions/prerelease.js","../../../node_modules/semver/functions/compare.js","../../../node_modules/semver/functions/rcompare.js","../../../node_modules/semver/functions/compare-loose.js","../../../node_modules/semver/functions/compare-build.js","../../../node_modules/semver/functions/sort.js","../../../node_modules/semver/functions/rsort.js","../../../node_modules/semver/functions/gt.js","../../../node_modules/semver/functions/lt.js","../../../node_modules/semver/functions/eq.js","../../../node_modules/semver/functions/neq.js","../../../node_modules/semver/functions/gte.js","../../../node_modules/semver/functions/lte.js","../../../node_modules/semver/functions/cmp.js","../../../node_modules/semver/functions/coerce.js","../../../node_modules/semver/internal/lrucache.js","../../../node_modules/semver/classes/range.js","../../../node_modules/semver/classes/comparator.js","../../../node_modules/semver/functions/satisfies.js","../../../node_modules/semver/ranges/to-comparators.js","../../../node_modules/semver/ranges/max-satisfying.js","../../../node_modules/semver/ranges/min-satisfying.js","../../../node_modules/semver/ranges/min-version.js","../../../node_modules/semver/ranges/valid.js","../../../node_modules/semver/ranges/outside.js","../../../node_modules/semver/ranges/gtr.js","../../../node_modules/semver/ranges/ltr.js","../../../node_modules/semver/ranges/intersects.js","../../../node_modules/semver/ranges/simplify.js","../../../node_modules/semver/ranges/subset.js","../../../node_modules/semver/index.js","../src/forge.ts","../src/utils.ts","../src/make.ts","../src/package.ts","../src/preview.ts","../src/configure.ts","../src/package-v2.ts","../src/index.ts"],"sourcesContent":["// Regexps involved with splitting words in various case formats.\nconst SPLIT_LOWER_UPPER_RE = /([\\p{Ll}\\d])(\\p{Lu})/gu;\nconst SPLIT_UPPER_UPPER_RE = /(\\p{Lu})([\\p{Lu}][\\p{Ll}])/gu;\n// Used to iterate over the initial split result and separate numbers.\nconst SPLIT_SEPARATE_NUMBER_RE = /(\\d)\\p{Ll}|(\\p{L})\\d/u;\n// Regexp involved with stripping non-word characters from the result.\nconst DEFAULT_STRIP_REGEXP = /[^\\p{L}\\d]+/giu;\n// The replacement value for splits.\nconst SPLIT_REPLACE_VALUE = \"$1\\0$2\";\n// The default characters to keep after transforming case.\nconst DEFAULT_PREFIX_SUFFIX_CHARACTERS = \"\";\n/**\n * Split any cased input strings into an array of words.\n */\nexport function split(value) {\n let result = value.trim();\n result = result\n .replace(SPLIT_LOWER_UPPER_RE, SPLIT_REPLACE_VALUE)\n .replace(SPLIT_UPPER_UPPER_RE, SPLIT_REPLACE_VALUE);\n result = result.replace(DEFAULT_STRIP_REGEXP, \"\\0\");\n let start = 0;\n let end = result.length;\n // Trim the delimiter from around the output string.\n while (result.charAt(start) === \"\\0\")\n start++;\n if (start === end)\n return [];\n while (result.charAt(end - 1) === \"\\0\")\n end--;\n return result.slice(start, end).split(/\\0/g);\n}\n/**\n * Split the input string into an array of words, separating numbers.\n */\nexport function splitSeparateNumbers(value) {\n const words = split(value);\n for (let i = 0; i < words.length; i++) {\n const word = words[i];\n const match = SPLIT_SEPARATE_NUMBER_RE.exec(word);\n if (match) {\n const offset = match.index + (match[1] ?? match[2]).length;\n words.splice(i, 1, word.slice(0, offset), word.slice(offset));\n }\n }\n return words;\n}\n/**\n * Convert a string to space separated lower case (`foo bar`).\n */\nexport function noCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n return (prefix +\n words.map(lowerFactory(options?.locale)).join(options?.delimiter ?? \" \") +\n suffix);\n}\n/**\n * Convert a string to camel case (`fooBar`).\n */\nexport function camelCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n const lower = lowerFactory(options?.locale);\n const upper = upperFactory(options?.locale);\n const transform = options?.mergeAmbiguousCharacters\n ? capitalCaseTransformFactory(lower, upper)\n : pascalCaseTransformFactory(lower, upper);\n return (prefix +\n words\n .map((word, index) => {\n if (index === 0)\n return lower(word);\n return transform(word, index);\n })\n .join(options?.delimiter ?? \"\") +\n suffix);\n}\n/**\n * Convert a string to pascal case (`FooBar`).\n */\nexport function pascalCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n const lower = lowerFactory(options?.locale);\n const upper = upperFactory(options?.locale);\n const transform = options?.mergeAmbiguousCharacters\n ? capitalCaseTransformFactory(lower, upper)\n : pascalCaseTransformFactory(lower, upper);\n return prefix + words.map(transform).join(options?.delimiter ?? \"\") + suffix;\n}\n/**\n * Convert a string to pascal snake case (`Foo_Bar`).\n */\nexport function pascalSnakeCase(input, options) {\n return capitalCase(input, { delimiter: \"_\", ...options });\n}\n/**\n * Convert a string to capital case (`Foo Bar`).\n */\nexport function capitalCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n const lower = lowerFactory(options?.locale);\n const upper = upperFactory(options?.locale);\n return (prefix +\n words\n .map(capitalCaseTransformFactory(lower, upper))\n .join(options?.delimiter ?? \" \") +\n suffix);\n}\n/**\n * Convert a string to constant case (`FOO_BAR`).\n */\nexport function constantCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n return (prefix +\n words.map(upperFactory(options?.locale)).join(options?.delimiter ?? \"_\") +\n suffix);\n}\n/**\n * Convert a string to dot case (`foo.bar`).\n */\nexport function dotCase(input, options) {\n return noCase(input, { delimiter: \".\", ...options });\n}\n/**\n * Convert a string to kebab case (`foo-bar`).\n */\nexport function kebabCase(input, options) {\n return noCase(input, { delimiter: \"-\", ...options });\n}\n/**\n * Convert a string to path case (`foo/bar`).\n */\nexport function pathCase(input, options) {\n return noCase(input, { delimiter: \"/\", ...options });\n}\n/**\n * Convert a string to path case (`Foo bar`).\n */\nexport function sentenceCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n const lower = lowerFactory(options?.locale);\n const upper = upperFactory(options?.locale);\n const transform = capitalCaseTransformFactory(lower, upper);\n return (prefix +\n words\n .map((word, index) => {\n if (index === 0)\n return transform(word);\n return lower(word);\n })\n .join(options?.delimiter ?? \" \") +\n suffix);\n}\n/**\n * Convert a string to snake case (`foo_bar`).\n */\nexport function snakeCase(input, options) {\n return noCase(input, { delimiter: \"_\", ...options });\n}\n/**\n * Convert a string to header case (`Foo-Bar`).\n */\nexport function trainCase(input, options) {\n return capitalCase(input, { delimiter: \"-\", ...options });\n}\nfunction lowerFactory(locale) {\n return locale === false\n ? (input) => input.toLowerCase()\n : (input) => input.toLocaleLowerCase(locale);\n}\nfunction upperFactory(locale) {\n return locale === false\n ? (input) => input.toUpperCase()\n : (input) => input.toLocaleUpperCase(locale);\n}\nfunction capitalCaseTransformFactory(lower, upper) {\n return (word) => `${upper(word[0])}${lower(word.slice(1))}`;\n}\nfunction pascalCaseTransformFactory(lower, upper) {\n return (word, index) => {\n const char0 = word[0];\n const initial = index > 0 && char0 >= \"0\" && char0 <= \"9\" ? \"_\" + char0 : upper(char0);\n return initial + lower(word.slice(1));\n };\n}\nfunction splitPrefixSuffix(input, options = {}) {\n const splitFn = options.split ?? (options.separateNumbers ? splitSeparateNumbers : split);\n const prefixCharacters = options.prefixCharacters ?? DEFAULT_PREFIX_SUFFIX_CHARACTERS;\n const suffixCharacters = options.suffixCharacters ?? DEFAULT_PREFIX_SUFFIX_CHARACTERS;\n let prefixIndex = 0;\n let suffixIndex = input.length;\n while (prefixIndex < input.length) {\n const char = input.charAt(prefixIndex);\n if (!prefixCharacters.includes(char))\n break;\n prefixIndex++;\n }\n while (suffixIndex > prefixIndex) {\n const index = suffixIndex - 1;\n const char = input.charAt(index);\n if (!suffixCharacters.includes(char))\n break;\n suffixIndex = index;\n }\n return [\n input.slice(0, prefixIndex),\n splitFn(input.slice(prefixIndex, suffixIndex)),\n input.slice(suffixIndex),\n ];\n}\n//# sourceMappingURL=index.js.map","'use strict'\n\n// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst SEMVER_SPEC_VERSION = '2.0.0'\n\nconst MAX_LENGTH = 256\nconst MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n/* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nconst MAX_SAFE_COMPONENT_LENGTH = 16\n\n// Max safe length for a build identifier. The max length minus 6 characters for\n// the shortest version with a build 0.0.0+BUILD.\nconst MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6\n\nconst RELEASE_TYPES = [\n 'major',\n 'premajor',\n 'minor',\n 'preminor',\n 'patch',\n 'prepatch',\n 'prerelease',\n]\n\nmodule.exports = {\n MAX_LENGTH,\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_SAFE_INTEGER,\n RELEASE_TYPES,\n SEMVER_SPEC_VERSION,\n FLAG_INCLUDE_PRERELEASE: 0b001,\n FLAG_LOOSE: 0b010,\n}\n","'use strict'\n\nconst debug = (\n typeof process === 'object' &&\n process.env &&\n process.env.NODE_DEBUG &&\n /\\bsemver\\b/i.test(process.env.NODE_DEBUG)\n) ? (...args) => console.error('SEMVER', ...args)\n : () => {}\n\nmodule.exports = debug\n","'use strict'\n\nconst {\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_LENGTH,\n} = require('./constants')\nconst debug = require('./debug')\nexports = module.exports = {}\n\n// The actual regexps go on exports.re\nconst re = exports.re = []\nconst safeRe = exports.safeRe = []\nconst src = exports.src = []\nconst safeSrc = exports.safeSrc = []\nconst t = exports.t = {}\nlet R = 0\n\nconst LETTERDASHNUMBER = '[a-zA-Z0-9-]'\n\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nconst safeRegexReplacements = [\n ['\\\\s', 1],\n ['\\\\d', MAX_LENGTH],\n [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],\n]\n\nconst makeSafeRegex = (value) => {\n for (const [token, max] of safeRegexReplacements) {\n value = value\n .split(`${token}*`).join(`${token}{0,${max}}`)\n .split(`${token}+`).join(`${token}{1,${max}}`)\n }\n return value\n}\n\nconst createToken = (name, value, isGlobal) => {\n const safe = makeSafeRegex(value)\n const index = R++\n debug(name, index, value)\n t[name] = index\n src[index] = value\n safeSrc[index] = safe\n re[index] = new RegExp(value, isGlobal ? 'g' : undefined)\n safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined)\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ncreateToken('NUMERICIDENTIFIER', '0|[1-9]\\\\d*')\ncreateToken('NUMERICIDENTIFIERLOOSE', '\\\\d+')\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ncreateToken('NONNUMERICIDENTIFIER', `\\\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`)\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ncreateToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n// Non-numeric identifiers include numeric identifiers but can be longer.\n// Therefore non-numeric identifiers must go first.\n\ncreateToken('PRERELEASEIDENTIFIER', `(?:${src[t.NONNUMERICIDENTIFIER]\n}|${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NONNUMERICIDENTIFIER]\n}|${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ncreateToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`)\n\ncreateToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`)\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ncreateToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`)\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ncreateToken('BUILD', `(?:\\\\+(${src[t.BUILDIDENTIFIER]\n}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`)\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ncreateToken('FULLPLAIN', `v?${src[t.MAINVERSION]\n}${src[t.PRERELEASE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('FULL', `^${src[t.FULLPLAIN]}$`)\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken('LOOSEPLAIN', `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]\n}${src[t.PRERELEASELOOSE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)\n\ncreateToken('GTLT', '((?:<|>)?=?)')\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`)\ncreateToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`)\n\ncreateToken('XRANGEPLAIN', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:${src[t.PRERELEASE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGEPLAINLOOSE', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:${src[t.PRERELEASELOOSE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`)\ncreateToken('XRANGELOOSE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken('COERCEPLAIN', `${'(^|[^\\\\d])' +\n '(\\\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`)\ncreateToken('COERCE', `${src[t.COERCEPLAIN]}(?:$|[^\\\\d])`)\ncreateToken('COERCEFULL', src[t.COERCEPLAIN] +\n `(?:${src[t.PRERELEASE]})?` +\n `(?:${src[t.BUILD]})?` +\n `(?:$|[^\\\\d])`)\ncreateToken('COERCERTL', src[t.COERCE], true)\ncreateToken('COERCERTLFULL', src[t.COERCEFULL], true)\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken('LONETILDE', '(?:~>?)')\n\ncreateToken('TILDETRIM', `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true)\nexports.tildeTrimReplace = '$1~'\n\ncreateToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken('LONECARET', '(?:\\\\^)')\n\ncreateToken('CARETTRIM', `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true)\nexports.caretTrimReplace = '$1^'\n\ncreateToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`)\ncreateToken('COMPARATOR', `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`)\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken('COMPARATORTRIM', `(\\\\s*)${src[t.GTLT]\n}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true)\nexports.comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken('HYPHENRANGE', `^\\\\s*(${src[t.XRANGEPLAIN]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAIN]})` +\n `\\\\s*$`)\n\ncreateToken('HYPHENRANGELOOSE', `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s*$`)\n\n// Star ranges basically just allow anything at all.\ncreateToken('STAR', '(<|>)?=?\\\\s*\\\\*')\n// >=0.0.0 is like a star\ncreateToken('GTE0', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0\\\\s*$')\ncreateToken('GTE0PRE', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0-0\\\\s*$')\n","'use strict'\n\n// parse out just the options we care about\nconst looseOption = Object.freeze({ loose: true })\nconst emptyOpts = Object.freeze({ })\nconst parseOptions = options => {\n if (!options) {\n return emptyOpts\n }\n\n if (typeof options !== 'object') {\n return looseOption\n }\n\n return options\n}\nmodule.exports = parseOptions\n","'use strict'\n\nconst numeric = /^[0-9]+$/\nconst compareIdentifiers = (a, b) => {\n if (typeof a === 'number' && typeof b === 'number') {\n return a === b ? 0 : a < b ? -1 : 1\n }\n\n const anum = numeric.test(a)\n const bnum = numeric.test(b)\n\n if (anum && bnum) {\n a = +a\n b = +b\n }\n\n return a === b ? 0\n : (anum && !bnum) ? -1\n : (bnum && !anum) ? 1\n : a < b ? -1\n : 1\n}\n\nconst rcompareIdentifiers = (a, b) => compareIdentifiers(b, a)\n\nmodule.exports = {\n compareIdentifiers,\n rcompareIdentifiers,\n}\n","'use strict'\n\nconst debug = require('../internal/debug')\nconst { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst parseOptions = require('../internal/parse-options')\nconst { compareIdentifiers } = require('../internal/identifiers')\nclass SemVer {\n constructor (version, options) {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n if (version.loose === !!options.loose &&\n version.includePrerelease === !!options.includePrerelease) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof version}\".`)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError(\n `version is longer than ${MAX_LENGTH} characters`\n )\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease\n\n const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])\n\n if (!m) {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map((id) => {\n if (/^[0-9]+$/.test(id)) {\n const num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n }\n\n format () {\n this.version = `${this.major}.${this.minor}.${this.patch}`\n if (this.prerelease.length) {\n this.version += `-${this.prerelease.join('.')}`\n }\n return this.version\n }\n\n toString () {\n return this.version\n }\n\n compare (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n if (typeof other === 'string' && other === this.version) {\n return 0\n }\n other = new SemVer(other, this.options)\n }\n\n if (other.version === this.version) {\n return 0\n }\n\n return this.compareMain(other) || this.comparePre(other)\n }\n\n compareMain (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n if (this.major < other.major) {\n return -1\n }\n if (this.major > other.major) {\n return 1\n }\n if (this.minor < other.minor) {\n return -1\n }\n if (this.minor > other.minor) {\n return 1\n }\n if (this.patch < other.patch) {\n return -1\n }\n if (this.patch > other.patch) {\n return 1\n }\n return 0\n }\n\n comparePre (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n let i = 0\n do {\n const a = this.prerelease[i]\n const b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n compareBuild (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n let i = 0\n do {\n const a = this.build[i]\n const b = other.build[i]\n debug('build compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc (release, identifier, identifierBase) {\n if (release.startsWith('pre')) {\n if (!identifier && identifierBase === false) {\n throw new Error('invalid increment argument: identifier is empty')\n }\n // Avoid an invalid semver results\n if (identifier) {\n const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE])\n if (!match || match[1] !== identifier) {\n throw new Error(`invalid identifier: ${identifier}`)\n }\n }\n }\n\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier, identifierBase)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier, identifierBase)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier, identifierBase)\n this.inc('pre', identifier, identifierBase)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier, identifierBase)\n }\n this.inc('pre', identifier, identifierBase)\n break\n case 'release':\n if (this.prerelease.length === 0) {\n throw new Error(`version ${this.raw} is not a prerelease`)\n }\n this.prerelease.length = 0\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (\n this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0\n ) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case 'pre': {\n const base = Number(identifierBase) ? 1 : 0\n\n if (this.prerelease.length === 0) {\n this.prerelease = [base]\n } else {\n let i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n if (identifier === this.prerelease.join('.') && identifierBase === false) {\n throw new Error('invalid increment argument: identifier already exists')\n }\n this.prerelease.push(base)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n let prerelease = [identifier, base]\n if (identifierBase === false) {\n prerelease = [identifier]\n }\n if (compareIdentifiers(this.prerelease[0], identifier) === 0) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = prerelease\n }\n } else {\n this.prerelease = prerelease\n }\n }\n break\n }\n default:\n throw new Error(`invalid increment argument: ${release}`)\n }\n this.raw = this.format()\n if (this.build.length) {\n this.raw += `+${this.build.join('.')}`\n }\n return this\n }\n}\n\nmodule.exports = SemVer\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst parse = (version, options, throwErrors = false) => {\n if (version instanceof SemVer) {\n return version\n }\n try {\n return new SemVer(version, options)\n } catch (er) {\n if (!throwErrors) {\n return null\n }\n throw er\n }\n}\n\nmodule.exports = parse\n","'use strict'\n\nconst parse = require('./parse')\nconst valid = (version, options) => {\n const v = parse(version, options)\n return v ? v.version : null\n}\nmodule.exports = valid\n","'use strict'\n\nconst parse = require('./parse')\nconst clean = (version, options) => {\n const s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\nmodule.exports = clean\n","'use strict'\n\nconst SemVer = require('../classes/semver')\n\nconst inc = (version, release, options, identifier, identifierBase) => {\n if (typeof (options) === 'string') {\n identifierBase = identifier\n identifier = options\n options = undefined\n }\n\n try {\n return new SemVer(\n version instanceof SemVer ? version.version : version,\n options\n ).inc(release, identifier, identifierBase).version\n } catch (er) {\n return null\n }\n}\nmodule.exports = inc\n","'use strict'\n\nconst parse = require('./parse.js')\n\nconst diff = (version1, version2) => {\n const v1 = parse(version1, null, true)\n const v2 = parse(version2, null, true)\n const comparison = v1.compare(v2)\n\n if (comparison === 0) {\n return null\n }\n\n const v1Higher = comparison > 0\n const highVersion = v1Higher ? v1 : v2\n const lowVersion = v1Higher ? v2 : v1\n const highHasPre = !!highVersion.prerelease.length\n const lowHasPre = !!lowVersion.prerelease.length\n\n if (lowHasPre && !highHasPre) {\n // Going from prerelease -> no prerelease requires some special casing\n\n // If the low version has only a major, then it will always be a major\n // Some examples:\n // 1.0.0-1 -> 1.0.0\n // 1.0.0-1 -> 1.1.1\n // 1.0.0-1 -> 2.0.0\n if (!lowVersion.patch && !lowVersion.minor) {\n return 'major'\n }\n\n // If the main part has no difference\n if (lowVersion.compareMain(highVersion) === 0) {\n if (lowVersion.minor && !lowVersion.patch) {\n return 'minor'\n }\n return 'patch'\n }\n }\n\n // add the `pre` prefix if we are going to a prerelease version\n const prefix = highHasPre ? 'pre' : ''\n\n if (v1.major !== v2.major) {\n return prefix + 'major'\n }\n\n if (v1.minor !== v2.minor) {\n return prefix + 'minor'\n }\n\n if (v1.patch !== v2.patch) {\n return prefix + 'patch'\n }\n\n // high and low are prereleases\n return 'prerelease'\n}\n\nmodule.exports = diff\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst major = (a, loose) => new SemVer(a, loose).major\nmodule.exports = major\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst minor = (a, loose) => new SemVer(a, loose).minor\nmodule.exports = minor\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst patch = (a, loose) => new SemVer(a, loose).patch\nmodule.exports = patch\n","'use strict'\n\nconst parse = require('./parse')\nconst prerelease = (version, options) => {\n const parsed = parse(version, options)\n return (parsed && parsed.prerelease.length) ? parsed.prerelease : null\n}\nmodule.exports = prerelease\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst compare = (a, b, loose) =>\n new SemVer(a, loose).compare(new SemVer(b, loose))\n\nmodule.exports = compare\n","'use strict'\n\nconst compare = require('./compare')\nconst rcompare = (a, b, loose) => compare(b, a, loose)\nmodule.exports = rcompare\n","'use strict'\n\nconst compare = require('./compare')\nconst compareLoose = (a, b) => compare(a, b, true)\nmodule.exports = compareLoose\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst compareBuild = (a, b, loose) => {\n const versionA = new SemVer(a, loose)\n const versionB = new SemVer(b, loose)\n return versionA.compare(versionB) || versionA.compareBuild(versionB)\n}\nmodule.exports = compareBuild\n","'use strict'\n\nconst compareBuild = require('./compare-build')\nconst sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))\nmodule.exports = sort\n","'use strict'\n\nconst compareBuild = require('./compare-build')\nconst rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose))\nmodule.exports = rsort\n","'use strict'\n\nconst compare = require('./compare')\nconst gt = (a, b, loose) => compare(a, b, loose) > 0\nmodule.exports = gt\n","'use strict'\n\nconst compare = require('./compare')\nconst lt = (a, b, loose) => compare(a, b, loose) < 0\nmodule.exports = lt\n","'use strict'\n\nconst compare = require('./compare')\nconst eq = (a, b, loose) => compare(a, b, loose) === 0\nmodule.exports = eq\n","'use strict'\n\nconst compare = require('./compare')\nconst neq = (a, b, loose) => compare(a, b, loose) !== 0\nmodule.exports = neq\n","'use strict'\n\nconst compare = require('./compare')\nconst gte = (a, b, loose) => compare(a, b, loose) >= 0\nmodule.exports = gte\n","'use strict'\n\nconst compare = require('./compare')\nconst lte = (a, b, loose) => compare(a, b, loose) <= 0\nmodule.exports = lte\n","'use strict'\n\nconst eq = require('./eq')\nconst neq = require('./neq')\nconst gt = require('./gt')\nconst gte = require('./gte')\nconst lt = require('./lt')\nconst lte = require('./lte')\n\nconst cmp = (a, op, b, loose) => {\n switch (op) {\n case '===':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a === b\n\n case '!==':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError(`Invalid operator: ${op}`)\n }\n}\nmodule.exports = cmp\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst parse = require('./parse')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst coerce = (version, options) => {\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version === 'number') {\n version = String(version)\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n options = options || {}\n\n let match = null\n if (!options.rtl) {\n match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE])\n } else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n // With includePrerelease option set, '1.2.3.4-rc' wants to coerce '2.3.4-rc', not '2.3.4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL]\n let next\n while ((next = coerceRtlRegex.exec(version)) &&\n (!match || match.index + match[0].length !== version.length)\n ) {\n if (!match ||\n next.index + next[0].length !== match.index + match[0].length) {\n match = next\n }\n coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length\n }\n // leave it in a clean state\n coerceRtlRegex.lastIndex = -1\n }\n\n if (match === null) {\n return null\n }\n\n const major = match[2]\n const minor = match[3] || '0'\n const patch = match[4] || '0'\n const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : ''\n const build = options.includePrerelease && match[6] ? `+${match[6]}` : ''\n\n return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options)\n}\nmodule.exports = coerce\n","'use strict'\n\nclass LRUCache {\n constructor () {\n this.max = 1000\n this.map = new Map()\n }\n\n get (key) {\n const value = this.map.get(key)\n if (value === undefined) {\n return undefined\n } else {\n // Remove the key from the map and add it to the end\n this.map.delete(key)\n this.map.set(key, value)\n return value\n }\n }\n\n delete (key) {\n return this.map.delete(key)\n }\n\n set (key, value) {\n const deleted = this.delete(key)\n\n if (!deleted && value !== undefined) {\n // If cache is full, delete the least recently used item\n if (this.map.size >= this.max) {\n const firstKey = this.map.keys().next().value\n this.delete(firstKey)\n }\n\n this.map.set(key, value)\n }\n\n return this\n }\n}\n\nmodule.exports = LRUCache\n","'use strict'\n\nconst SPACE_CHARACTERS = /\\s+/g\n\n// hoisted class for cyclic dependency\nclass Range {\n constructor (range, options) {\n options = parseOptions(options)\n\n if (range instanceof Range) {\n if (\n range.loose === !!options.loose &&\n range.includePrerelease === !!options.includePrerelease\n ) {\n return range\n } else {\n return new Range(range.raw, options)\n }\n }\n\n if (range instanceof Comparator) {\n // just put it in the set and return\n this.raw = range.value\n this.set = [[range]]\n this.formatted = undefined\n return this\n }\n\n this.options = options\n this.loose = !!options.loose\n this.includePrerelease = !!options.includePrerelease\n\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range.trim().replace(SPACE_CHARACTERS, ' ')\n\n // First, split on ||\n this.set = this.raw\n .split('||')\n // map the range to a 2d array of comparators\n .map(r => this.parseRange(r.trim()))\n // throw out any comparator lists that are empty\n // this generally means that it was not a valid range, which is allowed\n // in loose mode, but will still throw if the WHOLE range is invalid.\n .filter(c => c.length)\n\n if (!this.set.length) {\n throw new TypeError(`Invalid SemVer Range: ${this.raw}`)\n }\n\n // if we have any that are not the null set, throw out null sets.\n if (this.set.length > 1) {\n // keep the first one, in case they're all null sets\n const first = this.set[0]\n this.set = this.set.filter(c => !isNullSet(c[0]))\n if (this.set.length === 0) {\n this.set = [first]\n } else if (this.set.length > 1) {\n // if we have any that are *, then the range is just *\n for (const c of this.set) {\n if (c.length === 1 && isAny(c[0])) {\n this.set = [c]\n break\n }\n }\n }\n }\n\n this.formatted = undefined\n }\n\n get range () {\n if (this.formatted === undefined) {\n this.formatted = ''\n for (let i = 0; i < this.set.length; i++) {\n if (i > 0) {\n this.formatted += '||'\n }\n const comps = this.set[i]\n for (let k = 0; k < comps.length; k++) {\n if (k > 0) {\n this.formatted += ' '\n }\n this.formatted += comps[k].toString().trim()\n }\n }\n }\n return this.formatted\n }\n\n format () {\n return this.range\n }\n\n toString () {\n return this.range\n }\n\n parseRange (range) {\n // memoize range parsing for performance.\n // this is a very hot path, and fully deterministic.\n const memoOpts =\n (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) |\n (this.options.loose && FLAG_LOOSE)\n const memoKey = memoOpts + ':' + range\n const cached = cache.get(memoKey)\n if (cached) {\n return cached\n }\n\n const loose = this.options.loose\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]\n range = range.replace(hr, hyphenReplace(this.options.includePrerelease))\n debug('hyphen replace', range)\n\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)\n debug('comparator trim', range)\n\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(re[t.TILDETRIM], tildeTrimReplace)\n debug('tilde trim', range)\n\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(re[t.CARETTRIM], caretTrimReplace)\n debug('caret trim', range)\n\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n\n let rangeList = range\n .split(' ')\n .map(comp => parseComparator(comp, this.options))\n .join(' ')\n .split(/\\s+/)\n // >=0.0.0 is equivalent to *\n .map(comp => replaceGTE0(comp, this.options))\n\n if (loose) {\n // in loose mode, throw out any that are not valid comparators\n rangeList = rangeList.filter(comp => {\n debug('loose invalid filter', comp, this.options)\n return !!comp.match(re[t.COMPARATORLOOSE])\n })\n }\n debug('range list', rangeList)\n\n // if any comparators are the null set, then replace with JUST null set\n // if more than one comparator, remove any * comparators\n // also, don't include the same comparator more than once\n const rangeMap = new Map()\n const comparators = rangeList.map(comp => new Comparator(comp, this.options))\n for (const comp of comparators) {\n if (isNullSet(comp)) {\n return [comp]\n }\n rangeMap.set(comp.value, comp)\n }\n if (rangeMap.size > 1 && rangeMap.has('')) {\n rangeMap.delete('')\n }\n\n const result = [...rangeMap.values()]\n cache.set(memoKey, result)\n return result\n }\n\n intersects (range, options) {\n if (!(range instanceof Range)) {\n throw new TypeError('a Range is required')\n }\n\n return this.set.some((thisComparators) => {\n return (\n isSatisfiable(thisComparators, options) &&\n range.set.some((rangeComparators) => {\n return (\n isSatisfiable(rangeComparators, options) &&\n thisComparators.every((thisComparator) => {\n return rangeComparators.every((rangeComparator) => {\n return thisComparator.intersects(rangeComparator, options)\n })\n })\n )\n })\n )\n })\n }\n\n // if ANY of the sets match ALL of its comparators, then pass\n test (version) {\n if (!version) {\n return false\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n for (let i = 0; i < this.set.length; i++) {\n if (testSet(this.set[i], version, this.options)) {\n return true\n }\n }\n return false\n }\n}\n\nmodule.exports = Range\n\nconst LRU = require('../internal/lrucache')\nconst cache = new LRU()\n\nconst parseOptions = require('../internal/parse-options')\nconst Comparator = require('./comparator')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst {\n safeRe: re,\n t,\n comparatorTrimReplace,\n tildeTrimReplace,\n caretTrimReplace,\n} = require('../internal/re')\nconst { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require('../internal/constants')\n\nconst isNullSet = c => c.value === '<0.0.0-0'\nconst isAny = c => c.value === ''\n\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nconst isSatisfiable = (comparators, options) => {\n let result = true\n const remainingComparators = comparators.slice()\n let testComparator = remainingComparators.pop()\n\n while (result && remainingComparators.length) {\n result = remainingComparators.every((otherComparator) => {\n return testComparator.intersects(otherComparator, options)\n })\n\n testComparator = remainingComparators.pop()\n }\n\n return result\n}\n\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nconst parseComparator = (comp, options) => {\n comp = comp.replace(re[t.BUILD], '')\n debug('comp', comp, options)\n comp = replaceCarets(comp, options)\n debug('caret', comp)\n comp = replaceTildes(comp, options)\n debug('tildes', comp)\n comp = replaceXRanges(comp, options)\n debug('xrange', comp)\n comp = replaceStars(comp, options)\n debug('stars', comp)\n return comp\n}\n\nconst isX = id => !id || id.toLowerCase() === 'x' || id === '*'\n\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0\n// ~0.0.1 --> >=0.0.1 <0.1.0-0\nconst replaceTildes = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceTilde(c, options))\n .join(' ')\n}\n\nconst replaceTilde = (comp, options) => {\n const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('tilde', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0 <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n // ~1.2 == >=1.2.0 <1.3.0-0\n ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`\n } else if (pr) {\n debug('replaceTilde pr', pr)\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n } else {\n // ~1.2.3 == >=1.2.3 <1.3.0-0\n ret = `>=${M}.${m}.${p\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('tilde return', ret)\n return ret\n })\n}\n\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0\n// ^1.2.3 --> >=1.2.3 <2.0.0-0\n// ^1.2.0 --> >=1.2.0 <2.0.0-0\n// ^0.0.1 --> >=0.0.1 <0.0.2-0\n// ^0.1.0 --> >=0.1.0 <0.2.0-0\nconst replaceCarets = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceCaret(c, options))\n .join(' ')\n}\n\nconst replaceCaret = (comp, options) => {\n debug('caret', comp, options)\n const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]\n const z = options.includePrerelease ? '-0' : ''\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('caret', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n if (M === '0') {\n ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`\n } else {\n ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`\n }\n } else if (pr) {\n debug('replaceCaret pr', pr)\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${+M + 1}.0.0-0`\n }\n } else {\n debug('no pr')\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p\n } <${+M + 1}.0.0-0`\n }\n }\n\n debug('caret return', ret)\n return ret\n })\n}\n\nconst replaceXRanges = (comp, options) => {\n debug('replaceXRanges', comp, options)\n return comp\n .split(/\\s+/)\n .map((c) => replaceXRange(c, options))\n .join(' ')\n}\n\nconst replaceXRange = (comp, options) => {\n comp = comp.trim()\n const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]\n return comp.replace(r, (ret, gtlt, M, m, p, pr) => {\n debug('xRange', comp, ret, gtlt, M, m, p, pr)\n const xM = isX(M)\n const xm = xM || isX(m)\n const xp = xm || isX(p)\n const anyX = xp\n\n if (gtlt === '=' && anyX) {\n gtlt = ''\n }\n\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? '-0' : ''\n\n if (xM) {\n if (gtlt === '>' || gtlt === '<') {\n // nothing is allowed\n ret = '<0.0.0-0'\n } else {\n // nothing is forbidden\n ret = '*'\n }\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) {\n m = 0\n }\n p = 0\n\n if (gtlt === '>') {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n gtlt = '>='\n if (xm) {\n M = +M + 1\n m = 0\n p = 0\n } else {\n m = +m + 1\n p = 0\n }\n } else if (gtlt === '<=') {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = '<'\n if (xm) {\n M = +M + 1\n } else {\n m = +m + 1\n }\n }\n\n if (gtlt === '<') {\n pr = '-0'\n }\n\n ret = `${gtlt + M}.${m}.${p}${pr}`\n } else if (xm) {\n ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`\n } else if (xp) {\n ret = `>=${M}.${m}.0${pr\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('xRange return', ret)\n\n return ret\n })\n}\n\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nconst replaceStars = (comp, options) => {\n debug('replaceStars', comp, options)\n // Looseness is ignored here. star is always as loose as it gets!\n return comp\n .trim()\n .replace(re[t.STAR], '')\n}\n\nconst replaceGTE0 = (comp, options) => {\n debug('replaceGTE0', comp, options)\n return comp\n .trim()\n .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')\n}\n\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0-0\n// TODO build?\nconst hyphenReplace = incPr => ($0,\n from, fM, fm, fp, fpr, fb,\n to, tM, tm, tp, tpr) => {\n if (isX(fM)) {\n from = ''\n } else if (isX(fm)) {\n from = `>=${fM}.0.0${incPr ? '-0' : ''}`\n } else if (isX(fp)) {\n from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`\n } else if (fpr) {\n from = `>=${from}`\n } else {\n from = `>=${from}${incPr ? '-0' : ''}`\n }\n\n if (isX(tM)) {\n to = ''\n } else if (isX(tm)) {\n to = `<${+tM + 1}.0.0-0`\n } else if (isX(tp)) {\n to = `<${tM}.${+tm + 1}.0-0`\n } else if (tpr) {\n to = `<=${tM}.${tm}.${tp}-${tpr}`\n } else if (incPr) {\n to = `<${tM}.${tm}.${+tp + 1}-0`\n } else {\n to = `<=${to}`\n }\n\n return `${from} ${to}`.trim()\n}\n\nconst testSet = (set, version, options) => {\n for (let i = 0; i < set.length; i++) {\n if (!set[i].test(version)) {\n return false\n }\n }\n\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for (let i = 0; i < set.length; i++) {\n debug(set[i].semver)\n if (set[i].semver === Comparator.ANY) {\n continue\n }\n\n if (set[i].semver.prerelease.length > 0) {\n const allowed = set[i].semver\n if (allowed.major === version.major &&\n allowed.minor === version.minor &&\n allowed.patch === version.patch) {\n return true\n }\n }\n }\n\n // Version has a -pre, but it's not one of the ones we like.\n return false\n }\n\n return true\n}\n","'use strict'\n\nconst ANY = Symbol('SemVer ANY')\n// hoisted class for cyclic dependency\nclass Comparator {\n static get ANY () {\n return ANY\n }\n\n constructor (comp, options) {\n options = parseOptions(options)\n\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) {\n return comp\n } else {\n comp = comp.value\n }\n }\n\n comp = comp.trim().split(/\\s+/).join(' ')\n debug('comparator', comp, options)\n this.options = options\n this.loose = !!options.loose\n this.parse(comp)\n\n if (this.semver === ANY) {\n this.value = ''\n } else {\n this.value = this.operator + this.semver.version\n }\n\n debug('comp', this)\n }\n\n parse (comp) {\n const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]\n const m = comp.match(r)\n\n if (!m) {\n throw new TypeError(`Invalid comparator: ${comp}`)\n }\n\n this.operator = m[1] !== undefined ? m[1] : ''\n if (this.operator === '=') {\n this.operator = ''\n }\n\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) {\n this.semver = ANY\n } else {\n this.semver = new SemVer(m[2], this.options.loose)\n }\n }\n\n toString () {\n return this.value\n }\n\n test (version) {\n debug('Comparator.test', version, this.options.loose)\n\n if (this.semver === ANY || version === ANY) {\n return true\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n return cmp(version, this.operator, this.semver, this.options)\n }\n\n intersects (comp, options) {\n if (!(comp instanceof Comparator)) {\n throw new TypeError('a Comparator is required')\n }\n\n if (this.operator === '') {\n if (this.value === '') {\n return true\n }\n return new Range(comp.value, options).test(this.value)\n } else if (comp.operator === '') {\n if (comp.value === '') {\n return true\n }\n return new Range(this.value, options).test(comp.semver)\n }\n\n options = parseOptions(options)\n\n // Special cases where nothing can possibly be lower\n if (options.includePrerelease &&\n (this.value === '<0.0.0-0' || comp.value === '<0.0.0-0')) {\n return false\n }\n if (!options.includePrerelease &&\n (this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) {\n return false\n }\n\n // Same direction increasing (> or >=)\n if (this.operator.startsWith('>') && comp.operator.startsWith('>')) {\n return true\n }\n // Same direction decreasing (< or <=)\n if (this.operator.startsWith('<') && comp.operator.startsWith('<')) {\n return true\n }\n // same SemVer and both sides are inclusive (<= or >=)\n if (\n (this.semver.version === comp.semver.version) &&\n this.operator.includes('=') && comp.operator.includes('=')) {\n return true\n }\n // opposite directions less than\n if (cmp(this.semver, '<', comp.semver, options) &&\n this.operator.startsWith('>') && comp.operator.startsWith('<')) {\n return true\n }\n // opposite directions greater than\n if (cmp(this.semver, '>', comp.semver, options) &&\n this.operator.startsWith('<') && comp.operator.startsWith('>')) {\n return true\n }\n return false\n }\n}\n\nmodule.exports = Comparator\n\nconst parseOptions = require('../internal/parse-options')\nconst { safeRe: re, t } = require('../internal/re')\nconst cmp = require('../functions/cmp')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst Range = require('./range')\n","'use strict'\n\nconst Range = require('../classes/range')\nconst satisfies = (version, range, options) => {\n try {\n range = new Range(range, options)\n } catch (er) {\n return false\n }\n return range.test(version)\n}\nmodule.exports = satisfies\n","'use strict'\n\nconst Range = require('../classes/range')\n\n// Mostly just for testing and legacy API reasons\nconst toComparators = (range, options) =>\n new Range(range, options).set\n .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))\n\nmodule.exports = toComparators\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\n\nconst maxSatisfying = (versions, range, options) => {\n let max = null\n let maxSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v\n maxSV = new SemVer(max, options)\n }\n }\n })\n return max\n}\nmodule.exports = maxSatisfying\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst minSatisfying = (versions, range, options) => {\n let min = null\n let minSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v\n minSV = new SemVer(min, options)\n }\n }\n })\n return min\n}\nmodule.exports = minSatisfying\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst gt = require('../functions/gt')\n\nconst minVersion = (range, loose) => {\n range = new Range(range, loose)\n\n let minver = new SemVer('0.0.0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = new SemVer('0.0.0-0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = null\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let setMin = null\n comparators.forEach((comparator) => {\n // Clone to avoid manipulating the comparator's semver object.\n const compver = new SemVer(comparator.semver.version)\n switch (comparator.operator) {\n case '>':\n if (compver.prerelease.length === 0) {\n compver.patch++\n } else {\n compver.prerelease.push(0)\n }\n compver.raw = compver.format()\n /* fallthrough */\n case '':\n case '>=':\n if (!setMin || gt(compver, setMin)) {\n setMin = compver\n }\n break\n case '<':\n case '<=':\n /* Ignore maximum versions */\n break\n /* istanbul ignore next */\n default:\n throw new Error(`Unexpected operation: ${comparator.operator}`)\n }\n })\n if (setMin && (!minver || gt(minver, setMin))) {\n minver = setMin\n }\n }\n\n if (minver && range.test(minver)) {\n return minver\n }\n\n return null\n}\nmodule.exports = minVersion\n","'use strict'\n\nconst Range = require('../classes/range')\nconst validRange = (range, options) => {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || '*'\n } catch (er) {\n return null\n }\n}\nmodule.exports = validRange\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst Comparator = require('../classes/comparator')\nconst { ANY } = Comparator\nconst Range = require('../classes/range')\nconst satisfies = require('../functions/satisfies')\nconst gt = require('../functions/gt')\nconst lt = require('../functions/lt')\nconst lte = require('../functions/lte')\nconst gte = require('../functions/gte')\n\nconst outside = (version, range, hilo, options) => {\n version = new SemVer(version, options)\n range = new Range(range, options)\n\n let gtfn, ltefn, ltfn, comp, ecomp\n switch (hilo) {\n case '>':\n gtfn = gt\n ltefn = lte\n ltfn = lt\n comp = '>'\n ecomp = '>='\n break\n case '<':\n gtfn = lt\n ltefn = gte\n ltfn = gt\n comp = '<'\n ecomp = '<='\n break\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"')\n }\n\n // If it satisfies the range it is not outside\n if (satisfies(version, range, options)) {\n return false\n }\n\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let high = null\n let low = null\n\n comparators.forEach((comparator) => {\n if (comparator.semver === ANY) {\n comparator = new Comparator('>=0.0.0')\n }\n high = high || comparator\n low = low || comparator\n if (gtfn(comparator.semver, high.semver, options)) {\n high = comparator\n } else if (ltfn(comparator.semver, low.semver, options)) {\n low = comparator\n }\n })\n\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) {\n return false\n }\n\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) &&\n ltefn(version, low.semver)) {\n return false\n } else if (low.operator === ecomp && ltfn(version, low.semver)) {\n return false\n }\n }\n return true\n}\n\nmodule.exports = outside\n","'use strict'\n\n// Determine if version is greater than all the versions possible in the range.\nconst outside = require('./outside')\nconst gtr = (version, range, options) => outside(version, range, '>', options)\nmodule.exports = gtr\n","'use strict'\n\nconst outside = require('./outside')\n// Determine if version is less than all the versions possible in the range\nconst ltr = (version, range, options) => outside(version, range, '<', options)\nmodule.exports = ltr\n","'use strict'\n\nconst Range = require('../classes/range')\nconst intersects = (r1, r2, options) => {\n r1 = new Range(r1, options)\n r2 = new Range(r2, options)\n return r1.intersects(r2, options)\n}\nmodule.exports = intersects\n","'use strict'\n\n// given a set of versions and a range, create a \"simplified\" range\n// that includes the same versions that the original range does\n// If the original range is shorter than the simplified one, return that.\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\nmodule.exports = (versions, range, options) => {\n const set = []\n let first = null\n let prev = null\n const v = versions.sort((a, b) => compare(a, b, options))\n for (const version of v) {\n const included = satisfies(version, range, options)\n if (included) {\n prev = version\n if (!first) {\n first = version\n }\n } else {\n if (prev) {\n set.push([first, prev])\n }\n prev = null\n first = null\n }\n }\n if (first) {\n set.push([first, null])\n }\n\n const ranges = []\n for (const [min, max] of set) {\n if (min === max) {\n ranges.push(min)\n } else if (!max && min === v[0]) {\n ranges.push('*')\n } else if (!max) {\n ranges.push(`>=${min}`)\n } else if (min === v[0]) {\n ranges.push(`<=${max}`)\n } else {\n ranges.push(`${min} - ${max}`)\n }\n }\n const simplified = ranges.join(' || ')\n const original = typeof range.raw === 'string' ? range.raw : String(range)\n return simplified.length < original.length ? simplified : range\n}\n","'use strict'\n\nconst Range = require('../classes/range.js')\nconst Comparator = require('../classes/comparator.js')\nconst { ANY } = Comparator\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\n\n// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:\n// - Every simple range `r1, r2, ...` is a null set, OR\n// - Every simple range `r1, r2, ...` which is not a null set is a subset of\n// some `R1, R2, ...`\n//\n// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:\n// - If c is only the ANY comparator\n// - If C is only the ANY comparator, return true\n// - Else if in prerelease mode, return false\n// - else replace c with `[>=0.0.0]`\n// - If C is only the ANY comparator\n// - if in prerelease mode, return true\n// - else replace C with `[>=0.0.0]`\n// - Let EQ be the set of = comparators in c\n// - If EQ is more than one, return true (null set)\n// - Let GT be the highest > or >= comparator in c\n// - Let LT be the lowest < or <= comparator in c\n// - If GT and LT, and GT.semver > LT.semver, return true (null set)\n// - If any C is a = range, and GT or LT are set, return false\n// - If EQ\n// - If GT, and EQ does not satisfy GT, return true (null set)\n// - If LT, and EQ does not satisfy LT, return true (null set)\n// - If EQ satisfies every C, return true\n// - Else return false\n// - If GT\n// - If GT.semver is lower than any > or >= comp in C, return false\n// - If GT is >=, and GT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the GT.semver tuple, return false\n// - If LT\n// - If LT.semver is greater than any < or <= comp in C, return false\n// - If LT is <=, and LT.semver does not satisfy every C, return false\n// - If LT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the LT.semver tuple, return false\n// - Else return true\n\nconst subset = (sub, dom, options = {}) => {\n if (sub === dom) {\n return true\n }\n\n sub = new Range(sub, options)\n dom = new Range(dom, options)\n let sawNonNull = false\n\n OUTER: for (const simpleSub of sub.set) {\n for (const simpleDom of dom.set) {\n const isSub = simpleSubset(simpleSub, simpleDom, options)\n sawNonNull = sawNonNull || isSub !== null\n if (isSub) {\n continue OUTER\n }\n }\n // the null set is a subset of everything, but null simple ranges in\n // a complex range should be ignored. so if we saw a non-null range,\n // then we know this isn't a subset, but if EVERY simple range was null,\n // then it is a subset.\n if (sawNonNull) {\n return false\n }\n }\n return true\n}\n\nconst minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')]\nconst minimumVersion = [new Comparator('>=0.0.0')]\n\nconst simpleSubset = (sub, dom, options) => {\n if (sub === dom) {\n return true\n }\n\n if (sub.length === 1 && sub[0].semver === ANY) {\n if (dom.length === 1 && dom[0].semver === ANY) {\n return true\n } else if (options.includePrerelease) {\n sub = minimumVersionWithPreRelease\n } else {\n sub = minimumVersion\n }\n }\n\n if (dom.length === 1 && dom[0].semver === ANY) {\n if (options.includePrerelease) {\n return true\n } else {\n dom = minimumVersion\n }\n }\n\n const eqSet = new Set()\n let gt, lt\n for (const c of sub) {\n if (c.operator === '>' || c.operator === '>=') {\n gt = higherGT(gt, c, options)\n } else if (c.operator === '<' || c.operator === '<=') {\n lt = lowerLT(lt, c, options)\n } else {\n eqSet.add(c.semver)\n }\n }\n\n if (eqSet.size > 1) {\n return null\n }\n\n let gtltComp\n if (gt && lt) {\n gtltComp = compare(gt.semver, lt.semver, options)\n if (gtltComp > 0) {\n return null\n } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) {\n return null\n }\n }\n\n // will iterate one or zero times\n for (const eq of eqSet) {\n if (gt && !satisfies(eq, String(gt), options)) {\n return null\n }\n\n if (lt && !satisfies(eq, String(lt), options)) {\n return null\n }\n\n for (const c of dom) {\n if (!satisfies(eq, String(c), options)) {\n return false\n }\n }\n\n return true\n }\n\n let higher, lower\n let hasDomLT, hasDomGT\n // if the subset has a prerelease, we need a comparator in the superset\n // with the same tuple and a prerelease, or it's not a subset\n let needDomLTPre = lt &&\n !options.includePrerelease &&\n lt.semver.prerelease.length ? lt.semver : false\n let needDomGTPre = gt &&\n !options.includePrerelease &&\n gt.semver.prerelease.length ? gt.semver : false\n // exception: <1.2.3-0 is the same as <1.2.3\n if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&\n lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {\n needDomLTPre = false\n }\n\n for (const c of dom) {\n hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='\n hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='\n if (gt) {\n if (needDomGTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomGTPre.major &&\n c.semver.minor === needDomGTPre.minor &&\n c.semver.patch === needDomGTPre.patch) {\n needDomGTPre = false\n }\n }\n if (c.operator === '>' || c.operator === '>=') {\n higher = higherGT(gt, c, options)\n if (higher === c && higher !== gt) {\n return false\n }\n } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) {\n return false\n }\n }\n if (lt) {\n if (needDomLTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomLTPre.major &&\n c.semver.minor === needDomLTPre.minor &&\n c.semver.patch === needDomLTPre.patch) {\n needDomLTPre = false\n }\n }\n if (c.operator === '<' || c.operator === '<=') {\n lower = lowerLT(lt, c, options)\n if (lower === c && lower !== lt) {\n return false\n }\n } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) {\n return false\n }\n }\n if (!c.operator && (lt || gt) && gtltComp !== 0) {\n return false\n }\n }\n\n // if there was a < or >, and nothing in the dom, then must be false\n // UNLESS it was limited by another range in the other direction.\n // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0\n if (gt && hasDomLT && !lt && gtltComp !== 0) {\n return false\n }\n\n if (lt && hasDomGT && !gt && gtltComp !== 0) {\n return false\n }\n\n // we needed a prerelease range in a specific tuple, but didn't get one\n // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,\n // because it includes prereleases in the 1.2.3 tuple\n if (needDomGTPre || needDomLTPre) {\n return false\n }\n\n return true\n}\n\n// >=1.2.3 is lower than >1.2.3\nconst higherGT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp > 0 ? a\n : comp < 0 ? b\n : b.operator === '>' && a.operator === '>=' ? b\n : a\n}\n\n// <=1.2.3 is higher than <1.2.3\nconst lowerLT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp < 0 ? a\n : comp > 0 ? b\n : b.operator === '<' && a.operator === '<=' ? b\n : a\n}\n\nmodule.exports = subset\n","'use strict'\n\n// just pre-load all the stuff that index.js lazily exports\nconst internalRe = require('./internal/re')\nconst constants = require('./internal/constants')\nconst SemVer = require('./classes/semver')\nconst identifiers = require('./internal/identifiers')\nconst parse = require('./functions/parse')\nconst valid = require('./functions/valid')\nconst clean = require('./functions/clean')\nconst inc = require('./functions/inc')\nconst diff = require('./functions/diff')\nconst major = require('./functions/major')\nconst minor = require('./functions/minor')\nconst patch = require('./functions/patch')\nconst prerelease = require('./functions/prerelease')\nconst compare = require('./functions/compare')\nconst rcompare = require('./functions/rcompare')\nconst compareLoose = require('./functions/compare-loose')\nconst compareBuild = require('./functions/compare-build')\nconst sort = require('./functions/sort')\nconst rsort = require('./functions/rsort')\nconst gt = require('./functions/gt')\nconst lt = require('./functions/lt')\nconst eq = require('./functions/eq')\nconst neq = require('./functions/neq')\nconst gte = require('./functions/gte')\nconst lte = require('./functions/lte')\nconst cmp = require('./functions/cmp')\nconst coerce = require('./functions/coerce')\nconst Comparator = require('./classes/comparator')\nconst Range = require('./classes/range')\nconst satisfies = require('./functions/satisfies')\nconst toComparators = require('./ranges/to-comparators')\nconst maxSatisfying = require('./ranges/max-satisfying')\nconst minSatisfying = require('./ranges/min-satisfying')\nconst minVersion = require('./ranges/min-version')\nconst validRange = require('./ranges/valid')\nconst outside = require('./ranges/outside')\nconst gtr = require('./ranges/gtr')\nconst ltr = require('./ranges/ltr')\nconst intersects = require('./ranges/intersects')\nconst simplifyRange = require('./ranges/simplify')\nconst subset = require('./ranges/subset')\nmodule.exports = {\n parse,\n valid,\n clean,\n inc,\n diff,\n major,\n minor,\n patch,\n prerelease,\n compare,\n rcompare,\n compareLoose,\n compareBuild,\n sort,\n rsort,\n gt,\n lt,\n eq,\n neq,\n gte,\n lte,\n cmp,\n coerce,\n Comparator,\n Range,\n satisfies,\n toComparators,\n maxSatisfying,\n minSatisfying,\n minVersion,\n validRange,\n outside,\n gtr,\n ltr,\n intersects,\n simplifyRange,\n subset,\n SemVer,\n re: internalRe.re,\n src: internalRe.src,\n tokens: internalRe.t,\n SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,\n RELEASE_TYPES: constants.RELEASE_TYPES,\n compareIdentifiers: identifiers.compareIdentifiers,\n rcompareIdentifiers: identifiers.rcompareIdentifiers,\n}\n","import { getBinName, outFolderName } from \"@pipelab/constants\";\nimport {\n ActionRunnerData,\n createAction,\n createArray,\n createBooleanParam,\n createColorPicker,\n createNumberParam,\n createPathParam,\n createStringParam,\n detectRuntime,\n generateTempFolder,\n InputsDefinition,\n OutputsDefinition,\n runPnpm,\n runWithLiveLogs,\n fetchPipelabAsset,\n} from \"@pipelab/plugin-core\";\n\nimport { dirname, join, basename, delimiter } from \"node:path\";\nimport { cp, readFile, writeFile, rm } from \"node:fs/promises\";\nimport { platform as osPlatform, arch as osArch } from \"node:os\";\nimport { kebabCase } from \"change-case\";\nimport semver from \"semver\";\nimport { pathToFileURL } from \"node:url\";\n\n// TODO: https://js.electronforge.io/modules/_electron_forge_core.html\n\nexport const IDMake = \"electron:make\";\nexport const IDPackage = \"electron:package\";\nexport const IDPackageV2 = \"electron:package:v2\";\nexport const IDPackageV3 = \"electron:package:v3\";\nexport const IDPreview = \"electron:preview\";\n\nconst paramsInputFolder = {\n \"input-folder\": createPathParam(\"\", {\n label: \"Folder to package\",\n required: true,\n control: {\n type: \"path\",\n options: {\n properties: [\"openDirectory\"],\n },\n },\n }),\n} satisfies InputsDefinition;\n\nconst paramsInputURL = {\n \"input-url\": createStringParam(\"\", {\n label: \"URL to preview\",\n required: true,\n }),\n} satisfies InputsDefinition;\n\nconst params = {\n arch: {\n value: \"\" as NodeJS.Architecture | \"\", // MakeOptions['arch'],\n label: \"Architecture\",\n required: false,\n control: {\n type: \"select\",\n options: {\n placeholder: \"Architecture\",\n options: [\n {\n label: \"Older PCs (ia32)\",\n value: \"ia32\",\n },\n {\n label: \"Modern PCs (x64)\",\n value: \"x64\",\n },\n {\n label: \"Older Mobile/Pi (armv7l)\",\n value: \"armv7l\",\n },\n {\n label: \"New Mobile/Apple Silicon (arm64)\",\n value: \"arm64\",\n },\n {\n label: \"Mac Universal (universal)\",\n value: \"universal\",\n },\n {\n label: \"Special Systems (mips64el)\",\n value: \"mips64el\",\n },\n ],\n },\n },\n },\n platform: {\n value: \"\" as NodeJS.Platform | \"\", // MakeOptions['platform'],\n label: \"Platform\",\n required: false,\n control: {\n type: \"select\",\n options: {\n placeholder: \"Platform\",\n options: [\n {\n label: \"Windows (win32)\",\n value: \"win32\",\n },\n {\n label: \"macOS (darwin)\",\n value: \"darwin\",\n },\n {\n label: \"Linux (linux)\",\n value: \"linux\",\n },\n ],\n },\n },\n },\n configuration: {\n label: \"Electron configuration\",\n value: undefined as Partial<DesktopApp.Electron> | undefined,\n required: true,\n control: {\n type: \"json\",\n },\n },\n} satisfies InputsDefinition;\n\nexport const configureParams = {\n name: createStringParam(\"Pipelab\", {\n label: \"Application name\",\n description: \"The name of the application\",\n required: true,\n }),\n appBundleId: createStringParam(\"com.pipelab.app\", {\n label: \"Application bundle ID\",\n description: \"The bundle ID of the application\",\n required: true,\n }),\n appCopyright: createStringParam(\"Copyright © 2024 Pipelab\", {\n label: \"Application copyright\",\n description: \"The copyright of the application\",\n required: false,\n }),\n appVersion: createStringParam(\"1.0.0\", {\n label: \"Application version\",\n description: \"The version of the application\",\n required: true,\n }),\n icon: createPathParam(\"\", {\n label: \"Application icon\",\n description: \"The icon of the application. macOS: .icns. Windows: .ico\",\n required: false,\n control: {\n type: \"path\",\n options: {\n filters: [\n { name: \"Image\", extensions: [\"png\", \"jpg\", \"jpeg\", \"gif\", \"bmp\", \"ico\", \"icns\"] },\n ],\n },\n label: \"Path to an image file\",\n },\n }),\n author: createStringParam(\"Pipelab\", {\n label: \"Application author\",\n description: \"The author of the application\",\n required: true,\n }),\n description: createStringParam(\"A simple Electron application\", {\n label: \"Application description\",\n description: \"The description of the application\",\n required: false,\n }),\n customPackages: createArray<string[]>(\n `[\n // e.g. \"lodash\" or \"express@4.17.1\"\n]`,\n {\n label: \"Custom npm packages\",\n description:\n 'A list of additional npm packages to install (format: \"package\" or \"package@version\")',\n required: false,\n control: {\n type: \"array\",\n options: {\n kind: \"text\",\n },\n },\n },\n ),\n\n appCategoryType: createStringParam(\"public.app-category.developer-tools\", {\n platforms: [\"darwin\"],\n label: \"Application category type\",\n description: \"The category type of the application\",\n required: false,\n }),\n\n // window\n width: createNumberParam(800, {\n label: \"Window width\",\n description: \"The width of the window\",\n required: false,\n }),\n height: createNumberParam(600, {\n label: \"Window height\",\n description: \"The height of the window\",\n required: false,\n }),\n fullscreen: {\n label: \"Fullscreen\",\n value: false,\n description: \"Whether to start the application in fullscreen mode\",\n required: false,\n control: {\n type: \"boolean\",\n },\n },\n frame: {\n label: \"Frame\",\n value: true,\n description: \"Whether to show the window frame\",\n required: false,\n control: {\n type: \"boolean\",\n },\n },\n transparent: {\n label: \"Transparent\",\n value: false,\n description: \"Whether to make the window transparent\",\n required: false,\n control: {\n type: \"boolean\",\n },\n },\n toolbar: {\n label: \"Toolbar\",\n value: true,\n description: \"Whether to show the toolbar\",\n required: false,\n control: {\n type: \"boolean\",\n },\n },\n alwaysOnTop: {\n label: \"Always on top\",\n value: false,\n description: \"Whether to always keep the window on top\",\n required: false,\n control: {\n type: \"boolean\",\n },\n },\n\n backgroundColor: createColorPicker(\"#ffffff\", {\n label: \"Background Color\",\n description: \"The background color of the window\",\n required: false,\n }),\n\n electronVersion: createStringParam(\"\", {\n label: \"Electron version\",\n description:\n \"The version of Electron to use. If no version specified, it will use the latest one.\",\n required: false,\n }),\n customMainCode: createPathParam(\"\", {\n required: false,\n label: \"Custom main code\",\n control: {\n type: \"path\",\n options: {\n filters: [{ name: \"JavaScript\", extensions: [\"js\"] }],\n },\n label: \"Path to a file containing custom main code\",\n },\n }),\n disableAsarPackaging: {\n required: false,\n label: \"Disable ASAR packaging\",\n value: true,\n control: {\n type: \"boolean\",\n },\n description: \"Whether to disable packaging project files in a single binary or not\",\n },\n enableExtraLogging: {\n required: false,\n label: \"Enable extra logging\",\n value: false,\n control: {\n type: \"boolean\",\n },\n description: \"Whether to enable extra logging of internal tools while bundling\",\n },\n clearServiceWorkerOnBoot: {\n required: false,\n label: \"Clear service worker on boot\",\n value: false,\n control: {\n type: \"boolean\",\n },\n description: \"Whether to clear service worker on boot\",\n },\n openDevtoolsOnStart: createBooleanParam(false, {\n label: \"Open devtools on app start\",\n required: false,\n description: \"Whether to open devtools on app start\",\n }),\n\n // Flags\n\n enableInProcessGPU: {\n required: false,\n label: \"Enable in-process GPU\",\n description:\n \"When enabled, the GPU process runs inside the main browser process instead of a separate one. This can reduce overhead but may lead to instability or crashes if the GPU process fails.\",\n value: false,\n control: {\n type: \"boolean\",\n },\n },\n enableDisableRendererBackgrounding: {\n required: false,\n description:\n \"Enabling this prevents background tabs from being throttled, which can be useful for web apps that need continuous performance.\",\n label: \"Disable renderer backgrounding\",\n value: false,\n control: {\n type: \"boolean\",\n },\n },\n forceHighPerformanceGpu: {\n required: false,\n description:\n \"Enabling this forces the app to always use the high-performance GPU, which can improve rendering but may increase power consumption.\",\n label: \"Force high performance GPU\",\n value: false,\n control: {\n type: \"boolean\",\n },\n },\n\n // websocket apis\n websocketApi: {\n required: false,\n label: \"WebSocket APIs to allow (empty = all)\",\n value: \"[]\",\n control: {\n type: \"array\",\n options: {\n kind: \"text\",\n },\n },\n },\n ignore: createArray<(string | RegExp)[]>(\n `[\n // use 'src/app/' as starting point\n]`,\n {\n required: false,\n label: \"Folders to ignore\",\n description:\n \"An array of string or Regex that allow ignoring certain files or folders from being packaged\",\n control: {\n type: \"array\",\n options: {\n kind: \"text\",\n },\n },\n },\n ),\n\n // integrations\n\n enableSteamSupport: {\n required: false,\n label: \"Enable steam support\",\n description: \"Whether to enable Steam support\",\n value: false,\n control: {\n type: \"boolean\",\n },\n },\n steamGameId: createNumberParam(480, {\n required: false,\n label: \"Steam game ID\",\n description: \"The Steam game ID\",\n }),\n enableDiscordSupport: {\n required: false,\n label: \"Enable Discord support\",\n description: \"Whether to enable Discord support\",\n value: false,\n control: {\n type: \"boolean\",\n },\n },\n discordAppId: createStringParam(\"\", {\n required: false,\n label: \"Discord application ID\",\n description: \"The Discord application ID\",\n }),\n enableDoctor: createBooleanParam(true, {\n required: false,\n label: \"Enable doctor file\",\n description:\n \"Whether to include the doctor.bat file in Windows builds for prerequisite checking and app launching\",\n }),\n serverMode: {\n value: '\"default\"' as \"default\" | \"customProtocol\",\n required: false,\n label: \"Server mode\",\n description: \"The server mode to use\",\n control: {\n type: \"select\",\n options: {\n placeholder: \"Mode\",\n options: [\n {\n value: \"default\",\n label: \"Default\",\n },\n {\n value: \"customProtocol\",\n label: \"Custom Protocol\",\n },\n ],\n },\n },\n },\n} satisfies InputsDefinition;\n\nconst outputs = {\n output: {\n label: \"Output\",\n value: \"\",\n control: {\n type: \"path\",\n options: {\n properties: [\"openDirectory\"],\n },\n },\n },\n} satisfies OutputsDefinition;\n\n// type Inputs = ParamsToInput<typeof params>\n\nexport const createMakeProps = (\n id: string,\n name: string,\n description: string,\n icon: string,\n displayString: string,\n) =>\n createAction({\n id,\n name,\n description,\n icon,\n displayString,\n meta: {},\n params: {\n ...params,\n ...paramsInputFolder,\n },\n outputs,\n });\n\nexport const createPackageProps = (\n id: string,\n name: string,\n description: string,\n icon: string,\n displayString: string,\n advanced?: boolean,\n deprecated?: boolean,\n deprecatedMessage?: string,\n disabled?: false,\n updateAvailable?: boolean,\n) =>\n createAction({\n id,\n name,\n description,\n icon,\n displayString,\n meta: {},\n advanced,\n deprecated,\n deprecatedMessage,\n disabled,\n updateAvailable,\n params: {\n ...params,\n ...paramsInputFolder,\n },\n outputs: outputs,\n });\nexport const createPackageV2Props = (\n id: string,\n name: string,\n description: string,\n icon: string,\n displayString: string,\n advanced?: boolean,\n deprecated?: boolean,\n deprecatedMessage?: string,\n disabled?: false,\n updateAvailable?: boolean,\n) => {\n const { arch, platform } = params;\n return createAction({\n id,\n name,\n description,\n icon,\n displayString,\n meta: {},\n advanced,\n deprecated,\n deprecatedMessage,\n disabled,\n updateAvailable,\n params: {\n arch,\n platform,\n ...paramsInputFolder,\n ...configureParams,\n },\n outputs: outputs,\n });\n};\n\nexport const createPreviewProps = (\n id: string,\n name: string,\n description: string,\n icon: string,\n displayString: string,\n) =>\n createAction({\n id,\n name,\n description,\n icon,\n displayString,\n meta: {},\n params: {\n ...params,\n ...paramsInputURL,\n },\n outputs: outputs,\n });\n\nexport const forge = async (\n action: \"make\" | \"package\" | \"preview\",\n appFolder: string | undefined,\n {\n cwd,\n log,\n inputs,\n setOutput,\n paths,\n abortSignal,\n context,\n }: ActionRunnerData<\n | ReturnType<typeof createMakeProps>\n | ReturnType<typeof createPackageProps>\n | ReturnType<typeof createPackageV2Props>\n | ReturnType<typeof createPreviewProps>\n >,\n completeConfiguration: DesktopApp.Electron,\n): Promise<{ folder: string; binary: string | undefined } | undefined> => {\n log(\"Building electron\");\n\n if (action !== \"preview\") {\n await detectRuntime(appFolder);\n }\n\n const { modules, node } = paths;\n const destinationFolder = await generateTempFolder(paths.cache);\n log(`Staging build in ${destinationFolder}`);\n\n try {\n const forge = join(\n destinationFolder,\n \"node_modules\",\n \"@electron-forge\",\n \"cli\",\n \"dist\",\n \"electron-forge.js\",\n );\n\n const rawAssetFolder = await fetchPipelabAsset(\"@pipelab/asset-electron\", \"^1.0.0\", {\n context,\n });\n const templateFolder = join(rawAssetFolder, \"template\");\n console.log(\"templateFolder\", templateFolder);\n console.log(\"destinationFolder\", destinationFolder);\n\n // copy template to destination\n await cp(templateFolder, destinationFolder, {\n recursive: true,\n filter: (src) => {\n return basename(src) !== \"node_modules\";\n },\n });\n\n console.log(\"copy done\");\n\n const pkgJSONPath = join(destinationFolder, \"package.json\");\n const pkgJSONContent = await readFile(pkgJSONPath, \"utf8\");\n const sanitizedName = kebabCase(completeConfiguration.name);\n\n const originalIconPath = completeConfiguration.icon;\n const hasIcon = completeConfiguration.icon !== undefined && completeConfiguration.icon !== \"\";\n const iconFilename = hasIcon ? basename(completeConfiguration.icon) : \"\";\n const newIconPath = hasIcon ? join(destinationFolder, iconFilename) : \"\";\n const relativeIconPath = hasIcon ? join(\"./\", \"build\", iconFilename) : \"\";\n const relativeIconPath1 = hasIcon ? join(\"./\", iconFilename) : \"\";\n\n log(\"relativeIconPath\", relativeIconPath);\n log(\"relativeIconPath1\", relativeIconPath1);\n\n const hasElectronVersion =\n completeConfiguration.electronVersion !== undefined &&\n completeConfiguration.electronVersion !== \"\";\n const isCJSOnly =\n hasElectronVersion &&\n semver.lt(semver.coerce(completeConfiguration.electronVersion) || \"0.0.0\", \"28.0.0\");\n\n const pkgJSON = JSON.parse(pkgJSONContent);\n log(\"Setting name to\", sanitizedName);\n pkgJSON.name = sanitizedName;\n log(\"Setting productName to\", completeConfiguration.name);\n pkgJSON.productName = completeConfiguration.name;\n\n completeConfiguration.icon = relativeIconPath1;\n\n writeFile(\n join(destinationFolder, \"config.cjs\"),\n `module.exports = ${JSON.stringify(completeConfiguration, undefined, 2)}`,\n \"utf8\",\n );\n\n if (isCJSOnly) {\n log(\"Setting type to\", \"commonjs\");\n pkgJSON.type = \"commonjs\";\n } else {\n log(\"Setting type to\", \"module\");\n pkgJSON.type = \"module\";\n }\n\n await writeFile(pkgJSONPath, JSON.stringify(pkgJSON, null, 2));\n\n log(\"Installing packages\");\n const { all: installAll } = await runPnpm(destinationFolder, {\n args: [\"install\", \"--prefer-offline\"],\n signal: abortSignal,\n context,\n });\n if (installAll) log(installAll);\n\n console.log(\"done install\");\n\n // install user-defined custom packages\n if (\n Array.isArray(completeConfiguration.customPackages) &&\n completeConfiguration.customPackages.length > 0\n ) {\n log(`Installing custom packages: ${completeConfiguration.customPackages.join(\", \")}`);\n const { all: customAll } = await runPnpm(destinationFolder, {\n args: [\"install\", ...completeConfiguration.customPackages, \"--prefer-offline\"],\n signal: abortSignal,\n context,\n });\n if (customAll) log(customAll);\n }\n\n // override electron version\n if (completeConfiguration.electronVersion && completeConfiguration.electronVersion !== \"\") {\n log(`Installing electron@${completeConfiguration.electronVersion}`);\n const { all: electronAll } = await runPnpm(destinationFolder, {\n args: [\"install\", `electron@${completeConfiguration.electronVersion}`, \"--prefer-offline\"],\n signal: abortSignal,\n context,\n });\n if (electronAll) log(electronAll);\n }\n\n if (isCJSOnly) {\n log(`Installing execa@8`);\n const { all: execaAll } = await runPnpm(destinationFolder, {\n args: [\"install\", `execa@8`, \"--prefer-offline\"],\n signal: abortSignal,\n context,\n });\n if (execaAll) log(execaAll);\n }\n\n console.log(\"completeConfiguration.icon\", completeConfiguration.icon);\n\n // copy icon\n if (hasIcon) {\n await cp(originalIconPath, newIconPath, { recursive: true });\n }\n\n // copy custom main code\n const destinationFile = join(destinationFolder, \"src\", \"custom-main.js\");\n if (completeConfiguration.customMainCode) {\n await cp(completeConfiguration.customMainCode, destinationFile, { recursive: true });\n } else {\n await writeFile(destinationFile, 'console.log(\"No custom main code provided\")', {\n signal: abortSignal,\n });\n }\n\n if (isCJSOnly) {\n log(`Installing native esbuild for transpilation...`);\n const { all: esbuildAll } = await runPnpm(destinationFolder, {\n args: [\"install\", \"-D\", \"esbuild@0.24.0\", \"--prefer-offline\"],\n signal: abortSignal,\n context,\n });\n if (esbuildAll) log(esbuildAll);\n\n const esbuildPath = pathToFileURL(\n join(destinationFolder, \"node_modules\", \"esbuild\", \"lib\", \"main.js\"),\n ).href;\n const esbuild = await import(esbuildPath);\n\n /* ESBUILD transpilation */\n const external = [\n \"electron\",\n \"@pipelab/steamworks.js\",\n \"electron\",\n \"node:*\",\n \"http\",\n \"node:stream\",\n ];\n await esbuild.build({\n entryPoints: [join(destinationFolder, \"src\", \"index.js\")],\n bundle: true,\n write: true,\n format: \"cjs\",\n platform: \"node\",\n external,\n outfile: join(destinationFolder, \"dist\", \"index.js\"),\n });\n await esbuild.build({\n entryPoints: [join(destinationFolder, \"src\", \"preload.js\")],\n bundle: true,\n platform: \"node\",\n external,\n format: \"cjs\",\n write: true,\n outfile: join(destinationFolder, \"dist\", \"preload.js\"),\n });\n await esbuild.build({\n entryPoints: [join(destinationFolder, \"src\", \"custom-main.js\")],\n bundle: true,\n platform: \"node\",\n external,\n format: \"cjs\",\n write: true,\n outfile: join(destinationFolder, \"dist\", \"custom-main.js\"),\n });\n await rm(join(destinationFolder, \"src\"), { recursive: true });\n await cp(join(destinationFolder, \"dist\"), join(destinationFolder, \"src\"), {\n recursive: true,\n });\n await rm(join(destinationFolder, \"dist\"), { recursive: true });\n /* ESBUILD transpilation */\n }\n\n const placeAppFolder = join(destinationFolder, \"src\", \"app\");\n\n // if input is folder, copy folder to destination\n if (appFolder && action !== \"preview\") {\n // copy app to template\n await cp(appFolder, placeAppFolder, { recursive: true });\n }\n\n const inputPlatform = inputs.platform === \"\" ? undefined : inputs.platform;\n const inputArch = inputs.arch === \"\" ? undefined : inputs.arch;\n\n try {\n log(\"typeof inputs.platform\", typeof inputs.platform);\n const finalPlatform = inputPlatform ?? osPlatform() ?? \"\";\n log(\"finalPlatform\", finalPlatform);\n const finalArch = inputArch ?? osArch() ?? \"\";\n\n await runWithLiveLogs(\n node,\n [forge, action, /* '--', */ \"--arch\", finalArch, \"--platform\", finalPlatform],\n {\n cwd: destinationFolder,\n env: {\n DEBUG: completeConfiguration.enableExtraLogging ? \"*\" : \"\",\n ELECTRON_NO_ASAR: \"1\",\n PATH: `${dirname(node)}${delimiter}${process.env.PATH}`,\n // DEBUG: \"electron-packager\"\n },\n cancelSignal: abortSignal,\n },\n log,\n {\n onStderr(data) {\n log(data);\n },\n onStdout(data) {\n log(data);\n },\n },\n );\n\n if (action === \"package\") {\n const outName = outFolderName(\n completeConfiguration.name,\n finalPlatform as NodeJS.Platform,\n finalArch as NodeJS.Architecture,\n );\n const binName = getBinName(completeConfiguration.name);\n\n const output = join(cwd, \"out\", outName);\n setOutput(\"output\", output);\n return {\n folder: output,\n binary: join(output, binName),\n };\n } else {\n const output = join(cwd, \"out\", \"make\");\n setOutput(\"output\", output);\n return {\n folder: output,\n binary: undefined,\n };\n }\n } catch (e) {\n if (e instanceof Error) {\n if (e.name === \"RequestError\") {\n log(\"Request error\");\n }\n if (e.name === \"RequestError\") {\n log(\"Request error\");\n }\n }\n log(e);\n throw e;\n }\n } finally {\n try {\n if (action !== \"preview\") {\n const outDir = join(destinationFolder, \"out\");\n const finalOutDir = join(cwd, \"out\");\n await cp(outDir, finalOutDir, { recursive: true });\n }\n } catch (e) {\n log(\"Failed to copy build output back to cwd:\", e);\n }\n await rm(destinationFolder, { recursive: true, force: true });\n }\n};\n","export const defaultElectronConfig = {\n alwaysOnTop: false,\n appBundleId: \"com.pipelab.app\",\n appCategoryType: \"\",\n appCopyright: \"Copyright © 2024 Pipelab\",\n appVersion: \"1.0.0\",\n author: \"Pipelab\",\n customMainCode: \"\",\n description: \"A simple Electron application\",\n electronVersion: \"\",\n disableAsarPackaging: true,\n forceHighPerformanceGpu: false,\n enableExtraLogging: false,\n clearServiceWorkerOnBoot: false,\n enableDisableRendererBackgrounding: false,\n enableInProcessGPU: false,\n frame: true,\n fullscreen: false,\n icon: \"\",\n height: 600,\n name: \"Pipelab\",\n toolbar: true,\n transparent: false,\n width: 800,\n enableSteamSupport: false,\n steamGameId: 480,\n enableDiscordSupport: false,\n discordAppId: \"\",\n ignore: [] as string[],\n backgroundColor: \"#FFF\",\n openDevtoolsOnStart: false,\n enableDoctor: false,\n customPackages: [] as string[],\n serverMode: \"default\",\n} satisfies DesktopApp.Electron;\n","import { createActionRunner } from \"@pipelab/plugin-core\";\nimport { forge, createMakeProps } from \"./forge\";\nimport { merge } from \"ts-deepmerge\";\nimport { defaultElectronConfig } from \"./utils\";\n\nexport const makeRunner = createActionRunner<ReturnType<typeof createMakeProps>>(\n async (options) => {\n const appFolder = options.inputs[\"input-folder\"];\n\n if (!options.inputs.configuration) {\n throw new Error(\"Missing electron configuration\");\n }\n\n const completeConfiguration = merge(\n defaultElectronConfig,\n options.inputs.configuration,\n ) as DesktopApp.Electron;\n\n // @ts-expect-error options is not really compatible\n return await forge(\"make\", appFolder, options, completeConfiguration);\n },\n);\n","import { createActionRunner } from \"@pipelab/plugin-core\";\nimport { createPackageProps, forge } from \"./forge\";\nimport { merge } from \"ts-deepmerge\";\nimport { defaultElectronConfig } from \"./utils\";\n\nexport const packageRunner = createActionRunner<ReturnType<typeof createPackageProps>>(\n async (options) => {\n const appFolder = options.inputs[\"input-folder\"];\n\n if (!options.inputs.configuration) {\n throw new Error(\"Missing electron configuration\");\n }\n\n const completeConfiguration = merge(\n defaultElectronConfig,\n options.inputs.configuration,\n ) as DesktopApp.Electron;\n\n // @ts-expect-error options is not really compatible\n return await forge(\"package\", appFolder, options, completeConfiguration);\n },\n);\n","import { createActionRunner, runWithLiveLogs } from \"@pipelab/plugin-core\";\nimport { createPreviewProps, forge } from \"./forge\";\nimport { merge } from \"ts-deepmerge\";\nimport { defaultElectronConfig } from \"./utils\";\n\nexport const previewRunner = createActionRunner<ReturnType<typeof createPreviewProps>>(\n async (options) => {\n const url = options.inputs[\"input-url\"];\n if (url === \"\") {\n throw new Error(\"URL can't be empty\");\n }\n\n if (!options.inputs.configuration) {\n throw new Error(\"Missing electron configuration\");\n }\n\n const completeConfiguration = merge(\n defaultElectronConfig,\n options.inputs.configuration,\n ) as DesktopApp.Electron;\n\n const output = await forge(\"package\", undefined, options, completeConfiguration);\n options.log(\"Opening preview\", JSON.stringify(output));\n options.log(\"Opening url\", url);\n await runWithLiveLogs(\n output.binary,\n [\"--url\", url],\n {\n cancelSignal: options.abortSignal,\n },\n options.log,\n );\n return;\n },\n);\n","import { createAction, createActionRunner } from \"@pipelab/plugin-core\";\nimport { configureParams } from \"./forge\";\n\nexport const props = createAction({\n id: \"electron:configure\",\n description: \"Configure electron\",\n displayString: \"'Configure Electron'\",\n icon: \"\",\n meta: {},\n name: \"Configure Electron\",\n advanced: true,\n outputs: {\n configuration: {\n label: \"Configuration\",\n value: {} as Partial<DesktopApp.Electron>,\n },\n },\n params: configureParams,\n});\n\nexport const configureRunner = createActionRunner<typeof props>(async ({ setOutput, inputs }) => {\n setOutput(\"configuration\", inputs);\n});\n","import { createActionRunner } from \"@pipelab/plugin-core\";\nimport { forge } from \"./forge\";\nimport { createPackageV2Props } from \"./forge\";\nimport { merge } from \"ts-deepmerge\";\nimport { defaultElectronConfig } from \"./utils\";\n\nexport const packageV2Runner = createActionRunner<ReturnType<typeof createPackageV2Props>>(\n async (options) => {\n const appFolder = options.inputs[\"input-folder\"];\n\n const completeConfiguration = merge(defaultElectronConfig, {\n alwaysOnTop: options.inputs[\"alwaysOnTop\"],\n appBundleId: options.inputs[\"appBundleId\"],\n appCategoryType: options.inputs[\"appCategoryType\"],\n appCopyright: options.inputs[\"appCopyright\"],\n appVersion: options.inputs[\"appVersion\"],\n author: options.inputs[\"author\"],\n customMainCode: options.inputs[\"customMainCode\"],\n description: options.inputs[\"description\"],\n electronVersion: options.inputs[\"electronVersion\"],\n disableAsarPackaging: options.inputs[\"disableAsarPackaging\"],\n forceHighPerformanceGpu: options.inputs[\"forceHighPerformanceGpu\"],\n enableExtraLogging: options.inputs[\"enableExtraLogging\"],\n clearServiceWorkerOnBoot: options.inputs[\"clearServiceWorkerOnBoot\"],\n enableDisableRendererBackgrounding: options.inputs[\"enableDisableRendererBackgrounding\"],\n enableInProcessGPU: options.inputs[\"enableInProcessGPU\"],\n frame: options.inputs[\"frame\"],\n fullscreen: options.inputs[\"fullscreen\"],\n icon: options.inputs[\"icon\"],\n height: options.inputs[\"height\"],\n name: options.inputs[\"name\"],\n toolbar: options.inputs[\"toolbar\"],\n transparent: options.inputs[\"transparent\"],\n width: options.inputs[\"width\"],\n enableSteamSupport: options.inputs[\"enableSteamSupport\"],\n steamGameId: options.inputs[\"steamGameId\"],\n ignore: options.inputs[\"ignore\"],\n openDevtoolsOnStart: options.inputs[\"openDevtoolsOnStart\"],\n enableDiscordSupport: options.inputs[\"enableDiscordSupport\"],\n discordAppId: options.inputs[\"discordAppId\"],\n customPackages: options.inputs[\"customPackages\"],\n backgroundColor: options.inputs[\"backgroundColor\"],\n enableDoctor: options.inputs[\"enableDoctor\"],\n serverMode: options.inputs[\"serverMode\"],\n } satisfies DesktopApp.Electron) as DesktopApp.Electron;\n\n options.log(\"completeConfiguration\", completeConfiguration);\n\n // @ts-expect-error options is not really compatible\n return await forge(\"package\", appFolder, options, completeConfiguration);\n },\n);\n","import { makeRunner } from \"./make\";\nimport { packageRunner } from \"./package\";\nimport { previewRunner } from \"./preview\";\n\nimport { createNodeDefinition } from \"@pipelab/plugin-core\";\nconst icon = new URL(\"./public/electron.webp\", import.meta.url).href;\nimport {\n createMakeProps,\n createPackageProps,\n createPackageV2Props,\n createPreviewProps,\n IDMake,\n IDPackage,\n IDPackageV2,\n IDPreview,\n} from \"./forge\";\nimport { configureRunner, props } from \"./configure\";\nimport { packageV2Runner } from \"./package-v2\";\n\nexport default createNodeDefinition({\n description: \"Electron\",\n name: \"Electron\",\n id: \"electron\",\n icon: {\n type: \"image\",\n image: icon,\n },\n nodes: [\n // make and package\n {\n node: createMakeProps(\n IDMake,\n \"Create Installer\",\n \"Create a distributable installer for your chosen platform\",\n \"\",\n \"`Build package for ${fmt.param(params['input-folder'], 'primary', 'Input folder not set')}`\",\n ),\n runner: makeRunner,\n // disabled: platform === 'linux' ? 'Electron is not supported on Linux' : undefined\n },\n // package\n // v1\n {\n node: createPackageProps(\n IDPackage,\n \"Package app\",\n \"Gather all necessary files and prepare your app for distribution, creating a platform-specific bundle.\",\n \"\",\n \"`Package app from ${fmt.param(params['input-folder'], 'primary', 'Input folder not set')}`\",\n true,\n ),\n runner: packageRunner,\n },\n // v2\n {\n node: createPackageV2Props(\n IDPackageV2,\n \"Package app with configuration\",\n \"Gather all necessary files and prepare your app for distribution, creating a platform-specific bundle.\",\n \"\",\n \"`Package app from ${fmt.param(params['input-folder'], 'primary', 'Input folder not set')}`\",\n false,\n false,\n undefined,\n false,\n false,\n ),\n runner: packageV2Runner,\n },\n {\n node: createPreviewProps(\n IDPreview,\n \"Preview app\",\n \"Package and preview your app from an URL\",\n \"\",\n \"`Preview app from ${fmt.param(params['input-url'], 'primary', 'URL not set')}`\",\n ),\n runner: previewRunner,\n },\n {\n node: props,\n runner: configureRunner,\n },\n // {\n // node: propsConfigureV2,\n // runner: configureV2Runner\n // }\n // make without package\n // {\n // node: packageApp,\n // runner: packageRunner,\n // },\n ],\n});\n"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,MAAM,uBAAuB;AAC7B,MAAM,uBAAuB;AAE7B,MAAM,2BAA2B;AAEjC,MAAM,uBAAuB;AAE7B,MAAM,sBAAsB;AAE5B,MAAM,mCAAmC;;;;AAIzC,SAAgB,MAAM,OAAO;CACzB,IAAI,SAAS,MAAM,MAAM;AACzB,UAAS,OACJ,QAAQ,sBAAsB,o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ACP;EACF;CACD,aAAa;EACX,OAAO;EACP,OAAO;EACP,aAAa;EACb,UAAU;EACV,SAAS,EACP,MAAM,WACP;EACF;CACD,SAAS;EACP,OAAO;EACP,OAAO;EACP,aAAa;EACb,UAAU;EACV,SAAS,EACP,MAAM,WACP;EACF;CACD,aAAa;EACX,OAAO;EACP,OAAO;EACP,aAAa;EACb,UAAU;EACV,SAAS,EACP,MAAM,WACP;EACF;CAED,iBAAiB,kBAAkB,WAAW;EAC5C,OAAO;EACP,aAAa;EACb,UAAU;EACX,CAAC;CAEF,iBAAiB,kBAAkB,IAAI;EACrC,OAAO;EACP,aACE;EACF,UAAU;EACX,CAAC;CACF,gBAAgB,gBAAgB,IAAI;EAClC,UAAU;EACV,OAAO;EACP,SAAS;GACP,MAAM;GACN,SAAS,EACP,SAAS,CAAC;IAAE,MAAM;IAAc,YAAY,CAAC,KAAK;IAAE,CAAC,EACtD;GACD,OAAO;GACR;EACF,CAAC;CACF,sBAAsB;EACpB,UAAU;EACV,OAAO;EACP,OAAO;EACP,SAAS,EACP,MAAM,WACP;EACD,aAAa;EACd;CACD,oBAAoB;EAClB,UAAU;EACV,OAAO;EACP,OAAO;EACP,SAAS,EACP,MAAM,WACP;EACD,aAAa;EACd;CACD,0BAA0B;EACxB,UAAU;EACV,OAAO;EACP,OAAO;EACP,SAAS,EACP,MAAM,WACP;EACD,aAAa;EACd;CACD,qBAAqB,mBAAmB,OAAO;EAC7C,OAAO;EACP,UAAU;EACV,aAAa;EACd,CAAC;CAIF,oBAAoB;EAClB,UAAU;EACV,OAAO;EACP,aACE;EACF,OAAO;EACP,SAAS,EACP,MAAM,WACP;EACF;CACD,oCAAoC;EAClC,UAAU;EACV,aACE;EACF,OAAO;EACP,OAAO;EACP,SAAS,EACP,MAAM,WACP;EACF;CACD,yBAAyB;EACvB,UAAU;EACV,aACE;EACF,OAAO;EACP,OAAO;EACP,SAAS,EACP,MAAM,WACP;EACF;CAGD,cAAc;EACZ,UAAU;EACV,OAAO;EACP,OAAO;EACP,SAAS;GACP,MAAM;GACN,SAAS,EACP,MAAM,QACP;GACF;EACF;CACD,QAAQ,YACN;;IAGA;EACE,UAAU;EACV,OAAO;EACP,aACE;EACF,SAAS;GACP,MAAM;GACN,SAAS,EACP,MAAM,QACP;GACF;EACF,CACF;CAID,oBAAoB;EAClB,UAAU;EACV,OAAO;EACP,aAAa;EACb,OAAO;EACP,SAAS,EACP,MAAM,WACP;EACF;CACD,aAAa,kBAAkB,KAAK;EAClC,UAAU;EACV,OAAO;EACP,aAAa;EACd,CAAC;CACF,sBAAsB;EACpB,UAAU;EACV,OAAO;EACP,aAAa;EACb,OAAO;EACP,SAAS,EACP,MAAM,WACP;EACF;CACD,cAAc,kBAAkB,IAAI;EAClC,UAAU;EACV,OAAO;EACP,aAAa;EACd,CAAC;CACF,cAAc,mBAAmB,MAAM;EACrC,UAAU;EACV,OAAO;EACP,aACE;EACH,CAAC;CACF,YAAY;EACV,OAAO;EACP,UAAU;EACV,OAAO;EACP,aAAa;EACb,SAAS;GACP,MAAM;GACN,SAAS;IACP,aAAa;IACb,SAAS,CACP;KACE,OAAO;KACP,OAAO;KACR,EACD;KACE,OAAO;KACP,OAAO;KACR,CACF;IACF;GACF;EACF;CACF;AAED,MAAM,UAAU,EACd,QAAQ;CACN,OAAO;CACP,OAAO;CACP,SAAS;EACP,MAAM;EACN,SAAS,EACP,YAAY,CAAC,gBAAgB,EAC9B;EACF;CACF,EACF;AAID,MAAa,mBACX,IACA,MACA,aACA,MACA,kBAEA,aAAa;CACX;CACA;CACA;CACA;CACA;CACA,MAAM,EAAE;CACR,QAAQ;EACN,GAAG;EACH,GAAG;EACJ;CACD;CACD,CAAC;AAEJ,MAAa,sBACX,IACA,MACA,aACA,MACA,eACA,UACA,YACA,mBACA,UACA,oBAEA,aAAa;CACX;CACA;CACA;CACA;CACA;CACA,MAAM,EAAE;CACR;CACA;CACA;CACA;CACA;CACA,QAAQ;EACN,GAAG;EACH,GAAG;EACJ;CACQ;CAC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