diff --git a/CHANGELOG.md b/CHANGELOG.md index abd3556..5b32895 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [1.11.0](https://github.com/beezen/nucm/compare/v1.10.1...v1.11.0) (2024-04-10) + + +### Features + +* 新增NPM账号管理的_auth字段支持 ([95a02f6](https://github.com/beezen/nucm/commit/95a02f6adbdfc6f24f1ebaf4c98e110a779d535c)) + ### [1.10.1](https://github.com/beezen/nucm/compare/v1.10.0...v1.10.1) (2024-01-31) diff --git a/README.md b/README.md index 67ee6e7..c71f2dd 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,8 @@ $ nucm use beezen 在后续的使用过程中,您可以通过 `nucm use ` 的方式快速切换各种账号的访问令牌,从而实现对 npm 包使用不同账号进行发布。 +如果想进一步了解 NPM 登录相关的配置,可以参考[.npmrc 配置说明](https://docs.npmjs.com/cli/v9/configuring-npm/npmrc#auth-related-configuration)。 + ## 许可证 MIT diff --git a/README_EN.md b/README_EN.md index 9e5e53d..10f34c1 100644 --- a/README_EN.md +++ b/README_EN.md @@ -98,6 +98,8 @@ Note: If you have logged in through npm login or npm adduser, you can preserve t During subsequent use, you can swiftly switch between accounts using the nucm use command, enabling quick switching of the associated Access Token. This allows seamless release of NPM packages with different account credentials. +If you want to learn more about the configuration of NPM login, you can refer to the [.npmrc configuration instructions](https://docs.npmjs.com/cli/v9/configuring-npm/npmrc#auth-related-configuration). + ## LICENSE MIT diff --git a/coverage/clover.xml b/coverage/clover.xml index c24345b..b2b6e7c 100644 --- a/coverage/clover.xml +++ b/coverage/clover.xml @@ -1,85 +1,88 @@ - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + - - - + + + - - + + - - - - - - + + + + + + + + - - - - - - - + + + + + + + + + + + - + - + @@ -121,36 +124,37 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + - + + - - - + + - - - - - - - + + + + + + + + + @@ -171,11 +175,11 @@ - + - - - + + + diff --git a/coverage/coverage-final.json b/coverage/coverage-final.json index 8478403..cbae051 100644 --- a/coverage/coverage-final.json +++ b/coverage/coverage-final.json @@ -1,6 +1,6 @@ -{"/Users/beezen/mine/github/nucm/src/actions/base.ts": {"path":"/Users/beezen/mine/github/nucm/src/actions/base.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":61}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":38}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":47}},"3":{"start":{"line":5,"column":15},"end":{"line":5,"column":32}},"4":{"start":{"line":15,"column":41},"end":{"line":15,"column":55}},"5":{"start":{"line":16,"column":21},"end":{"line":16,"column":82}},"6":{"start":{"line":17,"column":17},"end":{"line":17,"column":19}},"7":{"start":{"line":18,"column":22},"end":{"line":30,"column":3}},"8":{"start":{"line":19,"column":4},"end":{"line":29,"column":18}},"9":{"start":{"line":21,"column":27},"end":{"line":23,"column":58}},"10":{"start":{"line":24,"column":8},"end":{"line":26,"column":9}},"11":{"start":{"line":25,"column":10},"end":{"line":25,"column":75}},"12":{"start":{"line":27,"column":8},"end":{"line":27,"column":59}},"13":{"start":{"line":31,"column":23},"end":{"line":31,"column":38}},"14":{"start":{"line":32,"column":2},"end":{"line":34,"column":5}},"15":{"start":{"line":35,"column":2},"end":{"line":53,"column":3}},"16":{"start":{"line":36,"column":45},"end":{"line":36,"column":57}},"17":{"start":{"line":36,"column":40},"end":{"line":36,"column":45}},"18":{"start":{"line":37,"column":4},"end":{"line":46,"column":20}},"19":{"start":{"line":40,"column":10},"end":{"line":43,"column":33}},"20":{"start":{"line":44,"column":8},"end":{"line":44,"column":81}},"21":{"start":{"line":47,"column":4},"end":{"line":47,"column":23}},"22":{"start":{"line":49,"column":20},"end":{"line":49,"column":74}},"23":{"start":{"line":51,"column":4},"end":{"line":51,"column":82}},"24":{"start":{"line":52,"column":4},"end":{"line":52,"column":46}},"25":{"start":{"line":54,"column":2},"end":{"line":54,"column":18}},"26":{"start":{"line":14,"column":0},"end":{"line":14,"column":16}},"27":{"start":{"line":59,"column":41},"end":{"line":59,"column":55}},"28":{"start":{"line":60,"column":20},"end":{"line":60,"column":34}},"29":{"start":{"line":61,"column":21},"end":{"line":61,"column":36}},"30":{"start":{"line":62,"column":20},"end":{"line":62,"column":67}},"31":{"start":{"line":63,"column":2},"end":{"line":66,"column":3}},"32":{"start":{"line":64,"column":4},"end":{"line":64,"column":52}},"33":{"start":{"line":65,"column":4},"end":{"line":65,"column":11}},"34":{"start":{"line":67,"column":2},"end":{"line":68,"column":39}},"35":{"start":{"line":69,"column":2},"end":{"line":73,"column":5}},"36":{"start":{"line":70,"column":4},"end":{"line":72,"column":5}},"37":{"start":{"line":71,"column":6},"end":{"line":71,"column":44}},"38":{"start":{"line":74,"column":2},"end":{"line":74,"column":41}},"39":{"start":{"line":75,"column":2},"end":{"line":75,"column":34}},"40":{"start":{"line":76,"column":2},"end":{"line":76,"column":32}},"41":{"start":{"line":77,"column":2},"end":{"line":77,"column":64}},"42":{"start":{"line":58,"column":0},"end":{"line":58,"column":16}},"43":{"start":{"line":82,"column":41},"end":{"line":82,"column":55}},"44":{"start":{"line":83,"column":23},"end":{"line":83,"column":38}},"45":{"start":{"line":84,"column":20},"end":{"line":84,"column":67}},"46":{"start":{"line":85,"column":2},"end":{"line":85,"column":49}},"47":{"start":{"line":86,"column":2},"end":{"line":86,"column":45}},"48":{"start":{"line":87,"column":2},"end":{"line":87,"column":58}},"49":{"start":{"line":88,"column":2},"end":{"line":88,"column":34}},"50":{"start":{"line":89,"column":2},"end":{"line":89,"column":51}},"51":{"start":{"line":90,"column":2},"end":{"line":93,"column":3}},"52":{"start":{"line":92,"column":4},"end":{"line":92,"column":21}},"53":{"start":{"line":81,"column":0},"end":{"line":81,"column":16}},"54":{"start":{"line":98,"column":41},"end":{"line":98,"column":55}},"55":{"start":{"line":99,"column":23},"end":{"line":99,"column":38}},"56":{"start":{"line":100,"column":20},"end":{"line":100,"column":67}},"57":{"start":{"line":101,"column":2},"end":{"line":104,"column":3}},"58":{"start":{"line":102,"column":4},"end":{"line":102,"column":54}},"59":{"start":{"line":103,"column":4},"end":{"line":103,"column":11}},"60":{"start":{"line":105,"column":2},"end":{"line":105,"column":27}},"61":{"start":{"line":106,"column":2},"end":{"line":106,"column":34}},"62":{"start":{"line":107,"column":2},"end":{"line":107,"column":54}},"63":{"start":{"line":97,"column":0},"end":{"line":97,"column":16}}},"fnMap":{"0":{"name":"getUserList","decl":{"start":{"line":14,"column":16},"end":{"line":14,"column":27}},"loc":{"start":{"line":14,"column":45},"end":{"line":55,"column":1}}},"1":{"name":"(anonymous_2)","decl":{"start":{"line":18,"column":22},"end":{"line":18,"column":32}},"loc":{"start":{"line":18,"column":48},"end":{"line":30,"column":3}}},"2":{"name":"(anonymous_3)","decl":{"start":{"line":20,"column":11},"end":{"line":20,"column":12}},"loc":{"start":{"line":20,"column":19},"end":{"line":28,"column":7}}},"3":{"name":"(anonymous_4)","decl":{"start":{"line":38,"column":11},"end":{"line":38,"column":12}},"loc":{"start":{"line":38,"column":28},"end":{"line":45,"column":7}}},"4":{"name":"changeUser","decl":{"start":{"line":58,"column":16},"end":{"line":58,"column":26}},"loc":{"start":{"line":58,"column":39},"end":{"line":78,"column":1}}},"5":{"name":"(anonymous_6)","decl":{"start":{"line":69,"column":35},"end":{"line":69,"column":36}},"loc":{"start":{"line":69,"column":43},"end":{"line":73,"column":3}}},"6":{"name":"addUser","decl":{"start":{"line":81,"column":16},"end":{"line":81,"column":23}},"loc":{"start":{"line":81,"column":51},"end":{"line":94,"column":1}}},"7":{"name":"removeUser","decl":{"start":{"line":97,"column":16},"end":{"line":97,"column":26}},"loc":{"start":{"line":97,"column":39},"end":{"line":108,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":18,"column":32},"end":{"line":18,"column":48}},"type":"default-arg","locations":[{"start":{"line":18,"column":46},"end":{"line":18,"column":48}}]},"1":{"loc":{"start":{"line":21,"column":27},"end":{"line":23,"column":58}},"type":"cond-expr","locations":[{"start":{"line":22,"column":12},"end":{"line":22,"column":45}},{"start":{"line":23,"column":12},"end":{"line":23,"column":58}}]},"2":{"loc":{"start":{"line":24,"column":8},"end":{"line":26,"column":9}},"type":"if","locations":[{"start":{"line":24,"column":8},"end":{"line":26,"column":9}}]},"3":{"loc":{"start":{"line":35,"column":2},"end":{"line":53,"column":3}},"type":"if","locations":[{"start":{"line":35,"column":2},"end":{"line":53,"column":3}},{"start":{"line":48,"column":9},"end":{"line":53,"column":3}}]},"4":{"loc":{"start":{"line":40,"column":10},"end":{"line":43,"column":33}},"type":"cond-expr","locations":[{"start":{"line":42,"column":14},"end":{"line":42,"column":48}},{"start":{"line":43,"column":14},"end":{"line":43,"column":33}}]},"5":{"loc":{"start":{"line":52,"column":13},"end":{"line":52,"column":44}},"type":"cond-expr","locations":[{"start":{"line":52,"column":23},"end":{"line":52,"column":31}},{"start":{"line":52,"column":34},"end":{"line":52,"column":44}}]},"6":{"loc":{"start":{"line":62,"column":20},"end":{"line":62,"column":67}},"type":"binary-expr","locations":[{"start":{"line":62,"column":20},"end":{"line":62,"column":61}},{"start":{"line":62,"column":65},"end":{"line":62,"column":67}}]},"7":{"loc":{"start":{"line":63,"column":2},"end":{"line":66,"column":3}},"type":"if","locations":[{"start":{"line":63,"column":2},"end":{"line":66,"column":3}}]},"8":{"loc":{"start":{"line":70,"column":4},"end":{"line":72,"column":5}},"type":"if","locations":[{"start":{"line":70,"column":4},"end":{"line":72,"column":5}}]},"9":{"loc":{"start":{"line":84,"column":20},"end":{"line":84,"column":67}},"type":"binary-expr","locations":[{"start":{"line":84,"column":20},"end":{"line":84,"column":61}},{"start":{"line":84,"column":65},"end":{"line":84,"column":67}}]},"10":{"loc":{"start":{"line":85,"column":2},"end":{"line":85,"column":48}},"type":"binary-expr","locations":[{"start":{"line":85,"column":2},"end":{"line":85,"column":20}},{"start":{"line":85,"column":25},"end":{"line":85,"column":47}}]},"11":{"loc":{"start":{"line":90,"column":2},"end":{"line":93,"column":3}},"type":"if","locations":[{"start":{"line":90,"column":2},"end":{"line":93,"column":3}}]},"12":{"loc":{"start":{"line":100,"column":20},"end":{"line":100,"column":67}},"type":"binary-expr","locations":[{"start":{"line":100,"column":20},"end":{"line":100,"column":61}},{"start":{"line":100,"column":65},"end":{"line":100,"column":67}}]},"13":{"loc":{"start":{"line":101,"column":2},"end":{"line":104,"column":3}},"type":"if","locations":[{"start":{"line":101,"column":2},"end":{"line":104,"column":3}}]}},"s":{"0":1,"1":1,"2":1,"3":1,"4":2,"5":2,"6":2,"7":2,"8":6,"9":15,"10":15,"11":6,"12":9,"13":2,"14":2,"15":2,"16":1,"17":1,"18":1,"19":5,"20":5,"21":1,"22":1,"23":1,"24":1,"25":2,"26":1,"27":2,"28":2,"29":2,"30":2,"31":2,"32":0,"33":0,"34":2,"35":2,"36":8,"37":1,"38":2,"39":2,"40":2,"41":2,"42":1,"43":2,"44":2,"45":2,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"52":0,"53":1,"54":2,"55":2,"56":2,"57":2,"58":0,"59":0,"60":2,"61":2,"62":2,"63":1},"f":{"0":2,"1":6,"2":15,"3":5,"4":2,"5":8,"6":2,"7":2},"b":{"0":[0],"1":[0,15],"2":[6],"3":[1,1],"4":[1,4],"5":[1,0],"6":[2,0],"7":[0],"8":[1],"9":[2,0],"10":[2,2],"11":[0],"12":[2,0],"13":[0]}} +{"/Users/beezen/mine/github/nucm/src/actions/base.ts": {"path":"/Users/beezen/mine/github/nucm/src/actions/base.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":61}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":38}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":47}},"3":{"start":{"line":5,"column":15},"end":{"line":5,"column":32}},"4":{"start":{"line":20,"column":41},"end":{"line":20,"column":55}},"5":{"start":{"line":21,"column":21},"end":{"line":21,"column":82}},"6":{"start":{"line":22,"column":17},"end":{"line":22,"column":19}},"7":{"start":{"line":23,"column":22},"end":{"line":35,"column":3}},"8":{"start":{"line":24,"column":4},"end":{"line":34,"column":18}},"9":{"start":{"line":26,"column":27},"end":{"line":28,"column":58}},"10":{"start":{"line":29,"column":8},"end":{"line":31,"column":9}},"11":{"start":{"line":30,"column":10},"end":{"line":30,"column":75}},"12":{"start":{"line":32,"column":8},"end":{"line":32,"column":59}},"13":{"start":{"line":36,"column":23},"end":{"line":36,"column":38}},"14":{"start":{"line":37,"column":2},"end":{"line":39,"column":5}},"15":{"start":{"line":40,"column":2},"end":{"line":58,"column":3}},"16":{"start":{"line":41,"column":45},"end":{"line":41,"column":57}},"17":{"start":{"line":41,"column":40},"end":{"line":41,"column":45}},"18":{"start":{"line":42,"column":4},"end":{"line":51,"column":20}},"19":{"start":{"line":45,"column":10},"end":{"line":48,"column":33}},"20":{"start":{"line":49,"column":8},"end":{"line":49,"column":81}},"21":{"start":{"line":52,"column":4},"end":{"line":52,"column":23}},"22":{"start":{"line":54,"column":20},"end":{"line":54,"column":74}},"23":{"start":{"line":56,"column":4},"end":{"line":56,"column":82}},"24":{"start":{"line":57,"column":4},"end":{"line":57,"column":46}},"25":{"start":{"line":59,"column":2},"end":{"line":59,"column":18}},"26":{"start":{"line":19,"column":0},"end":{"line":19,"column":16}},"27":{"start":{"line":64,"column":41},"end":{"line":64,"column":55}},"28":{"start":{"line":65,"column":20},"end":{"line":65,"column":34}},"29":{"start":{"line":66,"column":21},"end":{"line":66,"column":36}},"30":{"start":{"line":67,"column":20},"end":{"line":67,"column":67}},"31":{"start":{"line":68,"column":2},"end":{"line":71,"column":3}},"32":{"start":{"line":69,"column":4},"end":{"line":69,"column":52}},"33":{"start":{"line":70,"column":4},"end":{"line":70,"column":11}},"34":{"start":{"line":72,"column":16},"end":{"line":72,"column":28}},"35":{"start":{"line":73,"column":2},"end":{"line":75,"column":3}},"36":{"start":{"line":74,"column":4},"end":{"line":74,"column":33}},"37":{"start":{"line":76,"column":2},"end":{"line":77,"column":39}},"38":{"start":{"line":78,"column":2},"end":{"line":82,"column":5}},"39":{"start":{"line":79,"column":4},"end":{"line":81,"column":5}},"40":{"start":{"line":80,"column":6},"end":{"line":80,"column":44}},"41":{"start":{"line":83,"column":2},"end":{"line":83,"column":41}},"42":{"start":{"line":84,"column":2},"end":{"line":84,"column":34}},"43":{"start":{"line":85,"column":2},"end":{"line":85,"column":32}},"44":{"start":{"line":86,"column":2},"end":{"line":86,"column":64}},"45":{"start":{"line":63,"column":0},"end":{"line":63,"column":16}},"46":{"start":{"line":91,"column":41},"end":{"line":91,"column":55}},"47":{"start":{"line":92,"column":23},"end":{"line":92,"column":38}},"48":{"start":{"line":93,"column":20},"end":{"line":93,"column":67}},"49":{"start":{"line":94,"column":2},"end":{"line":94,"column":49}},"50":{"start":{"line":95,"column":2},"end":{"line":95,"column":45}},"51":{"start":{"line":96,"column":2},"end":{"line":96,"column":58}},"52":{"start":{"line":97,"column":2},"end":{"line":97,"column":34}},"53":{"start":{"line":98,"column":2},"end":{"line":98,"column":51}},"54":{"start":{"line":99,"column":2},"end":{"line":102,"column":3}},"55":{"start":{"line":101,"column":4},"end":{"line":101,"column":21}},"56":{"start":{"line":90,"column":0},"end":{"line":90,"column":16}},"57":{"start":{"line":107,"column":41},"end":{"line":107,"column":55}},"58":{"start":{"line":108,"column":23},"end":{"line":108,"column":38}},"59":{"start":{"line":109,"column":20},"end":{"line":109,"column":67}},"60":{"start":{"line":110,"column":2},"end":{"line":113,"column":3}},"61":{"start":{"line":111,"column":4},"end":{"line":111,"column":54}},"62":{"start":{"line":112,"column":4},"end":{"line":112,"column":11}},"63":{"start":{"line":114,"column":2},"end":{"line":114,"column":27}},"64":{"start":{"line":115,"column":2},"end":{"line":115,"column":34}},"65":{"start":{"line":116,"column":2},"end":{"line":116,"column":54}},"66":{"start":{"line":106,"column":0},"end":{"line":106,"column":16}}},"fnMap":{"0":{"name":"getUserList","decl":{"start":{"line":19,"column":16},"end":{"line":19,"column":27}},"loc":{"start":{"line":19,"column":45},"end":{"line":60,"column":1}}},"1":{"name":"(anonymous_2)","decl":{"start":{"line":23,"column":22},"end":{"line":23,"column":32}},"loc":{"start":{"line":23,"column":48},"end":{"line":35,"column":3}}},"2":{"name":"(anonymous_3)","decl":{"start":{"line":25,"column":11},"end":{"line":25,"column":12}},"loc":{"start":{"line":25,"column":19},"end":{"line":33,"column":7}}},"3":{"name":"(anonymous_4)","decl":{"start":{"line":43,"column":11},"end":{"line":43,"column":12}},"loc":{"start":{"line":43,"column":28},"end":{"line":50,"column":7}}},"4":{"name":"changeUser","decl":{"start":{"line":63,"column":16},"end":{"line":63,"column":26}},"loc":{"start":{"line":63,"column":62},"end":{"line":87,"column":1}}},"5":{"name":"(anonymous_6)","decl":{"start":{"line":78,"column":35},"end":{"line":78,"column":36}},"loc":{"start":{"line":78,"column":43},"end":{"line":82,"column":3}}},"6":{"name":"addUser","decl":{"start":{"line":90,"column":16},"end":{"line":90,"column":23}},"loc":{"start":{"line":90,"column":51},"end":{"line":103,"column":1}}},"7":{"name":"removeUser","decl":{"start":{"line":106,"column":16},"end":{"line":106,"column":26}},"loc":{"start":{"line":106,"column":39},"end":{"line":117,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":23,"column":32},"end":{"line":23,"column":48}},"type":"default-arg","locations":[{"start":{"line":23,"column":46},"end":{"line":23,"column":48}}]},"1":{"loc":{"start":{"line":26,"column":27},"end":{"line":28,"column":58}},"type":"cond-expr","locations":[{"start":{"line":27,"column":12},"end":{"line":27,"column":45}},{"start":{"line":28,"column":12},"end":{"line":28,"column":58}}]},"2":{"loc":{"start":{"line":29,"column":8},"end":{"line":31,"column":9}},"type":"if","locations":[{"start":{"line":29,"column":8},"end":{"line":31,"column":9}}]},"3":{"loc":{"start":{"line":40,"column":2},"end":{"line":58,"column":3}},"type":"if","locations":[{"start":{"line":40,"column":2},"end":{"line":58,"column":3}},{"start":{"line":53,"column":9},"end":{"line":58,"column":3}}]},"4":{"loc":{"start":{"line":45,"column":10},"end":{"line":48,"column":33}},"type":"cond-expr","locations":[{"start":{"line":47,"column":14},"end":{"line":47,"column":48}},{"start":{"line":48,"column":14},"end":{"line":48,"column":33}}]},"5":{"loc":{"start":{"line":57,"column":13},"end":{"line":57,"column":44}},"type":"cond-expr","locations":[{"start":{"line":57,"column":23},"end":{"line":57,"column":31}},{"start":{"line":57,"column":34},"end":{"line":57,"column":44}}]},"6":{"loc":{"start":{"line":67,"column":20},"end":{"line":67,"column":67}},"type":"binary-expr","locations":[{"start":{"line":67,"column":20},"end":{"line":67,"column":61}},{"start":{"line":67,"column":65},"end":{"line":67,"column":67}}]},"7":{"loc":{"start":{"line":68,"column":2},"end":{"line":71,"column":3}},"type":"if","locations":[{"start":{"line":68,"column":2},"end":{"line":71,"column":3}}]},"8":{"loc":{"start":{"line":73,"column":2},"end":{"line":75,"column":3}},"type":"if","locations":[{"start":{"line":73,"column":2},"end":{"line":75,"column":3}}]},"9":{"loc":{"start":{"line":73,"column":37},"end":{"line":73,"column":50}},"type":"cond-expr","locations":[{"start":{"line":73,"column":44},"end":{"line":73,"column":46}},{"start":{"line":73,"column":37},"end":{"line":73,"column":50}}]},"10":{"loc":{"start":{"line":73,"column":37},"end":{"line":73,"column":46}},"type":"binary-expr","locations":[{"start":{"line":73,"column":37},"end":{"line":73,"column":46}},{"start":{"line":73,"column":37},"end":{"line":73,"column":46}}]},"11":{"loc":{"start":{"line":79,"column":4},"end":{"line":81,"column":5}},"type":"if","locations":[{"start":{"line":79,"column":4},"end":{"line":81,"column":5}}]},"12":{"loc":{"start":{"line":93,"column":20},"end":{"line":93,"column":67}},"type":"binary-expr","locations":[{"start":{"line":93,"column":20},"end":{"line":93,"column":61}},{"start":{"line":93,"column":65},"end":{"line":93,"column":67}}]},"13":{"loc":{"start":{"line":94,"column":2},"end":{"line":94,"column":48}},"type":"binary-expr","locations":[{"start":{"line":94,"column":2},"end":{"line":94,"column":20}},{"start":{"line":94,"column":25},"end":{"line":94,"column":47}}]},"14":{"loc":{"start":{"line":99,"column":2},"end":{"line":102,"column":3}},"type":"if","locations":[{"start":{"line":99,"column":2},"end":{"line":102,"column":3}}]},"15":{"loc":{"start":{"line":109,"column":20},"end":{"line":109,"column":67}},"type":"binary-expr","locations":[{"start":{"line":109,"column":20},"end":{"line":109,"column":61}},{"start":{"line":109,"column":65},"end":{"line":109,"column":67}}]},"16":{"loc":{"start":{"line":110,"column":2},"end":{"line":113,"column":3}},"type":"if","locations":[{"start":{"line":110,"column":2},"end":{"line":113,"column":3}}]}},"s":{"0":1,"1":1,"2":1,"3":1,"4":2,"5":2,"6":2,"7":2,"8":7,"9":12,"10":12,"11":7,"12":5,"13":2,"14":2,"15":2,"16":1,"17":1,"18":1,"19":6,"20":6,"21":1,"22":1,"23":1,"24":1,"25":2,"26":1,"27":2,"28":2,"29":2,"30":2,"31":2,"32":0,"33":0,"34":2,"35":2,"36":0,"37":2,"38":2,"39":4,"40":1,"41":2,"42":2,"43":2,"44":2,"45":1,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"52":2,"53":2,"54":2,"55":0,"56":1,"57":2,"58":2,"59":2,"60":2,"61":0,"62":0,"63":2,"64":2,"65":2,"66":1},"f":{"0":2,"1":7,"2":12,"3":6,"4":2,"5":4,"6":2,"7":2},"b":{"0":[0],"1":[0,12],"2":[7],"3":[1,1],"4":[1,5],"5":[1,0],"6":[2,0],"7":[0],"8":[0],"9":[2,0],"10":[2,2],"11":[1],"12":[2,0],"13":[2,2],"14":[0],"15":[2,0],"16":[0]}} ,"/Users/beezen/mine/github/nucm/src/common/env.ts": {"path":"/Users/beezen/mine/github/nucm/src/common/env.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":27}},"1":{"start":{"line":9,"column":13},"end":{"line":9,"column":52}}},"fnMap":{},"branchMap":{},"s":{"0":2,"1":2},"f":{},"b":{}} -,"/Users/beezen/mine/github/nucm/src/common/index.ts": {"path":"/Users/beezen/mine/github/nucm/src/common/index.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":29}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":27}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":31}},"3":{"start":{"line":4,"column":0},"end":{"line":4,"column":25}},"4":{"start":{"line":5,"column":0},"end":{"line":5,"column":37}},"5":{"start":{"line":6,"column":0},"end":{"line":6,"column":33}},"6":{"start":{"line":7,"column":0},"end":{"line":7,"column":47}},"7":{"start":{"line":8,"column":0},"end":{"line":8,"column":72}},"8":{"start":{"line":9,"column":0},"end":{"line":9,"column":59}},"9":{"start":{"line":10,"column":0},"end":{"line":10,"column":53}},"10":{"start":{"line":11,"column":0},"end":{"line":11,"column":39}},"11":{"start":{"line":36,"column":16},"end":{"line":36,"column":28}},"12":{"start":{"line":37,"column":20},"end":{"line":37,"column":52}},"13":{"start":{"line":38,"column":19},"end":{"line":38,"column":50}},"14":{"start":{"line":39,"column":19},"end":{"line":39,"column":50}},"15":{"start":{"line":47,"column":2},"end":{"line":47,"column":78}},"16":{"start":{"line":47,"column":22},"end":{"line":47,"column":78}},"17":{"start":{"line":48,"column":19},"end":{"line":52,"column":4}},"18":{"start":{"line":53,"column":2},"end":{"line":53,"column":56}},"19":{"start":{"line":46,"column":0},"end":{"line":46,"column":16}},"20":{"start":{"line":58,"column":15},"end":{"line":58,"column":63}},"21":{"start":{"line":59,"column":14},"end":{"line":59,"column":61}},"22":{"start":{"line":60,"column":12},"end":{"line":60,"column":16}},"23":{"start":{"line":61,"column":2},"end":{"line":63,"column":3}},"24":{"start":{"line":62,"column":4},"end":{"line":62,"column":58}},"25":{"start":{"line":64,"column":2},"end":{"line":68,"column":4}},"26":{"start":{"line":57,"column":0},"end":{"line":57,"column":16}},"27":{"start":{"line":76,"column":2},"end":{"line":79,"column":3}},"28":{"start":{"line":77,"column":4},"end":{"line":77,"column":51}},"29":{"start":{"line":78,"column":4},"end":{"line":78,"column":17}},"30":{"start":{"line":80,"column":2},"end":{"line":89,"column":3}},"31":{"start":{"line":81,"column":30},"end":{"line":86,"column":6}},"32":{"start":{"line":87,"column":4},"end":{"line":87,"column":35}},"33":{"start":{"line":88,"column":4},"end":{"line":88,"column":68}},"34":{"start":{"line":90,"column":2},"end":{"line":90,"column":14}},"35":{"start":{"line":75,"column":0},"end":{"line":75,"column":16}},"36":{"start":{"line":99,"column":19},"end":{"line":99,"column":61}},"37":{"start":{"line":100,"column":2},"end":{"line":100,"column":38}},"38":{"start":{"line":100,"column":28},"end":{"line":100,"column":38}},"39":{"start":{"line":101,"column":20},"end":{"line":101,"column":55}},"40":{"start":{"line":102,"column":21},"end":{"line":102,"column":23}},"41":{"start":{"line":103,"column":19},"end":{"line":103,"column":79}},"42":{"start":{"line":105,"column":2},"end":{"line":110,"column":3}},"43":{"start":{"line":106,"column":26},"end":{"line":106,"column":90}},"44":{"start":{"line":107,"column":4},"end":{"line":109,"column":5}},"45":{"start":{"line":108,"column":6},"end":{"line":108,"column":25}},"46":{"start":{"line":111,"column":2},"end":{"line":115,"column":4}},"47":{"start":{"line":98,"column":0},"end":{"line":98,"column":16}},"48":{"start":{"line":123,"column":2},"end":{"line":126,"column":3}},"49":{"start":{"line":124,"column":4},"end":{"line":124,"column":55}},"50":{"start":{"line":125,"column":4},"end":{"line":125,"column":17}},"51":{"start":{"line":127,"column":2},"end":{"line":127,"column":14}},"52":{"start":{"line":122,"column":0},"end":{"line":122,"column":16}},"53":{"start":{"line":135,"column":27},"end":{"line":135,"column":51}},"54":{"start":{"line":136,"column":2},"end":{"line":156,"column":7}},"55":{"start":{"line":148,"column":6},"end":{"line":155,"column":7}},"56":{"start":{"line":149,"column":23},"end":{"line":149,"column":37}},"57":{"start":{"line":150,"column":8},"end":{"line":153,"column":9}},"58":{"start":{"line":151,"column":10},"end":{"line":151,"column":57}},"59":{"start":{"line":152,"column":10},"end":{"line":152,"column":17}},"60":{"start":{"line":154,"column":8},"end":{"line":154,"column":92}},"61":{"start":{"line":134,"column":0},"end":{"line":134,"column":16}},"62":{"start":{"line":164,"column":2},"end":{"line":177,"column":4}},"63":{"start":{"line":165,"column":4},"end":{"line":165,"column":35}},"64":{"start":{"line":165,"column":28},"end":{"line":165,"column":35}},"65":{"start":{"line":166,"column":23},"end":{"line":166,"column":34}},"66":{"start":{"line":167,"column":27},"end":{"line":167,"column":56}},"67":{"start":{"line":168,"column":4},"end":{"line":168,"column":43}},"68":{"start":{"line":168,"column":36},"end":{"line":168,"column":43}},"69":{"start":{"line":170,"column":4},"end":{"line":174,"column":7}},"70":{"start":{"line":175,"column":4},"end":{"line":175,"column":40}},"71":{"start":{"line":176,"column":4},"end":{"line":176,"column":32}},"72":{"start":{"line":163,"column":0},"end":{"line":163,"column":16}},"73":{"start":{"line":185,"column":2},"end":{"line":189,"column":5}},"74":{"start":{"line":184,"column":0},"end":{"line":184,"column":16}}},"fnMap":{"0":{"name":"setConfig","decl":{"start":{"line":46,"column":16},"end":{"line":46,"column":25}},"loc":{"start":{"line":46,"column":52},"end":{"line":54,"column":1}}},"1":{"name":"getConfig","decl":{"start":{"line":57,"column":16},"end":{"line":57,"column":25}},"loc":{"start":{"line":57,"column":25},"end":{"line":69,"column":1}}},"2":{"name":"checkConfigInit","decl":{"start":{"line":75,"column":16},"end":{"line":75,"column":31}},"loc":{"start":{"line":75,"column":31},"end":{"line":91,"column":1}}},"3":{"name":"getRegistryConfig","decl":{"start":{"line":98,"column":16},"end":{"line":98,"column":33}},"loc":{"start":{"line":98,"column":52},"end":{"line":116,"column":1}}},"4":{"name":"isEnabled","decl":{"start":{"line":122,"column":16},"end":{"line":122,"column":25}},"loc":{"start":{"line":122,"column":61},"end":{"line":128,"column":1}}},"5":{"name":"setRegistryAlias","decl":{"start":{"line":134,"column":16},"end":{"line":134,"column":32}},"loc":{"start":{"line":134,"column":63},"end":{"line":157,"column":1}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":147,"column":10},"end":{"line":147,"column":11}},"loc":{"start":{"line":147,"column":22},"end":{"line":156,"column":5}}},"7":{"name":"prepareEnv","decl":{"start":{"line":163,"column":16},"end":{"line":163,"column":26}},"loc":{"start":{"line":163,"column":60},"end":{"line":178,"column":1}}},"8":{"name":"(anonymous_8)","decl":{"start":{"line":164,"column":9},"end":{"line":164,"column":19}},"loc":{"start":{"line":164,"column":33},"end":{"line":177,"column":3}}},"9":{"name":"initLanguage","decl":{"start":{"line":184,"column":16},"end":{"line":184,"column":28}},"loc":{"start":{"line":184,"column":39},"end":{"line":190,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":47,"column":2},"end":{"line":47,"column":78}},"type":"if","locations":[{"start":{"line":47,"column":2},"end":{"line":47,"column":78}}]},"1":{"loc":{"start":{"line":47,"column":6},"end":{"line":47,"column":20}},"type":"binary-expr","locations":[{"start":{"line":47,"column":6},"end":{"line":47,"column":10}},{"start":{"line":47,"column":14},"end":{"line":47,"column":20}}]},"2":{"loc":{"start":{"line":61,"column":2},"end":{"line":63,"column":3}},"type":"if","locations":[{"start":{"line":61,"column":2},"end":{"line":63,"column":3}}]},"3":{"loc":{"start":{"line":76,"column":2},"end":{"line":79,"column":3}},"type":"if","locations":[{"start":{"line":76,"column":2},"end":{"line":79,"column":3}}]},"4":{"loc":{"start":{"line":80,"column":2},"end":{"line":89,"column":3}},"type":"if","locations":[{"start":{"line":80,"column":2},"end":{"line":89,"column":3}}]},"5":{"loc":{"start":{"line":99,"column":19},"end":{"line":99,"column":61}},"type":"binary-expr","locations":[{"start":{"line":99,"column":19},"end":{"line":99,"column":35}},{"start":{"line":99,"column":39},"end":{"line":99,"column":60}}]},"6":{"loc":{"start":{"line":99,"column":39},"end":{"line":99,"column":60}},"type":"cond-expr","locations":[{"start":{"line":99,"column":50},"end":{"line":99,"column":52}},{"start":{"line":99,"column":50},"end":{"line":99,"column":60}}]},"7":{"loc":{"start":{"line":99,"column":39},"end":{"line":99,"column":52}},"type":"binary-expr","locations":[{"start":{"line":99,"column":39},"end":{"line":99,"column":52}},{"start":{"line":99,"column":50},"end":{"line":99,"column":52}}]},"8":{"loc":{"start":{"line":99,"column":39},"end":{"line":99,"column":50}},"type":"cond-expr","locations":[{"start":{"line":99,"column":45},"end":{"line":99,"column":47}},{"start":{"line":99,"column":39},"end":{"line":99,"column":50}}]},"9":{"loc":{"start":{"line":99,"column":39},"end":{"line":99,"column":47}},"type":"binary-expr","locations":[{"start":{"line":99,"column":39},"end":{"line":99,"column":47}},{"start":{"line":99,"column":39},"end":{"line":99,"column":47}}]},"10":{"loc":{"start":{"line":100,"column":2},"end":{"line":100,"column":38}},"type":"if","locations":[{"start":{"line":100,"column":2},"end":{"line":100,"column":38}}]},"11":{"loc":{"start":{"line":100,"column":6},"end":{"line":100,"column":26}},"type":"binary-expr","locations":[{"start":{"line":100,"column":6},"end":{"line":100,"column":15}},{"start":{"line":100,"column":19},"end":{"line":100,"column":26}}]},"12":{"loc":{"start":{"line":106,"column":26},"end":{"line":106,"column":90}},"type":"cond-expr","locations":[{"start":{"line":106,"column":55},"end":{"line":106,"column":57}},{"start":{"line":106,"column":55},"end":{"line":106,"column":90}}]},"13":{"loc":{"start":{"line":106,"column":26},"end":{"line":106,"column":57}},"type":"binary-expr","locations":[{"start":{"line":106,"column":26},"end":{"line":106,"column":57}},{"start":{"line":106,"column":55},"end":{"line":106,"column":57}}]},"14":{"loc":{"start":{"line":106,"column":26},"end":{"line":106,"column":55}},"type":"cond-expr","locations":[{"start":{"line":106,"column":45},"end":{"line":106,"column":47}},{"start":{"line":106,"column":45},"end":{"line":106,"column":55}}]},"15":{"loc":{"start":{"line":106,"column":26},"end":{"line":106,"column":47}},"type":"binary-expr","locations":[{"start":{"line":106,"column":26},"end":{"line":106,"column":47}},{"start":{"line":106,"column":45},"end":{"line":106,"column":47}}]},"16":{"loc":{"start":{"line":107,"column":4},"end":{"line":109,"column":5}},"type":"if","locations":[{"start":{"line":107,"column":4},"end":{"line":109,"column":5}}]},"17":{"loc":{"start":{"line":123,"column":2},"end":{"line":126,"column":3}},"type":"if","locations":[{"start":{"line":123,"column":2},"end":{"line":126,"column":3}}]},"18":{"loc":{"start":{"line":148,"column":6},"end":{"line":155,"column":7}},"type":"if","locations":[{"start":{"line":148,"column":6},"end":{"line":155,"column":7}}]},"19":{"loc":{"start":{"line":150,"column":8},"end":{"line":153,"column":9}},"type":"if","locations":[{"start":{"line":150,"column":8},"end":{"line":153,"column":9}}]},"20":{"loc":{"start":{"line":165,"column":4},"end":{"line":165,"column":35}},"type":"if","locations":[{"start":{"line":165,"column":4},"end":{"line":165,"column":35}}]},"21":{"loc":{"start":{"line":168,"column":4},"end":{"line":168,"column":43}},"type":"if","locations":[{"start":{"line":168,"column":4},"end":{"line":168,"column":43}}]},"22":{"loc":{"start":{"line":173,"column":12},"end":{"line":173,"column":54}},"type":"binary-expr","locations":[{"start":{"line":173,"column":12},"end":{"line":173,"column":46}},{"start":{"line":173,"column":50},"end":{"line":173,"column":54}}]},"23":{"loc":{"start":{"line":173,"column":12},"end":{"line":173,"column":46}},"type":"cond-expr","locations":[{"start":{"line":173,"column":40},"end":{"line":173,"column":42}},{"start":{"line":173,"column":40},"end":{"line":173,"column":46}}]},"24":{"loc":{"start":{"line":173,"column":12},"end":{"line":173,"column":42}},"type":"binary-expr","locations":[{"start":{"line":173,"column":12},"end":{"line":173,"column":42}},{"start":{"line":173,"column":40},"end":{"line":173,"column":42}}]},"25":{"loc":{"start":{"line":173,"column":12},"end":{"line":173,"column":40}},"type":"cond-expr","locations":[{"start":{"line":173,"column":28},"end":{"line":173,"column":30}},{"start":{"line":173,"column":28},"end":{"line":173,"column":40}}]},"26":{"loc":{"start":{"line":173,"column":12},"end":{"line":173,"column":30}},"type":"binary-expr","locations":[{"start":{"line":173,"column":12},"end":{"line":173,"column":30}},{"start":{"line":173,"column":28},"end":{"line":173,"column":30}}]},"27":{"loc":{"start":{"line":173,"column":12},"end":{"line":173,"column":28}},"type":"cond-expr","locations":[{"start":{"line":173,"column":22},"end":{"line":173,"column":24}},{"start":{"line":173,"column":12},"end":{"line":173,"column":28}}]},"28":{"loc":{"start":{"line":173,"column":12},"end":{"line":173,"column":24}},"type":"binary-expr","locations":[{"start":{"line":173,"column":12},"end":{"line":173,"column":24}},{"start":{"line":173,"column":12},"end":{"line":173,"column":24}}]},"29":{"loc":{"start":{"line":176,"column":4},"end":{"line":176,"column":31}},"type":"binary-expr","locations":[{"start":{"line":176,"column":4},"end":{"line":176,"column":11}},{"start":{"line":176,"column":15},"end":{"line":176,"column":31}}]},"30":{"loc":{"start":{"line":184,"column":29},"end":{"line":184,"column":39}},"type":"default-arg","locations":[{"start":{"line":184,"column":35},"end":{"line":184,"column":39}}]}},"s":{"0":2,"1":2,"2":2,"3":2,"4":2,"5":2,"6":2,"7":2,"8":2,"9":2,"10":2,"11":2,"12":2,"13":2,"14":2,"15":8,"16":0,"17":8,"18":8,"19":2,"20":8,"21":8,"22":8,"23":8,"24":8,"25":8,"26":2,"27":1,"28":0,"29":0,"30":1,"31":0,"32":0,"33":0,"34":1,"35":2,"36":4,"37":4,"38":0,"39":4,"40":4,"41":4,"42":4,"43":48,"44":48,"45":4,"46":4,"47":2,"48":3,"49":1,"50":1,"51":2,"52":2,"53":1,"54":1,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":2,"62":1,"63":1,"64":0,"65":1,"66":1,"67":1,"68":0,"69":1,"70":1,"71":1,"72":2,"73":2,"74":2},"f":{"0":8,"1":8,"2":1,"3":4,"4":3,"5":1,"6":0,"7":1,"8":1,"9":2},"b":{"0":[0],"1":[8,8],"2":[8],"3":[0],"4":[0],"5":[4,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0],"11":[4,4],"12":[0,48],"13":[48,48],"14":[0,48],"15":[48,48],"16":[4],"17":[1],"18":[0],"19":[0],"20":[0],"21":[0],"22":[1,0],"23":[0,1],"24":[1,1],"25":[0,1],"26":[1,1],"27":[0,1],"28":[1,1],"29":[1,0],"30":[2]}} +,"/Users/beezen/mine/github/nucm/src/common/index.ts": {"path":"/Users/beezen/mine/github/nucm/src/common/index.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":29}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":27}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":31}},"3":{"start":{"line":4,"column":0},"end":{"line":4,"column":25}},"4":{"start":{"line":5,"column":0},"end":{"line":5,"column":37}},"5":{"start":{"line":6,"column":0},"end":{"line":6,"column":33}},"6":{"start":{"line":7,"column":0},"end":{"line":7,"column":47}},"7":{"start":{"line":8,"column":0},"end":{"line":8,"column":72}},"8":{"start":{"line":9,"column":0},"end":{"line":9,"column":59}},"9":{"start":{"line":10,"column":0},"end":{"line":10,"column":53}},"10":{"start":{"line":11,"column":0},"end":{"line":11,"column":39}},"11":{"start":{"line":36,"column":16},"end":{"line":36,"column":28}},"12":{"start":{"line":37,"column":20},"end":{"line":37,"column":52}},"13":{"start":{"line":38,"column":19},"end":{"line":38,"column":50}},"14":{"start":{"line":39,"column":19},"end":{"line":39,"column":50}},"15":{"start":{"line":47,"column":2},"end":{"line":47,"column":78}},"16":{"start":{"line":47,"column":22},"end":{"line":47,"column":78}},"17":{"start":{"line":48,"column":19},"end":{"line":52,"column":4}},"18":{"start":{"line":53,"column":2},"end":{"line":53,"column":56}},"19":{"start":{"line":46,"column":0},"end":{"line":46,"column":16}},"20":{"start":{"line":58,"column":15},"end":{"line":58,"column":63}},"21":{"start":{"line":59,"column":14},"end":{"line":59,"column":61}},"22":{"start":{"line":60,"column":12},"end":{"line":60,"column":16}},"23":{"start":{"line":61,"column":2},"end":{"line":63,"column":3}},"24":{"start":{"line":62,"column":4},"end":{"line":62,"column":58}},"25":{"start":{"line":64,"column":2},"end":{"line":68,"column":4}},"26":{"start":{"line":57,"column":0},"end":{"line":57,"column":16}},"27":{"start":{"line":76,"column":2},"end":{"line":79,"column":3}},"28":{"start":{"line":77,"column":4},"end":{"line":77,"column":51}},"29":{"start":{"line":78,"column":4},"end":{"line":78,"column":17}},"30":{"start":{"line":80,"column":2},"end":{"line":89,"column":3}},"31":{"start":{"line":81,"column":30},"end":{"line":86,"column":6}},"32":{"start":{"line":87,"column":4},"end":{"line":87,"column":35}},"33":{"start":{"line":88,"column":4},"end":{"line":88,"column":68}},"34":{"start":{"line":90,"column":2},"end":{"line":90,"column":14}},"35":{"start":{"line":75,"column":0},"end":{"line":75,"column":16}},"36":{"start":{"line":99,"column":19},"end":{"line":99,"column":61}},"37":{"start":{"line":100,"column":2},"end":{"line":100,"column":38}},"38":{"start":{"line":100,"column":28},"end":{"line":100,"column":38}},"39":{"start":{"line":101,"column":20},"end":{"line":101,"column":55}},"40":{"start":{"line":102,"column":21},"end":{"line":102,"column":23}},"41":{"start":{"line":103,"column":19},"end":{"line":103,"column":79}},"42":{"start":{"line":104,"column":14},"end":{"line":104,"column":69}},"43":{"start":{"line":106,"column":2},"end":{"line":111,"column":3}},"44":{"start":{"line":107,"column":26},"end":{"line":107,"column":90}},"45":{"start":{"line":108,"column":4},"end":{"line":110,"column":5}},"46":{"start":{"line":109,"column":6},"end":{"line":109,"column":25}},"47":{"start":{"line":112,"column":2},"end":{"line":117,"column":4}},"48":{"start":{"line":98,"column":0},"end":{"line":98,"column":16}},"49":{"start":{"line":125,"column":2},"end":{"line":128,"column":3}},"50":{"start":{"line":126,"column":4},"end":{"line":126,"column":55}},"51":{"start":{"line":127,"column":4},"end":{"line":127,"column":17}},"52":{"start":{"line":129,"column":2},"end":{"line":129,"column":14}},"53":{"start":{"line":124,"column":0},"end":{"line":124,"column":16}},"54":{"start":{"line":137,"column":27},"end":{"line":137,"column":51}},"55":{"start":{"line":138,"column":2},"end":{"line":158,"column":7}},"56":{"start":{"line":150,"column":6},"end":{"line":157,"column":7}},"57":{"start":{"line":151,"column":23},"end":{"line":151,"column":37}},"58":{"start":{"line":152,"column":8},"end":{"line":155,"column":9}},"59":{"start":{"line":153,"column":10},"end":{"line":153,"column":57}},"60":{"start":{"line":154,"column":10},"end":{"line":154,"column":17}},"61":{"start":{"line":156,"column":8},"end":{"line":156,"column":92}},"62":{"start":{"line":136,"column":0},"end":{"line":136,"column":16}},"63":{"start":{"line":166,"column":2},"end":{"line":179,"column":4}},"64":{"start":{"line":167,"column":4},"end":{"line":167,"column":35}},"65":{"start":{"line":167,"column":28},"end":{"line":167,"column":35}},"66":{"start":{"line":168,"column":23},"end":{"line":168,"column":34}},"67":{"start":{"line":169,"column":27},"end":{"line":169,"column":56}},"68":{"start":{"line":170,"column":4},"end":{"line":170,"column":43}},"69":{"start":{"line":170,"column":36},"end":{"line":170,"column":43}},"70":{"start":{"line":172,"column":4},"end":{"line":176,"column":7}},"71":{"start":{"line":177,"column":4},"end":{"line":177,"column":40}},"72":{"start":{"line":178,"column":4},"end":{"line":178,"column":32}},"73":{"start":{"line":165,"column":0},"end":{"line":165,"column":16}},"74":{"start":{"line":187,"column":2},"end":{"line":191,"column":5}},"75":{"start":{"line":186,"column":0},"end":{"line":186,"column":16}}},"fnMap":{"0":{"name":"setConfig","decl":{"start":{"line":46,"column":16},"end":{"line":46,"column":25}},"loc":{"start":{"line":46,"column":52},"end":{"line":54,"column":1}}},"1":{"name":"getConfig","decl":{"start":{"line":57,"column":16},"end":{"line":57,"column":25}},"loc":{"start":{"line":57,"column":25},"end":{"line":69,"column":1}}},"2":{"name":"checkConfigInit","decl":{"start":{"line":75,"column":16},"end":{"line":75,"column":31}},"loc":{"start":{"line":75,"column":31},"end":{"line":91,"column":1}}},"3":{"name":"getRegistryConfig","decl":{"start":{"line":98,"column":16},"end":{"line":98,"column":33}},"loc":{"start":{"line":98,"column":52},"end":{"line":118,"column":1}}},"4":{"name":"isEnabled","decl":{"start":{"line":124,"column":16},"end":{"line":124,"column":25}},"loc":{"start":{"line":124,"column":61},"end":{"line":130,"column":1}}},"5":{"name":"setRegistryAlias","decl":{"start":{"line":136,"column":16},"end":{"line":136,"column":32}},"loc":{"start":{"line":136,"column":63},"end":{"line":159,"column":1}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":149,"column":10},"end":{"line":149,"column":11}},"loc":{"start":{"line":149,"column":22},"end":{"line":158,"column":5}}},"7":{"name":"prepareEnv","decl":{"start":{"line":165,"column":16},"end":{"line":165,"column":26}},"loc":{"start":{"line":165,"column":60},"end":{"line":180,"column":1}}},"8":{"name":"(anonymous_8)","decl":{"start":{"line":166,"column":9},"end":{"line":166,"column":19}},"loc":{"start":{"line":166,"column":33},"end":{"line":179,"column":3}}},"9":{"name":"initLanguage","decl":{"start":{"line":186,"column":16},"end":{"line":186,"column":28}},"loc":{"start":{"line":186,"column":39},"end":{"line":192,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":47,"column":2},"end":{"line":47,"column":78}},"type":"if","locations":[{"start":{"line":47,"column":2},"end":{"line":47,"column":78}}]},"1":{"loc":{"start":{"line":47,"column":6},"end":{"line":47,"column":20}},"type":"binary-expr","locations":[{"start":{"line":47,"column":6},"end":{"line":47,"column":10}},{"start":{"line":47,"column":14},"end":{"line":47,"column":20}}]},"2":{"loc":{"start":{"line":61,"column":2},"end":{"line":63,"column":3}},"type":"if","locations":[{"start":{"line":61,"column":2},"end":{"line":63,"column":3}}]},"3":{"loc":{"start":{"line":76,"column":2},"end":{"line":79,"column":3}},"type":"if","locations":[{"start":{"line":76,"column":2},"end":{"line":79,"column":3}}]},"4":{"loc":{"start":{"line":80,"column":2},"end":{"line":89,"column":3}},"type":"if","locations":[{"start":{"line":80,"column":2},"end":{"line":89,"column":3}}]},"5":{"loc":{"start":{"line":99,"column":19},"end":{"line":99,"column":61}},"type":"binary-expr","locations":[{"start":{"line":99,"column":19},"end":{"line":99,"column":35}},{"start":{"line":99,"column":39},"end":{"line":99,"column":60}}]},"6":{"loc":{"start":{"line":99,"column":39},"end":{"line":99,"column":60}},"type":"cond-expr","locations":[{"start":{"line":99,"column":50},"end":{"line":99,"column":52}},{"start":{"line":99,"column":50},"end":{"line":99,"column":60}}]},"7":{"loc":{"start":{"line":99,"column":39},"end":{"line":99,"column":52}},"type":"binary-expr","locations":[{"start":{"line":99,"column":39},"end":{"line":99,"column":52}},{"start":{"line":99,"column":50},"end":{"line":99,"column":52}}]},"8":{"loc":{"start":{"line":99,"column":39},"end":{"line":99,"column":50}},"type":"cond-expr","locations":[{"start":{"line":99,"column":45},"end":{"line":99,"column":47}},{"start":{"line":99,"column":39},"end":{"line":99,"column":50}}]},"9":{"loc":{"start":{"line":99,"column":39},"end":{"line":99,"column":47}},"type":"binary-expr","locations":[{"start":{"line":99,"column":39},"end":{"line":99,"column":47}},{"start":{"line":99,"column":39},"end":{"line":99,"column":47}}]},"10":{"loc":{"start":{"line":100,"column":2},"end":{"line":100,"column":38}},"type":"if","locations":[{"start":{"line":100,"column":2},"end":{"line":100,"column":38}}]},"11":{"loc":{"start":{"line":100,"column":6},"end":{"line":100,"column":26}},"type":"binary-expr","locations":[{"start":{"line":100,"column":6},"end":{"line":100,"column":15}},{"start":{"line":100,"column":19},"end":{"line":100,"column":26}}]},"12":{"loc":{"start":{"line":107,"column":26},"end":{"line":107,"column":90}},"type":"cond-expr","locations":[{"start":{"line":107,"column":55},"end":{"line":107,"column":57}},{"start":{"line":107,"column":55},"end":{"line":107,"column":90}}]},"13":{"loc":{"start":{"line":107,"column":26},"end":{"line":107,"column":57}},"type":"binary-expr","locations":[{"start":{"line":107,"column":26},"end":{"line":107,"column":57}},{"start":{"line":107,"column":55},"end":{"line":107,"column":57}}]},"14":{"loc":{"start":{"line":107,"column":26},"end":{"line":107,"column":55}},"type":"cond-expr","locations":[{"start":{"line":107,"column":45},"end":{"line":107,"column":47}},{"start":{"line":107,"column":45},"end":{"line":107,"column":55}}]},"15":{"loc":{"start":{"line":107,"column":26},"end":{"line":107,"column":47}},"type":"binary-expr","locations":[{"start":{"line":107,"column":26},"end":{"line":107,"column":47}},{"start":{"line":107,"column":45},"end":{"line":107,"column":47}}]},"16":{"loc":{"start":{"line":108,"column":4},"end":{"line":110,"column":5}},"type":"if","locations":[{"start":{"line":108,"column":4},"end":{"line":110,"column":5}}]},"17":{"loc":{"start":{"line":125,"column":2},"end":{"line":128,"column":3}},"type":"if","locations":[{"start":{"line":125,"column":2},"end":{"line":128,"column":3}}]},"18":{"loc":{"start":{"line":150,"column":6},"end":{"line":157,"column":7}},"type":"if","locations":[{"start":{"line":150,"column":6},"end":{"line":157,"column":7}}]},"19":{"loc":{"start":{"line":152,"column":8},"end":{"line":155,"column":9}},"type":"if","locations":[{"start":{"line":152,"column":8},"end":{"line":155,"column":9}}]},"20":{"loc":{"start":{"line":167,"column":4},"end":{"line":167,"column":35}},"type":"if","locations":[{"start":{"line":167,"column":4},"end":{"line":167,"column":35}}]},"21":{"loc":{"start":{"line":170,"column":4},"end":{"line":170,"column":43}},"type":"if","locations":[{"start":{"line":170,"column":4},"end":{"line":170,"column":43}}]},"22":{"loc":{"start":{"line":175,"column":12},"end":{"line":175,"column":54}},"type":"binary-expr","locations":[{"start":{"line":175,"column":12},"end":{"line":175,"column":46}},{"start":{"line":175,"column":50},"end":{"line":175,"column":54}}]},"23":{"loc":{"start":{"line":175,"column":12},"end":{"line":175,"column":46}},"type":"cond-expr","locations":[{"start":{"line":175,"column":40},"end":{"line":175,"column":42}},{"start":{"line":175,"column":40},"end":{"line":175,"column":46}}]},"24":{"loc":{"start":{"line":175,"column":12},"end":{"line":175,"column":42}},"type":"binary-expr","locations":[{"start":{"line":175,"column":12},"end":{"line":175,"column":42}},{"start":{"line":175,"column":40},"end":{"line":175,"column":42}}]},"25":{"loc":{"start":{"line":175,"column":12},"end":{"line":175,"column":40}},"type":"cond-expr","locations":[{"start":{"line":175,"column":28},"end":{"line":175,"column":30}},{"start":{"line":175,"column":28},"end":{"line":175,"column":40}}]},"26":{"loc":{"start":{"line":175,"column":12},"end":{"line":175,"column":30}},"type":"binary-expr","locations":[{"start":{"line":175,"column":12},"end":{"line":175,"column":30}},{"start":{"line":175,"column":28},"end":{"line":175,"column":30}}]},"27":{"loc":{"start":{"line":175,"column":12},"end":{"line":175,"column":28}},"type":"cond-expr","locations":[{"start":{"line":175,"column":22},"end":{"line":175,"column":24}},{"start":{"line":175,"column":12},"end":{"line":175,"column":28}}]},"28":{"loc":{"start":{"line":175,"column":12},"end":{"line":175,"column":24}},"type":"binary-expr","locations":[{"start":{"line":175,"column":12},"end":{"line":175,"column":24}},{"start":{"line":175,"column":12},"end":{"line":175,"column":24}}]},"29":{"loc":{"start":{"line":178,"column":4},"end":{"line":178,"column":31}},"type":"binary-expr","locations":[{"start":{"line":178,"column":4},"end":{"line":178,"column":11}},{"start":{"line":178,"column":15},"end":{"line":178,"column":31}}]},"30":{"loc":{"start":{"line":186,"column":29},"end":{"line":186,"column":39}},"type":"default-arg","locations":[{"start":{"line":186,"column":35},"end":{"line":186,"column":39}}]}},"s":{"0":2,"1":2,"2":2,"3":2,"4":2,"5":2,"6":2,"7":2,"8":2,"9":2,"10":2,"11":2,"12":2,"13":2,"14":2,"15":8,"16":0,"17":8,"18":8,"19":2,"20":8,"21":8,"22":8,"23":8,"24":8,"25":8,"26":2,"27":1,"28":0,"29":0,"30":1,"31":0,"32":0,"33":0,"34":1,"35":2,"36":4,"37":4,"38":0,"39":4,"40":4,"41":4,"42":4,"43":4,"44":48,"45":48,"46":4,"47":4,"48":2,"49":3,"50":1,"51":1,"52":2,"53":2,"54":1,"55":1,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":2,"63":1,"64":1,"65":0,"66":1,"67":1,"68":1,"69":0,"70":1,"71":1,"72":1,"73":2,"74":2,"75":2},"f":{"0":8,"1":8,"2":1,"3":4,"4":3,"5":1,"6":0,"7":1,"8":1,"9":2},"b":{"0":[0],"1":[8,8],"2":[8],"3":[0],"4":[0],"5":[4,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0],"11":[4,4],"12":[0,48],"13":[48,48],"14":[0,48],"15":[48,48],"16":[4],"17":[1],"18":[0],"19":[0],"20":[0],"21":[0],"22":[1,0],"23":[0,1],"24":[1,1],"25":[0,1],"26":[1,1],"27":[0,1],"28":[1,1],"29":[1,0],"30":[2]}} ,"/Users/beezen/mine/github/nucm/src/lang/default/index.ts": {"path":"/Users/beezen/mine/github/nucm/src/lang/default/index.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":41}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":41}},"2":{"start":{"line":4,"column":13},"end":{"line":7,"column":2}}},"fnMap":{},"branchMap":{},"s":{"0":2,"1":2,"2":2},"f":{},"b":{}} -,"/Users/beezen/mine/github/nucm/src/utils/index.ts": {"path":"/Users/beezen/mine/github/nucm/src/utils/index.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":33}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":28}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":31}},"3":{"start":{"line":5,"column":15},"end":{"line":5,"column":32}},"4":{"start":{"line":23,"column":2},"end":{"line":23,"column":60}},"5":{"start":{"line":22,"column":0},"end":{"line":22,"column":16}},"6":{"start":{"line":32,"column":2},"end":{"line":32,"column":34}},"7":{"start":{"line":32,"column":23},"end":{"line":32,"column":34}},"8":{"start":{"line":33,"column":2},"end":{"line":33,"column":56}},"9":{"start":{"line":33,"column":24},"end":{"line":33,"column":56}},"10":{"start":{"line":34,"column":2},"end":{"line":34,"column":52}},"11":{"start":{"line":31,"column":0},"end":{"line":31,"column":16}},"12":{"start":{"line":44,"column":2},"end":{"line":44,"column":51}},"13":{"start":{"line":45,"column":2},"end":{"line":45,"column":51}},"14":{"start":{"line":46,"column":14},"end":{"line":46,"column":44}},"15":{"start":{"line":48,"column":2},"end":{"line":50,"column":3}},"16":{"start":{"line":49,"column":4},"end":{"line":49,"column":17}},"17":{"start":{"line":51,"column":2},"end":{"line":53,"column":3}},"18":{"start":{"line":52,"column":4},"end":{"line":52,"column":17}},"19":{"start":{"line":55,"column":2},"end":{"line":64,"column":3}},"20":{"start":{"line":55,"column":15},"end":{"line":55,"column":16}},"21":{"start":{"line":56,"column":17},"end":{"line":56,"column":32}},"22":{"start":{"line":57,"column":17},"end":{"line":57,"column":32}},"23":{"start":{"line":59,"column":4},"end":{"line":63,"column":5}},"24":{"start":{"line":60,"column":6},"end":{"line":60,"column":15}},"25":{"start":{"line":61,"column":11},"end":{"line":63,"column":5}},"26":{"start":{"line":62,"column":6},"end":{"line":62,"column":16}},"27":{"start":{"line":65,"column":2},"end":{"line":65,"column":11}},"28":{"start":{"line":43,"column":0},"end":{"line":43,"column":16}},"29":{"start":{"line":71,"column":22},"end":{"line":71,"column":82}},"30":{"start":{"line":72,"column":2},"end":{"line":74,"column":3}},"31":{"start":{"line":73,"column":4},"end":{"line":73,"column":18}},"32":{"start":{"line":75,"column":2},"end":{"line":75,"column":15}},"33":{"start":{"line":69,"column":0},"end":{"line":69,"column":16}},"34":{"start":{"line":88,"column":49},"end":{"line":88,"column":56}},"35":{"start":{"line":89,"column":22},"end":{"line":93,"column":4}},"36":{"start":{"line":94,"column":2},"end":{"line":94,"column":35}},"37":{"start":{"line":95,"column":17},"end":{"line":95,"column":43}},"38":{"start":{"line":96,"column":2},"end":{"line":96,"column":64}},"39":{"start":{"line":97,"column":2},"end":{"line":99,"column":3}},"40":{"start":{"line":98,"column":4},"end":{"line":98,"column":20}},"41":{"start":{"line":100,"column":2},"end":{"line":100,"column":24}},"42":{"start":{"line":101,"column":2},"end":{"line":101,"column":12}},"43":{"start":{"line":87,"column":0},"end":{"line":87,"column":16}},"44":{"start":{"line":106,"column":2},"end":{"line":109,"column":19}},"45":{"start":{"line":107,"column":19},"end":{"line":107,"column":48}},"46":{"start":{"line":108,"column":4},"end":{"line":108,"column":45}},"47":{"start":{"line":108,"column":31},"end":{"line":108,"column":45}},"48":{"start":{"line":110,"column":2},"end":{"line":110,"column":12}},"49":{"start":{"line":105,"column":0},"end":{"line":105,"column":16}},"50":{"start":{"line":118,"column":22},"end":{"line":118,"column":91}},"51":{"start":{"line":119,"column":2},"end":{"line":119,"column":21}},"52":{"start":{"line":117,"column":0},"end":{"line":117,"column":16}}},"fnMap":{"0":{"name":"line","decl":{"start":{"line":22,"column":16},"end":{"line":22,"column":20}},"loc":{"start":{"line":22,"column":45},"end":{"line":24,"column":1}}},"1":{"name":"desensitize","decl":{"start":{"line":31,"column":16},"end":{"line":31,"column":27}},"loc":{"start":{"line":31,"column":39},"end":{"line":35,"column":1}}},"2":{"name":"compareVersion","decl":{"start":{"line":43,"column":16},"end":{"line":43,"column":30}},"loc":{"start":{"line":43,"column":75},"end":{"line":66,"column":1}}},"3":{"name":"getPackageManager","decl":{"start":{"line":69,"column":16},"end":{"line":69,"column":33}},"loc":{"start":{"line":69,"column":33},"end":{"line":76,"column":1}}},"4":{"name":"printLog","decl":{"start":{"line":87,"column":16},"end":{"line":87,"column":24}},"loc":{"start":{"line":87,"column":66},"end":{"line":102,"column":1}}},"5":{"name":"getNrmModule","decl":{"start":{"line":105,"column":16},"end":{"line":105,"column":28}},"loc":{"start":{"line":105,"column":28},"end":{"line":111,"column":1}}},"6":{"name":"getRegistryUrl","decl":{"start":{"line":117,"column":16},"end":{"line":117,"column":30}},"loc":{"start":{"line":117,"column":30},"end":{"line":120,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":32,"column":2},"end":{"line":32,"column":34}},"type":"if","locations":[{"start":{"line":32,"column":2},"end":{"line":32,"column":34}}]},"1":{"loc":{"start":{"line":33,"column":2},"end":{"line":33,"column":56}},"type":"if","locations":[{"start":{"line":33,"column":2},"end":{"line":33,"column":56}}]},"2":{"loc":{"start":{"line":44,"column":7},"end":{"line":44,"column":50}},"type":"cond-expr","locations":[{"start":{"line":44,"column":32},"end":{"line":44,"column":45}},{"start":{"line":44,"column":48},"end":{"line":44,"column":50}}]},"3":{"loc":{"start":{"line":45,"column":7},"end":{"line":45,"column":50}},"type":"cond-expr","locations":[{"start":{"line":45,"column":32},"end":{"line":45,"column":45}},{"start":{"line":45,"column":48},"end":{"line":45,"column":50}}]},"4":{"loc":{"start":{"line":59,"column":4},"end":{"line":63,"column":5}},"type":"if","locations":[{"start":{"line":59,"column":4},"end":{"line":63,"column":5}},{"start":{"line":61,"column":11},"end":{"line":63,"column":5}}]},"5":{"loc":{"start":{"line":61,"column":11},"end":{"line":63,"column":5}},"type":"if","locations":[{"start":{"line":61,"column":11},"end":{"line":63,"column":5}}]},"6":{"loc":{"start":{"line":72,"column":2},"end":{"line":74,"column":3}},"type":"if","locations":[{"start":{"line":72,"column":2},"end":{"line":74,"column":3}}]},"7":{"loc":{"start":{"line":87,"column":42},"end":{"line":87,"column":66}},"type":"default-arg","locations":[{"start":{"line":87,"column":64},"end":{"line":87,"column":66}}]},"8":{"loc":{"start":{"line":88,"column":14},"end":{"line":88,"column":23}},"type":"default-arg","locations":[{"start":{"line":88,"column":21},"end":{"line":88,"column":23}}]},"9":{"loc":{"start":{"line":88,"column":25},"end":{"line":88,"column":39}},"type":"default-arg","locations":[{"start":{"line":88,"column":35},"end":{"line":88,"column":39}}]},"10":{"loc":{"start":{"line":94,"column":2},"end":{"line":94,"column":34}},"type":"binary-expr","locations":[{"start":{"line":94,"column":2},"end":{"line":94,"column":5}},{"start":{"line":94,"column":10},"end":{"line":94,"column":33}}]},"11":{"loc":{"start":{"line":96,"column":2},"end":{"line":96,"column":63}},"type":"binary-expr","locations":[{"start":{"line":96,"column":2},"end":{"line":96,"column":19}},{"start":{"line":96,"column":24},"end":{"line":96,"column":62}}]},"12":{"loc":{"start":{"line":97,"column":2},"end":{"line":99,"column":3}},"type":"if","locations":[{"start":{"line":97,"column":2},"end":{"line":99,"column":3}}]},"13":{"loc":{"start":{"line":108,"column":4},"end":{"line":108,"column":45}},"type":"if","locations":[{"start":{"line":108,"column":4},"end":{"line":108,"column":45}}]}},"s":{"0":2,"1":2,"2":2,"3":2,"4":18,"5":2,"6":18,"7":1,"8":17,"9":9,"10":8,"11":2,"12":7,"13":7,"14":7,"15":7,"16":1,"17":7,"18":3,"19":7,"20":7,"21":16,"22":16,"23":16,"24":3,"25":13,"26":2,"27":2,"28":2,"29":1,"30":1,"31":1,"32":0,"33":2,"34":13,"35":13,"36":13,"37":13,"38":13,"39":13,"40":5,"41":8,"42":8,"43":2,"44":2,"45":2,"46":2,"47":2,"48":0,"49":2,"50":5,"51":5,"52":2},"f":{"0":18,"1":18,"2":7,"3":1,"4":13,"5":2,"6":5},"b":{"0":[1],"1":[9],"2":[7,0],"3":[7,0],"4":[3,13],"5":[2],"6":[1],"7":[2],"8":[11],"9":[8],"10":[13,2],"11":[13,8],"12":[5],"13":[2]}} +,"/Users/beezen/mine/github/nucm/src/utils/index.ts": {"path":"/Users/beezen/mine/github/nucm/src/utils/index.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":33}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":28}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":31}},"3":{"start":{"line":5,"column":15},"end":{"line":5,"column":32}},"4":{"start":{"line":23,"column":2},"end":{"line":23,"column":60}},"5":{"start":{"line":22,"column":0},"end":{"line":22,"column":16}},"6":{"start":{"line":32,"column":2},"end":{"line":32,"column":34}},"7":{"start":{"line":32,"column":23},"end":{"line":32,"column":34}},"8":{"start":{"line":33,"column":2},"end":{"line":33,"column":56}},"9":{"start":{"line":33,"column":24},"end":{"line":33,"column":56}},"10":{"start":{"line":34,"column":2},"end":{"line":34,"column":52}},"11":{"start":{"line":31,"column":0},"end":{"line":31,"column":16}},"12":{"start":{"line":44,"column":2},"end":{"line":44,"column":51}},"13":{"start":{"line":45,"column":2},"end":{"line":45,"column":51}},"14":{"start":{"line":46,"column":14},"end":{"line":46,"column":44}},"15":{"start":{"line":48,"column":2},"end":{"line":50,"column":3}},"16":{"start":{"line":49,"column":4},"end":{"line":49,"column":17}},"17":{"start":{"line":51,"column":2},"end":{"line":53,"column":3}},"18":{"start":{"line":52,"column":4},"end":{"line":52,"column":17}},"19":{"start":{"line":55,"column":2},"end":{"line":64,"column":3}},"20":{"start":{"line":55,"column":15},"end":{"line":55,"column":16}},"21":{"start":{"line":56,"column":17},"end":{"line":56,"column":32}},"22":{"start":{"line":57,"column":17},"end":{"line":57,"column":32}},"23":{"start":{"line":59,"column":4},"end":{"line":63,"column":5}},"24":{"start":{"line":60,"column":6},"end":{"line":60,"column":15}},"25":{"start":{"line":61,"column":11},"end":{"line":63,"column":5}},"26":{"start":{"line":62,"column":6},"end":{"line":62,"column":16}},"27":{"start":{"line":65,"column":2},"end":{"line":65,"column":11}},"28":{"start":{"line":43,"column":0},"end":{"line":43,"column":16}},"29":{"start":{"line":71,"column":22},"end":{"line":71,"column":82}},"30":{"start":{"line":72,"column":2},"end":{"line":74,"column":3}},"31":{"start":{"line":73,"column":4},"end":{"line":73,"column":18}},"32":{"start":{"line":75,"column":2},"end":{"line":75,"column":15}},"33":{"start":{"line":69,"column":0},"end":{"line":69,"column":16}},"34":{"start":{"line":88,"column":49},"end":{"line":88,"column":56}},"35":{"start":{"line":89,"column":22},"end":{"line":93,"column":4}},"36":{"start":{"line":94,"column":2},"end":{"line":94,"column":35}},"37":{"start":{"line":95,"column":17},"end":{"line":95,"column":43}},"38":{"start":{"line":96,"column":2},"end":{"line":96,"column":64}},"39":{"start":{"line":97,"column":2},"end":{"line":99,"column":3}},"40":{"start":{"line":98,"column":4},"end":{"line":98,"column":20}},"41":{"start":{"line":100,"column":2},"end":{"line":100,"column":24}},"42":{"start":{"line":101,"column":2},"end":{"line":101,"column":12}},"43":{"start":{"line":87,"column":0},"end":{"line":87,"column":16}},"44":{"start":{"line":106,"column":2},"end":{"line":109,"column":19}},"45":{"start":{"line":107,"column":19},"end":{"line":107,"column":48}},"46":{"start":{"line":108,"column":4},"end":{"line":108,"column":45}},"47":{"start":{"line":108,"column":31},"end":{"line":108,"column":45}},"48":{"start":{"line":110,"column":2},"end":{"line":110,"column":12}},"49":{"start":{"line":105,"column":0},"end":{"line":105,"column":16}},"50":{"start":{"line":118,"column":22},"end":{"line":118,"column":91}},"51":{"start":{"line":119,"column":2},"end":{"line":119,"column":21}},"52":{"start":{"line":117,"column":0},"end":{"line":117,"column":16}}},"fnMap":{"0":{"name":"line","decl":{"start":{"line":22,"column":16},"end":{"line":22,"column":20}},"loc":{"start":{"line":22,"column":45},"end":{"line":24,"column":1}}},"1":{"name":"desensitize","decl":{"start":{"line":31,"column":16},"end":{"line":31,"column":27}},"loc":{"start":{"line":31,"column":39},"end":{"line":35,"column":1}}},"2":{"name":"compareVersion","decl":{"start":{"line":43,"column":16},"end":{"line":43,"column":30}},"loc":{"start":{"line":43,"column":75},"end":{"line":66,"column":1}}},"3":{"name":"getPackageManager","decl":{"start":{"line":69,"column":16},"end":{"line":69,"column":33}},"loc":{"start":{"line":69,"column":33},"end":{"line":76,"column":1}}},"4":{"name":"printLog","decl":{"start":{"line":87,"column":16},"end":{"line":87,"column":24}},"loc":{"start":{"line":87,"column":66},"end":{"line":102,"column":1}}},"5":{"name":"getNrmModule","decl":{"start":{"line":105,"column":16},"end":{"line":105,"column":28}},"loc":{"start":{"line":105,"column":28},"end":{"line":111,"column":1}}},"6":{"name":"getRegistryUrl","decl":{"start":{"line":117,"column":16},"end":{"line":117,"column":30}},"loc":{"start":{"line":117,"column":30},"end":{"line":120,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":32,"column":2},"end":{"line":32,"column":34}},"type":"if","locations":[{"start":{"line":32,"column":2},"end":{"line":32,"column":34}}]},"1":{"loc":{"start":{"line":33,"column":2},"end":{"line":33,"column":56}},"type":"if","locations":[{"start":{"line":33,"column":2},"end":{"line":33,"column":56}}]},"2":{"loc":{"start":{"line":44,"column":7},"end":{"line":44,"column":50}},"type":"cond-expr","locations":[{"start":{"line":44,"column":32},"end":{"line":44,"column":45}},{"start":{"line":44,"column":48},"end":{"line":44,"column":50}}]},"3":{"loc":{"start":{"line":45,"column":7},"end":{"line":45,"column":50}},"type":"cond-expr","locations":[{"start":{"line":45,"column":32},"end":{"line":45,"column":45}},{"start":{"line":45,"column":48},"end":{"line":45,"column":50}}]},"4":{"loc":{"start":{"line":59,"column":4},"end":{"line":63,"column":5}},"type":"if","locations":[{"start":{"line":59,"column":4},"end":{"line":63,"column":5}},{"start":{"line":61,"column":11},"end":{"line":63,"column":5}}]},"5":{"loc":{"start":{"line":61,"column":11},"end":{"line":63,"column":5}},"type":"if","locations":[{"start":{"line":61,"column":11},"end":{"line":63,"column":5}}]},"6":{"loc":{"start":{"line":72,"column":2},"end":{"line":74,"column":3}},"type":"if","locations":[{"start":{"line":72,"column":2},"end":{"line":74,"column":3}}]},"7":{"loc":{"start":{"line":87,"column":42},"end":{"line":87,"column":66}},"type":"default-arg","locations":[{"start":{"line":87,"column":64},"end":{"line":87,"column":66}}]},"8":{"loc":{"start":{"line":88,"column":14},"end":{"line":88,"column":23}},"type":"default-arg","locations":[{"start":{"line":88,"column":21},"end":{"line":88,"column":23}}]},"9":{"loc":{"start":{"line":88,"column":25},"end":{"line":88,"column":39}},"type":"default-arg","locations":[{"start":{"line":88,"column":35},"end":{"line":88,"column":39}}]},"10":{"loc":{"start":{"line":94,"column":2},"end":{"line":94,"column":34}},"type":"binary-expr","locations":[{"start":{"line":94,"column":2},"end":{"line":94,"column":5}},{"start":{"line":94,"column":10},"end":{"line":94,"column":33}}]},"11":{"loc":{"start":{"line":96,"column":2},"end":{"line":96,"column":63}},"type":"binary-expr","locations":[{"start":{"line":96,"column":2},"end":{"line":96,"column":19}},{"start":{"line":96,"column":24},"end":{"line":96,"column":62}}]},"12":{"loc":{"start":{"line":97,"column":2},"end":{"line":99,"column":3}},"type":"if","locations":[{"start":{"line":97,"column":2},"end":{"line":99,"column":3}}]},"13":{"loc":{"start":{"line":108,"column":4},"end":{"line":108,"column":45}},"type":"if","locations":[{"start":{"line":108,"column":4},"end":{"line":108,"column":45}}]}},"s":{"0":2,"1":2,"2":2,"3":2,"4":15,"5":2,"6":15,"7":1,"8":14,"9":5,"10":9,"11":2,"12":7,"13":7,"14":7,"15":7,"16":1,"17":7,"18":3,"19":7,"20":7,"21":16,"22":16,"23":16,"24":3,"25":13,"26":2,"27":2,"28":2,"29":1,"30":1,"31":1,"32":0,"33":2,"34":13,"35":13,"36":13,"37":13,"38":13,"39":13,"40":5,"41":8,"42":8,"43":2,"44":2,"45":2,"46":2,"47":2,"48":0,"49":2,"50":5,"51":5,"52":2},"f":{"0":15,"1":15,"2":7,"3":1,"4":13,"5":2,"6":5},"b":{"0":[1],"1":[5],"2":[7,0],"3":[7,0],"4":[3,13],"5":[2],"6":[1],"7":[2],"8":[11],"9":[8],"10":[13,2],"11":[13,8],"12":[5],"13":[2]}} } diff --git a/coverage/lcov.info b/coverage/lcov.info index 3ff4aad..c0bf915 100644 --- a/coverage/lcov.info +++ b/coverage/lcov.info @@ -1,112 +1,120 @@ TN: SF:src/actions/base.ts -FN:14,getUserList -FN:18,(anonymous_2) -FN:20,(anonymous_3) -FN:38,(anonymous_4) -FN:58,changeUser -FN:69,(anonymous_6) -FN:81,addUser -FN:97,removeUser +FN:19,getUserList +FN:23,(anonymous_2) +FN:25,(anonymous_3) +FN:43,(anonymous_4) +FN:63,changeUser +FN:78,(anonymous_6) +FN:90,addUser +FN:106,removeUser FNF:8 FNH:8 FNDA:2,getUserList -FNDA:6,(anonymous_2) -FNDA:15,(anonymous_3) -FNDA:5,(anonymous_4) +FNDA:7,(anonymous_2) +FNDA:12,(anonymous_3) +FNDA:6,(anonymous_4) FNDA:2,changeUser -FNDA:8,(anonymous_6) +FNDA:4,(anonymous_6) FNDA:2,addUser FNDA:2,removeUser DA:1,1 DA:2,1 DA:3,1 DA:5,1 -DA:14,1 -DA:15,2 -DA:16,2 -DA:17,2 -DA:18,2 -DA:19,6 -DA:21,15 -DA:24,15 -DA:25,6 -DA:27,9 -DA:31,2 -DA:32,2 -DA:35,2 -DA:36,1 -DA:37,1 -DA:40,5 -DA:44,5 -DA:47,1 -DA:49,1 -DA:51,1 +DA:19,1 +DA:20,2 +DA:21,2 +DA:22,2 +DA:23,2 +DA:24,7 +DA:26,12 +DA:29,12 +DA:30,7 +DA:32,5 +DA:36,2 +DA:37,2 +DA:40,2 +DA:41,1 +DA:42,1 +DA:45,6 +DA:49,6 DA:52,1 -DA:54,2 -DA:58,1 +DA:54,1 +DA:56,1 +DA:57,1 DA:59,2 -DA:60,2 -DA:61,2 -DA:62,2 -DA:63,2 -DA:64,0 -DA:65,0 +DA:63,1 +DA:64,2 +DA:65,2 +DA:66,2 DA:67,2 -DA:69,2 -DA:70,8 -DA:71,1 -DA:74,2 -DA:75,2 +DA:68,2 +DA:69,0 +DA:70,0 +DA:72,2 +DA:73,2 +DA:74,0 DA:76,2 -DA:77,2 -DA:81,1 -DA:82,2 +DA:78,2 +DA:79,4 +DA:80,1 DA:83,2 DA:84,2 DA:85,2 DA:86,2 -DA:87,2 -DA:88,2 -DA:89,2 -DA:90,2 -DA:92,0 -DA:97,1 +DA:90,1 +DA:91,2 +DA:92,2 +DA:93,2 +DA:94,2 +DA:95,2 +DA:96,2 +DA:97,2 DA:98,2 DA:99,2 -DA:100,2 -DA:101,2 -DA:102,0 -DA:103,0 -DA:105,2 -DA:106,2 +DA:101,0 +DA:106,1 DA:107,2 -LF:63 -LH:58 -BRDA:18,0,0,0 -BRDA:21,1,0,0 -BRDA:21,1,1,15 -BRDA:24,2,0,6 -BRDA:35,3,0,1 -BRDA:35,3,1,1 -BRDA:40,4,0,1 -BRDA:40,4,1,4 -BRDA:52,5,0,1 -BRDA:52,5,1,0 -BRDA:62,6,0,2 -BRDA:62,6,1,0 -BRDA:63,7,0,0 -BRDA:70,8,0,1 -BRDA:84,9,0,2 -BRDA:84,9,1,0 -BRDA:85,10,0,2 -BRDA:85,10,1,2 -BRDA:90,11,0,0 -BRDA:100,12,0,2 -BRDA:100,12,1,0 -BRDA:101,13,0,0 -BRF:22 -BRH:13 +DA:108,2 +DA:109,2 +DA:110,2 +DA:111,0 +DA:112,0 +DA:114,2 +DA:115,2 +DA:116,2 +LF:66 +LH:60 +BRDA:23,0,0,0 +BRDA:26,1,0,0 +BRDA:26,1,1,12 +BRDA:29,2,0,7 +BRDA:40,3,0,1 +BRDA:40,3,1,1 +BRDA:45,4,0,1 +BRDA:45,4,1,5 +BRDA:57,5,0,1 +BRDA:57,5,1,0 +BRDA:67,6,0,2 +BRDA:67,6,1,0 +BRDA:68,7,0,0 +BRDA:73,8,0,0 +BRDA:73,9,0,2 +BRDA:73,9,1,0 +BRDA:73,10,0,2 +BRDA:73,10,1,2 +BRDA:79,11,0,1 +BRDA:93,12,0,2 +BRDA:93,12,1,0 +BRDA:94,13,0,2 +BRDA:94,13,1,2 +BRDA:99,14,0,0 +BRDA:109,15,0,2 +BRDA:109,15,1,0 +BRDA:110,16,0,0 +BRF:27 +BRH:16 end_of_record TN: SF:src/common/env.ts @@ -125,12 +133,12 @@ FN:46,setConfig FN:57,getConfig FN:75,checkConfigInit FN:98,getRegistryConfig -FN:122,isEnabled -FN:134,setRegistryAlias -FN:147,(anonymous_6) -FN:163,prepareEnv -FN:164,(anonymous_8) -FN:184,initLanguage +FN:124,isEnabled +FN:136,setRegistryAlias +FN:149,(anonymous_6) +FN:165,prepareEnv +FN:166,(anonymous_8) +FN:186,initLanguage FNF:10 FNH:9 FNDA:8,setConfig @@ -184,38 +192,39 @@ DA:100,4 DA:101,4 DA:102,4 DA:103,4 -DA:105,4 -DA:106,48 +DA:104,4 +DA:106,4 DA:107,48 -DA:108,4 -DA:111,4 -DA:122,2 -DA:123,3 -DA:124,1 -DA:125,1 -DA:127,2 -DA:134,2 -DA:135,1 -DA:136,1 -DA:148,0 -DA:149,0 +DA:108,48 +DA:109,4 +DA:112,4 +DA:124,2 +DA:125,3 +DA:126,1 +DA:127,1 +DA:129,2 +DA:136,2 +DA:137,1 +DA:138,1 DA:150,0 DA:151,0 DA:152,0 +DA:153,0 DA:154,0 -DA:163,2 -DA:164,1 -DA:165,1 +DA:156,0 +DA:165,2 DA:166,1 DA:167,1 DA:168,1 +DA:169,1 DA:170,1 -DA:175,1 -DA:176,1 -DA:184,2 -DA:185,2 -LF:71 -LH:60 +DA:172,1 +DA:177,1 +DA:178,1 +DA:186,2 +DA:187,2 +LF:72 +LH:61 BRDA:47,0,0,0 BRDA:47,1,0,8 BRDA:47,1,1,8 @@ -235,37 +244,37 @@ BRDA:99,9,1,0 BRDA:100,10,0,0 BRDA:100,11,0,4 BRDA:100,11,1,4 -BRDA:106,12,0,0 -BRDA:106,12,1,48 -BRDA:106,13,0,48 -BRDA:106,13,1,48 -BRDA:106,14,0,0 -BRDA:106,14,1,48 -BRDA:106,15,0,48 -BRDA:106,15,1,48 -BRDA:107,16,0,4 -BRDA:123,17,0,1 -BRDA:148,18,0,0 -BRDA:150,19,0,0 -BRDA:165,20,0,0 -BRDA:168,21,0,0 -BRDA:173,22,0,1 -BRDA:173,22,1,0 -BRDA:173,23,0,0 -BRDA:173,23,1,1 -BRDA:173,24,0,1 -BRDA:173,24,1,1 -BRDA:173,25,0,0 -BRDA:173,25,1,1 -BRDA:173,26,0,1 -BRDA:173,26,1,1 -BRDA:173,27,0,0 -BRDA:173,27,1,1 -BRDA:173,28,0,1 -BRDA:173,28,1,1 -BRDA:176,29,0,1 -BRDA:176,29,1,0 -BRDA:184,30,0,2 +BRDA:107,12,0,0 +BRDA:107,12,1,48 +BRDA:107,13,0,48 +BRDA:107,13,1,48 +BRDA:107,14,0,0 +BRDA:107,14,1,48 +BRDA:107,15,0,48 +BRDA:107,15,1,48 +BRDA:108,16,0,4 +BRDA:125,17,0,1 +BRDA:150,18,0,0 +BRDA:152,19,0,0 +BRDA:167,20,0,0 +BRDA:170,21,0,0 +BRDA:175,22,0,1 +BRDA:175,22,1,0 +BRDA:175,23,0,0 +BRDA:175,23,1,1 +BRDA:175,24,0,1 +BRDA:175,24,1,1 +BRDA:175,25,0,0 +BRDA:175,25,1,1 +BRDA:175,26,0,1 +BRDA:175,26,1,1 +BRDA:175,27,0,0 +BRDA:175,27,1,1 +BRDA:175,28,0,1 +BRDA:175,28,1,1 +BRDA:178,29,0,1 +BRDA:178,29,1,0 +BRDA:186,30,0,2 BRF:50 BRH:26 end_of_record @@ -292,8 +301,8 @@ FN:105,getNrmModule FN:117,getRegistryUrl FNF:7 FNH:7 -FNDA:18,line -FNDA:18,desensitize +FNDA:15,line +FNDA:15,desensitize FNDA:7,compareVersion FNDA:1,getPackageManager FNDA:13,printLog @@ -304,11 +313,11 @@ DA:2,2 DA:3,2 DA:5,2 DA:22,2 -DA:23,18 +DA:23,15 DA:31,2 -DA:32,18 -DA:33,17 -DA:34,8 +DA:32,15 +DA:33,14 +DA:34,9 DA:43,2 DA:44,7 DA:45,7 @@ -351,7 +360,7 @@ DA:119,5 LF:49 LH:47 BRDA:32,0,0,1 -BRDA:33,1,0,9 +BRDA:33,1,0,5 BRDA:44,2,0,7 BRDA:44,2,1,0 BRDA:45,3,0,7 diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index be4b660..5c4ce65 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -16,7 +16,8 @@ module.exports = { "/use", "/localize", "/update", - "/registry" + "/registry", + "/more" ], nav: [ { diff --git a/docs/README.md b/docs/README.md index a6d93b7..33297d2 100644 --- a/docs/README.md +++ b/docs/README.md @@ -6,6 +6,8 @@ title: 介绍 NUCM 的全称为 NPM User Change Manager,是一款高效而直观的 NPM 账号切换管理工具,为开发者提供了简便的方法来轻松切换和管理不同的 NPM 用户账号。无论是在开发多个项目,协作开发,还是在不同的工作环境中切换,该工具都能帮助用户保持无缝的 NPM 包管理体验。 +![An image](./static/nucm.gif) + **主要特性包括:** 1. 快速账号切换: 使用"NPM User Change Manager",用户可以通过简单的命令或图形界面迅速切换到他们的不同 NPM 账号,无需反复输入认证信息。 diff --git a/docs/more.md b/docs/more.md new file mode 100644 index 0000000..ecafc76 --- /dev/null +++ b/docs/more.md @@ -0,0 +1,29 @@ +--- +title: 了解更多... +--- + +# 了解更多 + +如果你恰好看到了这篇文章,你一定是希望对这个项目贡献自己的一份力量。 + +欢迎任何形式的贡献,不管是一个错别字的修改,还是一次友好的建议,不管是通过提交 [Issue](https://github.com/beezen/nucm/issues), 还是一个帅气 [pull request](https://github.com/beezen/nucm/pulls)。 + +## NPM auth related configuration + +The settings `_auth`, `_authToken`, `username` and `_password` must all be scoped to a specific registry. This ensures that `npm` will never send credentials to the wrong host. + +The full list is: + +- `_auth` (base64 authentication string) +- `_authToken` (authentication token) +- `username` +- `_password` +- `email` +- `certfile` (path to certificate file) +- `keyfile` (path to key file) + +## 参考链接 + +- [npmrc](https://docs.npmjs.com/cli/v9/configuring-npm/npmrc) +- [about-access-tokens](https://docs.npmjs.com/about-access-tokens) +- [nrm](https://www.npmjs.com/package/nrm) diff --git a/docs/static/nucm.gif b/docs/static/nucm.gif new file mode 100644 index 0000000..513fe65 Binary files /dev/null and b/docs/static/nucm.gif differ diff --git a/package.json b/package.json index d0e73cc..ee277ea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nucm", - "version": "1.10.1", + "version": "1.11.0", "description": "NPM User Change Manager(NPM 用户账号切换管理)", "main": "./bin/index.js", "scripts": { diff --git a/src/actions/base.ts b/src/actions/base.ts index cdc1a68..ee304fb 100644 --- a/src/actions/base.ts +++ b/src/actions/base.ts @@ -8,6 +8,11 @@ interface LOptions { all?: boolean; } +// 账号类型配置 _authToken|_auth|_password +interface AuthOptions { + type?: "auth"; +} + /** * 获取用户列表 */ @@ -55,7 +60,7 @@ export function getUserList(options: LOptions) { } /** 变更用户 */ -export function changeUser(name: string) { +export function changeUser(name: string, options?: AuthOptions) { const { fileConfig, registryConfig } = baseInitConfig; let npmrcConfig = fileConfig.npm; let nucmrcConfig = fileConfig.nucm; @@ -64,7 +69,11 @@ export function changeUser(name: string) { printLog("account.notFound", { type: "error" }); return; } - npmrcConfig[`${registryConfig.registry.replace(/^https?:/, "")}:_authToken`] = + let authStr = "_authToken"; + if (["auth", "authToken"].includes(options?.type)) { + authStr = `_${options.type}`; + } + npmrcConfig[`${registryConfig.registry.replace(/^https?:/, "")}:${authStr}`] = accountList[name]["access-tokens"]; Object.keys(accountList).forEach((key) => { if (accountList[key]["is-current"]) { diff --git a/src/common/index.ts b/src/common/index.ts index b3fa548..672b65c 100644 --- a/src/common/index.ts +++ b/src/common/index.ts @@ -101,6 +101,7 @@ export function getRegistryConfig(config: BaseConfig): RegistryConfig | {} { let registriesList = { ...registries, ...config.nrm }; // 源注册表 let registryName = ""; let _authtoken = config.npm[`${registry.replace(/^https?:/, "")}:_authToken`]; // 当前源的用户账号令牌 + let _auth = config.npm[`${registry.replace(/^https?:/, "")}:_auth`]; // 当前源的用户账号 // 获取当前源别名 for (let key in registriesList) { let currentRegistry = registriesList[key]?.registry?.replace(/^https?:\/\/|\/*$/g, ""); @@ -111,7 +112,8 @@ export function getRegistryConfig(config: BaseConfig): RegistryConfig | {} { return { registry, registryName, - _authtoken + _authtoken, + _auth }; } diff --git a/src/index.ts b/src/index.ts index bf6d2c5..261126e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -18,6 +18,7 @@ program .action(prepareEnv(getUserList)); program .command("use ") + .option("-t,--type ", printLog("command.switchAccountUseType", { isPrint: false })) .description(printLog("command.switchAccount", { isPrint: false })) .action(prepareEnv(changeUser)); program diff --git a/src/lang/default/en/base.json b/src/lang/default/en/base.json index ac61545..ddf313a 100644 --- a/src/lang/default/en/base.json +++ b/src/lang/default/en/base.json @@ -6,6 +6,7 @@ "listLs": "show detail", "listAll": "show all account details", "switchAccount": "switch account", + "switchAccountUseType": "switch account use a type", "addAccount": "add account", "removeAccount": "remove account", "localizedLang": "use localized languages", diff --git a/src/lang/default/zh/base.json b/src/lang/default/zh/base.json index 745bea0..9e9cebb 100644 --- a/src/lang/default/zh/base.json +++ b/src/lang/default/zh/base.json @@ -6,6 +6,7 @@ "listLs": "显示详细", "listAll": "显示所有账号详细", "switchAccount": "切换账号", + "switchAccountUseType": "切换账号用某种类型", "addAccount": "添加账号", "removeAccount": "移除账号", "localizedLang": "使用本地化语言",