@verdaccio/utils
Advanced tools
Comparing version 6.0.0-6-next.7 to 6.0.0-6-next.8
@@ -6,6 +6,6 @@ "use strict"; | ||
}); | ||
exports.validatePassword = validatePassword; | ||
exports.buildUserBuffer = buildUserBuffer; | ||
exports.createSessionToken = createSessionToken; | ||
exports.getAuthenticatedMessage = getAuthenticatedMessage; | ||
exports.buildUserBuffer = buildUserBuffer; | ||
exports.validatePassword = validatePassword; | ||
@@ -12,0 +12,0 @@ var _core = require("@verdaccio/core"); |
@@ -7,5 +7,5 @@ "use strict"; | ||
exports.createTarballHash = createTarballHash; | ||
exports.defaultTarballHashAlgorithm = void 0; | ||
exports.generateRandomHexString = generateRandomHexString; | ||
exports.stringToMD5 = stringToMD5; | ||
exports.generateRandomHexString = generateRandomHexString; | ||
exports.defaultTarballHashAlgorithm = void 0; | ||
@@ -12,0 +12,0 @@ var _crypto = require("crypto"); |
@@ -6,7 +6,7 @@ "use strict"; | ||
}); | ||
exports.isFunction = isFunction; | ||
exports.isNil = isNil; | ||
exports.isFunction = isFunction; | ||
function isNil(value) { | ||
return value == null; | ||
return value === null || typeof value === 'undefined'; | ||
} | ||
@@ -13,0 +13,0 @@ |
@@ -6,16 +6,16 @@ "use strict"; | ||
}); | ||
exports.validateName = validateName; | ||
exports.validatePackage = validatePackage; | ||
exports.isObject = isObject; | ||
exports.validateMetadata = validateMetadata; | ||
exports.getVersion = getVersion; | ||
exports.semverSort = semverSort; | ||
exports.normalizeDistTags = normalizeDistTags; | ||
exports.getLatestVersion = getLatestVersion; | ||
exports.buildToken = buildToken; | ||
exports.formatAuthor = formatAuthor; | ||
exports.pad = pad; | ||
exports.mask = mask; | ||
exports.getLatestVersion = getLatestVersion; | ||
exports.getVersion = getVersion; | ||
exports.hasDiffOneKey = hasDiffOneKey; | ||
exports.isObject = isObject; | ||
exports.isVersionValid = isVersionValid; | ||
exports.mask = mask; | ||
exports.normalizeDistTags = normalizeDistTags; | ||
exports.pad = pad; | ||
exports.semverSort = semverSort; | ||
exports.validateMetadata = validateMetadata; | ||
exports.validateName = validateName; | ||
exports.validatePackage = validatePackage; | ||
@@ -22,0 +22,0 @@ var _assert = _interopRequireDefault(require("assert")); |
# @verdaccio/utils | ||
## 6.0.0-6-next.8 | ||
### Patch Changes | ||
- Updated dependencies [6c1eb021] | ||
- @verdaccio/core@6.0.0-6-next.3 | ||
## 6.0.0-6-next.7 | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "@verdaccio/utils", | ||
"version": "6.0.0-6-next.7", | ||
"version": "6.0.0-6-next.8", | ||
"description": "verdaccio utilities", | ||
@@ -33,3 +33,3 @@ "main": "./build/index.js", | ||
"dependencies": { | ||
"@verdaccio/core": "6.0.0-6-next.2", | ||
"@verdaccio/core": "6.0.0-6-next.3", | ||
"minimatch": "3.0.4", | ||
@@ -36,0 +36,0 @@ "semver": "7.3.5" |
export function isNil(value: any): boolean { | ||
return value == null; | ||
return value === null || typeof value === 'undefined'; | ||
} | ||
@@ -4,0 +4,0 @@ |
@@ -84,65 +84,2 @@ import { DIST_TAGS, DEFAULT_USER } from '@verdaccio/core'; | ||
// describe('validatePackage', () => { | ||
// test('should validate package names', () => { | ||
// expect(validatePackage('package-name')).toBeTruthy(); | ||
// expect(validatePackage('@scope/package-name')).toBeTruthy(); | ||
// }); | ||
// test('should fails on validate package names', () => { | ||
// expect(validatePackage('package-name/test/fake')).toBeFalsy(); | ||
// expect(validatePackage('@/package-name')).toBeFalsy(); | ||
// expect(validatePackage('$%$%#$%$#%#$%$#')).toBeFalsy(); | ||
// expect(validatePackage('node_modules')).toBeFalsy(); | ||
// expect(validatePackage('__proto__')).toBeFalsy(); | ||
// expect(validatePackage('favicon.ico')).toBeFalsy(); | ||
// }); | ||
// describe('validateName', () => { | ||
// test('should fails with no string', () => { | ||
// // intended to fail with Typescript, do not remove | ||
// // @ts-ignore | ||
// expect(validateName(null)).toBeFalsy(); | ||
// // @ts-ignore | ||
// expect(validateName(undefined)).toBeFalsy(); | ||
// }); | ||
// test('good ones', () => { | ||
// expect(validateName('verdaccio')).toBeTruthy(); | ||
// expect(validateName('some.weird.package-zzz')).toBeTruthy(); | ||
// expect(validateName('old-package@0.1.2.tgz')).toBeTruthy(); | ||
// // fix https://github.com/verdaccio/verdaccio/issues/1400 | ||
// expect(validateName('-build-infra')).toBeTruthy(); | ||
// expect(validateName('@pkg-scoped/without-extension')).toBeTruthy(); | ||
// }); | ||
// test('should be valid using uppercase', () => { | ||
// expect(validateName('ETE')).toBeTruthy(); | ||
// expect(validateName('JSONStream')).toBeTruthy(); | ||
// }); | ||
// test('should fails with path seps', () => { | ||
// expect(validateName('some/thing')).toBeFalsy(); | ||
// expect(validateName('some\\thing')).toBeFalsy(); | ||
// }); | ||
// test('should fail with no hidden files', () => { | ||
// expect(validateName('.bin')).toBeFalsy(); | ||
// }); | ||
// test('should fails with reserved words', () => { | ||
// expect(validateName('favicon.ico')).toBeFalsy(); | ||
// expect(validateName('node_modules')).toBeFalsy(); | ||
// expect(validateName('__proto__')).toBeFalsy(); | ||
// }); | ||
// test('should fails with other options', () => { | ||
// expect(validateName('pk g')).toBeFalsy(); | ||
// expect(validateName('pk\tg')).toBeFalsy(); | ||
// expect(validateName('pk%20g')).toBeFalsy(); | ||
// expect(validateName('pk+g')).toBeFalsy(); | ||
// expect(validateName('pk:g')).toBeFalsy(); | ||
// }); | ||
// }); | ||
// }); | ||
describe('validateMetadata', () => { | ||
@@ -149,0 +86,0 @@ test('should fills an empty metadata object', () => { |
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
67613
994
+ Added@verdaccio/core@6.0.0-6-next.3(transitive)
+ Addedfastify-warning@0.2.0(transitive)
- Removed@verdaccio/core@6.0.0-6-next.2(transitive)