-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: function signatures Replace object parameters with separate parameters. This is mostly done for consistency, as most functions in the project use multiple parameters. Also it makes the function signature a lot shorter. * refactor: move env usage up Remove env usage from pkg-manifest-io * refactor: move env usage up Remove env usage from upm-config-io * refactor: move up env usage Remove env from fetchPackageInfo * refactor: move up env usage Remove usage from registry-client * refactor: remove extraneous functions Removes the _ functions that exist in some cmd files by either making them local functions inside the main cmd function or by just moving their content into the main cmd function. The goals for this are: - Move env usage up into just the env functions - Avoid unnecessary parameter passing * refactor: move up env usage Remove env from getNpmFetchOptions function * refactor: move up env usage Remove env usage from manifest-assertions * refactor: move up env usage Remove env usage from writeUnityToken * refactor: extract helper function * refactor: manifest-path logic Manifest-path is no longer stored on env, but calculated on demand from cwd. The goal here is to shrink env / deduplicate information in it. parseEnv still checks whether manifest-path exists * refactor: de-global env Make env a non-global value * refactor: registry in env instead of storing urls for regular and upstream registry, as well as all auths, now we store only the auths for the used registries and put them together with the registry urls * refactor: remove property from env nmpAuth is only used inside the parse-env function and can be removed from env * refactor: remove property from env color is only used inside the parse-env function and can be made local * refactor: remove property from env region is only used inside the parse-env function and can be made local * fix: typo in property name This typo caused color to be used in test scenarios which would mess with the mock console * fix: color option If the color option is undefined it should also count as true
- Loading branch information
1 parent
bb1c999
commit 2c0bdab
Showing
18 changed files
with
618 additions
and
654 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.