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

@goldstack/infra

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@goldstack/infra - npm Package Compare versions

Comparing version 0.3.6 to 0.3.7

24

dist/deploymentState.js

@@ -13,3 +13,3 @@ "use strict";

const deploymentsStatePath = 'src/state/deployments.json';
exports.validateDeploymentsState = (
const validateDeploymentsState = (
// eslint-disable-next-line @typescript-eslint/no-explicit-any

@@ -21,6 +21,8 @@ deploymentsState) => {

};
exports.hasDeploymentsState = (packageDir) => {
exports.validateDeploymentsState = validateDeploymentsState;
const hasDeploymentsState = (packageDir) => {
return fs_1.default.existsSync(packageDir + deploymentsStatePath);
};
exports.readDeploymentsState = (packageDir, options) => {
exports.hasDeploymentsState = hasDeploymentsState;
const readDeploymentsState = (packageDir, options) => {
if (!exports.hasDeploymentsState(packageDir)) {

@@ -35,3 +37,4 @@ if (options && options.createIfNotExist) {

};
exports.getDeploymentState = (deploymentsState, deploymentName, options) => {
exports.readDeploymentsState = readDeploymentsState;
const getDeploymentState = (deploymentsState, deploymentName, options) => {
const deploymentState = deploymentsState.find((deploymentState) => deploymentState.name === deploymentName);

@@ -48,10 +51,13 @@ if (!deploymentState) {

};
exports.readDeploymentState = (packageDir, deploymentName, options) => {
exports.getDeploymentState = getDeploymentState;
const readDeploymentState = (packageDir, deploymentName, options) => {
const deploymentsState = exports.readDeploymentsState(packageDir, options);
return exports.getDeploymentState(deploymentsState, deploymentName, options);
};
exports.writeDeploymentsState = (packageDir, deploymentsState) => {
exports.readDeploymentState = readDeploymentState;
const writeDeploymentsState = (packageDir, deploymentsState) => {
utils_sh_1.write(JSON.stringify(deploymentsState, null, 2), packageDir + deploymentsStatePath);
};
exports.writeDeploymentState = (packageDir, deploymentState) => {
exports.writeDeploymentsState = writeDeploymentsState;
const writeDeploymentState = (packageDir, deploymentState) => {
let deploymentsState;

@@ -73,3 +79,4 @@ if (exports.hasDeploymentsState(packageDir)) {

};
exports.readTerraformStateVariable = (deploymentState, variableName
exports.writeDeploymentState = writeDeploymentState;
const readTerraformStateVariable = (deploymentState, variableName
// eslint-disable-next-line @typescript-eslint/no-explicit-any

@@ -86,2 +93,3 @@ ) => {

};
exports.readTerraformStateVariable = readTerraformStateVariable;
//# sourceMappingURL=deploymentState.js.map

@@ -10,3 +10,3 @@ "use strict";

var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};

@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

{
"name": "@goldstack/infra",
"version": "0.3.6",
"version": "0.3.7",
"description": "Utilities for defining infrastructure for npm packages.",

@@ -40,16 +40,16 @@ "keywords": [

"dependencies": {
"@goldstack/utils-config": "0.3.5",
"@goldstack/utils-log": "0.2.2",
"@goldstack/utils-sh": "0.4.5"
"@goldstack/utils-config": "0.3.6",
"@goldstack/utils-log": "0.2.3",
"@goldstack/utils-sh": "0.4.6"
},
"devDependencies": {
"@goldstack/utils-git": "0.1.23",
"@types/jest": "^25.2.3",
"@goldstack/utils-git": "0.1.24",
"@types/jest": "^26.0.21",
"@types/node": "^14.0.6",
"jest": "^26.0.1",
"jest": "^26.6.3",
"renamer": "^0.7.0",
"ts-jest": "^26.1.0",
"ts-jest": "^26.5.4",
"ts-json-schema-generator": "^0.70.2",
"typescript": "^3.9.5"
"typescript": "^4.1.3"
}
}

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