Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@verdaccio/utils

Package Overview
Dependencies
Maintainers
4
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@verdaccio/utils - npm Package Compare versions

Comparing version 6.0.0-6-next.10 to 6.0.0-6-next.11

5

build/utils.js

@@ -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;

2

build/versions.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc