From 89fd5e09a27b2b9e4d0dcf9ce3b736eff753c699 Mon Sep 17 00:00:00 2001 From: UmamiAppearance Date: Wed, 11 Jan 2023 13:27:54 +0100 Subject: [PATCH] v0.2.0 --- cjs/import-manager.cjs | 79 ++++++++++++++++++++++++++------------ cjs/import-manager.cjs.map | 2 +- package-lock.json | 6 +-- 3 files changed, 58 insertions(+), 29 deletions(-) diff --git a/cjs/import-manager.cjs b/cjs/import-manager.cjs index a89b117..1773d29 100644 --- a/cjs/import-manager.cjs +++ b/cjs/import-manager.cjs @@ -326,6 +326,8 @@ class ImportManagerUnitMethods { * @param {string} [set] - A new name or nothing for removal */ setAlias(memberType, name, set) { + this.#ES6only(); + if (memberType === "defaultMember") { if (name !== "*") { throw new TypeError("The modification of a default member alias is only possible if the module is an asterisk. For other changes use the 'rename' method."); @@ -370,7 +372,7 @@ class ImportManagerUnitMethods { * It handles code analysis, creates units from import * statements, attaches methods to the units and more. * - * @version 0.1.7 + * @version 0.2.0 * @author UmamiAppearance [mail@umamiappearance.eu] * @license MIT * @see https://github.com/UmamiAppearance/rollup-plugin-import-manager @@ -386,8 +388,9 @@ class ImportManager { * @param {string} filename - The path/name of the input file (used for hash generation). * @param {object} [warnSpamProtection] - A Set which contains all previously printed warning hashes. * @param {boolean} [warnings=true] - Pass false to suppress warning messages. + * @param {object} [pluginInstance] - Rollup plugin instance if used as a plugin. */ - constructor(source, filename, warnSpamProtection=new Set(), warnings=true) { + constructor(source, filename, warnSpamProtection=new Set(), warnings=true, pluginInstance=null) { if (!source) { source=""; @@ -441,14 +444,26 @@ class ImportManager { }; } + else { + if (pluginInstance) { + this.warn = pluginInstance.warn; + } else { + this.warn = msg => { + console.warn( + colorette.bold(colorette.yellow(`ImportManager: ${msg}`)) + ); + }; + } + } + this.analyze(); } /** * Analyzes the source and stores all import - * statements as unit objects in the class - * variable "imports". + * statements as unit objects in the object + * "this.imports" */ analyze() { @@ -464,7 +479,7 @@ class ImportManager { this.parsedCode.body.forEach(node => { if (node.type === "ImportDeclaration") { - const unit = this.es6NodeToUnit(node); + const unit = this.#es6NodeToUnit(node); unit.id = es6Id ++; unit.index = es6Index ++; unit.hash = this.#makeHash(unit); @@ -478,7 +493,7 @@ class ImportManager { acornWalk.full(node, part => { if (part.type === "ImportExpression") { - const unit = this.dynamicNodeToUnit(node, part); + const unit = this.#dynamicNodeToUnit(node, part); unit.id = dynamicId ++; unit.index = dynamicIndex ++; unit.hash = this.#makeHash(unit); @@ -487,7 +502,7 @@ class ImportManager { } else if (part.type === "Identifier" && part.name === "require") { - const unit = this.cjsNodeToUnit(node); + const unit = this.#cjsNodeToUnit(node); unit.id = cjsId ++; unit.index = cjsIndex ++; unit.hash = this.#makeHash(unit); @@ -565,9 +580,9 @@ class ImportManager { * @param {Object|string} node - acorn node or es6 import statement string. * @param {number} [oStart] - For updating units the original start index has to be passed. * @param {number} [oEnd] - For updating units the original end index has to be passed. - * @returns + * @returns {object} - Import Manager Unit Object. */ - es6NodeToUnit(node, oStart, oEnd) { + #es6NodeToUnit(node, oStart, oEnd) { let code; if (typeof node === "string") { @@ -696,7 +711,14 @@ class ImportManager { } - dynamicNodeToUnit(node, importObject) { + /** + * Method to generate a unit object from an acorn + * node, originated from a Dynamic Import Statement. + * @param {object} node - Complete acorn node. + * @param {object} importObject - Actual import part. + * @returns {object} - Import Manager Unit Object. + */ + #dynamicNodeToUnit(node, importObject) { const code = this.code.slice(node.start, node.end); @@ -724,7 +746,14 @@ class ImportManager { return unit; } - cjsNodeToUnit(node) { + + /** + * Method to generate a unit object from an acorn + * node, originated from a Common JS Import Statement. + * @param {object} node - Complete acorn node. + * @returns {object} - Import Manager Unit Object. + */ + #cjsNodeToUnit(node) { const code = this.code.slice(node.start, node.end); @@ -795,6 +824,7 @@ class ImportManager { * Selects a unit by its module name. * @param {string} name - Module Name. * @param {string|string[]} [type] - "cjs", "dynamic", "es6" one as a string or multiple as array of strings + * @param {boolean} allowNull - If false the module must be found or a MatchError is thrown. * @returns {Object} - An explicit unit. */ selectModByName(name, type, allowNull) { @@ -870,7 +900,7 @@ class ImportManager { // finally add methods for manipulation to the unit const unit = units[0]; - unit.methods = new ImportManagerUnitMethods(unit, this.es6NodeToUnit); + unit.methods = new ImportManagerUnitMethods(unit, this.#es6NodeToUnit); return unit; } @@ -878,8 +908,9 @@ class ImportManager { /** * Selects a unit by its id. Should only be used - * for test purposes. + * for testing purposes. * @param {number} id - Unit id. + * @param {boolean} allowNull - If false the module must be found or a MatchError is thrown. * @returns {Object} - An explicit unit. */ selectModById(id, allowNull) { @@ -915,7 +946,7 @@ class ImportManager { // add unit methods const unit = units[0]; - unit.methods = new ImportManagerUnitMethods(unit, this.es6NodeToUnit); + unit.methods = new ImportManagerUnitMethods(unit, this.#es6NodeToUnit); return unit; } @@ -927,7 +958,8 @@ class ImportManager { * All hashes for one file are stored in a list, with * the corresponding id. The id-match method can there- * fore be used, to find the unit. - * @param {string} hash - The hash string of the unit. + * @param {string} hash - The hash string of the unit. + * @param {boolean} allowNull - If false the module must be found or a MatchError is thrown. * @returns {object} - An explicit unit. */ selectModByHash(hash, allowNull) { @@ -1039,10 +1071,10 @@ class ImportManager { /** - * Inserts an ES6 Import Statement to the top + * Inserts an Import Statement to the top * of the file or after the last found import * statement. - * @param {string} statement - ES6 Import Statement. + * @param {string} statement - Import Statement. * @param {number} pos - 'top' or 'bottom' */ insertStatement(statement, pos, type) { @@ -1081,12 +1113,12 @@ class ImportManager { /** - * Inserts an ES6 Import Statement before or after + * Inserts an Import Statement before or after * a given unit. Also an existing statement can be * replaced. * @param {Object} unit - Unit Object * @param {string} mode - 'append'|'prepend'|'replace' - * @param {string} statement - ES6 Import Statement. + * @param {string} statement - Import Statement. */ insertAtUnit(unit, mode, statement) { @@ -1145,8 +1177,8 @@ class ImportManager { /** - * Bold, yellow warning messages in the mould - * of rollup warnings. With spam protection. + * Warnings with spam protection. Can use internal + * and native rollup method. * @param {string} msg - Warning Message. */ warning(msg) { @@ -1157,10 +1189,7 @@ class ImportManager { } this.warnSpamProtection.add(hash); - - console.warn( - colorette.bold(colorette.yellow(`(!) (plugin ImportManager) ${msg}`)) - ); + this.warn(msg); } } diff --git a/cjs/import-manager.cjs.map b/cjs/import-manager.cjs.map index 7c78fdd..698d55e 100644 --- a/cjs/import-manager.cjs.map +++ b/cjs/import-manager.cjs.map @@ -1 +1 @@ -{"version":3,"file":"import-manager.cjs","sources":["../src/errors.js","../src/unit-methods.js","../src/core.js"],"sourcesContent":["/**\n * Custom error to tell the user, that it is\n * not possible to select a specific unit.\n */\nclass MatchError extends Error {\n constructor(message) {\n super(message);\n this.name = \"MatchError\";\n }\n}\n\n/**\n * Custom error to abort the building process\n * for retrieving information.\n */\nclass DebuggingError extends Error {\n constructor(message) {\n super(JSON.stringify(message, null, 4));\n this.name = \"DebuggingError\";\n }\n}\n\nexport { DebuggingError, MatchError };\n","import { DebuggingError, MatchError } from \"./errors.js\";\n\n/**\n * Creates methods for unit manipulation to\n * be attached to a requested unit.\n */\nexport default class ImportManagerUnitMethods {\n\n /**\n * Stores the handed over unit and creates\n * an update method.\n * @param {Object} unit - The unit a user requests \n * @param {*} es6NodeToUnit - Method to analyze a \n */\n constructor(unit, es6NodeToUnit) {\n this.unit = unit;\n\n // After a change in the code of a es6 unit is made\n // it gets analyzed again, which is very verbose,\n // but prevents errors. The \"MagicString\" does not\n // contain multiple changes at a time. The analysis\n // function is the same as for the initial file\n // analyses and gets handed over by the main class.\n\n this.updateUnit = () => {\n\n const unit = es6NodeToUnit(\n this.unit.code.toString(),\n this.unit.start,\n this.unit.end\n );\n\n Object.assign(this.unit, unit);\n\n };\n }\n\n\n /**\n * Makes sure, that the processed unit is of type 'es6'. \n */\n #ES6only() {\n if (this.unit.type !== \"es6\") {\n throw new Error(\"This method is only available for ES6 imports.\");\n }\n }\n\n\n /**\n * Changes the module part of a import statement.\n * @param {string} name - The new module part/path.\n * @param {*} modType - Module type (literal|raw).\n */\n renameModule(name, modType) {\n if (modType === \"string\") {\n if (!this.unit.module.quotes) {\n this.unit.module.quotes = \"\\\"\";\n }\n const q = this.unit.module.quotes;\n name = q + name + q;\n } else if (modType !== \"raw\") {\n throw new TypeError(`Unknown modType '${modType}'. Valid types are 'string' and 'raw'.`);\n }\n \n this.unit.code.overwrite(this.unit.module.start, this.unit.module.end, name);\n\n if (this.unit.type === \"es6\") {\n this.updateUnit();\n }\n }\n\n\n /**\n * Adds default members to the import statement.\n * @param {string[]} names - A list of default members to add.\n */\n addDefaultMembers(names) {\n this.#ES6only();\n\n let start; \n let defStr;\n let memberPart = null;\n\n // handle the case if default members already exist\n if (this.unit.defaultMembers.count > 0) {\n start = this.unit.defaultMembers.entities.at(-1).absEnd;\n defStr = this.unit.defaultMembers.separator \n + names.join(this.unit.defaultMembers.separator);\n this.unit.code.appendRight(start, defStr);\n }\n\n // handle the case if default members do not exist, \n // and also no non default members (the addition\n // needs to be appended left, otherwise is\n // interferes with the module part)\n else if (this.unit.members.count === 0) {\n start = this.unit.module.start;\n defStr = names.join(this.unit.members.separator);\n memberPart = defStr;\n defStr += \" from \";\n this.unit.code.appendLeft(start, defStr);\n }\n\n // handle the case if default members do not exist, \n // but non default members\n else {\n start = this.unit.members.start;\n defStr = names.join(this.unit.defaultMembers.separator)\n + this.unit.members.separator;\n this.unit.code.appendRight(start, defStr);\n }\n \n this.updateUnit(memberPart);\n }\n\n\n /**\n * Adds non default members to the import statement.\n * @param {string[]} names - A list of members to add. \n */\n addMembers(names) {\n this.#ES6only();\n\n let start; \n let memStr;\n let memberPart = null;\n \n // handle the case if members already exist\n if (this.unit.members.count > 0) {\n start = this.unit.members.entities.at(-1).absEnd;\n memStr = this.unit.members.separator \n + names.join(this.unit.members.separator);\n this.unit.code.appendRight(start, memStr);\n }\n\n // handle the case if members do not exist, \n // and also no default members (the addition\n // needs to be appended left, otherwise is\n // interferes with the module part)\n else if (this.unit.defaultMembers.count === 0) {\n start = this.unit.module.start;\n memStr = \"{ \"\n + names.join(this.unit.members.separator)\n + \" }\";\n memberPart = memStr;\n memStr += \" from \";\n this.unit.code.appendLeft(start, memStr);\n }\n\n // handle the case if members do not exist, \n // but default members\n else {\n start = this.unit.defaultMembers.end;\n memStr = this.unit.defaultMembers.separator\n + \"{ \"\n + names.join(this.unit.members.separator)\n + \" }\";\n this.unit.code.appendRight(start, memStr);\n }\n\n this.updateUnit(memberPart);\n }\n\n\n /**\n * Internal helper method to get the member type.\n * The user input distinguishes between member/defaultMember\n * and the plural versions of them. To prevent confusion in the\n * process of selecting the different styles in the unit, this\n * methods adds an \"s\" to the given string if missing and selects\n * the requested type.\n * @param {*} memberType \n * @returns \n */\n #getType(memberType) {\n if (memberType.at(-1) !== \"s\") {\n memberType += \"s\";\n }\n return this.unit[memberType];\n }\n\n\n /**\n * Internal helper method to find a specific member\n * or default member.\n * @param {string} memberType - member/defaultMember. \n * @param {string} name - (default) member name. \n * @returns {Object} - (default) member object.\n */\n #findMember(memberType, name) {\n if (!name) {\n throw new Error(`${memberType} name must be set.`);\n }\n const filtered = this.#getType(memberType).entities.filter(m => m.name === name);\n if (filtered.length !== 1) {\n throw new MatchError(`Unable to locate ${memberType} with name '${name}'`);\n }\n return filtered[0];\n }\n\n\n /**\n * Removes a (default) member.\n * @param {string} memberType - member|defaultMember\n * @param {string} name - Name of the (default) member \n */\n removeMember(memberType, name) {\n this.#ES6only();\n\n const member = this.#findMember(memberType, name);\n\n if (this.#getType(memberType).count === 1) {\n this.removeMembers(memberType);\n } \n\n else {\n let start;\n let end;\n \n if (member.next) {\n start = member.start;\n end = member.next;\n } else if (member.last) {\n start = member.last;\n end = member.absEnd;\n } else {\n start = member.start;\n end = member.absEnd;\n }\n\n this.unit.code.remove(start, end); \n this.updateUnit();\n\n }\n }\n\n\n /**\n * Removes an entire group of members or default members.\n * @param {string} membersType - member(s)|defaultMember(s) \n */\n removeMembers(membersType) {\n this.#ES6only();\n\n const isDefault = membersType.indexOf(\"default\") > -1;\n\n const members = this.#getType(membersType);\n const others = this.#getType(isDefault ? \"members\" : \"defaultMembers\");\n\n let memberPart = null;\n if (others.count > 0) {\n \n const start = !isDefault \n ? this.unit.defaultMembers.entities.at(-1).end\n : members.start;\n\n this.unit.code.remove(start, members.end);\n }\n\n else {\n this.unit.code.remove(members.start, this.unit.module.start);\n memberPart = \"\";\n }\n\n this.updateUnit(memberPart);\n }\n\n\n /**\n * Renames a single (default) member. The alias\n * can be kept or overwritten. \n * @param {string} memberType - member|defaultMember \n * @param {string} name - The (default) member to rename.\n * @param {string} newName - The new name of the (default) member.\n * @param {boolean} keepAlias - True if the alias shall be untouched. \n */\n renameMember(memberType, name, newName, keepAlias) {\n this.#ES6only();\n\n const member = this.#findMember(memberType, name);\n let end;\n\n if (keepAlias) {\n end = member.end;\n } else {\n end = member.absEnd;\n }\n \n this.unit.code.overwrite(member.start, end, newName);\n this.updateUnit();\n }\n\n\n /**\n * Changes the alias. Changing can be renaming\n * setting it initially or removing. \n * @param {string} memberType - member|defaultMember\n * @param {string} name - (default) member name\n * @param {string} [set] - A new name or nothing for removal\n */\n setAlias(memberType, name, set) {\n if (memberType === \"defaultMember\") {\n if (name !== \"*\") {\n throw new TypeError(\"The modification of a default member alias is only possible if the module is an asterisk. For other changes use the 'rename' method.\");\n } else if (!set) {\n throw new TypeError(\"Removing the alias of an asterisk is invalid. Use the 'rename' method for other changes.\");\n }\n }\n const aliasStr = set ? `${name} as ${set}` : name;\n this.renameMember(memberType, name, aliasStr, false);\n this.updateUnit();\n }\n\n\n /**\n * Method to call after a unit was completely removed\n * or replaced, to prevent matching it again afterwards.\n */\n makeUntraceable() {\n this.unit.id = `(deleted) ${this.unit.id}`;\n this.unit.hash = `(deleted) ${this.unit.hash}`;\n this.unit.module.name = `(deleted) ${this.unit.module.name}`;\n }\n\n\n /**\n * Debugging method to stop the building process\n * and list this unit properties.\n */\n log() {\n const unit = { ...this.unit };\n delete unit.methods;\n unit.code = [ unit.code.toString() ];\n throw new DebuggingError(unit);\n }\n}\n","/**\n * [ImportManager]{@link https://github.com/UmamiAppearance/ImportManager}\n *\n * The core class for the rollup-plugin-import-manager,\n * which can never the less be used standalone. \n * It handles code analysis, creates units from import\n * statements, attaches methods to the units and more.\n * \n * @version 0.1.7\n * @author UmamiAppearance [mail@umamiappearance.eu]\n * @license MIT\n * @see https://github.com/UmamiAppearance/rollup-plugin-import-manager\n */\n\nimport ImportManagerUnitMethods from \"./unit-methods.js\";\nimport { DebuggingError, MatchError } from \"./errors.js\";\nimport { parse } from \"acorn\";\nimport { full as fullWalk } from \"acorn-walk\"; \nimport MagicString from \"magic-string\";\nimport { bold, yellow } from \"colorette\";\n\n\nclass ImportManager {\n\n /**\n * The constructor creates a class import\n * object and kicks of the code analysis.\n * @param {string} source - The unmodified source code.\n * @param {string} filename - The path/name of the input file (used for hash generation). \n * @param {object} [warnSpamProtection] - A Set which contains all previously printed warning hashes.\n * @param {boolean} [warnings=true] - Pass false to suppress warning messages.\n */\n constructor(source, filename, warnSpamProtection=new Set(), warnings=true) {\n\n if (!source) {\n source=\"\";\n }\n\n if (!filename) {\n filename = String(simpleHash(source));\n }\n\n this.scopeMulti = 1000;\n\n this.imports = {\n es6: {\n count: 0,\n idScope: 1 * this.scopeMulti,\n searched: false,\n units: []\n },\n dynamic: {\n count: 0,\n idScope: 2 * this.scopeMulti,\n searched: false,\n units: []\n },\n cjs: {\n count: 0,\n idScope: 3 * this.scopeMulti,\n searched: false,\n units: []\n }\n\n };\n\n // id scope lookup table with the associated type\n this.idTypes = Object.fromEntries(Object.entries(this.imports).map(([k, v]) => [v.idScope, k]));\n\n this.code = new MagicString(source);\n\n this.hashList = {};\n this.filename = filename.split(process.cwd()).at(1);\n this.warnSpamProtection = warnSpamProtection;\n \n this.parsedCode = parse(source, {\n ecmaVersion: \"latest\",\n sourceType: \"module\"\n });\n\n if (!warnings) {\n this.warning = () => {\n return;\n };\n }\n \n this.analyze();\n }\n\n\n /**\n * Analyzes the source and stores all import\n * statements as unit objects in the class \n * variable \"imports\".\n */\n analyze() {\n \n let cjsId = this.imports.cjs.idScope;\n let cjsIndex = 0;\n\n let dynamicId = this.imports.dynamic.idScope;\n let dynamicIndex = 0;\n\n let es6Id = this.imports.es6.idScope;\n let es6Index = 0;\n\n this.parsedCode.body.forEach(node => {\n\n if (node.type === \"ImportDeclaration\") {\n const unit = this.es6NodeToUnit(node);\n unit.id = es6Id ++;\n unit.index = es6Index ++;\n unit.hash = this.#makeHash(unit);\n this.imports.es6.units.push(unit);\n this.imports.es6.count ++;\n }\n \n else if (node.type === \"VariableDeclaration\" ||\n node.type === \"ExpressionStatement\")\n {\n fullWalk(node, part => {\n\n if (part.type === \"ImportExpression\") {\n const unit = this.dynamicNodeToUnit(node, part);\n unit.id = dynamicId ++;\n unit.index = dynamicIndex ++;\n unit.hash = this.#makeHash(unit);\n this.imports.dynamic.units.push(unit);\n this.imports.dynamic.count ++;\n }\n \n else if (part.type === \"Identifier\" && part.name === \"require\") {\n const unit = this.cjsNodeToUnit(node);\n unit.id = cjsId ++;\n unit.index = cjsIndex ++;\n unit.hash = this.#makeHash(unit);\n this.imports.cjs.units.push(unit);\n this.imports.cjs.count ++;\n }\n\n });\n }\n });\n }\n\n /**\n * Helper method to generate a very simple hash\n * from the unit properties.\n * @param {Object} unit - Unit to generate a hash from. \n * @returns {string} - a hash as a string \n */\n #makeHash(unit) {\n\n const makeInput = (unit) => {\n \n const joinProps = list => {\n list.forEach(member => {\n inputStr += member.name;\n if (member.alias) {\n inputStr += member.alias.name;\n }\n });\n }; \n\n let inputStr = unit.module.name\n + unit.type\n + this.filename;\n \n if (unit.members) {\n joinProps(unit.members.entities);\n }\n\n if (unit.defaultMembers) {\n joinProps(unit.defaultMembers.entities);\n }\n\n return inputStr;\n };\n\n const input = makeInput(unit);\n let hash = String(simpleHash(input));\n\n // handle duplicates\n if (hash in this.hashList) {\n \n if (unit.module.name !== \"N/A\") {\n this.warning(`It seems like there are multiple imports of module '${unit.module.name}'. You should examine that.`);\n }\n \n for (let nr=2;; nr++) {\n const nHash = `${hash}#${nr}`;\n if (!(nHash in this.hashList)) {\n hash = nHash;\n break;\n }\n }\n }\n \n this.hashList[hash] = unit.id;\n\n return hash;\n }\n\n\n /**\n * Method to generate a unit object from an acorn\n * node, originated from an ES6 Import Statement. \n * @param {Object|string} node - acorn node or es6 import statement string. \n * @param {number} [oStart] - For updating units the original start index has to be passed. \n * @param {number} [oEnd] - For updating units the original end index has to be passed.\n * @returns \n */\n es6NodeToUnit(node, oStart, oEnd) {\n\n let code;\n if (typeof node === \"string\") {\n code = node;\n try {\n node = parse(node, {\n ecmaVersion: \"latest\",\n sourceType: \"module\"\n }).body.at(0);\n } catch(e) {\n if (e instanceof SyntaxError) {\n let msg = \"\\n\\nGenerated Code Snippet\\n----------------------\\n\";\n let { line, column } = e.loc;\n line --;\n code.toString().split(\"\\n\").forEach((l, i) => {\n msg += l + \"\\n\";\n if (line === i) {\n msg += bold(\" \".repeat(column) + \"^\\n\");\n }\n });\n\n\n throw new SyntaxError(msg);\n }\n throw new Error(e);\n }\n } else {\n code = this.code.slice(node.start, node.end);\n }\n \n const mem = {\n defaultMembers: {\n count: 0,\n entities: []\n },\n members: {\n count: 0,\n entities: []\n }\n };\n\n if (node.specifiers) {\n for (const spec of node.specifiers) {\n \n const memType = spec.type === \"ImportSpecifier\" ? \"members\" : \"defaultMembers\";\n const index = mem[memType].count;\n const hasAlias = spec.local.start !== spec.start;\n\n const start = spec.start - node.start;\n let end;\n if (!hasAlias) {\n end = spec.end - node.start;\n } else {\n end = (memType === \"members\") ? spec.imported.end-node.start : start+1;\n }\n const name = code.slice(start, end);\n \n\n const member = {\n index,\n name,\n start,\n end,\n absEnd: spec.end - node.start\n };\n\n if (hasAlias) {\n member.alias = {\n name: spec.local.name,\n start: spec.local.start - node.start,\n end: spec.local.end - node.start\n };\n }\n\n if (index > 0) {\n member.last = mem[memType].entities[index-1].absEnd;\n mem[memType].entities[index-1].next = member.start;\n }\n \n mem[memType].entities.push(member);\n mem[memType].count ++;\n\n }\n }\n\n if (mem.members.count > 0) {\n const nonDefaultMatch = code.match(/{[\\s\\S]*?}/);\n mem.members.start = nonDefaultMatch.index;\n mem.members.end = mem.members.start + nonDefaultMatch.at(0).length; \n }\n\n if (mem.defaultMembers.count > 0) {\n mem.defaultMembers.start = mem.defaultMembers.entities.at(0).start;\n mem.defaultMembers.end = (mem.members.count > 0)\n ? mem.members.start\n : mem.defaultMembers.entities.at(-1).absEnd; \n }\n\n // store the first separator of the non default\n // and default members for a consistent style\n // if one wants to add members\n mem.defaultMembers.separator = (mem.defaultMembers.count > 1) ? code.slice(mem.defaultMembers.entities[0].absEnd, mem.defaultMembers.entities[0].next) : \", \";\n mem.members.separator = (mem.members.count > 1) ? code.slice(mem.members.entities[0].absEnd, mem.members.entities[0].next) : \", \";\n\n\n const module = {\n name: node.source.value.split(\"/\").at(-1),\n start: node.source.start - node.start,\n end: node.source.end - node.start,\n type: \"string\",\n quotes: node.source.raw.at(0)\n };\n\n \n const unit = {\n code: new MagicString(code),\n defaultMembers: mem.defaultMembers,\n members: mem.members,\n module,\n start: oStart || node.start,\n end: oEnd || node.end,\n type: \"es6\"\n };\n\n return unit;\n }\n\n\n dynamicNodeToUnit(node, importObject) {\n\n const code = this.code.slice(node.start, node.end);\n\n const module = {\n name: importObject.source.value.split(\"/\").at(-1) || \"N/A\",\n start: importObject.source.start - node.start,\n end: importObject.source.end - node.start\n };\n\n if (importObject.source.type === \"Literal\") {\n module.type = \"string\";\n module.quotes = importObject.source.raw.at(0);\n } else {\n module.type = \"raw\";\n }\n\n const unit = {\n code: new MagicString(code),\n module,\n start: node.start,\n end: node.end,\n type: \"dynamic\",\n };\n\n return unit;\n }\n\n cjsNodeToUnit(node) {\n\n const code = this.code.slice(node.start, node.end);\n\n const modulePart = node.declarations.at(0).init.arguments.at(0); // TODO: test if this is robust\n const module = {\n name: modulePart.value.split(\"/\").at(-1) || \"N/A\",\n start: modulePart.start - node.start,\n end: modulePart.end - node.start\n };\n\n if (modulePart.type === \"Literal\") {\n module.type = \"string\";\n module.quotes = modulePart.raw.at(0);\n } else {\n module.type = \"raw\";\n }\n\n const unit = {\n code: new MagicString(code),\n module,\n start: node.start,\n end: node.end,\n type: \"cjs\",\n };\n\n return unit;\n }\n\n // ___________________ //\n // select unit methods //\n\n /**\n * Helper method to list available units\n * in case of a MatchError.\n * @param {Object[]} units - Array of unit objects to list.\n * @returns {string} - Message for logging.\n */\n #listUnits(units) {\n const msgArray = [\"\"];\n \n units.forEach(unit => {\n msgArray.push(\n \"___\",\n `ID: ${unit.id}`,\n `HASH: ${unit.hash}`, \n `NAME: ${unit.module.name}`,\n `STATEMENT:\\n${unit.code.toString()}\\n`\n );\n });\n return msgArray.join(\"\\n\") + \"\\n\";\n }\n\n\n /**\n * Helper method to list all available units.\n * @returns {string} - Message string.\n */\n #listAllUnits() {\n let msg = \"\";\n for (const type in this.imports) {\n msg += this.#listUnits(this.imports[type].units);\n }\n return msg;\n }\n\n \n /**\n * Selects a unit by its module name.\n * @param {string} name - Module Name. \n * @param {string|string[]} [type] - \"cjs\", \"dynamic\", \"es6\" one as a string or multiple as array of strings\n * @returns {Object} - An explicit unit.\n */\n selectModByName(name, type, allowNull) {\n if (!name) {\n throw new TypeError(\"The name must be provided\");\n }\n\n let unitList = [];\n\n // if the type is not specified use all types (cjs|dynamic|es6)\n if (!type) {\n type = Object.keys(this.imports);\n } else if (!Array.isArray(type)) {\n type = [type];\n }\n\n // if an empty array was passed, also use all types\n if (!type.length) {\n type = Object.keys(this.imports);\n }\n\n // test types for validity\n for (const t of type) {\n if (!(t in this.imports)) {\n throw new TypeError(`Invalid type: '${t}' - Should be one or more of: 'cjs', 'dynamic', 'es6'.`);\n }\n\n // push all available imports in one list\n if (this.imports[t].count > 0) {\n unitList.push(...this.imports[t].units);\n }\n }\n\n // filter for unit name\n const units = unitList.filter(unit => {\n const match = unit.module.name.indexOf(name) > -1;\n\n // ignore deleted units\n if (match && unit.module.name.match(/^\\(deleted\\)/)) {\n return false;\n }\n\n return match;\n });\n\n // throw errors if the match is not one\n // (if no filename was set a null match\n // is also valid)\n if (units.length === 0) {\n if (allowNull) {\n return null;\n }\n let msg = this.#listUnits(unitList);\n let typeStr;\n\n if (type.length === 1) {\n typeStr = type + \"-imports\";\n } else if (type.length < Object.keys(this.imports).length) { \n typeStr = type.join(\"-imports or \") + \"-imports\";\n } else {\n typeStr = \"any group\";\n }\n\n msg += `___\\nUnable to locate import statement with name: '${name}' in ${typeStr}`;\n throw new MatchError(msg);\n }\n \n else if (units.length > 1) {\n let msg = this.#listUnits(units);\n msg += `___\\nFound multiple matches for '${name}'. If no other solution is available you may select via hash.`;\n throw new MatchError(msg);\n }\n\n // finally add methods for manipulation to the unit\n const unit = units[0];\n unit.methods = new ImportManagerUnitMethods(unit, this.es6NodeToUnit);\n\n return unit;\n }\n\n\n /**\n * Selects a unit by its id. Should only be used\n * for test purposes.\n * @param {number} id - Unit id. \n * @returns {Object} - An explicit unit.\n */\n selectModById(id, allowNull) {\n if (!id) {\n throw new TypeError(\"The id must be provided\");\n }\n \n // get the type by the id scope\n const type = this.idTypes[ Math.floor(id / this.scopeMulti) * this.scopeMulti ];\n\n // if it is not possible to extract a type by the scope,\n // the id is invalid \n if (!type) {\n // generate an ascending list of valid ids\n const ascIds = Object.keys(this.idTypes).sort();\n throw new TypeError(`Id '${id}' is invalid. Ids range from ${ascIds.at(0)} to ${ascIds.at(-1)}+`);\n }\n\n // filter the units of the given type for the id\n const units = this.imports[type].units.filter(n => n.id == id);\n\n // if null matches are allowed return null \n // if no match was found, otherwise raise\n // a match error\n if (units.length === 0) {\n if (allowNull) {\n return null;\n }\n let msg = this.#listUnits(this.imports[type].units);\n msg += `___\\nUnable to locate import statement with id: '${id}'`;\n throw new MatchError(msg);\n }\n\n // add unit methods\n const unit = units[0];\n unit.methods = new ImportManagerUnitMethods(unit, this.es6NodeToUnit);\n\n return unit;\n }\n\n /**\n * Selects a unit by its hash. The hash will change\n * if the unit changes its properties in the source\n * code (like members, alias, etc.)\n * All hashes for one file are stored in a list, with\n * the corresponding id. The id-match method can there-\n * fore be used, to find the unit.\n * @param {string} hash - The hash string of the unit. \n * @returns {object} - An explicit unit.\n */\n selectModByHash(hash, allowNull) {\n if (!(hash in this.hashList)) {\n if (allowNull) {\n return null;\n }\n let msg = this.#listAllUnits(); \n msg += `___\\nUnable to locate import statement with hash '${hash}'`;\n throw new MatchError(msg);\n }\n\n return this.selectModById(this.hashList[hash]);\n }\n\n // ___________________________________________ //\n // methods for unit creation, replacement, etc. //\n\n /**\n * All manipulation via unit method is made on the\n * code slice of the unit. This methods writes it\n * to the code instance. \n * @param {Object} unit - Unit Object. \n */\n commitChanges(unit) {\n this.code.overwrite(unit.start, unit.end, unit.code.toString());\n }\n\n\n /**\n * Removes a unit from the code instance.\n * The action must not be committed. \n * @param {Object} unit - Unit Object.\n */\n remove(unit) {\n const charAfter = this.code.slice(unit.end, unit.end+1);\n const end = (charAfter === \"\\n\") ? unit.end + 1 : unit.end;\n this.code.remove(unit.start, end);\n unit.methods.makeUntraceable();\n this.imports[unit.type].count --;\n }\n\n /**\n * Helper method to declare a variable.\n * @param {string} declarator - const|let|var|global \n * @param {string} varname - Variable Name. \n * @returns {string} - Declarator + Varname + Equal Sign.\n */\n #genDeclaration(declarator, varname) {\n let declaration;\n if (declarator === \"global\") {\n declaration = varname;\n } else {\n declaration = `${declarator} ${varname}`;\n }\n return declaration;\n }\n\n /**\n * Generates a CJS Import Statement.\n * @param {string} module - Module (path).\n * @returns {string} - CJS Import Statement.\n */\n makeCJSStatement(module, declarator, varname) {\n const declaration = this.#genDeclaration(declarator, varname);\n return `${declaration} = require(\"${module}\");\\n`;\n }\n\n /**\n * Generates a Dynamic Import Statement.\n * @param {string} module - Module (path).\n * @returns {string} - CJS Import Statement.\n */\n makeDynamicStatement(module, declarator, varname) {\n const declaration = this.#genDeclaration(declarator, varname);\n return `${declaration} = await import(\"${module}\");\\n`;\n }\n \n\n /**\n * Generates an ES6 Import Statement.\n * @param {string} module - Module (path).\n * @param {string[]} defaultMembers - Default Member Part.\n * @param {string[]} members - Member Part.\n * @returns {string} - ES6 Import Statement.\n */\n makeES6Statement(module, defaultMembers, members) {\n const memberStrArray = [];\n \n if (defaultMembers.length) {\n memberStrArray.push(\n defaultMembers.join(\", \")\n );\n }\n\n if (members.length) {\n memberStrArray.push(\n \"{ \" + members.join(\", \") + \" }\"\n );\n }\n\n let memberPart = memberStrArray.join(\", \");\n if (memberPart) {\n memberPart += \" from \";\n }\n\n return `import ${memberPart}'${module}';\\n`;\n }\n\n\n /**\n * Inserts an ES6 Import Statement to the top\n * of the file or after the last found import\n * statement.\n * @param {string} statement - ES6 Import Statement.\n * @param {number} pos - 'top' or 'bottom'\n */\n insertStatement(statement, pos, type) {\n\n let index = 0;\n\n if (pos !== \"top\" && this.imports[type].count > 0) {\n index = this.imports[type].units.at(-1).end;\n\n // move the index if the following char is a newline\n // (if the line was removed in an earlier operation\n // this will throw an error, don't do any change in\n // this case\n\n let nextChar;\n try {\n nextChar = this.code.slice(index, index+1);\n } catch {\n nextChar = null;\n }\n\n if (nextChar === \"\\n\") {\n index ++;\n }\n }\n \n else {\n // find the first meaningful (not a comment)\n // code and use the start as insertion point\n \n index = this.parsedCode.body.at(0).start;\n }\n \n this.code.appendRight(index, statement);\n }\n\n\n /**\n * Inserts an ES6 Import Statement before or after\n * a given unit. Also an existing statement can be\n * replaced.\n * @param {Object} unit - Unit Object \n * @param {string} mode - 'append'|'prepend'|'replace' \n * @param {string} statement - ES6 Import Statement. \n */\n insertAtUnit(unit, mode, statement) {\n\n let index;\n if (mode === \"append\") {\n index = unit.end;\n if (this.code.slice(index, index+1) === \"\\n\") {\n index ++;\n }\n this.code.appendRight(index, statement);\n }\n \n else if (mode === \"prepend\") {\n index = unit.start;\n this.code.prependLeft(index, statement);\n }\n\n else if (mode === \"replace\") {\n // remove new line from statement\n statement = statement.slice(0, -1);\n \n this.code.overwrite(unit.start, unit.end, statement);\n unit.methods.makeUntraceable();\n this.imports[unit.type].count --;\n }\n }\n\n\n // ________________________ //\n // global debugging methods //\n\n\n /**\n * Debugging method to stop the building process\n * and list all import units with its id, hash and\n * import statement.\n */\n logUnits() {\n throw new DebuggingError(this.#listAllUnits());\n }\n\n\n /**\n * Debugging method to stop the building process\n * and list the complete import object.\n */\n logUnitObjects() {\n const imports = {...this.imports};\n for (const key in imports) {\n imports[key].units.forEach(unit => {\n unit.code = [ unit.code.toString() ];\n });\n }\n throw new DebuggingError(imports);\n }\n\n\n /**\n * Bold, yellow warning messages in the mould\n * of rollup warnings. With spam protection.\n * @param {string} msg - Warning Message. \n */\n warning(msg) {\n const hash = simpleHash(msg);\n\n if (this.warnSpamProtection.has(hash)) {\n return;\n }\n\n this.warnSpamProtection.add(hash);\n\n console.warn(\n bold(yellow(`(!) (plugin ImportManager) ${msg}`))\n );\n }\n}\n\n\n/**\n * A (simple as it gets) hash from string function.\n * @see https://gist.github.com/iperelivskiy/4110988?permalink_comment_id=2697447#gistcomment-2697447\n * @see https://gist.github.com/badboy/6267743#knuths-multiplicative-method\n * @param {string} input \n * @returns {number} - Hash number.\n */\nconst simpleHash = (input) => {\n let h = 0xdeadbeef;\n for (let i=0; i>> 16) >>> 0;\n};\n\nexport { ImportManager, DebuggingError, MatchError, simpleHash };\n"],"names":["parse","fullWalk","bold","yellow"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA,MAAM,UAAU,SAAS,KAAK,CAAC;AAC/B,IAAI,WAAW,CAAC,OAAO,EAAE;AACzB,QAAQ,KAAK,CAAC,OAAO,CAAC,CAAC;AACvB,QAAQ,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;AACjC,KAAK;AACL,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,MAAM,cAAc,SAAS,KAAK,CAAC;AACnC,IAAI,WAAW,CAAC,OAAO,EAAE;AACzB,QAAQ,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AAChD,QAAQ,IAAI,CAAC,IA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AC,CAAC,2BAA2B,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;AAC7D,SAAS,CAAC;AACV,KAAK;AACL,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACK,MAAC,UAAU,GAAG,CAAC,KAAK,KAAK;AAC9B,IAAI,IAAI,CAAC,GAAG,UAAU,CAAC;AACvB,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AACvC,QAAQ,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;AAC3D,KAAK;AACL,IAAI,OAAO,CAAC,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AAChC;;;;;;;"} \ No newline at end of file +{"version":3,"file":"import-manager.cjs","sources":["../src/errors.js","../src/unit-methods.js","../src/core.js"],"sourcesContent":["/**\n * Custom error to tell the user, that it is\n * not possible to select a specific unit.\n */\nclass MatchError extends Error {\n constructor(message) {\n super(message);\n this.name = \"MatchError\";\n }\n}\n\n/**\n * Custom error to abort the building process\n * for retrieving information.\n */\nclass DebuggingError extends Error {\n constructor(message) {\n super(JSON.stringify(message, null, 4));\n this.name = \"DebuggingError\";\n }\n}\n\nexport { DebuggingError, MatchError };\n","import { DebuggingError, MatchError } from \"./errors.js\";\n\n/**\n * Creates methods for unit manipulation to\n * be attached to a requested unit.\n */\nexport default class ImportManagerUnitMethods {\n\n /**\n * Stores the handed over unit and creates\n * an update method.\n * @param {Object} unit - The unit a user requests \n * @param {*} es6NodeToUnit - Method to analyze a \n */\n constructor(unit, es6NodeToUnit) {\n this.unit = unit;\n\n // After a change in the code of a es6 unit is made\n // it gets analyzed again, which is very verbose,\n // but prevents errors. The \"MagicString\" does not\n // contain multiple changes at a time. The analysis\n // function is the same as for the initial file\n // analyses and gets handed over by the main class.\n\n this.updateUnit = () => {\n\n const unit = es6NodeToUnit(\n this.unit.code.toString(),\n this.unit.start,\n this.unit.end\n );\n\n Object.assign(this.unit, unit);\n\n };\n }\n\n\n /**\n * Makes sure, that the processed unit is of type 'es6'. \n */\n #ES6only() {\n if (this.unit.type !== \"es6\") {\n throw new Error(\"This method is only available for ES6 imports.\");\n }\n }\n\n\n /**\n * Changes the module part of a import statement.\n * @param {string} name - The new module part/path.\n * @param {*} modType - Module type (literal|raw).\n */\n renameModule(name, modType) {\n if (modType === \"string\") {\n if (!this.unit.module.quotes) {\n this.unit.module.quotes = \"\\\"\";\n }\n const q = this.unit.module.quotes;\n name = q + name + q;\n } else if (modType !== \"raw\") {\n throw new TypeError(`Unknown modType '${modType}'. Valid types are 'string' and 'raw'.`);\n }\n \n this.unit.code.overwrite(this.unit.module.start, this.unit.module.end, name);\n\n if (this.unit.type === \"es6\") {\n this.updateUnit();\n }\n }\n\n\n /**\n * Adds default members to the import statement.\n * @param {string[]} names - A list of default members to add.\n */\n addDefaultMembers(names) {\n this.#ES6only();\n\n let start; \n let defStr;\n let memberPart = null;\n\n // handle the case if default members already exist\n if (this.unit.defaultMembers.count > 0) {\n start = this.unit.defaultMembers.entities.at(-1).absEnd;\n defStr = this.unit.defaultMembers.separator \n + names.join(this.unit.defaultMembers.separator);\n this.unit.code.appendRight(start, defStr);\n }\n\n // handle the case if default members do not exist, \n // and also no non default members (the addition\n // needs to be appended left, otherwise is\n // interferes with the module part)\n else if (this.unit.members.count === 0) {\n start = this.unit.module.start;\n defStr = names.join(this.unit.members.separator);\n memberPart = defStr;\n defStr += \" from \";\n this.unit.code.appendLeft(start, defStr);\n }\n\n // handle the case if default members do not exist, \n // but non default members\n else {\n start = this.unit.members.start;\n defStr = names.join(this.unit.defaultMembers.separator)\n + this.unit.members.separator;\n this.unit.code.appendRight(start, defStr);\n }\n \n this.updateUnit(memberPart);\n }\n\n\n /**\n * Adds non default members to the import statement.\n * @param {string[]} names - A list of members to add. \n */\n addMembers(names) {\n this.#ES6only();\n\n let start; \n let memStr;\n let memberPart = null;\n \n // handle the case if members already exist\n if (this.unit.members.count > 0) {\n start = this.unit.members.entities.at(-1).absEnd;\n memStr = this.unit.members.separator \n + names.join(this.unit.members.separator);\n this.unit.code.appendRight(start, memStr);\n }\n\n // handle the case if members do not exist, \n // and also no default members (the addition\n // needs to be appended left, otherwise is\n // interferes with the module part)\n else if (this.unit.defaultMembers.count === 0) {\n start = this.unit.module.start;\n memStr = \"{ \"\n + names.join(this.unit.members.separator)\n + \" }\";\n memberPart = memStr;\n memStr += \" from \";\n this.unit.code.appendLeft(start, memStr);\n }\n\n // handle the case if members do not exist, \n // but default members\n else {\n start = this.unit.defaultMembers.end;\n memStr = this.unit.defaultMembers.separator\n + \"{ \"\n + names.join(this.unit.members.separator)\n + \" }\";\n this.unit.code.appendRight(start, memStr);\n }\n\n this.updateUnit(memberPart);\n }\n\n\n /**\n * Internal helper method to get the member type.\n * The user input distinguishes between member/defaultMember\n * and the plural versions of them. To prevent confusion in the\n * process of selecting the different styles in the unit, this\n * methods adds an \"s\" to the given string if missing and selects\n * the requested type.\n * @param {*} memberType \n * @returns \n */\n #getType(memberType) {\n if (memberType.at(-1) !== \"s\") {\n memberType += \"s\";\n }\n return this.unit[memberType];\n }\n\n\n /**\n * Internal helper method to find a specific member\n * or default member.\n * @param {string} memberType - member/defaultMember. \n * @param {string} name - (default) member name. \n * @returns {Object} - (default) member object.\n */\n #findMember(memberType, name) {\n if (!name) {\n throw new Error(`${memberType} name must be set.`);\n }\n const filtered = this.#getType(memberType).entities.filter(m => m.name === name);\n if (filtered.length !== 1) {\n throw new MatchError(`Unable to locate ${memberType} with name '${name}'`);\n }\n return filtered[0];\n }\n\n\n /**\n * Removes a (default) member.\n * @param {string} memberType - member|defaultMember\n * @param {string} name - Name of the (default) member \n */\n removeMember(memberType, name) {\n this.#ES6only();\n\n const member = this.#findMember(memberType, name);\n\n if (this.#getType(memberType).count === 1) {\n this.removeMembers(memberType);\n } \n\n else {\n let start;\n let end;\n \n if (member.next) {\n start = member.start;\n end = member.next;\n } else if (member.last) {\n start = member.last;\n end = member.absEnd;\n } else {\n start = member.start;\n end = member.absEnd;\n }\n\n this.unit.code.remove(start, end); \n this.updateUnit();\n\n }\n }\n\n\n /**\n * Removes an entire group of members or default members.\n * @param {string} membersType - member(s)|defaultMember(s) \n */\n removeMembers(membersType) {\n this.#ES6only();\n\n const isDefault = membersType.indexOf(\"default\") > -1;\n\n const members = this.#getType(membersType);\n const others = this.#getType(isDefault ? \"members\" : \"defaultMembers\");\n\n let memberPart = null;\n if (others.count > 0) {\n \n const start = !isDefault \n ? this.unit.defaultMembers.entities.at(-1).end\n : members.start;\n\n this.unit.code.remove(start, members.end);\n }\n\n else {\n this.unit.code.remove(members.start, this.unit.module.start);\n memberPart = \"\";\n }\n\n this.updateUnit(memberPart);\n }\n\n\n /**\n * Renames a single (default) member. The alias\n * can be kept or overwritten. \n * @param {string} memberType - member|defaultMember \n * @param {string} name - The (default) member to rename.\n * @param {string} newName - The new name of the (default) member.\n * @param {boolean} keepAlias - True if the alias shall be untouched. \n */\n renameMember(memberType, name, newName, keepAlias) {\n this.#ES6only();\n\n const member = this.#findMember(memberType, name);\n let end;\n\n if (keepAlias) {\n end = member.end;\n } else {\n end = member.absEnd;\n }\n \n this.unit.code.overwrite(member.start, end, newName);\n this.updateUnit();\n }\n\n\n /**\n * Changes the alias. Changing can be renaming\n * setting it initially or removing. \n * @param {string} memberType - member|defaultMember\n * @param {string} name - (default) member name\n * @param {string} [set] - A new name or nothing for removal\n */\n setAlias(memberType, name, set) {\n this.#ES6only();\n \n if (memberType === \"defaultMember\") {\n if (name !== \"*\") {\n throw new TypeError(\"The modification of a default member alias is only possible if the module is an asterisk. For other changes use the 'rename' method.\");\n } else if (!set) {\n throw new TypeError(\"Removing the alias of an asterisk is invalid. Use the 'rename' method for other changes.\");\n }\n }\n const aliasStr = set ? `${name} as ${set}` : name;\n this.renameMember(memberType, name, aliasStr, false);\n this.updateUnit();\n }\n\n\n /**\n * Method to call after a unit was completely removed\n * or replaced, to prevent matching it again afterwards.\n */\n makeUntraceable() {\n this.unit.id = `(deleted) ${this.unit.id}`;\n this.unit.hash = `(deleted) ${this.unit.hash}`;\n this.unit.module.name = `(deleted) ${this.unit.module.name}`;\n }\n\n\n /**\n * Debugging method to stop the building process\n * and list this unit properties.\n */\n log() {\n const unit = { ...this.unit };\n delete unit.methods;\n unit.code = [ unit.code.toString() ];\n throw new DebuggingError(unit);\n }\n}\n","/**\n * [ImportManager]{@link https://github.com/UmamiAppearance/ImportManager}\n *\n * The core class for the rollup-plugin-import-manager,\n * which can never the less be used standalone. \n * It handles code analysis, creates units from import\n * statements, attaches methods to the units and more.\n * \n * @version 0.2.0\n * @author UmamiAppearance [mail@umamiappearance.eu]\n * @license MIT\n * @see https://github.com/UmamiAppearance/rollup-plugin-import-manager\n */\n\nimport ImportManagerUnitMethods from \"./unit-methods.js\";\nimport { DebuggingError, MatchError } from \"./errors.js\";\nimport { parse } from \"acorn\";\nimport { full as fullWalk } from \"acorn-walk\"; \nimport MagicString from \"magic-string\";\nimport { bold, yellow } from \"colorette\";\n\n\nclass ImportManager {\n\n /**\n * The constructor creates a class import\n * object and kicks of the code analysis.\n * @param {string} source - The unmodified source code.\n * @param {string} filename - The path/name of the input file (used for hash generation). \n * @param {object} [warnSpamProtection] - A Set which contains all previously printed warning hashes.\n * @param {boolean} [warnings=true] - Pass false to suppress warning messages.\n * @param {object} [pluginInstance] - Rollup plugin instance if used as a plugin.\n */\n constructor(source, filename, warnSpamProtection=new Set(), warnings=true, pluginInstance=null) {\n\n if (!source) {\n source=\"\";\n }\n\n if (!filename) {\n filename = String(simpleHash(source));\n }\n\n this.scopeMulti = 1000;\n\n this.imports = {\n es6: {\n count: 0,\n idScope: 1 * this.scopeMulti,\n searched: false,\n units: []\n },\n dynamic: {\n count: 0,\n idScope: 2 * this.scopeMulti,\n searched: false,\n units: []\n },\n cjs: {\n count: 0,\n idScope: 3 * this.scopeMulti,\n searched: false,\n units: []\n }\n\n };\n\n // id scope lookup table with the associated type\n this.idTypes = Object.fromEntries(Object.entries(this.imports).map(([k, v]) => [v.idScope, k]));\n\n this.code = new MagicString(source);\n\n this.hashList = {};\n this.filename = filename.split(process.cwd()).at(1);\n this.warnSpamProtection = warnSpamProtection;\n \n this.parsedCode = parse(source, {\n ecmaVersion: \"latest\",\n sourceType: \"module\"\n });\n\n if (!warnings) {\n this.warning = () => {\n return;\n };\n }\n \n else {\n if (pluginInstance) {\n this.warn = pluginInstance.warn;\n } else {\n this.warn = msg => {\n console.warn(\n bold(yellow(`ImportManager: ${msg}`))\n );\n };\n }\n }\n \n this.analyze();\n }\n\n\n /**\n * Analyzes the source and stores all import\n * statements as unit objects in the object\n * \"this.imports\"\n */\n analyze() {\n \n let cjsId = this.imports.cjs.idScope;\n let cjsIndex = 0;\n\n let dynamicId = this.imports.dynamic.idScope;\n let dynamicIndex = 0;\n\n let es6Id = this.imports.es6.idScope;\n let es6Index = 0;\n\n this.parsedCode.body.forEach(node => {\n\n if (node.type === \"ImportDeclaration\") {\n const unit = this.#es6NodeToUnit(node);\n unit.id = es6Id ++;\n unit.index = es6Index ++;\n unit.hash = this.#makeHash(unit);\n this.imports.es6.units.push(unit);\n this.imports.es6.count ++;\n }\n \n else if (node.type === \"VariableDeclaration\" ||\n node.type === \"ExpressionStatement\")\n {\n fullWalk(node, part => {\n\n if (part.type === \"ImportExpression\") {\n const unit = this.#dynamicNodeToUnit(node, part);\n unit.id = dynamicId ++;\n unit.index = dynamicIndex ++;\n unit.hash = this.#makeHash(unit);\n this.imports.dynamic.units.push(unit);\n this.imports.dynamic.count ++;\n }\n \n else if (part.type === \"Identifier\" && part.name === \"require\") {\n const unit = this.#cjsNodeToUnit(node);\n unit.id = cjsId ++;\n unit.index = cjsIndex ++;\n unit.hash = this.#makeHash(unit);\n this.imports.cjs.units.push(unit);\n this.imports.cjs.count ++;\n }\n\n });\n }\n });\n }\n\n /**\n * Helper method to generate a very simple hash\n * from the unit properties.\n * @param {Object} unit - Unit to generate a hash from. \n * @returns {string} - a hash as a string \n */\n #makeHash(unit) {\n\n const makeInput = (unit) => {\n \n const joinProps = list => {\n list.forEach(member => {\n inputStr += member.name;\n if (member.alias) {\n inputStr += member.alias.name;\n }\n });\n }; \n\n let inputStr = unit.module.name\n + unit.type\n + this.filename;\n \n if (unit.members) {\n joinProps(unit.members.entities);\n }\n\n if (unit.defaultMembers) {\n joinProps(unit.defaultMembers.entities);\n }\n\n return inputStr;\n };\n\n const input = makeInput(unit);\n let hash = String(simpleHash(input));\n\n // handle duplicates\n if (hash in this.hashList) {\n \n if (unit.module.name !== \"N/A\") {\n this.warning(`It seems like there are multiple imports of module '${unit.module.name}'. You should examine that.`);\n }\n \n for (let nr=2;; nr++) {\n const nHash = `${hash}#${nr}`;\n if (!(nHash in this.hashList)) {\n hash = nHash;\n break;\n }\n }\n }\n \n this.hashList[hash] = unit.id;\n\n return hash;\n }\n\n\n /**\n * Method to generate a unit object from an acorn\n * node, originated from an ES6 Import Statement. \n * @param {Object|string} node - acorn node or es6 import statement string. \n * @param {number} [oStart] - For updating units the original start index has to be passed. \n * @param {number} [oEnd] - For updating units the original end index has to be passed.\n * @returns {object} - Import Manager Unit Object.\n */\n #es6NodeToUnit(node, oStart, oEnd) {\n\n let code;\n if (typeof node === \"string\") {\n code = node;\n try {\n node = parse(node, {\n ecmaVersion: \"latest\",\n sourceType: \"module\"\n }).body.at(0);\n } catch(e) {\n if (e instanceof SyntaxError) {\n let msg = \"\\n\\nGenerated Code Snippet\\n----------------------\\n\";\n let { line, column } = e.loc;\n line --;\n code.toString().split(\"\\n\").forEach((l, i) => {\n msg += l + \"\\n\";\n if (line === i) {\n msg += bold(\" \".repeat(column) + \"^\\n\");\n }\n });\n\n\n throw new SyntaxError(msg);\n }\n throw new Error(e);\n }\n } else {\n code = this.code.slice(node.start, node.end);\n }\n \n const mem = {\n defaultMembers: {\n count: 0,\n entities: []\n },\n members: {\n count: 0,\n entities: []\n }\n };\n\n if (node.specifiers) {\n for (const spec of node.specifiers) {\n \n const memType = spec.type === \"ImportSpecifier\" ? \"members\" : \"defaultMembers\";\n const index = mem[memType].count;\n const hasAlias = spec.local.start !== spec.start;\n\n const start = spec.start - node.start;\n let end;\n if (!hasAlias) {\n end = spec.end - node.start;\n } else {\n end = (memType === \"members\") ? spec.imported.end-node.start : start+1;\n }\n const name = code.slice(start, end);\n \n\n const member = {\n index,\n name,\n start,\n end,\n absEnd: spec.end - node.start\n };\n\n if (hasAlias) {\n member.alias = {\n name: spec.local.name,\n start: spec.local.start - node.start,\n end: spec.local.end - node.start\n };\n }\n\n if (index > 0) {\n member.last = mem[memType].entities[index-1].absEnd;\n mem[memType].entities[index-1].next = member.start;\n }\n \n mem[memType].entities.push(member);\n mem[memType].count ++;\n\n }\n }\n\n if (mem.members.count > 0) {\n const nonDefaultMatch = code.match(/{[\\s\\S]*?}/);\n mem.members.start = nonDefaultMatch.index;\n mem.members.end = mem.members.start + nonDefaultMatch.at(0).length; \n }\n\n if (mem.defaultMembers.count > 0) {\n mem.defaultMembers.start = mem.defaultMembers.entities.at(0).start;\n mem.defaultMembers.end = (mem.members.count > 0)\n ? mem.members.start\n : mem.defaultMembers.entities.at(-1).absEnd; \n }\n\n // store the first separator of the non default\n // and default members for a consistent style\n // if one wants to add members\n mem.defaultMembers.separator = (mem.defaultMembers.count > 1) ? code.slice(mem.defaultMembers.entities[0].absEnd, mem.defaultMembers.entities[0].next) : \", \";\n mem.members.separator = (mem.members.count > 1) ? code.slice(mem.members.entities[0].absEnd, mem.members.entities[0].next) : \", \";\n\n\n const module = {\n name: node.source.value.split(\"/\").at(-1),\n start: node.source.start - node.start,\n end: node.source.end - node.start,\n type: \"string\",\n quotes: node.source.raw.at(0)\n };\n\n \n const unit = {\n code: new MagicString(code),\n defaultMembers: mem.defaultMembers,\n members: mem.members,\n module,\n start: oStart || node.start,\n end: oEnd || node.end,\n type: \"es6\"\n };\n\n return unit;\n }\n\n\n /**\n * Method to generate a unit object from an acorn\n * node, originated from a Dynamic Import Statement.\n * @param {object} node - Complete acorn node.\n * @param {object} importObject - Actual import part.\n * @returns {object} - Import Manager Unit Object.\n */\n #dynamicNodeToUnit(node, importObject) {\n\n const code = this.code.slice(node.start, node.end);\n\n const module = {\n name: importObject.source.value.split(\"/\").at(-1) || \"N/A\",\n start: importObject.source.start - node.start,\n end: importObject.source.end - node.start\n };\n\n if (importObject.source.type === \"Literal\") {\n module.type = \"string\";\n module.quotes = importObject.source.raw.at(0);\n } else {\n module.type = \"raw\";\n }\n\n const unit = {\n code: new MagicString(code),\n module,\n start: node.start,\n end: node.end,\n type: \"dynamic\",\n };\n\n return unit;\n }\n\n\n /**\n * Method to generate a unit object from an acorn\n * node, originated from a Common JS Import Statement.\n * @param {object} node - Complete acorn node.\n * @returns {object} - Import Manager Unit Object.\n */\n #cjsNodeToUnit(node) {\n\n const code = this.code.slice(node.start, node.end);\n\n const modulePart = node.declarations.at(0).init.arguments.at(0); // TODO: test if this is robust\n const module = {\n name: modulePart.value.split(\"/\").at(-1) || \"N/A\",\n start: modulePart.start - node.start,\n end: modulePart.end - node.start\n };\n\n if (modulePart.type === \"Literal\") {\n module.type = \"string\";\n module.quotes = modulePart.raw.at(0);\n } else {\n module.type = \"raw\";\n }\n\n const unit = {\n code: new MagicString(code),\n module,\n start: node.start,\n end: node.end,\n type: \"cjs\",\n };\n\n return unit;\n }\n\n // ___________________ //\n // select unit methods //\n\n /**\n * Helper method to list available units\n * in case of a MatchError.\n * @param {Object[]} units - Array of unit objects to list.\n * @returns {string} - Message for logging.\n */\n #listUnits(units) {\n const msgArray = [\"\"];\n \n units.forEach(unit => {\n msgArray.push(\n \"___\",\n `ID: ${unit.id}`,\n `HASH: ${unit.hash}`, \n `NAME: ${unit.module.name}`,\n `STATEMENT:\\n${unit.code.toString()}\\n`\n );\n });\n return msgArray.join(\"\\n\") + \"\\n\";\n }\n\n\n /**\n * Helper method to list all available units.\n * @returns {string} - Message string.\n */\n #listAllUnits() {\n let msg = \"\";\n for (const type in this.imports) {\n msg += this.#listUnits(this.imports[type].units);\n }\n return msg;\n }\n\n \n /**\n * Selects a unit by its module name.\n * @param {string} name - Module Name. \n * @param {string|string[]} [type] - \"cjs\", \"dynamic\", \"es6\" one as a string or multiple as array of strings\n * @param {boolean} allowNull - If false the module must be found or a MatchError is thrown.\n * @returns {Object} - An explicit unit.\n */\n selectModByName(name, type, allowNull) {\n if (!name) {\n throw new TypeError(\"The name must be provided\");\n }\n\n let unitList = [];\n\n // if the type is not specified use all types (cjs|dynamic|es6)\n if (!type) {\n type = Object.keys(this.imports);\n } else if (!Array.isArray(type)) {\n type = [type];\n }\n\n // if an empty array was passed, also use all types\n if (!type.length) {\n type = Object.keys(this.imports);\n }\n\n // test types for validity\n for (const t of type) {\n if (!(t in this.imports)) {\n throw new TypeError(`Invalid type: '${t}' - Should be one or more of: 'cjs', 'dynamic', 'es6'.`);\n }\n\n // push all available imports in one list\n if (this.imports[t].count > 0) {\n unitList.push(...this.imports[t].units);\n }\n }\n\n // filter for unit name\n const units = unitList.filter(unit => {\n const match = unit.module.name.indexOf(name) > -1;\n\n // ignore deleted units\n if (match && unit.module.name.match(/^\\(deleted\\)/)) {\n return false;\n }\n\n return match;\n });\n\n // throw errors if the match is not one\n // (if no filename was set a null match\n // is also valid)\n if (units.length === 0) {\n if (allowNull) {\n return null;\n }\n let msg = this.#listUnits(unitList);\n let typeStr;\n\n if (type.length === 1) {\n typeStr = type + \"-imports\";\n } else if (type.length < Object.keys(this.imports).length) { \n typeStr = type.join(\"-imports or \") + \"-imports\";\n } else {\n typeStr = \"any group\";\n }\n\n msg += `___\\nUnable to locate import statement with name: '${name}' in ${typeStr}`;\n throw new MatchError(msg);\n }\n \n else if (units.length > 1) {\n let msg = this.#listUnits(units);\n msg += `___\\nFound multiple matches for '${name}'. If no other solution is available you may select via hash.`;\n throw new MatchError(msg);\n }\n\n // finally add methods for manipulation to the unit\n const unit = units[0];\n unit.methods = new ImportManagerUnitMethods(unit, this.#es6NodeToUnit);\n\n return unit;\n }\n\n\n /**\n * Selects a unit by its id. Should only be used\n * for testing purposes.\n * @param {number} id - Unit id. \n * @param {boolean} allowNull - If false the module must be found or a MatchError is thrown.\n * @returns {Object} - An explicit unit.\n */\n selectModById(id, allowNull) {\n if (!id) {\n throw new TypeError(\"The id must be provided\");\n }\n \n // get the type by the id scope\n const type = this.idTypes[ Math.floor(id / this.scopeMulti) * this.scopeMulti ];\n\n // if it is not possible to extract a type by the scope,\n // the id is invalid \n if (!type) {\n // generate an ascending list of valid ids\n const ascIds = Object.keys(this.idTypes).sort();\n throw new TypeError(`Id '${id}' is invalid. Ids range from ${ascIds.at(0)} to ${ascIds.at(-1)}+`);\n }\n\n // filter the units of the given type for the id\n const units = this.imports[type].units.filter(n => n.id == id);\n\n // if null matches are allowed return null \n // if no match was found, otherwise raise\n // a match error\n if (units.length === 0) {\n if (allowNull) {\n return null;\n }\n let msg = this.#listUnits(this.imports[type].units);\n msg += `___\\nUnable to locate import statement with id: '${id}'`;\n throw new MatchError(msg);\n }\n\n // add unit methods\n const unit = units[0];\n unit.methods = new ImportManagerUnitMethods(unit, this.#es6NodeToUnit);\n\n return unit;\n }\n\n /**\n * Selects a unit by its hash. The hash will change\n * if the unit changes its properties in the source\n * code (like members, alias, etc.)\n * All hashes for one file are stored in a list, with\n * the corresponding id. The id-match method can there-\n * fore be used, to find the unit.\n * @param {string} hash - The hash string of the unit.\n * @param {boolean} allowNull - If false the module must be found or a MatchError is thrown.\n * @returns {object} - An explicit unit.\n */\n selectModByHash(hash, allowNull) {\n if (!(hash in this.hashList)) {\n if (allowNull) {\n return null;\n }\n let msg = this.#listAllUnits(); \n msg += `___\\nUnable to locate import statement with hash '${hash}'`;\n throw new MatchError(msg);\n }\n\n return this.selectModById(this.hashList[hash]);\n }\n\n // ___________________________________________ //\n // methods for unit creation, replacement, etc. //\n\n /**\n * All manipulation via unit method is made on the\n * code slice of the unit. This methods writes it\n * to the code instance. \n * @param {Object} unit - Unit Object. \n */\n commitChanges(unit) {\n this.code.overwrite(unit.start, unit.end, unit.code.toString());\n }\n\n\n /**\n * Removes a unit from the code instance.\n * The action must not be committed. \n * @param {Object} unit - Unit Object.\n */\n remove(unit) {\n const charAfter = this.code.slice(unit.end, unit.end+1);\n const end = (charAfter === \"\\n\") ? unit.end + 1 : unit.end;\n this.code.remove(unit.start, end);\n unit.methods.makeUntraceable();\n this.imports[unit.type].count --;\n }\n\n /**\n * Helper method to declare a variable.\n * @param {string} declarator - const|let|var|global \n * @param {string} varname - Variable Name. \n * @returns {string} - Declarator + Varname + Equal Sign.\n */\n #genDeclaration(declarator, varname) {\n let declaration;\n if (declarator === \"global\") {\n declaration = varname;\n } else {\n declaration = `${declarator} ${varname}`;\n }\n return declaration;\n }\n\n /**\n * Generates a CJS Import Statement.\n * @param {string} module - Module (path).\n * @returns {string} - CJS Import Statement.\n */\n makeCJSStatement(module, declarator, varname) {\n const declaration = this.#genDeclaration(declarator, varname);\n return `${declaration} = require(\"${module}\");\\n`;\n }\n\n /**\n * Generates a Dynamic Import Statement.\n * @param {string} module - Module (path).\n * @returns {string} - CJS Import Statement.\n */\n makeDynamicStatement(module, declarator, varname) {\n const declaration = this.#genDeclaration(declarator, varname);\n return `${declaration} = await import(\"${module}\");\\n`;\n }\n \n\n /**\n * Generates an ES6 Import Statement.\n * @param {string} module - Module (path).\n * @param {string[]} defaultMembers - Default Member Part.\n * @param {string[]} members - Member Part.\n * @returns {string} - ES6 Import Statement.\n */\n makeES6Statement(module, defaultMembers, members) {\n const memberStrArray = [];\n \n if (defaultMembers.length) {\n memberStrArray.push(\n defaultMembers.join(\", \")\n );\n }\n\n if (members.length) {\n memberStrArray.push(\n \"{ \" + members.join(\", \") + \" }\"\n );\n }\n\n let memberPart = memberStrArray.join(\", \");\n if (memberPart) {\n memberPart += \" from \";\n }\n\n return `import ${memberPart}'${module}';\\n`;\n }\n\n\n /**\n * Inserts an Import Statement to the top\n * of the file or after the last found import\n * statement.\n * @param {string} statement - Import Statement.\n * @param {number} pos - 'top' or 'bottom'\n */\n insertStatement(statement, pos, type) {\n\n let index = 0;\n\n if (pos !== \"top\" && this.imports[type].count > 0) {\n index = this.imports[type].units.at(-1).end;\n\n // move the index if the following char is a newline\n // (if the line was removed in an earlier operation\n // this will throw an error, don't do any change in\n // this case\n\n let nextChar;\n try {\n nextChar = this.code.slice(index, index+1);\n } catch {\n nextChar = null;\n }\n\n if (nextChar === \"\\n\") {\n index ++;\n }\n }\n \n else {\n // find the first meaningful (not a comment)\n // code and use the start as insertion point\n \n index = this.parsedCode.body.at(0).start;\n }\n \n this.code.appendRight(index, statement);\n }\n\n\n /**\n * Inserts an Import Statement before or after\n * a given unit. Also an existing statement can be\n * replaced.\n * @param {Object} unit - Unit Object \n * @param {string} mode - 'append'|'prepend'|'replace' \n * @param {string} statement - Import Statement. \n */\n insertAtUnit(unit, mode, statement) {\n\n let index;\n if (mode === \"append\") {\n index = unit.end;\n if (this.code.slice(index, index+1) === \"\\n\") {\n index ++;\n }\n this.code.appendRight(index, statement);\n }\n \n else if (mode === \"prepend\") {\n index = unit.start;\n this.code.prependLeft(index, statement);\n }\n\n else if (mode === \"replace\") {\n // remove new line from statement\n statement = statement.slice(0, -1);\n \n this.code.overwrite(unit.start, unit.end, statement);\n unit.methods.makeUntraceable();\n this.imports[unit.type].count --;\n }\n }\n\n\n // ________________________ //\n // global debugging methods //\n\n\n /**\n * Debugging method to stop the building process\n * and list all import units with its id, hash and\n * import statement.\n */\n logUnits() {\n throw new DebuggingError(this.#listAllUnits());\n }\n\n\n /**\n * Debugging method to stop the building process\n * and list the complete import object.\n */\n logUnitObjects() {\n const imports = {...this.imports};\n for (const key in imports) {\n imports[key].units.forEach(unit => {\n unit.code = [ unit.code.toString() ];\n });\n }\n throw new DebuggingError(imports);\n }\n\n\n /**\n * Warnings with spam protection. Can use internal\n * and native rollup method.\n * @param {string} msg - Warning Message. \n */\n warning(msg) {\n const hash = simpleHash(msg);\n\n if (this.warnSpamProtection.has(hash)) {\n return;\n }\n\n this.warnSpamProtection.add(hash);\n this.warn(msg);\n }\n}\n\n\n/**\n * A (simple as it gets) hash from string function.\n * @see https://gist.github.com/iperelivskiy/4110988?permalink_comment_id=2697447#gistcomment-2697447\n * @see https://gist.github.com/badboy/6267743#knuths-multiplicative-method\n * @param {string} input \n * @returns {number} - Hash number.\n */\nconst simpleHash = (input) => {\n let h = 0xdeadbeef;\n for (let i=0; i>> 16) >>> 0;\n};\n\nexport { ImportManager, DebuggingError, MatchError, simpleHash };\n"],"names":["parse","bold","yellow","fullWalk"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA,MAAM,UAAU,SAAS,KAAK,CAAC;AAC/B,IAAI,WAAW,CAAC,OAAO,EAAE;AACzB,QAAQ,KAAK,CAAC,OAAO,CAAC,CAAC;AACvB,QAAQ,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;AACjC,KAAK;AACL,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,MAAM,cAAc,SAAS,KAAK,CAAC;AACnC,IAAI,WAAW,CAAC,OAAO,EAAE;AACzB,QAAQ,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AAChD,QAAQ,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC;AACrC,KAAK;AACL;;AClBA;AACA;AACA;AACA;AACe,MAAM,wBAAwB,CAAC;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,WAAW,CAAC,IAAI,EAAE,aAAa,EAAE;AACrC,QAAQ,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,IAAI,CAAC,UAAU,GAAG,MAAM;AAChC;AACA,YAAY,MAAM,IAAI,GAAG,aAAa;AACtC,gBAAgB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE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BAAkB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAC1C,QAAQ,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACvB,KAAK;AACL,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACK,MAAC,UAAU,GAAG,CAAC,KAAK,KAAK;AAC9B,IAAI,IAAI,CAAC,GAAG,UAAU,CAAC;AACvB,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AACvC,QAAQ,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;AAC3D,KAAK;AACL,IAAI,OAAO,CAAC,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AAChC;;;;;;;"} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 3356a5b..34ecb1b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2108,9 +2108,9 @@ } }, "node_modules/punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.2.0.tgz", + "integrity": "sha512-LN6QV1IJ9ZhxWTNdktaPClrNfp8xdSAYS0Zk2ddX7XsXZAxckMHPCBcHRo0cTcEIgYPRiGEkmji3Idkh2yFtYw==", "dev": true, "engines": { "node": ">=6"