@aws-amplify/graphql-api-construct 1.18.7 → 1.18.8
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 +83 -43
- package/CHANGELOG.md +6 -0
- package/lib/amplify-dynamodb-table-wrapper.js +1 -1
- package/lib/amplify-graphql-api.js +4 -2
- package/lib/amplify-graphql-definition.js +1 -1
- package/lib/sql-model-datasource-strategy.js +1 -1
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/conversation_handler_construct.d.ts +13 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/conversation_handler_construct.js +17 -4
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/bedrock_converse_adapter.js +89 -71
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/types.d.ts +1 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/types.js +1 -1
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/README.md +9 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/backend_entry_point_locator.d.ts +14 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/backend_entry_point_locator.js +37 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/backend_identifier_conversions.d.ts +22 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/backend_identifier_conversions.js +90 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/caller_directory_extractor.d.ts +14 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/caller_directory_extractor.js +70 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/cdk/enum_converters.d.ts +18 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/cdk/enum_converters.js +116 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/cdk/index.d.ts +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/cdk/index.js +7 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/cdk_context_key.d.ts +12 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/cdk_context_key.js +16 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/config/local_configuration_controller.d.ts +45 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/config/local_configuration_controller.js +125 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/config/local_configuration_controller_factory.d.ts +23 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/config/local_configuration_controller_factory.js +29 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/errors/amplify_error.d.ts +64 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/errors/amplify_error.js +267 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/errors/amplify_library_fault.d.ts +21 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/errors/amplify_library_fault.js +27 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/errors/amplify_user_error.d.ts +21 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/errors/amplify_user_error.js +27 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/errors/index.d.ts +4 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/errors/index.js +20 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/extract_file_path_from_stack_trace_line.d.ts +13 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/extract_file_path_from_stack_trace_line.js +61 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/index.d.ts +15 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/index.internal.d.ts +4 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/index.internal.js +35 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/index.js +35 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/naming_convention_conversions.d.ts +13 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/naming_convention_conversions.js +23 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/object_accumulator.d.ts +45 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/object_accumulator.js +99 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/package_json_reader.d.ts +33 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/package_json_reader.js +56 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/parameter_path_conversions.d.ts +19 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/parameter_path_conversions.js +79 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/tag_name.d.ts +4 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/tag_name.js +8 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/usage-data/account_id_fetcher.d.ts +14 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/usage-data/account_id_fetcher.js +38 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/usage-data/constants.d.ts +13 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/usage-data/constants.js +16 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/usage-data/get_installation_id.d.ts +5 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/usage-data/get_installation_id.js +15 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/usage-data/get_usage_data_url.d.ts +6 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/usage-data/get_usage_data_url.js +24 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/usage-data/noop_usage_data_emitter.d.ts +15 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/usage-data/noop_usage_data_emitter.js +24 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/usage-data/serializable_error.d.ts +27 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/usage-data/serializable_error.js +70 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/usage-data/usage_data.d.ts +29 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/usage-data/usage_data.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/usage-data/usage_data_emitter.d.ts +27 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/usage-data/usage_data_emitter.js +146 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/usage-data/usage_data_emitter_factory.d.ts +16 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/lib/usage-data/usage_data_emitter_factory.js +27 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core/package.json +45 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/README.md +9 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/amplify_function.d.ts +4 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/amplify_function.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/amplify_resource_group_name.d.ts +7 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/amplify_resource_group_name.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/auth_resources.d.ts +106 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/auth_resources.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/aws_client_provider.d.ts +5 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/aws_client_provider.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_identifier.d.ts +56 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_identifier.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_output.d.ts +6 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_output.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_secret_resolver.d.ts +22 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_secret_resolver.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_stack_creator.d.ts +8 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_stack_creator.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_stack_resolver.d.ts +7 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_stack_resolver.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/construct_container.d.ts +35 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/construct_container.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/construct_factory.d.ts +24 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/construct_factory.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/deep_partial.d.ts +17 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/deep_partial.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/deployment_type.d.ts +8 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/deployment_type.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/function_resources.d.ts +8 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/function_resources.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/import_path_verifier.d.ts +14 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/import_path_verifier.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/index.d.ts +27 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/index.js +43 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/log_level.d.ts +2 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/log_level.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/log_retention.d.ts +2 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/log_retention.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/output_retrieval_strategy.d.ts +11 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/output_retrieval_strategy.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/output_storage_strategy.d.ts +10 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/output_storage_strategy.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/package_manager_controller.d.ts +30 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/package_manager_controller.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_access_acceptor.d.ts +27 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_access_acceptor.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_name_validator.d.ts +10 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_name_validator.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_provider.d.ts +10 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_provider.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/ssm_environment_entries_generator.d.ts +5 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/ssm_environment_entries_generator.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/stable_backend_identifiers.d.ts +4 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/stable_backend_identifiers.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/stack_provider.d.ts +5 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/stack_provider.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/package.json +21 -0
- package/node_modules/@aws-amplify/ai-constructs/package.json +5 -5
- package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +12 -12
- package/node_modules/@aws-amplify/graphql-conversation-transformer/CHANGELOG.md +6 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/package.json +10 -10
- package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +6 -6
- package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-function-transformer/package.json +6 -6
- package/node_modules/@aws-amplify/graphql-generation-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/package.json +6 -6
- package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-http-transformer/package.json +6 -6
- package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-index-transformer/package.json +7 -7
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/assets/mapping-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/package.json +10 -10
- package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +7 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-notification-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-patching-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/import-table.d.ts +1 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/import-table.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/import-table.js +24 -4
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/import-table.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/package.json +6 -6
- package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
- package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +6 -6
- package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +8 -8
- package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/streaming-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-searchable-transformer/package.json +7 -7
- package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +7 -7
- package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-transformer/package.json +19 -19
- package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/package.json +4 -4
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/package.json +3 -3
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/tsconfig.tsbuildinfo +1 -1
- package/node_modules/lodash.snakecase/LICENSE +47 -0
- package/node_modules/lodash.snakecase/README.md +18 -0
- package/node_modules/lodash.snakecase/index.js +435 -0
- package/node_modules/lodash.snakecase/package.json +17 -0
- package/package.json +24 -22
- package/src/amplify-graphql-api.ts +7 -1
@@ -0,0 +1,47 @@
|
|
1
|
+
Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
2
|
+
|
3
|
+
Based on Underscore.js, copyright Jeremy Ashkenas,
|
4
|
+
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
5
|
+
|
6
|
+
This software consists of voluntary contributions made by many
|
7
|
+
individuals. For exact contribution history, see the revision history
|
8
|
+
available at https://github.com/lodash/lodash
|
9
|
+
|
10
|
+
The following license applies to all parts of this software except as
|
11
|
+
documented below:
|
12
|
+
|
13
|
+
====
|
14
|
+
|
15
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
16
|
+
a copy of this software and associated documentation files (the
|
17
|
+
"Software"), to deal in the Software without restriction, including
|
18
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
19
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
20
|
+
permit persons to whom the Software is furnished to do so, subject to
|
21
|
+
the following conditions:
|
22
|
+
|
23
|
+
The above copyright notice and this permission notice shall be
|
24
|
+
included in all copies or substantial portions of the Software.
|
25
|
+
|
26
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
27
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
28
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
29
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
30
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
31
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
32
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
33
|
+
|
34
|
+
====
|
35
|
+
|
36
|
+
Copyright and related rights for sample code are waived via CC0. Sample
|
37
|
+
code is defined as all source code displayed within the prose of the
|
38
|
+
documentation.
|
39
|
+
|
40
|
+
CC0: http://creativecommons.org/publicdomain/zero/1.0/
|
41
|
+
|
42
|
+
====
|
43
|
+
|
44
|
+
Files located in the node_modules and vendor directories are externally
|
45
|
+
maintained libraries used by this software which have their own
|
46
|
+
licenses; we recommend you read them, as their terms may differ from the
|
47
|
+
terms above.
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# lodash.snakecase v4.1.1
|
2
|
+
|
3
|
+
The [lodash](https://lodash.com/) method `_.snakeCase` exported as a [Node.js](https://nodejs.org/) module.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Using npm:
|
8
|
+
```bash
|
9
|
+
$ {sudo -H} npm i -g npm
|
10
|
+
$ npm i --save lodash.snakecase
|
11
|
+
```
|
12
|
+
|
13
|
+
In Node.js:
|
14
|
+
```js
|
15
|
+
var snakeCase = require('lodash.snakecase');
|
16
|
+
```
|
17
|
+
|
18
|
+
See the [documentation](https://lodash.com/docs#snakeCase) or [package source](https://github.com/lodash/lodash/blob/4.1.1-npm-packages/lodash.snakecase) for more details.
|
@@ -0,0 +1,435 @@
|
|
1
|
+
/**
|
2
|
+
* lodash (Custom Build) <https://lodash.com/>
|
3
|
+
* Build: `lodash modularize exports="npm" -o ./`
|
4
|
+
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
5
|
+
* Released under MIT license <https://lodash.com/license>
|
6
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
7
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
8
|
+
*/
|
9
|
+
|
10
|
+
/** Used as references for various `Number` constants. */
|
11
|
+
var INFINITY = 1 / 0;
|
12
|
+
|
13
|
+
/** `Object#toString` result references. */
|
14
|
+
var symbolTag = '[object Symbol]';
|
15
|
+
|
16
|
+
/** Used to match words composed of alphanumeric characters. */
|
17
|
+
var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
18
|
+
|
19
|
+
/** Used to match Latin Unicode letters (excluding mathematical operators). */
|
20
|
+
var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
|
21
|
+
|
22
|
+
/** Used to compose unicode character classes. */
|
23
|
+
var rsAstralRange = '\\ud800-\\udfff',
|
24
|
+
rsComboMarksRange = '\\u0300-\\u036f\\ufe20-\\ufe23',
|
25
|
+
rsComboSymbolsRange = '\\u20d0-\\u20f0',
|
26
|
+
rsDingbatRange = '\\u2700-\\u27bf',
|
27
|
+
rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
|
28
|
+
rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
|
29
|
+
rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
|
30
|
+
rsPunctuationRange = '\\u2000-\\u206f',
|
31
|
+
rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
|
32
|
+
rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
|
33
|
+
rsVarRange = '\\ufe0e\\ufe0f',
|
34
|
+
rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
|
35
|
+
|
36
|
+
/** Used to compose unicode capture groups. */
|
37
|
+
var rsApos = "['\u2019]",
|
38
|
+
rsBreak = '[' + rsBreakRange + ']',
|
39
|
+
rsCombo = '[' + rsComboMarksRange + rsComboSymbolsRange + ']',
|
40
|
+
rsDigits = '\\d+',
|
41
|
+
rsDingbat = '[' + rsDingbatRange + ']',
|
42
|
+
rsLower = '[' + rsLowerRange + ']',
|
43
|
+
rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
|
44
|
+
rsFitz = '\\ud83c[\\udffb-\\udfff]',
|
45
|
+
rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
|
46
|
+
rsNonAstral = '[^' + rsAstralRange + ']',
|
47
|
+
rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
|
48
|
+
rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
|
49
|
+
rsUpper = '[' + rsUpperRange + ']',
|
50
|
+
rsZWJ = '\\u200d';
|
51
|
+
|
52
|
+
/** Used to compose unicode regexes. */
|
53
|
+
var rsLowerMisc = '(?:' + rsLower + '|' + rsMisc + ')',
|
54
|
+
rsUpperMisc = '(?:' + rsUpper + '|' + rsMisc + ')',
|
55
|
+
rsOptLowerContr = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
|
56
|
+
rsOptUpperContr = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
|
57
|
+
reOptMod = rsModifier + '?',
|
58
|
+
rsOptVar = '[' + rsVarRange + ']?',
|
59
|
+
rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
|
60
|
+
rsSeq = rsOptVar + reOptMod + rsOptJoin,
|
61
|
+
rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq;
|
62
|
+
|
63
|
+
/** Used to match apostrophes. */
|
64
|
+
var reApos = RegExp(rsApos, 'g');
|
65
|
+
|
66
|
+
/**
|
67
|
+
* Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
|
68
|
+
* [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
|
69
|
+
*/
|
70
|
+
var reComboMark = RegExp(rsCombo, 'g');
|
71
|
+
|
72
|
+
/** Used to match complex or compound words. */
|
73
|
+
var reUnicodeWord = RegExp([
|
74
|
+
rsUpper + '?' + rsLower + '+' + rsOptLowerContr + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
|
75
|
+
rsUpperMisc + '+' + rsOptUpperContr + '(?=' + [rsBreak, rsUpper + rsLowerMisc, '$'].join('|') + ')',
|
76
|
+
rsUpper + '?' + rsLowerMisc + '+' + rsOptLowerContr,
|
77
|
+
rsUpper + '+' + rsOptUpperContr,
|
78
|
+
rsDigits,
|
79
|
+
rsEmoji
|
80
|
+
].join('|'), 'g');
|
81
|
+
|
82
|
+
/** Used to detect strings that need a more robust regexp to match words. */
|
83
|
+
var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
84
|
+
|
85
|
+
/** Used to map Latin Unicode letters to basic Latin letters. */
|
86
|
+
var deburredLetters = {
|
87
|
+
// Latin-1 Supplement block.
|
88
|
+
'\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
|
89
|
+
'\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
|
90
|
+
'\xc7': 'C', '\xe7': 'c',
|
91
|
+
'\xd0': 'D', '\xf0': 'd',
|
92
|
+
'\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
|
93
|
+
'\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
|
94
|
+
'\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
|
95
|
+
'\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
|
96
|
+
'\xd1': 'N', '\xf1': 'n',
|
97
|
+
'\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
|
98
|
+
'\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
|
99
|
+
'\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
|
100
|
+
'\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
|
101
|
+
'\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
|
102
|
+
'\xc6': 'Ae', '\xe6': 'ae',
|
103
|
+
'\xde': 'Th', '\xfe': 'th',
|
104
|
+
'\xdf': 'ss',
|
105
|
+
// Latin Extended-A block.
|
106
|
+
'\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
|
107
|
+
'\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
|
108
|
+
'\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
|
109
|
+
'\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
|
110
|
+
'\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
|
111
|
+
'\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
|
112
|
+
'\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
|
113
|
+
'\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
|
114
|
+
'\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
|
115
|
+
'\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
|
116
|
+
'\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
|
117
|
+
'\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
|
118
|
+
'\u0134': 'J', '\u0135': 'j',
|
119
|
+
'\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
|
120
|
+
'\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
|
121
|
+
'\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
|
122
|
+
'\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
|
123
|
+
'\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
|
124
|
+
'\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
|
125
|
+
'\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
|
126
|
+
'\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
|
127
|
+
'\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
|
128
|
+
'\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
|
129
|
+
'\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
|
130
|
+
'\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
|
131
|
+
'\u0163': 't', '\u0165': 't', '\u0167': 't',
|
132
|
+
'\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
|
133
|
+
'\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
|
134
|
+
'\u0174': 'W', '\u0175': 'w',
|
135
|
+
'\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
|
136
|
+
'\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
|
137
|
+
'\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
|
138
|
+
'\u0132': 'IJ', '\u0133': 'ij',
|
139
|
+
'\u0152': 'Oe', '\u0153': 'oe',
|
140
|
+
'\u0149': "'n", '\u017f': 'ss'
|
141
|
+
};
|
142
|
+
|
143
|
+
/** Detect free variable `global` from Node.js. */
|
144
|
+
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
|
145
|
+
|
146
|
+
/** Detect free variable `self`. */
|
147
|
+
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
148
|
+
|
149
|
+
/** Used as a reference to the global object. */
|
150
|
+
var root = freeGlobal || freeSelf || Function('return this')();
|
151
|
+
|
152
|
+
/**
|
153
|
+
* A specialized version of `_.reduce` for arrays without support for
|
154
|
+
* iteratee shorthands.
|
155
|
+
*
|
156
|
+
* @private
|
157
|
+
* @param {Array} [array] The array to iterate over.
|
158
|
+
* @param {Function} iteratee The function invoked per iteration.
|
159
|
+
* @param {*} [accumulator] The initial value.
|
160
|
+
* @param {boolean} [initAccum] Specify using the first element of `array` as
|
161
|
+
* the initial value.
|
162
|
+
* @returns {*} Returns the accumulated value.
|
163
|
+
*/
|
164
|
+
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
165
|
+
var index = -1,
|
166
|
+
length = array ? array.length : 0;
|
167
|
+
|
168
|
+
if (initAccum && length) {
|
169
|
+
accumulator = array[++index];
|
170
|
+
}
|
171
|
+
while (++index < length) {
|
172
|
+
accumulator = iteratee(accumulator, array[index], index, array);
|
173
|
+
}
|
174
|
+
return accumulator;
|
175
|
+
}
|
176
|
+
|
177
|
+
/**
|
178
|
+
* Splits an ASCII `string` into an array of its words.
|
179
|
+
*
|
180
|
+
* @private
|
181
|
+
* @param {string} The string to inspect.
|
182
|
+
* @returns {Array} Returns the words of `string`.
|
183
|
+
*/
|
184
|
+
function asciiWords(string) {
|
185
|
+
return string.match(reAsciiWord) || [];
|
186
|
+
}
|
187
|
+
|
188
|
+
/**
|
189
|
+
* The base implementation of `_.propertyOf` without support for deep paths.
|
190
|
+
*
|
191
|
+
* @private
|
192
|
+
* @param {Object} object The object to query.
|
193
|
+
* @returns {Function} Returns the new accessor function.
|
194
|
+
*/
|
195
|
+
function basePropertyOf(object) {
|
196
|
+
return function(key) {
|
197
|
+
return object == null ? undefined : object[key];
|
198
|
+
};
|
199
|
+
}
|
200
|
+
|
201
|
+
/**
|
202
|
+
* Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
|
203
|
+
* letters to basic Latin letters.
|
204
|
+
*
|
205
|
+
* @private
|
206
|
+
* @param {string} letter The matched letter to deburr.
|
207
|
+
* @returns {string} Returns the deburred letter.
|
208
|
+
*/
|
209
|
+
var deburrLetter = basePropertyOf(deburredLetters);
|
210
|
+
|
211
|
+
/**
|
212
|
+
* Checks if `string` contains a word composed of Unicode symbols.
|
213
|
+
*
|
214
|
+
* @private
|
215
|
+
* @param {string} string The string to inspect.
|
216
|
+
* @returns {boolean} Returns `true` if a word is found, else `false`.
|
217
|
+
*/
|
218
|
+
function hasUnicodeWord(string) {
|
219
|
+
return reHasUnicodeWord.test(string);
|
220
|
+
}
|
221
|
+
|
222
|
+
/**
|
223
|
+
* Splits a Unicode `string` into an array of its words.
|
224
|
+
*
|
225
|
+
* @private
|
226
|
+
* @param {string} The string to inspect.
|
227
|
+
* @returns {Array} Returns the words of `string`.
|
228
|
+
*/
|
229
|
+
function unicodeWords(string) {
|
230
|
+
return string.match(reUnicodeWord) || [];
|
231
|
+
}
|
232
|
+
|
233
|
+
/** Used for built-in method references. */
|
234
|
+
var objectProto = Object.prototype;
|
235
|
+
|
236
|
+
/**
|
237
|
+
* Used to resolve the
|
238
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
239
|
+
* of values.
|
240
|
+
*/
|
241
|
+
var objectToString = objectProto.toString;
|
242
|
+
|
243
|
+
/** Built-in value references. */
|
244
|
+
var Symbol = root.Symbol;
|
245
|
+
|
246
|
+
/** Used to convert symbols to primitives and strings. */
|
247
|
+
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
248
|
+
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
249
|
+
|
250
|
+
/**
|
251
|
+
* The base implementation of `_.toString` which doesn't convert nullish
|
252
|
+
* values to empty strings.
|
253
|
+
*
|
254
|
+
* @private
|
255
|
+
* @param {*} value The value to process.
|
256
|
+
* @returns {string} Returns the string.
|
257
|
+
*/
|
258
|
+
function baseToString(value) {
|
259
|
+
// Exit early for strings to avoid a performance hit in some environments.
|
260
|
+
if (typeof value == 'string') {
|
261
|
+
return value;
|
262
|
+
}
|
263
|
+
if (isSymbol(value)) {
|
264
|
+
return symbolToString ? symbolToString.call(value) : '';
|
265
|
+
}
|
266
|
+
var result = (value + '');
|
267
|
+
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
268
|
+
}
|
269
|
+
|
270
|
+
/**
|
271
|
+
* Creates a function like `_.camelCase`.
|
272
|
+
*
|
273
|
+
* @private
|
274
|
+
* @param {Function} callback The function to combine each word.
|
275
|
+
* @returns {Function} Returns the new compounder function.
|
276
|
+
*/
|
277
|
+
function createCompounder(callback) {
|
278
|
+
return function(string) {
|
279
|
+
return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
|
280
|
+
};
|
281
|
+
}
|
282
|
+
|
283
|
+
/**
|
284
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
285
|
+
* and has a `typeof` result of "object".
|
286
|
+
*
|
287
|
+
* @static
|
288
|
+
* @memberOf _
|
289
|
+
* @since 4.0.0
|
290
|
+
* @category Lang
|
291
|
+
* @param {*} value The value to check.
|
292
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
293
|
+
* @example
|
294
|
+
*
|
295
|
+
* _.isObjectLike({});
|
296
|
+
* // => true
|
297
|
+
*
|
298
|
+
* _.isObjectLike([1, 2, 3]);
|
299
|
+
* // => true
|
300
|
+
*
|
301
|
+
* _.isObjectLike(_.noop);
|
302
|
+
* // => false
|
303
|
+
*
|
304
|
+
* _.isObjectLike(null);
|
305
|
+
* // => false
|
306
|
+
*/
|
307
|
+
function isObjectLike(value) {
|
308
|
+
return !!value && typeof value == 'object';
|
309
|
+
}
|
310
|
+
|
311
|
+
/**
|
312
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
313
|
+
*
|
314
|
+
* @static
|
315
|
+
* @memberOf _
|
316
|
+
* @since 4.0.0
|
317
|
+
* @category Lang
|
318
|
+
* @param {*} value The value to check.
|
319
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
320
|
+
* @example
|
321
|
+
*
|
322
|
+
* _.isSymbol(Symbol.iterator);
|
323
|
+
* // => true
|
324
|
+
*
|
325
|
+
* _.isSymbol('abc');
|
326
|
+
* // => false
|
327
|
+
*/
|
328
|
+
function isSymbol(value) {
|
329
|
+
return typeof value == 'symbol' ||
|
330
|
+
(isObjectLike(value) && objectToString.call(value) == symbolTag);
|
331
|
+
}
|
332
|
+
|
333
|
+
/**
|
334
|
+
* Converts `value` to a string. An empty string is returned for `null`
|
335
|
+
* and `undefined` values. The sign of `-0` is preserved.
|
336
|
+
*
|
337
|
+
* @static
|
338
|
+
* @memberOf _
|
339
|
+
* @since 4.0.0
|
340
|
+
* @category Lang
|
341
|
+
* @param {*} value The value to process.
|
342
|
+
* @returns {string} Returns the string.
|
343
|
+
* @example
|
344
|
+
*
|
345
|
+
* _.toString(null);
|
346
|
+
* // => ''
|
347
|
+
*
|
348
|
+
* _.toString(-0);
|
349
|
+
* // => '-0'
|
350
|
+
*
|
351
|
+
* _.toString([1, 2, 3]);
|
352
|
+
* // => '1,2,3'
|
353
|
+
*/
|
354
|
+
function toString(value) {
|
355
|
+
return value == null ? '' : baseToString(value);
|
356
|
+
}
|
357
|
+
|
358
|
+
/**
|
359
|
+
* Deburrs `string` by converting
|
360
|
+
* [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
|
361
|
+
* and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
|
362
|
+
* letters to basic Latin letters and removing
|
363
|
+
* [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
|
364
|
+
*
|
365
|
+
* @static
|
366
|
+
* @memberOf _
|
367
|
+
* @since 3.0.0
|
368
|
+
* @category String
|
369
|
+
* @param {string} [string=''] The string to deburr.
|
370
|
+
* @returns {string} Returns the deburred string.
|
371
|
+
* @example
|
372
|
+
*
|
373
|
+
* _.deburr('déjà vu');
|
374
|
+
* // => 'deja vu'
|
375
|
+
*/
|
376
|
+
function deburr(string) {
|
377
|
+
string = toString(string);
|
378
|
+
return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');
|
379
|
+
}
|
380
|
+
|
381
|
+
/**
|
382
|
+
* Converts `string` to
|
383
|
+
* [snake case](https://en.wikipedia.org/wiki/Snake_case).
|
384
|
+
*
|
385
|
+
* @static
|
386
|
+
* @memberOf _
|
387
|
+
* @since 3.0.0
|
388
|
+
* @category String
|
389
|
+
* @param {string} [string=''] The string to convert.
|
390
|
+
* @returns {string} Returns the snake cased string.
|
391
|
+
* @example
|
392
|
+
*
|
393
|
+
* _.snakeCase('Foo Bar');
|
394
|
+
* // => 'foo_bar'
|
395
|
+
*
|
396
|
+
* _.snakeCase('fooBar');
|
397
|
+
* // => 'foo_bar'
|
398
|
+
*
|
399
|
+
* _.snakeCase('--FOO-BAR--');
|
400
|
+
* // => 'foo_bar'
|
401
|
+
*/
|
402
|
+
var snakeCase = createCompounder(function(result, word, index) {
|
403
|
+
return result + (index ? '_' : '') + word.toLowerCase();
|
404
|
+
});
|
405
|
+
|
406
|
+
/**
|
407
|
+
* Splits `string` into an array of its words.
|
408
|
+
*
|
409
|
+
* @static
|
410
|
+
* @memberOf _
|
411
|
+
* @since 3.0.0
|
412
|
+
* @category String
|
413
|
+
* @param {string} [string=''] The string to inspect.
|
414
|
+
* @param {RegExp|string} [pattern] The pattern to match words.
|
415
|
+
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
|
416
|
+
* @returns {Array} Returns the words of `string`.
|
417
|
+
* @example
|
418
|
+
*
|
419
|
+
* _.words('fred, barney, & pebbles');
|
420
|
+
* // => ['fred', 'barney', 'pebbles']
|
421
|
+
*
|
422
|
+
* _.words('fred, barney, & pebbles', /[^, ]+/g);
|
423
|
+
* // => ['fred', 'barney', '&', 'pebbles']
|
424
|
+
*/
|
425
|
+
function words(string, pattern, guard) {
|
426
|
+
string = toString(string);
|
427
|
+
pattern = guard ? undefined : pattern;
|
428
|
+
|
429
|
+
if (pattern === undefined) {
|
430
|
+
return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
|
431
|
+
}
|
432
|
+
return string.match(pattern) || [];
|
433
|
+
}
|
434
|
+
|
435
|
+
module.exports = snakeCase;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
{
|
2
|
+
"name": "lodash.snakecase",
|
3
|
+
"version": "4.1.1",
|
4
|
+
"description": "The lodash method `_.snakeCase` exported as a module.",
|
5
|
+
"homepage": "https://lodash.com/",
|
6
|
+
"icon": "https://lodash.com/icon.svg",
|
7
|
+
"license": "MIT",
|
8
|
+
"keywords": "lodash-modularized, snakecase",
|
9
|
+
"author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
|
10
|
+
"contributors": [
|
11
|
+
"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
|
12
|
+
"Blaine Bublitz <blaine.bublitz@gmail.com> (https://github.com/phated)",
|
13
|
+
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
14
|
+
],
|
15
|
+
"repository": "lodash/lodash",
|
16
|
+
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }
|
17
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-api-construct",
|
3
|
-
"version": "1.18.
|
3
|
+
"version": "1.18.8",
|
4
4
|
"description": "AppSync GraphQL Api Construct using Amplify GraphQL Transformer.",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -146,6 +146,7 @@
|
|
146
146
|
"libphonenumber-js",
|
147
147
|
"lodash",
|
148
148
|
"lodash.mergewith",
|
149
|
+
"lodash.snakecase",
|
149
150
|
"md5",
|
150
151
|
"object-hash",
|
151
152
|
"pluralize",
|
@@ -158,26 +159,26 @@
|
|
158
159
|
"zod"
|
159
160
|
],
|
160
161
|
"dependencies": {
|
161
|
-
"@aws-amplify/ai-constructs": "^1.
|
162
|
+
"@aws-amplify/ai-constructs": "^1.2.2",
|
162
163
|
"@aws-amplify/backend-output-schemas": "^1.0.0",
|
163
164
|
"@aws-amplify/backend-output-storage": "^1.0.0",
|
164
|
-
"@aws-amplify/graphql-auth-transformer": "4.1.
|
165
|
-
"@aws-amplify/graphql-conversation-transformer": "1.1.
|
166
|
-
"@aws-amplify/graphql-default-value-transformer": "3.1.
|
165
|
+
"@aws-amplify/graphql-auth-transformer": "4.1.12",
|
166
|
+
"@aws-amplify/graphql-conversation-transformer": "1.1.7",
|
167
|
+
"@aws-amplify/graphql-default-value-transformer": "3.1.9",
|
167
168
|
"@aws-amplify/graphql-directives": "2.6.1",
|
168
|
-
"@aws-amplify/graphql-function-transformer": "3.1.
|
169
|
-
"@aws-amplify/graphql-generation-transformer": "1.1.
|
170
|
-
"@aws-amplify/graphql-http-transformer": "3.0.
|
171
|
-
"@aws-amplify/graphql-index-transformer": "3.0.
|
172
|
-
"@aws-amplify/graphql-maps-to-transformer": "4.0.
|
173
|
-
"@aws-amplify/graphql-model-transformer": "3.1.
|
174
|
-
"@aws-amplify/graphql-predictions-transformer": "3.0.
|
175
|
-
"@aws-amplify/graphql-relational-transformer": "3.1.
|
176
|
-
"@aws-amplify/graphql-searchable-transformer": "3.0.
|
177
|
-
"@aws-amplify/graphql-sql-transformer": "0.4.
|
178
|
-
"@aws-amplify/graphql-transformer": "2.2.
|
179
|
-
"@aws-amplify/graphql-transformer-core": "3.3.
|
180
|
-
"@aws-amplify/graphql-transformer-interfaces": "4.2.
|
169
|
+
"@aws-amplify/graphql-function-transformer": "3.1.11",
|
170
|
+
"@aws-amplify/graphql-generation-transformer": "1.1.5",
|
171
|
+
"@aws-amplify/graphql-http-transformer": "3.0.14",
|
172
|
+
"@aws-amplify/graphql-index-transformer": "3.0.14",
|
173
|
+
"@aws-amplify/graphql-maps-to-transformer": "4.0.14",
|
174
|
+
"@aws-amplify/graphql-model-transformer": "3.1.6",
|
175
|
+
"@aws-amplify/graphql-predictions-transformer": "3.0.14",
|
176
|
+
"@aws-amplify/graphql-relational-transformer": "3.1.6",
|
177
|
+
"@aws-amplify/graphql-searchable-transformer": "3.0.14",
|
178
|
+
"@aws-amplify/graphql-sql-transformer": "0.4.14",
|
179
|
+
"@aws-amplify/graphql-transformer": "2.2.7",
|
180
|
+
"@aws-amplify/graphql-transformer-core": "3.3.6",
|
181
|
+
"@aws-amplify/graphql-transformer-interfaces": "4.2.3",
|
181
182
|
"@aws-amplify/platform-core": "^1.0.0",
|
182
183
|
"@aws-amplify/plugin-types": "^1.0.0",
|
183
184
|
"@aws-crypto/crc32": "5.2.0",
|
@@ -270,6 +271,7 @@
|
|
270
271
|
"libphonenumber-js": "1.9.47",
|
271
272
|
"lodash": "^4.17.21",
|
272
273
|
"lodash.mergewith": "^4.6.2",
|
274
|
+
"lodash.snakecase": "^4.1.1",
|
273
275
|
"md5": "^2.2.1",
|
274
276
|
"object-hash": "^3.0.0",
|
275
277
|
"pluralize": "8.0.0",
|
@@ -282,10 +284,10 @@
|
|
282
284
|
"zod": "^3.22.2"
|
283
285
|
},
|
284
286
|
"devDependencies": {
|
285
|
-
"@aws-amplify/graphql-transformer-test-utils": "1.0.
|
287
|
+
"@aws-amplify/graphql-transformer-test-utils": "1.0.13",
|
286
288
|
"@types/fs-extra": "^8.0.1",
|
287
289
|
"@types/node": "^18.0.0",
|
288
|
-
"aws-cdk-lib": "2.
|
290
|
+
"aws-cdk-lib": "2.177.0",
|
289
291
|
"constructs": "10.3.0",
|
290
292
|
"jsii": "^5.4.23",
|
291
293
|
"jsii-docgen": "9.1.2",
|
@@ -295,7 +297,7 @@
|
|
295
297
|
"ts-node": "^8.10.1"
|
296
298
|
},
|
297
299
|
"peerDependencies": {
|
298
|
-
"aws-cdk-lib": "^2.
|
300
|
+
"aws-cdk-lib": "^2.177.0",
|
299
301
|
"constructs": "^10.3.0"
|
300
302
|
},
|
301
303
|
"stability": "stable",
|
@@ -312,5 +314,5 @@
|
|
312
314
|
"outDir": "lib"
|
313
315
|
}
|
314
316
|
},
|
315
|
-
"gitHead": "
|
317
|
+
"gitHead": "9b1cc5cad0211ae259c9d98bdf6e847a41d9c615"
|
316
318
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as path from 'path';
|
2
2
|
import { Construct } from 'constructs';
|
3
3
|
import { ExecuteTransformConfig, executeTransform } from '@aws-amplify/graphql-transformer';
|
4
|
-
import { NestedStack, Stack, Annotations } from 'aws-cdk-lib';
|
4
|
+
import { NestedStack, Stack, Annotations, FeatureFlags } from 'aws-cdk-lib';
|
5
5
|
import { AttributionMetadataStorage, StackMetadataBackendOutputStorageStrategy } from '@aws-amplify/backend-output-storage';
|
6
6
|
import { graphqlOutputKey } from '@aws-amplify/backend-output-schemas';
|
7
7
|
import type { GraphqlOutput, AwsAppsyncAuthenticationType } from '@aws-amplify/backend-output-schemas';
|
@@ -146,6 +146,12 @@ export class AmplifyGraphqlApi extends Construct {
|
|
146
146
|
super(scope, id);
|
147
147
|
this.stack = Stack.of(scope);
|
148
148
|
|
149
|
+
// Fall back to default true if no feature flag is provided, otherwise honor the feature flag value provided
|
150
|
+
this.node.setContext(
|
151
|
+
'@aws-cdk/aws-iam:oidcRejectUnauthorizedConnections',
|
152
|
+
FeatureFlags.of(this).isEnabled('@aws-cdk/aws-iam:oidcRejectUnauthorizedConnections') ?? true,
|
153
|
+
);
|
154
|
+
|
149
155
|
validateNoOtherAmplifyGraphqlApiInStack(this);
|
150
156
|
|
151
157
|
const {
|