@verdaccio/utils
Advanced tools
Comparing version 6.0.0-6-next.10 to 6.0.0-6-next.11
@@ -187,5 +187,6 @@ "use strict"; | ||
function mask(str, charNum = 3) { | ||
return `${str.substr(0, charNum)}...${str.substr(-charNum)}`; | ||
} | ||
return `${str.slice(0, charNum)}...${str.slice(-charNum)}`; | ||
} // @deprecated | ||
function hasDiffOneKey(versions) { | ||
@@ -192,0 +193,0 @@ return Object.keys(versions).length !== 1; |
@@ -6,3 +6,3 @@ import { Package, Version, Versions } from '@verdaccio/types'; | ||
*/ | ||
export declare function getVersion(versions: Versions, version: any): Version | undefined; | ||
export declare function getVersion(versions: Versions, version: string): Version | undefined; | ||
/** | ||
@@ -9,0 +9,0 @@ * Function filters out bad semver versions and sorts the array. |
# @verdaccio/utils | ||
## 6.0.0-6-next.11 | ||
### Patch Changes | ||
- Updated dependencies [82cb0f2b] | ||
- Updated dependencies [5167bb52] | ||
- @verdaccio/core@6.0.0-6-next.5 | ||
## 6.0.0-6-next.10 | ||
@@ -4,0 +12,0 @@ |
{ | ||
"name": "@verdaccio/utils", | ||
"version": "6.0.0-6-next.10", | ||
"version": "6.0.0-6-next.11", | ||
"description": "verdaccio utilities", | ||
@@ -33,3 +33,3 @@ "main": "./build/index.js", | ||
"dependencies": { | ||
"@verdaccio/core": "6.0.0-6-next.4", | ||
"@verdaccio/core": "6.0.0-6-next.5", | ||
"minimatch": "3.0.4", | ||
@@ -36,0 +36,0 @@ "semver": "7.3.5", |
@@ -161,5 +161,6 @@ import assert from 'assert'; | ||
export function mask(str: string, charNum = 3): string { | ||
return `${str.substr(0, charNum)}...${str.substr(-charNum)}`; | ||
return `${str.slice(0, charNum)}...${str.slice(-charNum)}`; | ||
} | ||
// @deprecated | ||
export function hasDiffOneKey(versions): boolean { | ||
@@ -166,0 +167,0 @@ return Object.keys(versions).length !== 1; |
@@ -11,3 +11,3 @@ import _ from 'lodash'; | ||
*/ | ||
export function getVersion(versions: Versions, version: any): Version | undefined { | ||
export function getVersion(versions: Versions, version: string): Version | undefined { | ||
if (!versions) { | ||
@@ -14,0 +14,0 @@ return; |
@@ -8,3 +8,2 @@ import { DEFAULT_USER, DIST_TAGS } from '@verdaccio/core'; | ||
generateGravatarUrl, | ||
getVersion, | ||
normalizeDistTags, | ||
@@ -11,0 +10,0 @@ validateMetadata, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
97939
+ Added@verdaccio/core@6.0.0-6-next.5(transitive)
+ Addedcore-js@3.20.3(transitive)
+ Addedhttp-status-codes@2.2.0(transitive)
+ Addedprocess-warning@1.0.0(transitive)
- Removed@verdaccio/core@6.0.0-6-next.4(transitive)
- Removedcore-js@3.17.2(transitive)
- Removedfastify-warning@0.2.0(transitive)
- Removedhttp-status-codes@2.1.4(transitive)