Skip to content

Commit

Permalink
Update package-lock
Browse files Browse the repository at this point in the history
  • Loading branch information
jennyEckstein committed Dec 7, 2021
1 parent 6fdbe7b commit 5814b9a
Show file tree
Hide file tree
Showing 3 changed files with 330 additions and 346 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ verifyDeps({ dir: './path-to/project-directory' })
* [~getInstalledVersion(currentDir, name, logger)](#module_lifion-verify-deps--verifyDeps..getInstalledVersion) ⇒ <code>string</code> \| <code>null</code>
* [~pushPkgs(params)](#module_lifion-verify-deps--verifyDeps..pushPkgs) ⇒ <code>Array.&lt;Promise.&lt;PackageStatus&gt;&gt;</code>
* [~getPkgIds(filteredPkgs)](#module_lifion-verify-deps--verifyDeps..getPkgIds) ⇒ <code>string</code>
* [~removeLockedDependencies(deps)](#module_lifion-verify-deps--verifyDeps..removeLockedDependencies) ⇒ <code>Object</code>
* [~removeLockedDependencies(deps)](#module_lifion-verify-deps--verifyDeps..removeLockedDependencies) ⇒ <code>Object.&lt;string, string&gt;</code> \| <code>Object</code>
<a name="exp_module_lifion-verify-deps--verifyDeps"></a>
Expand Down Expand Up @@ -147,7 +147,7 @@ Builds list of packages to update.
| Param | Type | Description |
| --- | --- | --- |
| params | <code>Object</code> | Object with parameters. |
| params.deps | <code>Object.&lt;string, any&gt;</code> | List of dependencies. |
| params.deps | <code>Object.&lt;string, string&gt;</code> | List of dependencies. |
| params.dir | <code>string</code> | Directory location. |
| params.logger | [<code>Logger</code>](#Logger) | Logging tool. |
| params.type | <code>string</code> | Type of dependency. |
Expand All @@ -166,11 +166,11 @@ Formats package name for installation.
<a name="module_lifion-verify-deps--verifyDeps..removeLockedDependencies"></a>
#### verifyDeps~removeLockedDependencies(deps) ⇒ <code>Object</code>
#### verifyDeps~removeLockedDependencies(deps) ⇒ <code>Object.&lt;string, string&gt;</code> \| <code>Object</code>
Filters out dependencies with locked versions.
**Kind**: inner method of [<code>verifyDeps</code>](#exp_module_lifion-verify-deps--verifyDeps)
**Returns**: <code>Object</code> - List of dependencies excluding locked semver versions.
**Returns**: <code>Object.&lt;string, string&gt;</code> \| <code>Object</code> - List of dependencies excluding locked semver versions.
| Param | Type | Description |
| --- | --- | --- |
Expand Down
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function getInstalledVersion(currentDir, name, logger) {
* Builds list of packages to update.
*
* @param {Object} params - Object with parameters.
* @param {Object.<string, any>} params.deps - List of dependencies.
* @param {Object.<string, string>} params.deps - List of dependencies.
* @param {string} params.dir - Directory location.
* @param {Logger} params.logger - Logging tool.
* @param {string} params.type - Type of dependency.
Expand Down Expand Up @@ -178,7 +178,7 @@ function getPkgIds(filteredPkgs) {
* Filters out dependencies with locked versions.
*
* @param {Object.<string, string>} deps - List of dependencies.
* @returns {Object} List of dependencies excluding locked semver versions.
* @returns {Object.<string, string> | {}} List of dependencies excluding locked semver versions.
*/
function removeLockedDependencies(deps) {
let depsToUpgrade = {};
Expand Down
Loading

0 comments on commit 5814b9a

Please sign in to comment.