New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@teambit/component-version

Package Overview
Dependencies
Maintainers
17
Versions
210
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@teambit/component-version - npm Package Compare versions

Comparing version 0.0.395 to 0.0.396

dist/tsconfig.json

2

dist/version-parser.js

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

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