@gradientedge/cdk-utils 4.3.1 → 4.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -28
- package/api-docs/AcmManager.html +622 -0
- package/api-docs/AcmProps.html +238 -0
- package/api-docs/AlarmProps.html +238 -0
- package/api-docs/AlarmStatusWidgetProps.html +238 -0
- package/api-docs/ApiDestinationEvent.html +297 -0
- package/api-docs/ApiDestinationEventType.html +238 -0
- package/api-docs/ApiDestinedLambda.html +297 -0
- package/api-docs/ApiDestinedLambdaEnvironment.html +238 -0
- package/api-docs/ApiDestinedLambdaType.html +238 -0
- package/api-docs/ApiDestinedRestApi.html +297 -0
- package/api-docs/ApiDestinedRestApiType.html +238 -0
- package/api-docs/ApiManager.html +766 -0
- package/api-docs/ApiToEventBridgeTarget.html +1877 -0
- package/api-docs/ApiToEventBridgeTarget.jpg +0 -0
- package/api-docs/ApiToEventBridgeTargetEventProps.html +238 -0
- package/api-docs/ApiToEventBridgeTargetLambdaProps.html +238 -0
- package/api-docs/ApiToEventBridgeTargetProps.html +238 -0
- package/api-docs/ApiToEventBridgeTargetRestApiProps.html +238 -0
- package/api-docs/AppConfigManager.html +1203 -0
- package/api-docs/AppConfigProps.html +238 -0
- package/api-docs/CloudFrontManager.html +2402 -0
- package/api-docs/CloudFrontProps.html +238 -0
- package/api-docs/CloudTrailManager.html +637 -0
- package/api-docs/CloudTrailProps.html +238 -0
- package/api-docs/CloudWatchManager.html +2986 -0
- package/api-docs/CloudfrontFunctionProps.html +238 -0
- package/api-docs/CodeBuildManager.html +736 -0
- package/api-docs/CommonConstruct.html +1299 -0
- package/api-docs/CommonStack.html +813 -0
- package/api-docs/CommonStackProps.html +238 -0
- package/api-docs/DashboardProps.html +238 -0
- package/api-docs/DistributionProps.html +238 -0
- package/api-docs/DynamodbManager.html +530 -0
- package/api-docs/EcrManager.html +530 -0
- package/api-docs/EcsClusterProps.html +238 -0
- package/api-docs/EcsManager.html +880 -0
- package/api-docs/EcsTaskProps.html +238 -0
- package/api-docs/EksClusterProps.html +238 -0
- package/api-docs/EksManager.html +580 -0
- package/api-docs/EventBusProps.html +238 -0
- package/api-docs/EventManager.html +1454 -0
- package/api-docs/EventRuleProps.html +238 -0
- package/api-docs/GraphQLApiLambda.html +1671 -0
- package/api-docs/GraphQLApiLambda.jpg +0 -0
- package/api-docs/GraphQlApiLambdaEnvironment.html +238 -0
- package/api-docs/GraphQlApiLambdaProps.html +238 -0
- package/api-docs/GraphWidgetProps.html +238 -0
- package/api-docs/HealthCheck.html +238 -0
- package/api-docs/IamManager.html +3821 -0
- package/api-docs/LambdaEdgeProps.html +238 -0
- package/api-docs/LambdaEnvironment.html +238 -0
- package/api-docs/LambdaManager.html +2378 -0
- package/api-docs/LambdaProps.html +238 -0
- package/api-docs/LifecycleRule.html +238 -0
- package/api-docs/LogManager.html +955 -0
- package/api-docs/LogProps.html +238 -0
- package/api-docs/LogQueryWidgetProps.html +238 -0
- package/api-docs/MetricFilterProps.html +238 -0
- package/api-docs/MetricProps.html +238 -0
- package/api-docs/NumericWidgetProps.html +238 -0
- package/api-docs/Route53Manager.html +1460 -0
- package/api-docs/Route53Props.html +238 -0
- package/api-docs/RuleProps.html +238 -0
- package/api-docs/S3BucketProps.html +238 -0
- package/api-docs/S3Manager.html +1546 -0
- package/api-docs/SSMParameterReader.html +431 -0
- package/api-docs/SSMParameterReaderProps.html +238 -0
- package/api-docs/SecretsManager.html +1140 -0
- package/api-docs/SiteWithEcsBackend.html +2391 -0
- package/api-docs/SiteWithEcsBackendProps.html +238 -0
- package/api-docs/SnsManager.html +780 -0
- package/api-docs/SsmManager.html +955 -0
- package/api-docs/StaticSite.html +1358 -0
- package/api-docs/StaticSiteProps.html +238 -0
- package/api-docs/SubscriptionProps.html +238 -0
- package/api-docs/TableProps.html +238 -0
- package/api-docs/TextWidgetProps.html +238 -0
- package/api-docs/VpcManager.html +986 -0
- package/api-docs/WafIPSetProps.html +238 -0
- package/api-docs/WafManager.html +730 -0
- package/api-docs/WafWebACLProps.html +238 -0
- package/api-docs/common_construct.ts.html +279 -0
- package/api-docs/common_stack.ts.html +303 -0
- package/api-docs/construct_api-to-eventbridge-target_api-destination-event.ts.html +175 -0
- package/api-docs/construct_api-to-eventbridge-target_api-destined-lambda.ts.html +178 -0
- package/api-docs/construct_api-to-eventbridge-target_api-destined-rest-api.ts.html +190 -0
- package/api-docs/construct_api-to-eventbridge-target_main.ts.html +751 -0
- package/api-docs/construct_graphql-api-lambda_main.ts.html +408 -0
- package/api-docs/construct_site-with-ecs-backend_main.ts.html +544 -0
- package/api-docs/construct_static-site_main.ts.html +374 -0
- package/api-docs/global.html +1530 -0
- package/api-docs/index.html +208 -0
- package/api-docs/logo.png +0 -0
- package/api-docs/manager_aws_acm-manager.ts.html +236 -0
- package/api-docs/manager_aws_api-manager.ts.html +260 -0
- package/api-docs/manager_aws_app-config-manager.ts.html +310 -0
- package/api-docs/manager_aws_cloudfront-manager.ts.html +491 -0
- package/api-docs/manager_aws_cloudtrail-manager.ts.html +251 -0
- package/api-docs/manager_aws_cloudwatch-manager.ts.html +553 -0
- package/api-docs/manager_aws_codebuild-manager.ts.html +240 -0
- package/api-docs/manager_aws_dynamodb-manager.ts.html +219 -0
- package/api-docs/manager_aws_ecr-manager.ts.html +199 -0
- package/api-docs/manager_aws_ecs-manager.ts.html +259 -0
- package/api-docs/manager_aws_eks-manager.ts.html +260 -0
- package/api-docs/manager_aws_event-manager.ts.html +336 -0
- package/api-docs/manager_aws_iam-manager.ts.html +573 -0
- package/api-docs/manager_aws_lambda-manager.ts.html +400 -0
- package/api-docs/manager_aws_log-manager.ts.html +259 -0
- package/api-docs/manager_aws_route53-manager.ts.html +333 -0
- package/api-docs/manager_aws_s3-manager.ts.html +361 -0
- package/api-docs/manager_aws_secrets-manager.ts.html +274 -0
- package/api-docs/manager_aws_sns-manager.ts.html +246 -0
- package/api-docs/manager_aws_ssm-manager.ts.html +273 -0
- package/api-docs/manager_aws_vpc-manager.ts.html +244 -0
- package/api-docs/manager_aws_waf-manager.ts.html +232 -0
- package/api-docs/scripts/app.min.js +1 -0
- package/api-docs/scripts/linenumber.js +26 -0
- package/api-docs/scripts/search.js +39 -0
- package/api-docs/styles/app.min.css +1 -0
- package/api-docs/styles/iframe.css +13 -0
- package/api-docs/styles/prettify-jsdoc.css +111 -0
- package/api-docs/styles/prettify-tomorrow.css +132 -0
- package/api-docs/styles/reset.css +44 -0
- package/api-docs/styles.css +113 -0
- package/api-docs/tutorial-Architecture.html +151 -0
- package/api-docs/tutorial-Build.html +150 -0
- package/api-docs/tutorial-CI-CD.html +154 -0
- package/api-docs/tutorial-Development.html +227 -0
- package/api-docs/types_aws_index.ts.html +665 -0
- package/api-docs/utils_aws_index.ts.html +192 -0
- package/api-docs/utils_index.ts.html +227 -0
- package/app/api-destined-function/node_modules/.yarn-integrity +180 -0
- package/app/api-destined-function/node_modules/@types/uuid/LICENSE +21 -0
- package/app/api-destined-function/node_modules/@types/uuid/README.md +16 -0
- package/app/api-destined-function/node_modules/@types/uuid/index.d.mts +10 -0
- package/app/api-destined-function/node_modules/@types/uuid/index.d.ts +80 -0
- package/app/api-destined-function/node_modules/@types/uuid/package.json +54 -0
- package/app/api-destined-function/node_modules/balanced-match/LICENSE.md +21 -0
- package/app/api-destined-function/node_modules/balanced-match/README.md +97 -0
- package/app/api-destined-function/node_modules/balanced-match/index.js +62 -0
- package/app/api-destined-function/node_modules/balanced-match/package.json +48 -0
- package/app/api-destined-function/node_modules/brace-expansion/LICENSE +21 -0
- package/app/api-destined-function/node_modules/brace-expansion/README.md +129 -0
- package/app/api-destined-function/node_modules/brace-expansion/index.js +201 -0
- package/app/api-destined-function/node_modules/brace-expansion/package.json +47 -0
- package/app/api-destined-function/node_modules/concat-map/.travis.yml +4 -0
- package/app/api-destined-function/node_modules/concat-map/LICENSE +18 -0
- package/app/api-destined-function/node_modules/concat-map/README.markdown +62 -0
- package/app/api-destined-function/node_modules/concat-map/example/map.js +6 -0
- package/app/api-destined-function/node_modules/concat-map/index.js +13 -0
- package/app/api-destined-function/node_modules/concat-map/package.json +43 -0
- package/app/api-destined-function/node_modules/fs.realpath/LICENSE +43 -0
- package/app/api-destined-function/node_modules/fs.realpath/README.md +33 -0
- package/app/api-destined-function/node_modules/fs.realpath/index.js +66 -0
- package/app/api-destined-function/node_modules/fs.realpath/old.js +303 -0
- package/app/api-destined-function/node_modules/fs.realpath/package.json +26 -0
- package/app/api-destined-function/node_modules/glob/LICENSE +21 -0
- package/app/api-destined-function/node_modules/glob/README.md +378 -0
- package/app/api-destined-function/node_modules/glob/common.js +236 -0
- package/app/api-destined-function/node_modules/glob/glob.js +787 -0
- package/app/api-destined-function/node_modules/glob/package.json +52 -0
- package/app/api-destined-function/node_modules/glob/sync.js +483 -0
- package/app/api-destined-function/node_modules/inflight/LICENSE +15 -0
- package/app/api-destined-function/node_modules/inflight/README.md +37 -0
- package/app/api-destined-function/node_modules/inflight/inflight.js +54 -0
- package/app/api-destined-function/node_modules/inflight/package.json +29 -0
- package/app/api-destined-function/node_modules/inherits/LICENSE +16 -0
- package/app/api-destined-function/node_modules/inherits/README.md +42 -0
- package/app/api-destined-function/node_modules/inherits/inherits.js +9 -0
- package/app/api-destined-function/node_modules/inherits/inherits_browser.js +27 -0
- package/app/api-destined-function/node_modules/inherits/package.json +29 -0
- package/app/api-destined-function/node_modules/minimatch/LICENSE +15 -0
- package/app/api-destined-function/node_modules/minimatch/README.md +209 -0
- package/app/api-destined-function/node_modules/minimatch/minimatch.js +923 -0
- package/app/api-destined-function/node_modules/minimatch/package.json +30 -0
- package/app/api-destined-function/node_modules/mkdirp/LICENSE +21 -0
- package/app/api-destined-function/node_modules/mkdirp/bin/cmd.js +68 -0
- package/app/api-destined-function/node_modules/mkdirp/index.js +31 -0
- package/app/api-destined-function/node_modules/mkdirp/lib/find-made.js +29 -0
- package/app/api-destined-function/node_modules/mkdirp/lib/mkdirp-manual.js +64 -0
- package/app/api-destined-function/node_modules/mkdirp/lib/mkdirp-native.js +39 -0
- package/app/api-destined-function/node_modules/mkdirp/lib/opts-arg.js +23 -0
- package/app/api-destined-function/node_modules/mkdirp/lib/path-arg.js +29 -0
- package/app/api-destined-function/node_modules/mkdirp/lib/use-native.js +10 -0
- package/app/api-destined-function/node_modules/mkdirp/package.json +44 -0
- package/app/api-destined-function/node_modules/mkdirp/readme.markdown +266 -0
- package/app/api-destined-function/node_modules/once/LICENSE +15 -0
- package/app/api-destined-function/node_modules/once/README.md +79 -0
- package/app/api-destined-function/node_modules/once/once.js +42 -0
- package/app/api-destined-function/node_modules/once/package.json +33 -0
- package/app/api-destined-function/node_modules/path-is-absolute/index.js +20 -0
- package/app/api-destined-function/node_modules/path-is-absolute/license +21 -0
- package/app/api-destined-function/node_modules/path-is-absolute/package.json +43 -0
- package/app/api-destined-function/node_modules/path-is-absolute/readme.md +59 -0
- package/app/api-destined-function/node_modules/rimraf/LICENSE +15 -0
- package/app/api-destined-function/node_modules/rimraf/README.md +101 -0
- package/app/api-destined-function/node_modules/rimraf/bin.js +68 -0
- package/app/api-destined-function/node_modules/rimraf/package.json +32 -0
- package/app/api-destined-function/node_modules/rimraf/rimraf.js +360 -0
- package/app/api-destined-function/node_modules/uuid/LICENSE.md +9 -0
- package/app/api-destined-function/node_modules/uuid/README.md +505 -0
- package/app/api-destined-function/node_modules/uuid/dist/bin/uuid +2 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/index.js +9 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/md5.js +215 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/nil.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/parse.js +35 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/regex.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/rng.js +19 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/stringify.js +30 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v1.js +95 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v3.js +4 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v35.js +64 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v4.js +24 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v5.js +4 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/validate.js +7 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/version.js +11 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/index.js +9 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/md5.js +13 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/nil.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/parse.js +35 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/regex.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/rng.js +12 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/sha1.js +13 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/stringify.js +29 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/v1.js +95 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/v3.js +4 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/v35.js +64 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/v4.js +24 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/v5.js +4 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/validate.js +7 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/version.js +11 -0
- package/app/api-destined-function/node_modules/uuid/dist/index.js +79 -0
- package/app/api-destined-function/node_modules/uuid/dist/md5-browser.js +223 -0
- package/app/api-destined-function/node_modules/uuid/dist/md5.js +23 -0
- package/app/api-destined-function/node_modules/uuid/dist/nil.js +8 -0
- package/app/api-destined-function/node_modules/uuid/dist/parse.js +45 -0
- package/app/api-destined-function/node_modules/uuid/dist/regex.js +8 -0
- package/app/api-destined-function/node_modules/uuid/dist/rng-browser.js +26 -0
- package/app/api-destined-function/node_modules/uuid/dist/rng.js +24 -0
- package/app/api-destined-function/node_modules/uuid/dist/sha1-browser.js +104 -0
- package/app/api-destined-function/node_modules/uuid/dist/sha1.js +23 -0
- package/app/api-destined-function/node_modules/uuid/dist/stringify.js +39 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuid.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidNIL.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidParse.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidStringify.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidValidate.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidVersion.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv1.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv3.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv4.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv5.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/uuid-bin.js +85 -0
- package/app/api-destined-function/node_modules/uuid/dist/v1.js +107 -0
- package/app/api-destined-function/node_modules/uuid/dist/v3.js +16 -0
- package/app/api-destined-function/node_modules/uuid/dist/v35.js +78 -0
- package/app/api-destined-function/node_modules/uuid/dist/v4.js +37 -0
- package/app/api-destined-function/node_modules/uuid/dist/v5.js +16 -0
- package/app/api-destined-function/node_modules/uuid/dist/validate.js +17 -0
- package/app/api-destined-function/node_modules/uuid/dist/version.js +21 -0
- package/app/api-destined-function/node_modules/uuid/package.json +135 -0
- package/app/api-destined-function/node_modules/uuid/wrapper.mjs +10 -0
- package/app/api-destined-function/node_modules/wrappy/LICENSE +15 -0
- package/app/api-destined-function/node_modules/wrappy/README.md +36 -0
- package/app/api-destined-function/node_modules/wrappy/package.json +29 -0
- package/app/api-destined-function/node_modules/wrappy/wrappy.js +33 -0
- package/app/api-destined-function/package.json +30 -0
- package/app/api-destined-function/src/lib/lambda.ts +31 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/.bin/uuid +2 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/.yarn-integrity +109 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/LICENSE +21 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/README.md +16 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/index.d.mts +10 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/index.d.ts +80 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/package.json +54 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/LICENSE.md +9 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/README.md +505 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/bin/uuid +2 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/index.js +9 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/md5.js +215 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/nil.js +1 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/parse.js +35 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/regex.js +1 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/rng.js +19 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/stringify.js +30 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v1.js +95 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v3.js +4 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v35.js +64 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v4.js +24 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v5.js +4 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/validate.js +7 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/version.js +11 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/index.js +9 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/md5.js +13 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/nil.js +1 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/parse.js +35 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/regex.js +1 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/rng.js +12 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/sha1.js +13 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/stringify.js +29 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v1.js +95 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v3.js +4 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v35.js +64 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v4.js +24 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v5.js +4 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/validate.js +7 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/version.js +11 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/index.js +79 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/md5-browser.js +223 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/md5.js +23 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/nil.js +8 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/parse.js +45 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/regex.js +8 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/rng-browser.js +26 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/rng.js +24 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/sha1-browser.js +104 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/sha1.js +23 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/stringify.js +39 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuid.min.js +1 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidNIL.min.js +1 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidParse.min.js +1 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidStringify.min.js +1 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidValidate.min.js +1 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidVersion.min.js +1 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv1.min.js +1 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv3.min.js +1 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv4.min.js +1 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv5.min.js +1 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/uuid-bin.js +85 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v1.js +107 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v3.js +16 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v35.js +78 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v4.js +37 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v5.js +16 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/validate.js +17 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/version.js +21 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/package.json +135 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/wrapper.mjs +10 -0
- package/dist/app/api-destined-function/layers/nodejs/package.json +30 -0
- package/dist/app/api-destined-function/src/lib/lambda.d.ts +19 -0
- package/dist/app/api-destined-function/src/lib/lambda.d.ts.map +1 -0
- package/dist/app/api-destined-function/src/lib/lambda.js +34 -0
- package/dist/app/api-destined-function/src/lib/lambda.js.map +1 -0
- package/dist/src/lib/common/{commonConstruct.d.ts → construct.d.ts} +4 -14
- package/dist/src/lib/common/construct.d.ts.map +1 -0
- package/dist/src/lib/common/{commonConstruct.js → construct.js} +4 -14
- package/dist/src/lib/common/construct.js.map +1 -0
- package/dist/src/lib/common/index.d.ts +2 -2
- package/dist/src/lib/common/index.d.ts.map +1 -1
- package/dist/src/lib/common/index.js +2 -2
- package/dist/src/lib/common/index.js.map +1 -1
- package/dist/src/lib/common/{commonStack.d.ts → stack.d.ts} +5 -15
- package/dist/src/lib/common/stack.d.ts.map +1 -0
- package/dist/src/lib/common/{commonStack.js → stack.js} +6 -16
- package/dist/src/lib/common/stack.js.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.d.ts +17 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.d.ts.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.js +18 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.js.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.d.ts +20 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.d.ts.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.js +20 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.js.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.d.ts +36 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.d.ts.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.js +30 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.js.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/index.d.ts +5 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/index.d.ts.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/index.js +17 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/index.js.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts +135 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/main.js +488 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/main.js.map +1 -0
- package/dist/src/lib/construct/graphql-api-lambda/index.d.ts +2 -0
- package/dist/src/lib/construct/graphql-api-lambda/index.d.ts.map +1 -0
- package/dist/src/lib/construct/graphql-api-lambda/index.js +14 -0
- package/dist/src/lib/construct/graphql-api-lambda/index.js.map +1 -0
- package/dist/src/lib/construct/{graphQLApiLambda.d.ts → graphql-api-lambda/main.d.ts} +14 -23
- package/dist/src/lib/construct/graphql-api-lambda/main.d.ts.map +1 -0
- package/dist/src/lib/construct/{graphQLApiLambda.js → graphql-api-lambda/main.js} +16 -25
- package/dist/src/lib/construct/graphql-api-lambda/main.js.map +1 -0
- package/dist/src/lib/construct/index.d.ts +4 -3
- package/dist/src/lib/construct/index.d.ts.map +1 -1
- package/dist/src/lib/construct/index.js +4 -3
- package/dist/src/lib/construct/index.js.map +1 -1
- package/dist/src/lib/construct/site-with-ecs-backend/index.d.ts +2 -0
- package/dist/src/lib/construct/site-with-ecs-backend/index.d.ts.map +1 -0
- package/dist/src/lib/construct/site-with-ecs-backend/index.js +14 -0
- package/dist/src/lib/construct/site-with-ecs-backend/index.js.map +1 -0
- package/dist/src/lib/construct/{siteWithEcsBackend.d.ts → site-with-ecs-backend/main.d.ts} +7 -18
- package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts.map +1 -0
- package/dist/src/lib/construct/{siteWithEcsBackend.js → site-with-ecs-backend/main.js} +6 -17
- package/dist/src/lib/construct/site-with-ecs-backend/main.js.map +1 -0
- package/dist/src/lib/construct/static-site/index.d.ts +2 -0
- package/dist/src/lib/construct/static-site/index.d.ts.map +1 -0
- package/dist/src/lib/construct/static-site/index.js +14 -0
- package/dist/src/lib/construct/static-site/index.js.map +1 -0
- package/dist/src/lib/construct/{staticSite.d.ts → static-site/main.d.ts} +6 -17
- package/dist/src/lib/construct/static-site/main.d.ts.map +1 -0
- package/dist/src/lib/construct/{staticSite.js → static-site/main.js} +6 -17
- package/dist/src/lib/construct/static-site/main.js.map +1 -0
- package/dist/src/lib/manager/aws/{acmManager.d.ts → acm-manager.d.ts} +4 -3
- package/dist/src/lib/manager/aws/acm-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{acmManager.js → acm-manager.js} +4 -3
- package/dist/src/lib/manager/aws/acm-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{apiManager.d.ts → api-manager.d.ts} +7 -6
- package/dist/src/lib/manager/aws/api-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{apiManager.js → api-manager.js} +7 -6
- package/dist/src/lib/manager/aws/api-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{appConfigManager.d.ts → app-config-manager.d.ts} +6 -4
- package/dist/src/lib/manager/aws/app-config-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{appConfigManager.js → app-config-manager.js} +6 -4
- package/dist/src/lib/manager/aws/app-config-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{cloudFrontManager.d.ts → cloudfront-manager.d.ts} +4 -3
- package/dist/src/lib/manager/aws/cloudfront-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{cloudFrontManager.js → cloudfront-manager.js} +4 -3
- package/dist/src/lib/manager/aws/cloudfront-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{cloudTrailManager.d.ts → cloudtrail-manager.d.ts} +4 -3
- package/dist/src/lib/manager/aws/cloudtrail-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{cloudTrailManager.js → cloudtrail-manager.js} +4 -3
- package/dist/src/lib/manager/aws/cloudtrail-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{cloudWatchManager.d.ts → cloudwatch-manager.d.ts} +4 -3
- package/dist/src/lib/manager/aws/cloudwatch-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{cloudWatchManager.js → cloudwatch-manager.js} +6 -4
- package/dist/src/lib/manager/aws/cloudwatch-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{codeBuildManager.d.ts → codebuild-manager.d.ts} +4 -3
- package/dist/src/lib/manager/aws/codebuild-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{codeBuildManager.js → codebuild-manager.js} +4 -3
- package/dist/src/lib/manager/aws/codebuild-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{dynamodbManager.d.ts → dynamodb-manager.d.ts} +4 -3
- package/dist/src/lib/manager/aws/dynamodb-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{dynamodbManager.js → dynamodb-manager.js} +4 -3
- package/dist/src/lib/manager/aws/dynamodb-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{ecrManager.d.ts → ecr-manager.d.ts} +4 -3
- package/dist/src/lib/manager/aws/ecr-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{ecrManager.js → ecr-manager.js} +4 -3
- package/dist/src/lib/manager/aws/ecr-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{ecsManager.d.ts → ecs-manager.d.ts} +4 -3
- package/dist/src/lib/manager/aws/ecs-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{ecsManager.js → ecs-manager.js} +4 -3
- package/dist/src/lib/manager/aws/ecs-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{eksManager.d.ts → eks-manager.d.ts} +4 -3
- package/dist/src/lib/manager/aws/eks-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{eksManager.js → eks-manager.js} +4 -3
- package/dist/src/lib/manager/aws/eks-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{eventManager.d.ts → event-manager.d.ts} +20 -3
- package/dist/src/lib/manager/aws/event-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{eventManager.js → event-manager.js} +46 -3
- package/dist/src/lib/manager/aws/event-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{iamManager.d.ts → iam-manager.d.ts} +14 -15
- package/dist/src/lib/manager/aws/iam-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{iamManager.js → iam-manager.js} +23 -18
- package/dist/src/lib/manager/aws/iam-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/index.d.ts +22 -22
- package/dist/src/lib/manager/aws/index.d.ts.map +1 -1
- package/dist/src/lib/manager/aws/index.js +22 -22
- package/dist/src/lib/manager/aws/index.js.map +1 -1
- package/dist/src/lib/manager/aws/{lambdaManager.d.ts → lambda-manager.d.ts} +30 -28
- package/dist/src/lib/manager/aws/lambda-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{lambdaManager.js → lambda-manager.js} +46 -39
- package/dist/src/lib/manager/aws/lambda-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{logManager.d.ts → log-manager.d.ts} +4 -3
- package/dist/src/lib/manager/aws/log-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{logManager.js → log-manager.js} +4 -3
- package/dist/src/lib/manager/aws/log-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{route53Manager.d.ts → route53-manager.d.ts} +5 -4
- package/dist/src/lib/manager/aws/route53-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{route53Manager.js → route53-manager.js} +5 -4
- package/dist/src/lib/manager/aws/route53-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{s3Manager.d.ts → s3-manager.d.ts} +4 -3
- package/dist/src/lib/manager/aws/s3-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{s3Manager.js → s3-manager.js} +4 -3
- package/dist/src/lib/manager/aws/s3-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{secretsManager.d.ts → secrets-manager.d.ts} +4 -3
- package/dist/src/lib/manager/aws/secrets-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{secretsManager.js → secrets-manager.js} +4 -3
- package/dist/src/lib/manager/aws/secrets-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{snsManager.d.ts → sns-manager.d.ts} +4 -3
- package/dist/src/lib/manager/aws/sns-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{snsManager.js → sns-manager.js} +4 -3
- package/dist/src/lib/manager/aws/sns-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{ssmManager.d.ts → ssm-manager.d.ts} +7 -10
- package/dist/src/lib/manager/aws/ssm-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{ssmManager.js → ssm-manager.js} +7 -10
- package/dist/src/lib/manager/aws/ssm-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{vpcManager.d.ts → vpc-manager.d.ts} +6 -4
- package/dist/src/lib/manager/aws/vpc-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{vpcManager.js → vpc-manager.js} +9 -6
- package/dist/src/lib/manager/aws/vpc-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{wafManager.d.ts → waf-manager.d.ts} +4 -3
- package/dist/src/lib/manager/aws/waf-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{wafManager.js → waf-manager.js} +4 -3
- package/dist/src/lib/manager/aws/waf-manager.js.map +1 -0
- package/dist/src/lib/types/aws/index.d.ts +218 -32
- package/dist/src/lib/types/aws/index.d.ts.map +1 -1
- package/dist/src/lib/utils/aws/index.d.ts +2 -2
- package/dist/src/lib/utils/aws/index.d.ts.map +1 -1
- package/dist/src/lib/utils/aws/index.js +1 -1
- package/dist/src/lib/utils/index.d.ts +7 -7
- package/dist/src/lib/utils/index.js +8 -8
- package/img/ApiToEventBridgeTarget.jpg +0 -0
- package/img/GraphQLApiLambda.jpg +0 -0
- package/img/logo.png +0 -0
- package/package.json +17 -18
- package/src/lib/common/{commonConstruct.ts → construct.ts} +3 -13
- package/src/lib/common/index.ts +2 -2
- package/src/lib/common/{commonStack.ts → stack.ts} +5 -14
- package/src/lib/construct/api-to-eventbridge-target/api-destination-event.ts +17 -0
- package/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.ts +20 -0
- package/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.ts +32 -0
- package/src/lib/construct/api-to-eventbridge-target/index.ts +4 -0
- package/src/lib/construct/api-to-eventbridge-target/main.ts +593 -0
- package/src/lib/construct/graphql-api-lambda/index.ts +1 -0
- package/src/lib/construct/{graphQLApiLambda.ts → graphql-api-lambda/main.ts} +15 -24
- package/src/lib/construct/index.ts +4 -3
- package/src/lib/construct/site-with-ecs-backend/index.ts +1 -0
- package/src/lib/construct/{siteWithEcsBackend.ts → site-with-ecs-backend/main.ts} +6 -17
- package/src/lib/construct/static-site/index.ts +1 -0
- package/src/lib/construct/{staticSite.ts → static-site/main.ts} +5 -16
- package/src/lib/manager/aws/{acmManager.ts → acm-manager.ts} +3 -2
- package/src/lib/manager/aws/{apiManager.ts → api-manager.ts} +6 -5
- package/src/lib/manager/aws/{appConfigManager.ts → app-config-manager.ts} +5 -3
- package/src/lib/manager/aws/{cloudFrontManager.ts → cloudfront-manager.ts} +3 -2
- package/src/lib/manager/aws/{cloudTrailManager.ts → cloudtrail-manager.ts} +3 -2
- package/src/lib/manager/aws/{cloudWatchManager.ts → cloudwatch-manager.ts} +5 -3
- package/src/lib/manager/aws/{codeBuildManager.ts → codebuild-manager.ts} +3 -2
- package/src/lib/manager/aws/{dynamodbManager.ts → dynamodb-manager.ts} +3 -2
- package/src/lib/manager/aws/{ecrManager.ts → ecr-manager.ts} +3 -2
- package/src/lib/manager/aws/{ecsManager.ts → ecs-manager.ts} +3 -2
- package/src/lib/manager/aws/{eksManager.ts → eks-manager.ts} +3 -2
- package/src/lib/manager/aws/{eventManager.ts → event-manager.ts} +57 -2
- package/src/lib/manager/aws/{iamManager.ts → iam-manager.ts} +23 -17
- package/src/lib/manager/aws/index.ts +22 -22
- package/src/lib/manager/aws/{lambdaManager.ts → lambda-manager.ts} +52 -44
- package/src/lib/manager/aws/{logManager.ts → log-manager.ts} +3 -2
- package/src/lib/manager/aws/{route53Manager.ts → route53-manager.ts} +4 -3
- package/src/lib/manager/aws/{s3Manager.ts → s3-manager.ts} +3 -2
- package/src/lib/manager/aws/{secretsManager.ts → secrets-manager.ts} +3 -2
- package/src/lib/manager/aws/{snsManager.ts → sns-manager.ts} +3 -2
- package/src/lib/manager/aws/{ssmManager.ts → ssm-manager.ts} +6 -9
- package/src/lib/manager/aws/{vpcManager.ts → vpc-manager.ts} +8 -5
- package/src/lib/manager/aws/{wafManager.ts → waf-manager.ts} +3 -2
- package/src/lib/types/aws/index.ts +221 -32
- package/src/lib/utils/aws/index.ts +2 -2
- package/src/lib/utils/index.ts +8 -8
- package/theme/styles.css +113 -0
- package/.releaserc +0 -9
- package/dist/src/lib/common/commonConstruct.d.ts.map +0 -1
- package/dist/src/lib/common/commonConstruct.js.map +0 -1
- package/dist/src/lib/common/commonStack.d.ts.map +0 -1
- package/dist/src/lib/common/commonStack.js.map +0 -1
- package/dist/src/lib/construct/graphQLApiLambda.d.ts.map +0 -1
- package/dist/src/lib/construct/graphQLApiLambda.js.map +0 -1
- package/dist/src/lib/construct/siteWithEcsBackend.d.ts.map +0 -1
- package/dist/src/lib/construct/siteWithEcsBackend.js.map +0 -1
- package/dist/src/lib/construct/staticSite.d.ts.map +0 -1
- package/dist/src/lib/construct/staticSite.js.map +0 -1
- package/dist/src/lib/manager/aws/acmManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/acmManager.js.map +0 -1
- package/dist/src/lib/manager/aws/apiManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/apiManager.js.map +0 -1
- package/dist/src/lib/manager/aws/appConfigManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/appConfigManager.js.map +0 -1
- package/dist/src/lib/manager/aws/cloudFrontManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/cloudFrontManager.js.map +0 -1
- package/dist/src/lib/manager/aws/cloudTrailManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/cloudTrailManager.js.map +0 -1
- package/dist/src/lib/manager/aws/cloudWatchManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/cloudWatchManager.js.map +0 -1
- package/dist/src/lib/manager/aws/codeBuildManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/codeBuildManager.js.map +0 -1
- package/dist/src/lib/manager/aws/dynamodbManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/dynamodbManager.js.map +0 -1
- package/dist/src/lib/manager/aws/ecrManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/ecrManager.js.map +0 -1
- package/dist/src/lib/manager/aws/ecsManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/ecsManager.js.map +0 -1
- package/dist/src/lib/manager/aws/eksManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/eksManager.js.map +0 -1
- package/dist/src/lib/manager/aws/eventManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/eventManager.js.map +0 -1
- package/dist/src/lib/manager/aws/iamManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/iamManager.js.map +0 -1
- package/dist/src/lib/manager/aws/lambdaManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/lambdaManager.js.map +0 -1
- package/dist/src/lib/manager/aws/logManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/logManager.js.map +0 -1
- package/dist/src/lib/manager/aws/route53Manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/route53Manager.js.map +0 -1
- package/dist/src/lib/manager/aws/s3Manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/s3Manager.js.map +0 -1
- package/dist/src/lib/manager/aws/secretsManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/secretsManager.js.map +0 -1
- package/dist/src/lib/manager/aws/snsManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/snsManager.js.map +0 -1
- package/dist/src/lib/manager/aws/ssmManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/ssmManager.js.map +0 -1
- package/dist/src/lib/manager/aws/vpcManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/vpcManager.js.map +0 -1
- package/dist/src/lib/manager/aws/wafManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/wafManager.js.map +0 -1
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# once
|
|
2
|
+
|
|
3
|
+
Only call a function once.
|
|
4
|
+
|
|
5
|
+
## usage
|
|
6
|
+
|
|
7
|
+
```javascript
|
|
8
|
+
var once = require('once')
|
|
9
|
+
|
|
10
|
+
function load (file, cb) {
|
|
11
|
+
cb = once(cb)
|
|
12
|
+
loader.load('file')
|
|
13
|
+
loader.once('load', cb)
|
|
14
|
+
loader.once('error', cb)
|
|
15
|
+
}
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Or add to the Function.prototype in a responsible way:
|
|
19
|
+
|
|
20
|
+
```javascript
|
|
21
|
+
// only has to be done once
|
|
22
|
+
require('once').proto()
|
|
23
|
+
|
|
24
|
+
function load (file, cb) {
|
|
25
|
+
cb = cb.once()
|
|
26
|
+
loader.load('file')
|
|
27
|
+
loader.once('load', cb)
|
|
28
|
+
loader.once('error', cb)
|
|
29
|
+
}
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Ironically, the prototype feature makes this module twice as
|
|
33
|
+
complicated as necessary.
|
|
34
|
+
|
|
35
|
+
To check whether you function has been called, use `fn.called`. Once the
|
|
36
|
+
function is called for the first time the return value of the original
|
|
37
|
+
function is saved in `fn.value` and subsequent calls will continue to
|
|
38
|
+
return this value.
|
|
39
|
+
|
|
40
|
+
```javascript
|
|
41
|
+
var once = require('once')
|
|
42
|
+
|
|
43
|
+
function load (cb) {
|
|
44
|
+
cb = once(cb)
|
|
45
|
+
var stream = createStream()
|
|
46
|
+
stream.once('data', cb)
|
|
47
|
+
stream.once('end', function () {
|
|
48
|
+
if (!cb.called) cb(new Error('not found'))
|
|
49
|
+
})
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## `once.strict(func)`
|
|
54
|
+
|
|
55
|
+
Throw an error if the function is called twice.
|
|
56
|
+
|
|
57
|
+
Some functions are expected to be called only once. Using `once` for them would
|
|
58
|
+
potentially hide logical errors.
|
|
59
|
+
|
|
60
|
+
In the example below, the `greet` function has to call the callback only once:
|
|
61
|
+
|
|
62
|
+
```javascript
|
|
63
|
+
function greet (name, cb) {
|
|
64
|
+
// return is missing from the if statement
|
|
65
|
+
// when no name is passed, the callback is called twice
|
|
66
|
+
if (!name) cb('Hello anonymous')
|
|
67
|
+
cb('Hello ' + name)
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function log (msg) {
|
|
71
|
+
console.log(msg)
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// this will print 'Hello anonymous' but the logical error will be missed
|
|
75
|
+
greet(null, once(msg))
|
|
76
|
+
|
|
77
|
+
// once.strict will print 'Hello anonymous' and throw an error when the callback will be called the second time
|
|
78
|
+
greet(null, once.strict(msg))
|
|
79
|
+
```
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
var wrappy = require('wrappy')
|
|
2
|
+
module.exports = wrappy(once)
|
|
3
|
+
module.exports.strict = wrappy(onceStrict)
|
|
4
|
+
|
|
5
|
+
once.proto = once(function () {
|
|
6
|
+
Object.defineProperty(Function.prototype, 'once', {
|
|
7
|
+
value: function () {
|
|
8
|
+
return once(this)
|
|
9
|
+
},
|
|
10
|
+
configurable: true
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
Object.defineProperty(Function.prototype, 'onceStrict', {
|
|
14
|
+
value: function () {
|
|
15
|
+
return onceStrict(this)
|
|
16
|
+
},
|
|
17
|
+
configurable: true
|
|
18
|
+
})
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
function once (fn) {
|
|
22
|
+
var f = function () {
|
|
23
|
+
if (f.called) return f.value
|
|
24
|
+
f.called = true
|
|
25
|
+
return f.value = fn.apply(this, arguments)
|
|
26
|
+
}
|
|
27
|
+
f.called = false
|
|
28
|
+
return f
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function onceStrict (fn) {
|
|
32
|
+
var f = function () {
|
|
33
|
+
if (f.called)
|
|
34
|
+
throw new Error(f.onceError)
|
|
35
|
+
f.called = true
|
|
36
|
+
return f.value = fn.apply(this, arguments)
|
|
37
|
+
}
|
|
38
|
+
var name = fn.name || 'Function wrapped with `once`'
|
|
39
|
+
f.onceError = name + " shouldn't be called more than once"
|
|
40
|
+
f.called = false
|
|
41
|
+
return f
|
|
42
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "once",
|
|
3
|
+
"version": "1.4.0",
|
|
4
|
+
"description": "Run a function exactly one time",
|
|
5
|
+
"main": "once.js",
|
|
6
|
+
"directories": {
|
|
7
|
+
"test": "test"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"wrappy": "1"
|
|
11
|
+
},
|
|
12
|
+
"devDependencies": {
|
|
13
|
+
"tap": "^7.0.1"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"test": "tap test/*.js"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"once.js"
|
|
20
|
+
],
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git://github.com/isaacs/once"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"once",
|
|
27
|
+
"function",
|
|
28
|
+
"one",
|
|
29
|
+
"single"
|
|
30
|
+
],
|
|
31
|
+
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
|
|
32
|
+
"license": "ISC"
|
|
33
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function posix(path) {
|
|
4
|
+
return path.charAt(0) === '/';
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
function win32(path) {
|
|
8
|
+
// https://github.com/nodejs/node/blob/b3fcc245fb25539909ef1d5eaa01dbf92e168633/lib/path.js#L56
|
|
9
|
+
var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
|
|
10
|
+
var result = splitDeviceRe.exec(path);
|
|
11
|
+
var device = result[1] || '';
|
|
12
|
+
var isUnc = Boolean(device && device.charAt(1) !== ':');
|
|
13
|
+
|
|
14
|
+
// UNC paths are always absolute
|
|
15
|
+
return Boolean(result[2] || isUnc);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
module.exports = process.platform === 'win32' ? win32 : posix;
|
|
19
|
+
module.exports.posix = posix;
|
|
20
|
+
module.exports.win32 = win32;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "path-is-absolute",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Node.js 0.12 path.isAbsolute() ponyfill",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "sindresorhus/path-is-absolute",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Sindre Sorhus",
|
|
9
|
+
"email": "sindresorhus@gmail.com",
|
|
10
|
+
"url": "sindresorhus.com"
|
|
11
|
+
},
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=0.10.0"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"test": "xo && node test.js"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"index.js"
|
|
20
|
+
],
|
|
21
|
+
"keywords": [
|
|
22
|
+
"path",
|
|
23
|
+
"paths",
|
|
24
|
+
"file",
|
|
25
|
+
"dir",
|
|
26
|
+
"absolute",
|
|
27
|
+
"isabsolute",
|
|
28
|
+
"is-absolute",
|
|
29
|
+
"built-in",
|
|
30
|
+
"util",
|
|
31
|
+
"utils",
|
|
32
|
+
"core",
|
|
33
|
+
"ponyfill",
|
|
34
|
+
"polyfill",
|
|
35
|
+
"shim",
|
|
36
|
+
"is",
|
|
37
|
+
"detect",
|
|
38
|
+
"check"
|
|
39
|
+
],
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"xo": "^0.16.0"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# path-is-absolute [](https://travis-ci.org/sindresorhus/path-is-absolute)
|
|
2
|
+
|
|
3
|
+
> Node.js 0.12 [`path.isAbsolute()`](http://nodejs.org/api/path.html#path_path_isabsolute_path) [ponyfill](https://ponyfill.com)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```
|
|
9
|
+
$ npm install --save path-is-absolute
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
const pathIsAbsolute = require('path-is-absolute');
|
|
17
|
+
|
|
18
|
+
// Running on Linux
|
|
19
|
+
pathIsAbsolute('/home/foo');
|
|
20
|
+
//=> true
|
|
21
|
+
pathIsAbsolute('C:/Users/foo');
|
|
22
|
+
//=> false
|
|
23
|
+
|
|
24
|
+
// Running on Windows
|
|
25
|
+
pathIsAbsolute('C:/Users/foo');
|
|
26
|
+
//=> true
|
|
27
|
+
pathIsAbsolute('/home/foo');
|
|
28
|
+
//=> false
|
|
29
|
+
|
|
30
|
+
// Running on any OS
|
|
31
|
+
pathIsAbsolute.posix('/home/foo');
|
|
32
|
+
//=> true
|
|
33
|
+
pathIsAbsolute.posix('C:/Users/foo');
|
|
34
|
+
//=> false
|
|
35
|
+
pathIsAbsolute.win32('C:/Users/foo');
|
|
36
|
+
//=> true
|
|
37
|
+
pathIsAbsolute.win32('/home/foo');
|
|
38
|
+
//=> false
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
## API
|
|
43
|
+
|
|
44
|
+
See the [`path.isAbsolute()` docs](http://nodejs.org/api/path.html#path_path_isabsolute_path).
|
|
45
|
+
|
|
46
|
+
### pathIsAbsolute(path)
|
|
47
|
+
|
|
48
|
+
### pathIsAbsolute.posix(path)
|
|
49
|
+
|
|
50
|
+
POSIX specific version.
|
|
51
|
+
|
|
52
|
+
### pathIsAbsolute.win32(path)
|
|
53
|
+
|
|
54
|
+
Windows specific version.
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
## License
|
|
58
|
+
|
|
59
|
+
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
The ISC License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Isaac Z. Schlueter and Contributors
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
+
copyright notice and this permission notice appear in all copies.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
15
|
+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
[](https://travis-ci.org/isaacs/rimraf) [](https://david-dm.org/isaacs/rimraf) [](https://david-dm.org/isaacs/rimraf#info=devDependencies)
|
|
2
|
+
|
|
3
|
+
The [UNIX command](http://en.wikipedia.org/wiki/Rm_(Unix)) `rm -rf` for node.
|
|
4
|
+
|
|
5
|
+
Install with `npm install rimraf`, or just drop rimraf.js somewhere.
|
|
6
|
+
|
|
7
|
+
## API
|
|
8
|
+
|
|
9
|
+
`rimraf(f, [opts], callback)`
|
|
10
|
+
|
|
11
|
+
The first parameter will be interpreted as a globbing pattern for files. If you
|
|
12
|
+
want to disable globbing you can do so with `opts.disableGlob` (defaults to
|
|
13
|
+
`false`). This might be handy, for instance, if you have filenames that contain
|
|
14
|
+
globbing wildcard characters.
|
|
15
|
+
|
|
16
|
+
The callback will be called with an error if there is one. Certain
|
|
17
|
+
errors are handled for you:
|
|
18
|
+
|
|
19
|
+
* Windows: `EBUSY` and `ENOTEMPTY` - rimraf will back off a maximum of
|
|
20
|
+
`opts.maxBusyTries` times before giving up, adding 100ms of wait
|
|
21
|
+
between each attempt. The default `maxBusyTries` is 3.
|
|
22
|
+
* `ENOENT` - If the file doesn't exist, rimraf will return
|
|
23
|
+
successfully, since your desired outcome is already the case.
|
|
24
|
+
* `EMFILE` - Since `readdir` requires opening a file descriptor, it's
|
|
25
|
+
possible to hit `EMFILE` if too many file descriptors are in use.
|
|
26
|
+
In the sync case, there's nothing to be done for this. But in the
|
|
27
|
+
async case, rimraf will gradually back off with timeouts up to
|
|
28
|
+
`opts.emfileWait` ms, which defaults to 1000.
|
|
29
|
+
|
|
30
|
+
## options
|
|
31
|
+
|
|
32
|
+
* unlink, chmod, stat, lstat, rmdir, readdir,
|
|
33
|
+
unlinkSync, chmodSync, statSync, lstatSync, rmdirSync, readdirSync
|
|
34
|
+
|
|
35
|
+
In order to use a custom file system library, you can override
|
|
36
|
+
specific fs functions on the options object.
|
|
37
|
+
|
|
38
|
+
If any of these functions are present on the options object, then
|
|
39
|
+
the supplied function will be used instead of the default fs
|
|
40
|
+
method.
|
|
41
|
+
|
|
42
|
+
Sync methods are only relevant for `rimraf.sync()`, of course.
|
|
43
|
+
|
|
44
|
+
For example:
|
|
45
|
+
|
|
46
|
+
```javascript
|
|
47
|
+
var myCustomFS = require('some-custom-fs')
|
|
48
|
+
|
|
49
|
+
rimraf('some-thing', myCustomFS, callback)
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
* maxBusyTries
|
|
53
|
+
|
|
54
|
+
If an `EBUSY`, `ENOTEMPTY`, or `EPERM` error code is encountered
|
|
55
|
+
on Windows systems, then rimraf will retry with a linear backoff
|
|
56
|
+
wait of 100ms longer on each try. The default maxBusyTries is 3.
|
|
57
|
+
|
|
58
|
+
Only relevant for async usage.
|
|
59
|
+
|
|
60
|
+
* emfileWait
|
|
61
|
+
|
|
62
|
+
If an `EMFILE` error is encountered, then rimraf will retry
|
|
63
|
+
repeatedly with a linear backoff of 1ms longer on each try, until
|
|
64
|
+
the timeout counter hits this max. The default limit is 1000.
|
|
65
|
+
|
|
66
|
+
If you repeatedly encounter `EMFILE` errors, then consider using
|
|
67
|
+
[graceful-fs](http://npm.im/graceful-fs) in your program.
|
|
68
|
+
|
|
69
|
+
Only relevant for async usage.
|
|
70
|
+
|
|
71
|
+
* glob
|
|
72
|
+
|
|
73
|
+
Set to `false` to disable [glob](http://npm.im/glob) pattern
|
|
74
|
+
matching.
|
|
75
|
+
|
|
76
|
+
Set to an object to pass options to the glob module. The default
|
|
77
|
+
glob options are `{ nosort: true, silent: true }`.
|
|
78
|
+
|
|
79
|
+
Glob version 6 is used in this module.
|
|
80
|
+
|
|
81
|
+
Relevant for both sync and async usage.
|
|
82
|
+
|
|
83
|
+
* disableGlob
|
|
84
|
+
|
|
85
|
+
Set to any non-falsey value to disable globbing entirely.
|
|
86
|
+
(Equivalent to setting `glob: false`.)
|
|
87
|
+
|
|
88
|
+
## rimraf.sync
|
|
89
|
+
|
|
90
|
+
It can remove stuff synchronously, too. But that's not so good. Use
|
|
91
|
+
the async API. It's better.
|
|
92
|
+
|
|
93
|
+
## CLI
|
|
94
|
+
|
|
95
|
+
If installed with `npm install rimraf -g` it can be used as a global
|
|
96
|
+
command `rimraf <path> [<path> ...]` which is useful for cross platform support.
|
|
97
|
+
|
|
98
|
+
## mkdirp
|
|
99
|
+
|
|
100
|
+
If you need to create a directory recursively, check out
|
|
101
|
+
[mkdirp](https://github.com/substack/node-mkdirp).
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const rimraf = require('./')
|
|
4
|
+
|
|
5
|
+
const path = require('path')
|
|
6
|
+
|
|
7
|
+
const isRoot = arg => /^(\/|[a-zA-Z]:\\)$/.test(path.resolve(arg))
|
|
8
|
+
const filterOutRoot = arg => {
|
|
9
|
+
const ok = preserveRoot === false || !isRoot(arg)
|
|
10
|
+
if (!ok) {
|
|
11
|
+
console.error(`refusing to remove ${arg}`)
|
|
12
|
+
console.error('Set --no-preserve-root to allow this')
|
|
13
|
+
}
|
|
14
|
+
return ok
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
let help = false
|
|
18
|
+
let dashdash = false
|
|
19
|
+
let noglob = false
|
|
20
|
+
let preserveRoot = true
|
|
21
|
+
const args = process.argv.slice(2).filter(arg => {
|
|
22
|
+
if (dashdash)
|
|
23
|
+
return !!arg
|
|
24
|
+
else if (arg === '--')
|
|
25
|
+
dashdash = true
|
|
26
|
+
else if (arg === '--no-glob' || arg === '-G')
|
|
27
|
+
noglob = true
|
|
28
|
+
else if (arg === '--glob' || arg === '-g')
|
|
29
|
+
noglob = false
|
|
30
|
+
else if (arg.match(/^(-+|\/)(h(elp)?|\?)$/))
|
|
31
|
+
help = true
|
|
32
|
+
else if (arg === '--preserve-root')
|
|
33
|
+
preserveRoot = true
|
|
34
|
+
else if (arg === '--no-preserve-root')
|
|
35
|
+
preserveRoot = false
|
|
36
|
+
else
|
|
37
|
+
return !!arg
|
|
38
|
+
}).filter(arg => !preserveRoot || filterOutRoot(arg))
|
|
39
|
+
|
|
40
|
+
const go = n => {
|
|
41
|
+
if (n >= args.length)
|
|
42
|
+
return
|
|
43
|
+
const options = noglob ? { glob: false } : {}
|
|
44
|
+
rimraf(args[n], options, er => {
|
|
45
|
+
if (er)
|
|
46
|
+
throw er
|
|
47
|
+
go(n+1)
|
|
48
|
+
})
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
if (help || args.length === 0) {
|
|
52
|
+
// If they didn't ask for help, then this is not a "success"
|
|
53
|
+
const log = help ? console.log : console.error
|
|
54
|
+
log('Usage: rimraf <path> [<path> ...]')
|
|
55
|
+
log('')
|
|
56
|
+
log(' Deletes all files and folders at "path" recursively.')
|
|
57
|
+
log('')
|
|
58
|
+
log('Options:')
|
|
59
|
+
log('')
|
|
60
|
+
log(' -h, --help Display this usage info')
|
|
61
|
+
log(' -G, --no-glob Do not expand glob patterns in arguments')
|
|
62
|
+
log(' -g, --glob Expand glob patterns in arguments (default)')
|
|
63
|
+
log(' --preserve-root Do not remove \'/\' (default)')
|
|
64
|
+
log(' --no-preserve-root Do not treat \'/\' specially')
|
|
65
|
+
log(' -- Stop parsing flags')
|
|
66
|
+
process.exit(help ? 0 : 1)
|
|
67
|
+
} else
|
|
68
|
+
go(0)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rimraf",
|
|
3
|
+
"version": "3.0.2",
|
|
4
|
+
"main": "rimraf.js",
|
|
5
|
+
"description": "A deep deletion module for node (like `rm -rf`)",
|
|
6
|
+
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
|
|
7
|
+
"license": "ISC",
|
|
8
|
+
"repository": "git://github.com/isaacs/rimraf.git",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"preversion": "npm test",
|
|
11
|
+
"postversion": "npm publish",
|
|
12
|
+
"postpublish": "git push origin --follow-tags",
|
|
13
|
+
"test": "tap test/*.js"
|
|
14
|
+
},
|
|
15
|
+
"bin": "./bin.js",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"glob": "^7.1.3"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"LICENSE",
|
|
21
|
+
"README.md",
|
|
22
|
+
"bin.js",
|
|
23
|
+
"rimraf.js"
|
|
24
|
+
],
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"mkdirp": "^0.5.1",
|
|
27
|
+
"tap": "^12.1.1"
|
|
28
|
+
},
|
|
29
|
+
"funding": {
|
|
30
|
+
"url": "https://github.com/sponsors/isaacs"
|
|
31
|
+
}
|
|
32
|
+
}
|