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

@cdktf/commons

Package Overview
Dependencies
Maintainers
4
Versions
314
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cdktf/commons - npm Package Compare versions

Comparing version 0.20.10 to 0.20.11

src/terraform-module.test.d.ts

13

package.json
{
"name": "@cdktf/commons",
"version": "0.20.10",
"version": "0.20.11",
"publishConfig": {

@@ -40,13 +40,13 @@ "access": "public"

"dependencies": {
"@sentry/node": "7.119.2",
"cdktf": "0.20.10",
"@sentry/node": "7.120.1",
"cdktf": "0.20.11",
"ci-info": "3.9.0",
"codemaker": "1.102.0",
"cross-spawn": "7.0.3",
"cross-spawn": "7.0.6",
"follow-redirects": "1.15.9",
"fs-extra": "11.2.0",
"is-valid-domain": "0.1.6",
"log4js": "6.9.1",
"strip-ansi": "6.0.1",
"uuid": "9.0.1"
"uuid": "9.0.1",
"validator": "13.12.0"
},

@@ -57,2 +57,3 @@ "devDependencies": {

"@types/uuid": "9.0.8",
"@types/validator": "13.12.2",
"@typescript-eslint/eslint-plugin": "4.33.0",

@@ -59,0 +60,0 @@ "@typescript-eslint/parser": "4.33.0",

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -9,3 +6,3 @@ exports.isRegistryModule = void 0;

// SPDX-License-Identifier: MPL-2.0
const is_valid_domain_1 = __importDefault(require("is-valid-domain"));
const validator_1 = require("validator");
// Logic from https://github.com/hashicorp/terraform/blob/e09b831f6ee35d37b11b8dcccd3a6d6f6db5e5ff/internal/addrs/module_source.go#L198

@@ -21,3 +18,3 @@ function isRegistryModule(source) {

}
if (parts.length === 4 && !(0, is_valid_domain_1.default)(parts[0])) {
if (parts.length === 4 && !(0, validator_1.isFQDN)(parts[0])) {
return false;

@@ -28,2 +25,2 @@ }

exports.isRegistryModule = isR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cnRzLmxlbmd0aCA+IDQgfHxcbiAgICBzb3VyY2UuaW5jbHVkZXMoXCJnaXRodWIuY29tXCIpIHx8XG4gICAgc291cmNlLmluY2x1ZGVzKFwiYml0YnVja2V0Lm9yZ1wiKVxuICApIHtcbiAgICByZXR1cm4gZmFsc2U7XG4gIH1cblxuICBpZiAocGFydHMubGVuZ3RoID09PSA0ICYmICFpc0ZRRE4ocGFydHNbMF0pKSB7XG4gICAgcmV0dXJuIGZhbHNlO1xuICB9XG5cbiAgcmV0dXJuIHRydWU7XG59XG4iXX0=
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