@teambit/component-version
Advanced tools
Comparing version 0.0.395 to 0.0.396
@@ -47,3 +47,3 @@ "use strict"; | ||
function isHash(str) { | ||
return typeof str === 'string' && str.length === exports.HASH_SIZE; | ||
return typeof str === 'string' && str.length === exports.HASH_SIZE && !semver_1.default.valid(str); | ||
} | ||
@@ -50,0 +50,0 @@ exports.isHash = isHash; |
{ | ||
"name": "@teambit/component-version", | ||
"version": "0.0.395", | ||
"version": "0.0.396", | ||
"homepage": "https://bit.dev/teambit/component/component-version", | ||
@@ -9,3 +9,3 @@ "main": "dist/index.js", | ||
"name": "component-version", | ||
"version": "0.0.395" | ||
"version": "0.0.396" | ||
}, | ||
@@ -26,13 +26,2 @@ "dependencies": { | ||
"license": "Apache-2.0", | ||
"bit": { | ||
"bindingPrefix": "@teambit", | ||
"env": {}, | ||
"overrides": { | ||
"devDependencies": { | ||
"@babel/runtime": "7.12.18", | ||
"@types/node": "12.20.4", | ||
"@types/jest": "26.0.20" | ||
} | ||
} | ||
}, | ||
"private": false, | ||
@@ -39,0 +28,0 @@ "engines": { |
@@ -10,3 +10,3 @@ { | ||
"target": "es2015", | ||
"module": "commonjs", | ||
"module": "CommonJS", | ||
"jsx": "react", | ||
@@ -18,2 +18,3 @@ "allowJs": true, | ||
"skipLibCheck": true, | ||
"experimentalDecorators": true, | ||
"outDir": "dist", | ||
@@ -26,4 +27,9 @@ "moduleResolution": "node", | ||
"exclude": [ | ||
"dist" | ||
"dist", | ||
"package.json" | ||
], | ||
"include": [ | ||
"**/*", | ||
"**/*.json" | ||
] | ||
} |
@@ -48,3 +48,3 @@ import semver from 'semver'; | ||
export function isHash(str: string | null | undefined): boolean { | ||
return typeof str === 'string' && str.length === HASH_SIZE; | ||
return typeof str === 'string' && str.length === HASH_SIZE && !semver.valid(str); | ||
} | ||
@@ -51,0 +51,0 @@ |
Sorry, the diff of this file is not supported yet
35930
35
566