@gemeentenijmegen/webapp 1.1.2 → 1.1.3
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/.jsii +12 -12
- package/assets/webapp/auth/auth.lambda/index.js +4 -7
- package/assets/webapp/login/login.lambda/index.js +4 -7
- package/lib/webapp/Criticality.js +1 -1
- package/lib/webapp/Webapp.js +1 -1
- package/lib/webapp/Webpage.js +1 -1
- package/lib/webapp/util/Files.js +1 -1
- package/node_modules/@aws-sdk/client-dynamodb/dist-cjs/endpoint/ruleset.js +1 -1
- package/node_modules/@aws-sdk/client-dynamodb/dist-cjs/index.js +38 -0
- package/node_modules/@aws-sdk/client-dynamodb/dist-es/endpoint/ruleset.js +1 -1
- package/node_modules/@aws-sdk/client-dynamodb/dist-es/models/models_0.js +16 -0
- package/node_modules/@aws-sdk/client-dynamodb/dist-es/protocols/Aws_json1_0.js +14 -1
- package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/CreateTableCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/DeleteItemCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/DeleteTableCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/DescribeTableCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/PutItemCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/RestoreTableFromBackupCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/RestoreTableToPointInTimeCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/UpdateItemCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/UpdateTableCommand.d.ts +2 -0
- package/node_modules/@aws-sdk/client-dynamodb/dist-types/models/models_0.d.ts +63 -0
- package/node_modules/@aws-sdk/client-dynamodb/dist-types/ts3.4/models/models_0.d.ts +18 -0
- package/node_modules/@aws-sdk/client-dynamodb/package.json +4 -4
- package/node_modules/@aws-sdk/client-s3/README.md +24 -0
- package/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/ruleset.js +3 -3
- package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +358 -104
- package/node_modules/@aws-sdk/client-s3/dist-es/S3.js +6 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/CreateBucketMetadataTableConfigurationCommand.js +32 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteBucketMetadataTableConfigurationCommand.js +26 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteObjectsCommand.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketMetadataTableConfigurationCommand.js +28 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketAccelerateConfigurationCommand.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketAclCommand.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketCorsCommand.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketEncryptionCommand.js +2 -1
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketInventoryConfigurationCommand.js +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketLifecycleConfigurationCommand.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketLoggingCommand.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketPolicyCommand.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketReplicationCommand.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketRequestPaymentCommand.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketTaggingCommand.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketVersioningCommand.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketWebsiteCommand.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectAclCommand.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectCommand.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectLegalHoldCommand.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectLockConfigurationCommand.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectRetentionCommand.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectTaggingCommand.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutPublicAccessBlockCommand.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/RestoreObjectCommand.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/UploadPartCommand.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/index.js +3 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/endpoint/ruleset.js +3 -3
- package/node_modules/@aws-sdk/client-s3/dist-es/models/models_0.js +2 -12
- package/node_modules/@aws-sdk/client-s3/dist-es/models/models_1.js +13 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/protocols/Aws_restXml.js +159 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/S3.d.ts +21 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/S3Client.d.ts +5 -2
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/AbortMultipartUploadCommand.d.ts +4 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/CompleteMultipartUploadCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/CopyObjectCommand.d.ts +4 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateBucketCommand.d.ts +6 -5
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateBucketMetadataTableConfigurationCommand.d.ts +134 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateMultipartUploadCommand.d.ts +4 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateSessionCommand.d.ts +3 -2
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketCommand.d.ts +4 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketEncryptionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketLifecycleCommand.d.ts +3 -2
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketMetadataTableConfigurationCommand.d.ts +95 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketPolicyCommand.d.ts +4 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteObjectCommand.d.ts +63 -53
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteObjectsCommand.d.ts +4 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketEncryptionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +3 -2
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketMetadataTableConfigurationCommand.d.ts +111 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketPolicyCommand.d.ts +4 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectAttributesCommand.d.ts +4 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectCommand.d.ts +23 -22
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/HeadBucketCommand.d.ts +4 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/HeadObjectCommand.d.ts +4 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListDirectoryBucketsCommand.d.ts +3 -2
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListMultipartUploadsCommand.d.ts +36 -35
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListObjectsV2Command.d.ts +4 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListPartsCommand.d.ts +4 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketCorsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketEncryptionCommand.d.ts +5 -4
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +8 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketLoggingCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketPolicyCommand.d.ts +4 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketVersioningCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectCommand.d.ts +54 -52
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectRetentionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/UploadPartCommand.d.ts +4 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/UploadPartCopyCommand.d.ts +4 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/models/models_0.d.ts +455 -411
- package/node_modules/@aws-sdk/client-s3/dist-types/models/models_1.d.ts +404 -18
- package/node_modules/@aws-sdk/client-s3/dist-types/protocols/Aws_restXml.d.ts +27 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/S3.d.ts +69 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/S3Client.d.ts +18 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/CreateBucketMetadataTableConfigurationCommand.d.ts +47 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteBucketMetadataTableConfigurationCommand.d.ts +47 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketMetadataTableConfigurationCommand.d.ts +51 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketCorsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketEncryptionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketInventoryConfigurationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketLifecycleConfigurationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketLoggingCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketMetricsConfigurationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_0.d.ts +50 -66
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_1.d.ts +75 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/protocols/Aws_restXml.d.ts +36 -0
- package/node_modules/@aws-sdk/client-s3/package.json +5 -5
- package/node_modules/@aws-sdk/client-secrets-manager/package.json +4 -4
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetExecutionPreviewCommand.d.ts +29 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListNodesCommand.d.ts +52 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListNodesSummaryCommand.d.ts +43 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartExecutionPreviewCommand.d.ts +16 -0
- package/node_modules/@aws-sdk/client-ssm/package.json +4 -4
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +3 -3
- package/node_modules/@aws-sdk/client-sts/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +3 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/fromIni.d.ts +2 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveSsoCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveSsoCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +4 -0
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +2 -1
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/resolveSSOCredentials.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/resolveSSOCredentials.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/flexibleChecksumsMiddleware.d.ts +5 -0
- package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/ts3.4/flexibleChecksumsMiddleware.d.ts +1 -0
- package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +1 -1
- package/node_modules/@aws-sdk/s3-request-presigner/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +11 -10
- package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +5 -7
- package/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +4 -0
- package/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts +2 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts +3 -3
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromSso.d.ts +3 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getNewSsoOidcToken.d.ts +3 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getSsoOidcClient.d.ts +5 -1
- package/node_modules/@aws-sdk/token-providers/package.json +2 -2
- package/node_modules/@gemeentenijmegen/apiclient/package.json +4 -4
- package/node_modules/@gemeentenijmegen/apigateway-http/package.json +3 -3
- package/node_modules/@gemeentenijmegen/utils/package.json +6 -6
- package/node_modules/@smithy/abort-controller/package.json +2 -2
- package/node_modules/@smithy/config-resolver/package.json +4 -4
- package/node_modules/@smithy/core/package.json +6 -6
- package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
- package/node_modules/@smithy/eventstream-codec/package.json +2 -2
- package/node_modules/@smithy/eventstream-serde-browser/package.json +3 -3
- package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +2 -2
- package/node_modules/@smithy/eventstream-serde-node/package.json +3 -3
- package/node_modules/@smithy/eventstream-serde-universal/package.json +3 -3
- package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
- package/node_modules/@smithy/hash-blob-browser/package.json +2 -2
- package/node_modules/@smithy/hash-node/package.json +2 -2
- package/node_modules/@smithy/hash-stream-node/package.json +2 -2
- package/node_modules/@smithy/invalid-dependency/package.json +2 -2
- package/node_modules/@smithy/md5-js/package.json +2 -2
- package/node_modules/@smithy/middleware-content-length/package.json +3 -3
- package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
- package/node_modules/@smithy/middleware-retry/package.json +8 -8
- package/node_modules/@smithy/middleware-serde/package.json +2 -2
- package/node_modules/@smithy/middleware-stack/package.json +2 -2
- package/node_modules/@smithy/node-config-provider/package.json +4 -4
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +11 -8
- package/node_modules/@smithy/node-http-handler/dist-es/timing.js +2 -2
- package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +9 -6
- package/node_modules/@smithy/node-http-handler/dist-types/timing.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/timing.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/package.json +5 -5
- package/node_modules/@smithy/property-provider/package.json +2 -2
- package/node_modules/@smithy/protocol-http/package.json +2 -2
- package/node_modules/@smithy/querystring-builder/package.json +2 -2
- package/node_modules/@smithy/querystring-parser/package.json +2 -2
- package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +2 -2
- package/node_modules/@smithy/service-error-classification/dist-es/index.js +3 -2
- package/node_modules/@smithy/service-error-classification/dist-types/index.d.ts +1 -1
- package/node_modules/@smithy/service-error-classification/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@smithy/service-error-classification/package.json +2 -2
- package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
- package/node_modules/@smithy/signature-v4/package.json +4 -4
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +22 -34
- package/node_modules/@smithy/smithy-client/dist-es/lazy-json.js +22 -31
- package/node_modules/@smithy/smithy-client/dist-types/lazy-json.d.ts +34 -15
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/lazy-json.d.ts +34 -15
- package/node_modules/@smithy/smithy-client/package.json +7 -7
- package/node_modules/@smithy/types/dist-types/shapes.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/shapes.d.ts +1 -0
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@smithy/url-parser/package.json +3 -3
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
- package/node_modules/@smithy/util-endpoints/package.json +3 -3
- package/node_modules/@smithy/util-middleware/package.json +2 -2
- package/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@smithy/util-stream/package.json +4 -4
- package/node_modules/@smithy/util-waiter/dist-cjs/index.js +31 -4
- package/node_modules/@smithy/util-waiter/dist-es/poller.js +30 -4
- package/node_modules/@smithy/util-waiter/dist-types/ts3.4/waiter.d.ts +5 -0
- package/node_modules/@smithy/util-waiter/dist-types/waiter.d.ts +5 -0
- package/node_modules/@smithy/util-waiter/package.json +3 -3
- package/node_modules/@types/aws-lambda/README.md +1 -1
- package/node_modules/@types/aws-lambda/index.d.ts +1 -0
- package/node_modules/@types/aws-lambda/package.json +4 -3
- package/node_modules/@types/aws-lambda/trigger/guard-duty-event-notification.d.ts +36 -0
- package/node_modules/axios/CHANGELOG.md +49 -0
- package/node_modules/axios/README.md +20 -8
- package/node_modules/axios/dist/axios.js +34 -63
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +1 -1
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +40 -71
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +40 -71
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +1 -1
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +45 -75
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +5 -1
- package/node_modules/axios/index.d.ts +8 -1
- package/node_modules/axios/lib/adapters/http.js +4 -4
- package/node_modules/axios/lib/core/Axios.js +7 -2
- package/node_modules/axios/lib/core/mergeConfig.js +5 -5
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/buildURL.js +7 -1
- package/node_modules/axios/lib/helpers/formDataToStream.js +2 -2
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +12 -65
- package/node_modules/axios/lib/helpers/validator.js +8 -0
- package/node_modules/axios/package.json +3 -3
- package/node_modules/dotenv/CHANGELOG.md +15 -2
- package/node_modules/dotenv/README.md +37 -114
- package/node_modules/dotenv/package.json +5 -9
- package/node_modules/openid-client/lib/helpers/client.js +1 -4
- package/node_modules/openid-client/package.json +3 -3
- package/package.json +18 -17
|
@@ -493,8 +493,12 @@ declare namespace axios {
|
|
|
493
493
|
runWhen?: (config: InternalAxiosRequestConfig) => boolean;
|
|
494
494
|
}
|
|
495
495
|
|
|
496
|
+
type AxiosRequestInterceptorUse<T> = (onFulfilled?: ((value: T) => T | Promise<T>) | null, onRejected?: ((error: any) => any) | null, options?: AxiosInterceptorOptions) => number;
|
|
497
|
+
|
|
498
|
+
type AxiosResponseInterceptorUse<T> = (onFulfilled?: ((value: T) => T | Promise<T>) | null, onRejected?: ((error: any) => any) | null) => number;
|
|
499
|
+
|
|
496
500
|
interface AxiosInterceptorManager<V> {
|
|
497
|
-
use
|
|
501
|
+
use: V extends AxiosResponse ? AxiosResponseInterceptorUse<V> : AxiosRequestInterceptorUse<V>;
|
|
498
502
|
eject(id: number): void;
|
|
499
503
|
clear(): void;
|
|
500
504
|
}
|
|
@@ -476,8 +476,12 @@ export interface AxiosInterceptorOptions {
|
|
|
476
476
|
runWhen?: (config: InternalAxiosRequestConfig) => boolean;
|
|
477
477
|
}
|
|
478
478
|
|
|
479
|
+
type AxiosRequestInterceptorUse<T> = (onFulfilled?: ((value: T) => T | Promise<T>) | null, onRejected?: ((error: any) => any) | null, options?: AxiosInterceptorOptions) => number;
|
|
480
|
+
|
|
481
|
+
type AxiosResponseInterceptorUse<T> = (onFulfilled?: ((value: T) => T | Promise<T>) | null, onRejected?: ((error: any) => any) | null) => number;
|
|
482
|
+
|
|
479
483
|
export interface AxiosInterceptorManager<V> {
|
|
480
|
-
use
|
|
484
|
+
use: V extends AxiosResponse ? AxiosResponseInterceptorUse<V> : AxiosRequestInterceptorUse<V>;
|
|
481
485
|
eject(id: number): void;
|
|
482
486
|
clear(): void;
|
|
483
487
|
}
|
|
@@ -538,6 +542,8 @@ export function isCancel(value: any): value is Cancel;
|
|
|
538
542
|
|
|
539
543
|
export function all<T>(values: Array<T | Promise<T>>): Promise<T[]>;
|
|
540
544
|
|
|
545
|
+
export function mergeConfig<D = any>(config1: AxiosRequestConfig<D>, config2: AxiosRequestConfig<D>): AxiosRequestConfig<D>;
|
|
546
|
+
|
|
541
547
|
export interface AxiosStatic extends AxiosInstance {
|
|
542
548
|
create(config?: CreateAxiosDefaults): AxiosInstance;
|
|
543
549
|
Cancel: CancelStatic;
|
|
@@ -555,6 +561,7 @@ export interface AxiosStatic extends AxiosInstance {
|
|
|
555
561
|
getAdapter: typeof getAdapter;
|
|
556
562
|
CanceledError: typeof CanceledError;
|
|
557
563
|
AxiosHeaders: typeof AxiosHeaders;
|
|
564
|
+
mergeConfig: typeof mergeConfig;
|
|
558
565
|
}
|
|
559
566
|
|
|
560
567
|
declare const axios: AxiosStatic;
|
|
@@ -4,7 +4,7 @@ import utils from './../utils.js';
|
|
|
4
4
|
import settle from './../core/settle.js';
|
|
5
5
|
import buildFullPath from '../core/buildFullPath.js';
|
|
6
6
|
import buildURL from './../helpers/buildURL.js';
|
|
7
|
-
import
|
|
7
|
+
import proxyFromEnv from 'proxy-from-env';
|
|
8
8
|
import http from 'http';
|
|
9
9
|
import https from 'https';
|
|
10
10
|
import util from 'util';
|
|
@@ -83,7 +83,7 @@ function dispatchBeforeRedirect(options, responseDetails) {
|
|
|
83
83
|
function setProxy(options, configProxy, location) {
|
|
84
84
|
let proxy = configProxy;
|
|
85
85
|
if (!proxy && proxy !== false) {
|
|
86
|
-
const proxyUrl = getProxyForUrl(location);
|
|
86
|
+
const proxyUrl = proxyFromEnv.getProxyForUrl(location);
|
|
87
87
|
if (proxyUrl) {
|
|
88
88
|
proxy = new URL(proxyUrl);
|
|
89
89
|
}
|
|
@@ -314,7 +314,7 @@ export default isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
314
314
|
} catch (e) {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
|
-
} else if (utils.isBlob(data)) {
|
|
317
|
+
} else if (utils.isBlob(data) || utils.isFile(data)) {
|
|
318
318
|
data.size && headers.setContentType(data.type || 'application/octet-stream');
|
|
319
319
|
headers.setContentLength(data.size || 0);
|
|
320
320
|
data = stream.Readable.from(readBlob(data));
|
|
@@ -569,7 +569,7 @@ export default isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
569
569
|
}
|
|
570
570
|
|
|
571
571
|
const err = new AxiosError(
|
|
572
|
-
'
|
|
572
|
+
'stream has been aborted',
|
|
573
573
|
AxiosError.ERR_BAD_RESPONSE,
|
|
574
574
|
config,
|
|
575
575
|
lastRequest
|
|
@@ -40,9 +40,9 @@ class Axios {
|
|
|
40
40
|
return await this._request(configOrUrl, config);
|
|
41
41
|
} catch (err) {
|
|
42
42
|
if (err instanceof Error) {
|
|
43
|
-
let dummy;
|
|
43
|
+
let dummy = {};
|
|
44
44
|
|
|
45
|
-
Error.captureStackTrace ? Error.captureStackTrace(dummy
|
|
45
|
+
Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());
|
|
46
46
|
|
|
47
47
|
// slice off the Error: ... line
|
|
48
48
|
const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : '';
|
|
@@ -97,6 +97,11 @@ class Axios {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
+
validator.assertOptions(config, {
|
|
101
|
+
baseUrl: validators.spelling('baseURL'),
|
|
102
|
+
withXsrfToken: validators.spelling('withXSRFToken')
|
|
103
|
+
}, true);
|
|
104
|
+
|
|
100
105
|
// Set config.method
|
|
101
106
|
config.method = (config.method || this.defaults.method || 'get').toLowerCase();
|
|
102
107
|
|
|
@@ -19,7 +19,7 @@ export default function mergeConfig(config1, config2) {
|
|
|
19
19
|
config2 = config2 || {};
|
|
20
20
|
const config = {};
|
|
21
21
|
|
|
22
|
-
function getMergedValue(target, source, caseless) {
|
|
22
|
+
function getMergedValue(target, source, prop, caseless) {
|
|
23
23
|
if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
|
|
24
24
|
return utils.merge.call({caseless}, target, source);
|
|
25
25
|
} else if (utils.isPlainObject(source)) {
|
|
@@ -31,11 +31,11 @@ export default function mergeConfig(config1, config2) {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
// eslint-disable-next-line consistent-return
|
|
34
|
-
function mergeDeepProperties(a, b, caseless) {
|
|
34
|
+
function mergeDeepProperties(a, b, prop , caseless) {
|
|
35
35
|
if (!utils.isUndefined(b)) {
|
|
36
|
-
return getMergedValue(a, b, caseless);
|
|
36
|
+
return getMergedValue(a, b, prop , caseless);
|
|
37
37
|
} else if (!utils.isUndefined(a)) {
|
|
38
|
-
return getMergedValue(undefined, a, caseless);
|
|
38
|
+
return getMergedValue(undefined, a, prop , caseless);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
@@ -93,7 +93,7 @@ export default function mergeConfig(config1, config2) {
|
|
|
93
93
|
socketPath: defaultToConfig2,
|
|
94
94
|
responseEncoding: defaultToConfig2,
|
|
95
95
|
validateStatus: mergeDirectKeys,
|
|
96
|
-
headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
|
|
96
|
+
headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)
|
|
97
97
|
};
|
|
98
98
|
|
|
99
99
|
utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.7.
|
|
1
|
+
export const VERSION = "1.7.9";
|
|
@@ -26,7 +26,7 @@ function encode(val) {
|
|
|
26
26
|
*
|
|
27
27
|
* @param {string} url The base of the url (e.g., http://www.google.com)
|
|
28
28
|
* @param {object} [params] The params to be appended
|
|
29
|
-
* @param {?object} options
|
|
29
|
+
* @param {?(object|Function)} options
|
|
30
30
|
*
|
|
31
31
|
* @returns {string} The formatted url
|
|
32
32
|
*/
|
|
@@ -38,6 +38,12 @@ export default function buildURL(url, params, options) {
|
|
|
38
38
|
|
|
39
39
|
const _encode = options && options.encode || encode;
|
|
40
40
|
|
|
41
|
+
if (utils.isFunction(options)) {
|
|
42
|
+
options = {
|
|
43
|
+
serialize: options
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
41
47
|
const serializeFn = options && options.serialize;
|
|
42
48
|
|
|
43
49
|
let serializedParams;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import util from 'util';
|
|
2
2
|
import {Readable} from 'stream';
|
|
3
3
|
import utils from "../utils.js";
|
|
4
4
|
import readBlob from "./readBlob.js";
|
|
5
5
|
|
|
6
6
|
const BOUNDARY_ALPHABET = utils.ALPHABET.ALPHA_DIGIT + '-_';
|
|
7
7
|
|
|
8
|
-
const textEncoder = new TextEncoder();
|
|
8
|
+
const textEncoder = typeof TextEncoder === 'function' ? new TextEncoder() : new util.TextEncoder();
|
|
9
9
|
|
|
10
10
|
const CRLF = '\r\n';
|
|
11
11
|
const CRLF_BYTES = textEncoder.encode(CRLF);
|
|
@@ -1,67 +1,14 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
import utils from './../utils.js';
|
|
4
1
|
import platform from '../platform/index.js';
|
|
5
2
|
|
|
6
|
-
export default platform.hasStandardBrowserEnv ?
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
* @param {String} url The URL to be parsed
|
|
19
|
-
* @returns {Object}
|
|
20
|
-
*/
|
|
21
|
-
function resolveURL(url) {
|
|
22
|
-
let href = url;
|
|
23
|
-
|
|
24
|
-
if (msie) {
|
|
25
|
-
// IE needs attribute set twice to normalize properties
|
|
26
|
-
urlParsingNode.setAttribute('href', href);
|
|
27
|
-
href = urlParsingNode.href;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
urlParsingNode.setAttribute('href', href);
|
|
31
|
-
|
|
32
|
-
// urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
|
|
33
|
-
return {
|
|
34
|
-
href: urlParsingNode.href,
|
|
35
|
-
protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
|
|
36
|
-
host: urlParsingNode.host,
|
|
37
|
-
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
|
|
38
|
-
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
|
|
39
|
-
hostname: urlParsingNode.hostname,
|
|
40
|
-
port: urlParsingNode.port,
|
|
41
|
-
pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
|
|
42
|
-
urlParsingNode.pathname :
|
|
43
|
-
'/' + urlParsingNode.pathname
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
originURL = resolveURL(window.location.href);
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Determine if a URL shares the same origin as the current location
|
|
51
|
-
*
|
|
52
|
-
* @param {String} requestURL The URL to test
|
|
53
|
-
* @returns {boolean} True if URL shares the same origin, otherwise false
|
|
54
|
-
*/
|
|
55
|
-
return function isURLSameOrigin(requestURL) {
|
|
56
|
-
const parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
|
|
57
|
-
return (parsed.protocol === originURL.protocol &&
|
|
58
|
-
parsed.host === originURL.host);
|
|
59
|
-
};
|
|
60
|
-
})() :
|
|
61
|
-
|
|
62
|
-
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
63
|
-
(function nonStandardBrowserEnv() {
|
|
64
|
-
return function isURLSameOrigin() {
|
|
65
|
-
return true;
|
|
66
|
-
};
|
|
67
|
-
})();
|
|
3
|
+
export default platform.hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {
|
|
4
|
+
url = new URL(url, platform.origin);
|
|
5
|
+
|
|
6
|
+
return (
|
|
7
|
+
origin.protocol === url.protocol &&
|
|
8
|
+
origin.host === url.host &&
|
|
9
|
+
(isMSIE || origin.port === url.port)
|
|
10
|
+
);
|
|
11
|
+
})(
|
|
12
|
+
new URL(platform.origin),
|
|
13
|
+
platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
|
|
14
|
+
) : () => true;
|
|
@@ -52,6 +52,14 @@ validators.transitional = function transitional(validator, version, message) {
|
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
+
validators.spelling = function spelling(correctSpelling) {
|
|
56
|
+
return (value, opt) => {
|
|
57
|
+
// eslint-disable-next-line no-console
|
|
58
|
+
console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
|
|
55
63
|
/**
|
|
56
64
|
* Assert object's properties type
|
|
57
65
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "axios",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.9",
|
|
4
4
|
"description": "Promise based HTTP client for the browser and node.js",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"exports": {
|
|
@@ -163,12 +163,12 @@
|
|
|
163
163
|
"Dmitriy Mozgovoy (https://github.com/DigitalBrainJS)",
|
|
164
164
|
"Jay (https://github.com/jasonsaayman)",
|
|
165
165
|
"Emily Morehouse (https://github.com/emilyemorehouse)",
|
|
166
|
-
"Rubén Norte (https://github.com/rubennorte)",
|
|
167
166
|
"Justin Beckwith (https://github.com/JustinBeckwith)",
|
|
167
|
+
"Rubén Norte (https://github.com/rubennorte)",
|
|
168
168
|
"Martti Laine (https://github.com/codeclown)",
|
|
169
169
|
"Xianming Zhong (https://github.com/chinesedfan)",
|
|
170
|
-
"Rikki Gibson (https://github.com/RikkiGibson)",
|
|
171
170
|
"Remco Haszing (https://github.com/remcohaszing)",
|
|
171
|
+
"Rikki Gibson (https://github.com/RikkiGibson)",
|
|
172
172
|
"Yasu Flores (https://github.com/yasuf)",
|
|
173
173
|
"Ben Carp (https://github.com/carpben)"
|
|
174
174
|
],
|
|
@@ -2,13 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
-
## [Unreleased](https://github.com/motdotla/dotenv/compare/v16.4.
|
|
5
|
+
## [Unreleased](https://github.com/motdotla/dotenv/compare/v16.4.7...master)
|
|
6
|
+
|
|
7
|
+
## [16.4.7](https://github.com/motdotla/dotenv/compare/v16.4.6...v16.4.7 (2024-12-03)
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- Ignore `.tap` folder when publishing. (oops, sorry about that everyone. - @motdotla) [#848](https://github.com/motdotla/dotenv/pull/848)
|
|
12
|
+
|
|
13
|
+
## [16.4.6](https://github.com/motdotla/dotenv/compare/v16.4.5...v16.4.6) (2024-12-02)
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- Clean up stale dev dependencies [#847](https://github.com/motdotla/dotenv/pull/847)
|
|
18
|
+
- Various README updates clarifying usage and alternative solutions using [dotenvx](https://github.com/dotenvx/dotenvx)
|
|
6
19
|
|
|
7
20
|
## [16.4.5](https://github.com/motdotla/dotenv/compare/v16.4.4...v16.4.5) (2024-02-19)
|
|
8
21
|
|
|
9
22
|
### Changed
|
|
10
23
|
|
|
11
|
-
- 🐞
|
|
24
|
+
- 🐞 Fix recent regression when using `path` option. return to historical behavior: do not attempt to auto find `.env` if `path` set. (regression was introduced in `16.4.3`) [#814](https://github.com/motdotla/dotenv/pull/814)
|
|
12
25
|
|
|
13
26
|
## [16.4.4](https://github.com/motdotla/dotenv/compare/v16.4.3...v16.4.4) (2024-02-13)
|
|
14
27
|
|
|
@@ -33,16 +33,6 @@
|
|
|
33
33
|
<sup>Add Single Sign-On, Multi-Factor Auth, and more, in minutes instead of months.</sup>
|
|
34
34
|
</div>
|
|
35
35
|
</a>
|
|
36
|
-
<br/>
|
|
37
|
-
<a href="https://runalloy.com/?utm_source=github&utm_medium=referral&utm_campaign=1224_dotenv">
|
|
38
|
-
<div>
|
|
39
|
-
<img src="https://res.cloudinary.com/dotenv-org/image/upload/c_crop,g_center,h_65,w_290,x_0,y_0/v1704258787/AlloyAutomation-logo_dqin8c.svg" width="370" alt="Alloy Automation">
|
|
40
|
-
</div>
|
|
41
|
-
<b>Launch user-facing integrations faster</b>
|
|
42
|
-
<div>
|
|
43
|
-
<sup>Easily spin up hundreds of integrations. Sign up free or read our docs first</sup>
|
|
44
|
-
</div>
|
|
45
|
-
</a>
|
|
46
36
|
<hr>
|
|
47
37
|
</div>
|
|
48
38
|
|
|
@@ -59,7 +49,7 @@ Dotenv is a zero-dependency module that loads environment variables from a `.env
|
|
|
59
49
|
* [🌱 Install](#-install)
|
|
60
50
|
* [🏗️ Usage (.env)](#%EF%B8%8F-usage)
|
|
61
51
|
* [🌴 Multiple Environments 🆕](#-manage-multiple-environments)
|
|
62
|
-
* [🚀 Deploying (
|
|
52
|
+
* [🚀 Deploying (encryption) 🆕](#-deploying)
|
|
63
53
|
* [📚 Examples](#-examples)
|
|
64
54
|
* [📖 Docs](#-documentation)
|
|
65
55
|
* [❓ FAQ](#-faq)
|
|
@@ -83,7 +73,7 @@ Or installing with yarn? `yarn add dotenv`
|
|
|
83
73
|
</div>
|
|
84
74
|
</a>
|
|
85
75
|
|
|
86
|
-
Create a `.env` file in the root of your project:
|
|
76
|
+
Create a `.env` file in the root of your project (if using a monorepo structure like `apps/backend/app.js`, put it in the root of the folder where your `app.js` process runs):
|
|
87
77
|
|
|
88
78
|
```dosini
|
|
89
79
|
S3_BUCKET="YOURS3BUCKET"
|
|
@@ -107,6 +97,7 @@ That's it. `process.env` now has the keys and values you defined in your `.env`
|
|
|
107
97
|
|
|
108
98
|
```javascript
|
|
109
99
|
require('dotenv').config()
|
|
100
|
+
// or import 'dotenv/config' if you're using ES6
|
|
110
101
|
|
|
111
102
|
...
|
|
112
103
|
|
|
@@ -186,23 +177,41 @@ $ DOTENV_CONFIG_ENCODING=latin1 DOTENV_CONFIG_DEBUG=true node -r dotenv/config y
|
|
|
186
177
|
|
|
187
178
|
You need to add the value of another variable in one of your variables? Use [dotenv-expand](https://github.com/motdotla/dotenv-expand).
|
|
188
179
|
|
|
180
|
+
### Command Substitution
|
|
181
|
+
|
|
182
|
+
Use [dotenvx](https://github.com/dotenvx/dotenvx) to use command substitution.
|
|
183
|
+
|
|
184
|
+
Add the output of a command to one of your variables in your .env file.
|
|
185
|
+
|
|
186
|
+
```ini
|
|
187
|
+
# .env
|
|
188
|
+
DATABASE_URL="postgres://$(whoami)@localhost/my_database"
|
|
189
|
+
```
|
|
190
|
+
```js
|
|
191
|
+
// index.js
|
|
192
|
+
console.log('DATABASE_URL', process.env.DATABASE_URL)
|
|
193
|
+
```
|
|
194
|
+
```sh
|
|
195
|
+
$ dotenvx run --debug -- node index.js
|
|
196
|
+
[dotenvx@0.14.1] injecting env (1) from .env
|
|
197
|
+
DATABASE_URL postgres://yourusername@localhost/my_database
|
|
198
|
+
```
|
|
199
|
+
|
|
189
200
|
### Syncing
|
|
190
201
|
|
|
191
|
-
You need to keep `.env` files in sync between machines, environments, or team members? Use [
|
|
202
|
+
You need to keep `.env` files in sync between machines, environments, or team members? Use [dotenvx](https://github.com/dotenvx/dotenvx) to encrypt your `.env` files and safely include them in source control. This still subscribes to the twelve-factor app rules by generating a decryption key separate from code.
|
|
192
203
|
|
|
193
204
|
### Multiple Environments
|
|
194
205
|
|
|
195
|
-
|
|
206
|
+
Use [dotenvx](https://github.com/dotenvx/dotenvx) to generate `.env.ci`, `.env.production` files, and more.
|
|
196
207
|
|
|
197
208
|
### Deploying
|
|
198
209
|
|
|
199
|
-
You need to deploy your secrets in a cloud-agnostic manner? Use
|
|
210
|
+
You need to deploy your secrets in a cloud-agnostic manner? Use [dotenvx](https://github.com/dotenvx/dotenvx) to generate a private decryption key that is set on your production server.
|
|
200
211
|
|
|
201
212
|
## 🌴 Manage Multiple Environments
|
|
202
213
|
|
|
203
|
-
Use [dotenvx](https://github.com/dotenvx/dotenvx)
|
|
204
|
-
|
|
205
|
-
### dotenvx
|
|
214
|
+
Use [dotenvx](https://github.com/dotenvx/dotenvx)
|
|
206
215
|
|
|
207
216
|
Run any environment locally. Create a `.env.ENVIRONMENT` file and use `--env-file` to load it. It's straightforward, yet flexible.
|
|
208
217
|
|
|
@@ -228,78 +237,23 @@ Hello local
|
|
|
228
237
|
|
|
229
238
|
[more environment examples](https://dotenvx.com/docs/quickstart/environments)
|
|
230
239
|
|
|
231
|
-
### dotenv-vault
|
|
232
|
-
|
|
233
|
-
Edit your production environment variables.
|
|
234
|
-
|
|
235
|
-
```bash
|
|
236
|
-
$ npx dotenv-vault open production
|
|
237
|
-
```
|
|
238
|
-
|
|
239
|
-
Regenerate your `.env.vault` file.
|
|
240
|
-
|
|
241
|
-
```bash
|
|
242
|
-
$ npx dotenv-vault build
|
|
243
|
-
```
|
|
244
|
-
|
|
245
|
-
*ℹ️ 🔐 Vault Managed vs 💻 Locally Managed: The above example, for brevity's sake, used the 🔐 Vault Managed solution to manage your `.env.vault` file. You can instead use the 💻 Locally Managed solution. [Read more here](https://github.com/dotenv-org/dotenv-vault#how-do-i-use--locally-managed-dotenv-vault). Our vision is that other platforms and orchestration tools adopt the `.env.vault` standard as they did the `.env` standard. We don't expect to be the only ones providing tooling to manage and generate `.env.vault` files.*
|
|
246
|
-
|
|
247
|
-
<a href="https://github.com/dotenv-org/dotenv-vault#-manage-multiple-environments">Learn more at dotenv-vault: Manage Multiple Environments</a>
|
|
248
|
-
|
|
249
240
|
## 🚀 Deploying
|
|
250
241
|
|
|
251
|
-
Use [dotenvx](https://github.com/dotenvx/dotenvx)
|
|
242
|
+
Use [dotenvx](https://github.com/dotenvx/dotenvx).
|
|
252
243
|
|
|
253
|
-
|
|
244
|
+
Add encryption to your `.env` files with a single command. Pass the `--encrypt` flag.
|
|
254
245
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
```bash
|
|
258
|
-
$ echo "HELLO=World" > .env
|
|
259
|
-
$ echo "HELLO=production" > .env.production
|
|
246
|
+
```
|
|
247
|
+
$ dotenvx set HELLO Production --encrypt -f .env.production
|
|
260
248
|
$ echo "console.log('Hello ' + process.env.HELLO)" > index.js
|
|
261
249
|
|
|
262
|
-
$ dotenvx
|
|
263
|
-
[dotenvx]
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
$ DOTENV_KEY='<dotenv_key_production>' dotenvx run -- node index.js
|
|
267
|
-
[dotenvx][info] loading env (1) from encrypted .env.vault
|
|
268
|
-
Hello production
|
|
269
|
-
^ :-]
|
|
250
|
+
$ DOTENV_PRIVATE_KEY_PRODUCTION="<.env.production private key>" dotenvx run -- node index.js
|
|
251
|
+
[dotenvx] injecting env (2) from .env.production
|
|
252
|
+
Hello Production
|
|
270
253
|
```
|
|
271
254
|
|
|
272
255
|
[learn more](https://github.com/dotenvx/dotenvx?tab=readme-ov-file#encryption)
|
|
273
256
|
|
|
274
|
-
### dotenv-vault
|
|
275
|
-
|
|
276
|
-
*Note: Requires dotenv >= 16.1.0*
|
|
277
|
-
|
|
278
|
-
Encrypt your `.env.vault` file.
|
|
279
|
-
|
|
280
|
-
```bash
|
|
281
|
-
$ npx dotenv-vault build
|
|
282
|
-
```
|
|
283
|
-
|
|
284
|
-
Fetch your production `DOTENV_KEY`.
|
|
285
|
-
|
|
286
|
-
```bash
|
|
287
|
-
$ npx dotenv-vault keys production
|
|
288
|
-
```
|
|
289
|
-
|
|
290
|
-
Set `DOTENV_KEY` on your server.
|
|
291
|
-
|
|
292
|
-
```bash
|
|
293
|
-
# heroku example
|
|
294
|
-
heroku config:set DOTENV_KEY=dotenv://:key_1234…@dotenvx.com/vault/.env.vault?environment=production
|
|
295
|
-
```
|
|
296
|
-
|
|
297
|
-
That's it! On deploy, your `.env.vault` file will be decrypted and its secrets injected as environment variables – just in time.
|
|
298
|
-
|
|
299
|
-
*ℹ️ A note from [Mot](https://github.com/motdotla): Until recently, we did not have an opinion on how and where to store your secrets in production. We now strongly recommend generating a `.env.vault` file. It's the best way to prevent your secrets from being scattered across multiple servers and cloud providers – protecting you from breaches like the [CircleCI breach](https://techcrunch.com/2023/01/05/circleci-breach/). Also it unlocks interoperability WITHOUT native third-party integrations. Third-party integrations are [increasingly risky](https://coderpad.io/blog/development/heroku-github-breach/) to our industry. They may be the 'du jour' of today, but we imagine a better future.*
|
|
300
|
-
|
|
301
|
-
<a href="https://github.com/dotenv-org/dotenv-vault#-deploying">Learn more at dotenv-vault: Deploying</a>
|
|
302
|
-
|
|
303
257
|
## 📚 Examples
|
|
304
258
|
|
|
305
259
|
See [examples](https://github.com/dotenv-org/examples) of using dotenv with various frameworks, languages, and configurations.
|
|
@@ -308,7 +262,6 @@ See [examples](https://github.com/dotenv-org/examples) of using dotenv with vari
|
|
|
308
262
|
* [nodejs (debug on)](https://github.com/dotenv-org/examples/tree/master/usage/dotenv-nodejs-debug)
|
|
309
263
|
* [nodejs (override on)](https://github.com/dotenv-org/examples/tree/master/usage/dotenv-nodejs-override)
|
|
310
264
|
* [nodejs (processEnv override)](https://github.com/dotenv-org/examples/tree/master/usage/dotenv-custom-target)
|
|
311
|
-
* [nodejs (DOTENV_KEY override)](https://github.com/dotenv-org/examples/tree/master/usage/dotenv-vault-custom-target)
|
|
312
265
|
* [esm](https://github.com/dotenv-org/examples/tree/master/usage/dotenv-esm)
|
|
313
266
|
* [esm (preload)](https://github.com/dotenv-org/examples/tree/master/usage/dotenv-esm-preload)
|
|
314
267
|
* [typescript](https://github.com/dotenv-org/examples/tree/master/usage/dotenv-typescript)
|
|
@@ -409,20 +362,10 @@ Specify an object to write your secrets to. Defaults to `process.env` environmen
|
|
|
409
362
|
const myObject = {}
|
|
410
363
|
require('dotenv').config({ processEnv: myObject })
|
|
411
364
|
|
|
412
|
-
console.log(myObject) // values from .env
|
|
365
|
+
console.log(myObject) // values from .env
|
|
413
366
|
console.log(process.env) // this was not changed or written to
|
|
414
367
|
```
|
|
415
368
|
|
|
416
|
-
##### DOTENV_KEY
|
|
417
|
-
|
|
418
|
-
Default: `process.env.DOTENV_KEY`
|
|
419
|
-
|
|
420
|
-
Pass the `DOTENV_KEY` directly to config options. Defaults to looking for `process.env.DOTENV_KEY` environment variable. Note this only applies to decrypting `.env.vault` files. If passed as null or undefined, or not passed at all, dotenv falls back to its traditional job of parsing a `.env` file.
|
|
421
|
-
|
|
422
|
-
```js
|
|
423
|
-
require('dotenv').config({ DOTENV_KEY: 'dotenv://:key_1234…@dotenvx.com/vault/.env.vault?environment=production' })
|
|
424
|
-
```
|
|
425
|
-
|
|
426
369
|
### Parse
|
|
427
370
|
|
|
428
371
|
The engine which parses the contents of your file containing environment
|
|
@@ -493,22 +436,6 @@ Default: `false`
|
|
|
493
436
|
|
|
494
437
|
Override any environment variables that have already been set.
|
|
495
438
|
|
|
496
|
-
### Decrypt
|
|
497
|
-
|
|
498
|
-
The engine which decrypts the ciphertext contents of your .env.vault file is available for use. It accepts a ciphertext and a decryption key. It uses AES-256-GCM encryption.
|
|
499
|
-
|
|
500
|
-
For example, decrypting a simple ciphertext:
|
|
501
|
-
|
|
502
|
-
```js
|
|
503
|
-
const dotenv = require('dotenv')
|
|
504
|
-
const ciphertext = 's7NYXa809k/bVSPwIAmJhPJmEGTtU0hG58hOZy7I0ix6y5HP8LsHBsZCYC/gw5DDFy5DgOcyd18R'
|
|
505
|
-
const decryptionKey = 'ddcaa26504cd70a6fef9801901c3981538563a1767c297cb8416e8a38c62fe00'
|
|
506
|
-
|
|
507
|
-
const decrypted = dotenv.decrypt(ciphertext, decryptionKey)
|
|
508
|
-
|
|
509
|
-
console.log(decrypted) // # development@v6\nALPHA="zeta"
|
|
510
|
-
```
|
|
511
|
-
|
|
512
439
|
## ❓ FAQ
|
|
513
440
|
|
|
514
441
|
### Why is the `.env` file not loading my environment variables successfully?
|
|
@@ -532,7 +459,7 @@ password than your development database.
|
|
|
532
459
|
|
|
533
460
|
### Should I have multiple `.env` files?
|
|
534
461
|
|
|
535
|
-
We recommend creating
|
|
462
|
+
We recommend creating one `.env` file per environment. Use `.env` for local/development, `.env.production` for production and so on. This still follows the twelve factor principles as each is attributed individually to its own environment. Avoid custom set ups that work in inheritance somehow (`.env.production` inherits values form `.env` for example). It is better to duplicate values if necessary across each `.env.environment` file.
|
|
536
463
|
|
|
537
464
|
> In a twelve-factor app, env vars are granular controls, each fully orthogonal to other env vars. They are never grouped together as “environments”, but instead are independently managed for each deploy. This is a model that scales up smoothly as the app naturally expands into more deploys over its lifetime.
|
|
538
465
|
>
|
|
@@ -685,11 +612,7 @@ Try [dotenv-expand](https://github.com/motdotla/dotenv-expand)
|
|
|
685
612
|
|
|
686
613
|
### What about syncing and securing .env files?
|
|
687
614
|
|
|
688
|
-
Use [
|
|
689
|
-
|
|
690
|
-
### What is a `.env.vault` file?
|
|
691
|
-
|
|
692
|
-
A `.env.vault` file is an encrypted version of your development (and ci, staging, production, etc) environment variables. It is paired with a `DOTENV_KEY` to deploy your secrets more securely than scattering them across multiple platforms and tools. Use [dotenv-vault](https://github.com/dotenv-org/dotenv-vault) to manage and generate them.
|
|
615
|
+
Use [dotenvx](https://github.com/dotenvx/dotenvx)
|
|
693
616
|
|
|
694
617
|
### What if I accidentally commit my `.env` file to code?
|
|
695
618
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dotenv",
|
|
3
|
-
"version": "16.4.
|
|
3
|
+
"version": "16.4.7",
|
|
4
4
|
"description": "Loads environment variables from .env file",
|
|
5
5
|
"main": "lib/main.js",
|
|
6
6
|
"types": "lib/main.d.ts",
|
|
@@ -21,10 +21,9 @@
|
|
|
21
21
|
"scripts": {
|
|
22
22
|
"dts-check": "tsc --project tests/types/tsconfig.json",
|
|
23
23
|
"lint": "standard",
|
|
24
|
-
"lint-readme": "standard-markdown",
|
|
25
24
|
"pretest": "npm run lint && npm run dts-check",
|
|
26
|
-
"test": "tap
|
|
27
|
-
"test:coverage": "tap --coverage-report=lcov",
|
|
25
|
+
"test": "tap run --allow-empty-coverage --disable-coverage --timeout=60000",
|
|
26
|
+
"test:coverage": "tap run --show-full-coverage --timeout=60000 --coverage-report=lcov",
|
|
28
27
|
"prerelease": "npm test",
|
|
29
28
|
"release": "standard-version"
|
|
30
29
|
},
|
|
@@ -45,15 +44,12 @@
|
|
|
45
44
|
"readmeFilename": "README.md",
|
|
46
45
|
"license": "BSD-2-Clause",
|
|
47
46
|
"devDependencies": {
|
|
48
|
-
"@definitelytyped/dtslint": "^0.0.133",
|
|
49
47
|
"@types/node": "^18.11.3",
|
|
50
|
-
"decache": "^4.6.
|
|
48
|
+
"decache": "^4.6.2",
|
|
51
49
|
"sinon": "^14.0.1",
|
|
52
50
|
"standard": "^17.0.0",
|
|
53
|
-
"standard-markdown": "^7.1.0",
|
|
54
51
|
"standard-version": "^9.5.0",
|
|
55
|
-
"tap": "^
|
|
56
|
-
"tar": "^6.1.11",
|
|
52
|
+
"tap": "^19.2.0",
|
|
57
53
|
"typescript": "^4.8.4"
|
|
58
54
|
},
|
|
59
55
|
"engines": {
|
|
@@ -92,9 +92,6 @@ async function authFor(endpoint, { clientAssertionPayload } = {}) {
|
|
|
92
92
|
case 'private_key_jwt':
|
|
93
93
|
case 'client_secret_jwt': {
|
|
94
94
|
const timestamp = now();
|
|
95
|
-
const audience = [
|
|
96
|
-
...new Set([this.issuer.issuer, this.issuer.token_endpoint].filter(Boolean)),
|
|
97
|
-
];
|
|
98
95
|
|
|
99
96
|
const assertion = await clientAssertion.call(this, endpoint, {
|
|
100
97
|
iat: timestamp,
|
|
@@ -102,7 +99,7 @@ async function authFor(endpoint, { clientAssertionPayload } = {}) {
|
|
|
102
99
|
jti: random(),
|
|
103
100
|
iss: this.client_id,
|
|
104
101
|
sub: this.client_id,
|
|
105
|
-
aud:
|
|
102
|
+
aud: this.issuer.issuer,
|
|
106
103
|
...clientAssertionPayload,
|
|
107
104
|
});
|
|
108
105
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openid-client",
|
|
3
|
-
"version": "5.7.
|
|
3
|
+
"version": "5.7.1",
|
|
4
4
|
"description": "OpenID Connect Relying Party (RP, Client) implementation for Node.js runtime, supports passportjs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"auth",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"relying party",
|
|
23
23
|
"strategy"
|
|
24
24
|
],
|
|
25
|
-
"homepage": "https://github.com/panva/
|
|
26
|
-
"repository": "panva/
|
|
25
|
+
"homepage": "https://github.com/panva/openid-client",
|
|
26
|
+
"repository": "panva/openid-client",
|
|
27
27
|
"funding": {
|
|
28
28
|
"url": "https://github.com/sponsors/panva"
|
|
29
29
|
},
|