Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@architect/destroy

Package Overview
Dependencies
Maintainers
6
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@architect/destroy - npm Package Compare versions

Comparing version 1.3.0 to 2.0.0

10

changelog.md

@@ -5,2 +5,12 @@ # Architect Destroy changelog

## [2.0.0] 2021-07-22
### Changed
- Breaking change: removed support for Node.js 10.x (now EOL, and no longer available to created in AWS Lambda)
- Breaking change: the `--name` flag can no longer be used in place of `--app` to destroy apps; `--app` must now be used to destroy apps, while `--name` may only be used to destroy stacks; fixes #1165
- Updated dependencies
---
## [1.2.5 - 1.2.6] 2021-06-21

@@ -7,0 +17,0 @@

19

package.json
{
"name": "@architect/destroy",
"version": "1.3.0",
"version": "2.0.0",
"description": "Destroy projects created with Architect",

@@ -19,3 +19,3 @@ "main": "src/index.js",

"engines": {
"node": ">=10"
"node": ">=12"
},

@@ -27,4 +27,4 @@ "repository": {

"dependencies": {
"@architect/inventory": "~1.4.3",
"@architect/utils": "~2.1.3",
"@architect/inventory": "~2.0.2",
"@architect/utils": "~3.0.1",
"aws-sdk": "~2.880.0",

@@ -35,7 +35,7 @@ "run-parallel": "~1.2.0",

"devDependencies": {
"@architect/deploy": "^2.6.0",
"@architect/eslint-config": "1.0.0",
"aws-sdk-mock": "~5.1.0",
"@architect/deploy": "^2.6.2",
"@architect/eslint-config": "~1.0.0",
"aws-sdk-mock": "5.1.0",
"cross-env": "~7.0.3",
"eslint": "~7.29.0",
"eslint": "~7.31.0",
"nyc": "~15.1.0",

@@ -47,6 +47,3 @@ "tap-spec": "^5.0.0",

"extends": "@architect/eslint-config"
},
"publishConfig": {
"access": "public"
}
}

@@ -33,13 +33,7 @@ #!/usr/bin/env node

let app = args.includes('--app') && (args[args.findIndex(findApp) + 1] === appname)
if (!app) throw Error('no_app_name')
// User should supply --app $appname in the CLI, however if they only supply --name (the old destroy behavior) then interpret that as --app (and warn)
let findName = p => p === '--name'
let stackname
if (!app && args.includes('--name')) {
app = (args[args.findIndex(findName) + 1] === appname)
update.warn(`--name flag has been updated to support custom stack names, you should specify the app to destroy with: --app ${appname}`)
}
else {
stackname = args.includes('--name') && args[args.findIndex(findName) + 1]
}
let stackname = args.includes('--name') && args[args.findIndex(findName) + 1]

@@ -53,5 +47,2 @@ let forces = p => [ '-f', '--force', 'force' ].includes(p)

if (!app) {
throw Error('no_app_name')
}
let env = production ? 'production' : 'staging'

@@ -58,0 +49,0 @@ update.status(`Destroying ${env} environment`)

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