@epilot360/icons 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (459) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +15 -0
  3. package/dist/bundle.js +2 -0
  4. package/dist/bundle.js.map +1 -0
  5. package/iac/node_modules/@balena/dockerignore/LICENSE.md +206 -0
  6. package/iac/node_modules/@balena/dockerignore/README.md +261 -0
  7. package/iac/node_modules/@cspotcode/source-map-support/LICENSE.md +21 -0
  8. package/iac/node_modules/@cspotcode/source-map-support/README.md +289 -0
  9. package/iac/node_modules/@jridgewell/resolve-uri/LICENSE +19 -0
  10. package/iac/node_modules/@jridgewell/resolve-uri/README.md +40 -0
  11. package/iac/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map +1 -0
  12. package/iac/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map +1 -0
  13. package/iac/node_modules/@jridgewell/sourcemap-codec/LICENSE +21 -0
  14. package/iac/node_modules/@jridgewell/sourcemap-codec/README.md +200 -0
  15. package/iac/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +1 -0
  16. package/iac/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +1 -0
  17. package/iac/node_modules/@jridgewell/trace-mapping/LICENSE +19 -0
  18. package/iac/node_modules/@jridgewell/trace-mapping/README.md +193 -0
  19. package/iac/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +1 -0
  20. package/iac/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +1 -0
  21. package/iac/node_modules/@tsconfig/node10/LICENSE +21 -0
  22. package/iac/node_modules/@tsconfig/node10/README.md +40 -0
  23. package/iac/node_modules/@tsconfig/node12/LICENSE +21 -0
  24. package/iac/node_modules/@tsconfig/node12/README.md +40 -0
  25. package/iac/node_modules/@tsconfig/node14/LICENSE +21 -0
  26. package/iac/node_modules/@tsconfig/node14/README.md +40 -0
  27. package/iac/node_modules/@tsconfig/node16/LICENSE +21 -0
  28. package/iac/node_modules/@tsconfig/node16/README.md +40 -0
  29. package/iac/node_modules/@types/jest/LICENSE +21 -0
  30. package/iac/node_modules/@types/jest/README.md +17 -0
  31. package/iac/node_modules/@types/node/LICENSE +21 -0
  32. package/iac/node_modules/@types/node/README.md +16 -0
  33. package/iac/node_modules/@types/prettier/LICENSE +21 -0
  34. package/iac/node_modules/@types/prettier/README.md +16 -0
  35. package/iac/node_modules/acorn/LICENSE +21 -0
  36. package/iac/node_modules/acorn/README.md +273 -0
  37. package/iac/node_modules/acorn-walk/LICENSE +21 -0
  38. package/iac/node_modules/acorn-walk/README.md +126 -0
  39. package/iac/node_modules/ansi-regex/license +9 -0
  40. package/iac/node_modules/ansi-regex/readme.md +78 -0
  41. package/iac/node_modules/ansi-styles/license +9 -0
  42. package/iac/node_modules/ansi-styles/readme.md +144 -0
  43. package/iac/node_modules/arg/LICENSE.md +21 -0
  44. package/iac/node_modules/arg/README.md +280 -0
  45. package/iac/node_modules/at-least-node/LICENSE +6 -0
  46. package/iac/node_modules/at-least-node/README.md +25 -0
  47. package/iac/node_modules/aws-cdk/LICENSE +201 -0
  48. package/iac/node_modules/aws-cdk/README.md +742 -0
  49. package/iac/node_modules/aws-cdk/lib/init-templates/LICENSE +16 -0
  50. package/iac/node_modules/aws-cdk/lib/init-templates/app/csharp/README.md +14 -0
  51. package/iac/node_modules/aws-cdk/lib/init-templates/app/fsharp/README.md +18 -0
  52. package/iac/node_modules/aws-cdk/lib/init-templates/app/go/README.md +12 -0
  53. package/iac/node_modules/aws-cdk/lib/init-templates/app/java/README.md +18 -0
  54. package/iac/node_modules/aws-cdk/lib/init-templates/app/javascript/README.md +12 -0
  55. package/iac/node_modules/aws-cdk/lib/init-templates/app/python/README.template.md +58 -0
  56. package/iac/node_modules/aws-cdk/lib/init-templates/app/typescript/README.md +14 -0
  57. package/iac/node_modules/aws-cdk/lib/init-templates/lib/typescript/README.template.md +12 -0
  58. package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/csharp/README.template.md +19 -0
  59. package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/fsharp/README.template.md +20 -0
  60. package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/go/README.md +12 -0
  61. package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/java/README.template.md +19 -0
  62. package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/javascript/README.template.md +13 -0
  63. package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/python/README.template.md +65 -0
  64. package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/typescript/README.template.md +15 -0
  65. package/iac/node_modules/aws-cdk/test/integ/cli/README.md +48 -0
  66. package/iac/node_modules/aws-cdk/test/integ/cli-regression-patches/README.md +54 -0
  67. package/iac/node_modules/aws-cdk-lib/LICENSE +201 -0
  68. package/iac/node_modules/aws-cdk-lib/README.md +1119 -0
  69. package/iac/node_modules/aws-cdk-lib/alexa-ask/README.md +27 -0
  70. package/iac/node_modules/aws-cdk-lib/assertions/README.md +571 -0
  71. package/iac/node_modules/aws-cdk-lib/assets/README.md +4 -0
  72. package/iac/node_modules/aws-cdk-lib/aws-accessanalyzer/README.md +27 -0
  73. package/iac/node_modules/aws-cdk-lib/aws-acmpca/README.md +59 -0
  74. package/iac/node_modules/aws-cdk-lib/aws-amazonmq/README.md +27 -0
  75. package/iac/node_modules/aws-cdk-lib/aws-amplify/README.md +32 -0
  76. package/iac/node_modules/aws-cdk-lib/aws-amplifyuibuilder/README.md +27 -0
  77. package/iac/node_modules/aws-cdk-lib/aws-apigateway/README.md +1335 -0
  78. package/iac/node_modules/aws-cdk-lib/aws-apigatewayv2/README.md +32 -0
  79. package/iac/node_modules/aws-cdk-lib/aws-appconfig/README.md +27 -0
  80. package/iac/node_modules/aws-cdk-lib/aws-appflow/README.md +27 -0
  81. package/iac/node_modules/aws-cdk-lib/aws-appintegrations/README.md +27 -0
  82. package/iac/node_modules/aws-cdk-lib/aws-applicationautoscaling/README.md +246 -0
  83. package/iac/node_modules/aws-cdk-lib/aws-applicationinsights/README.md +27 -0
  84. package/iac/node_modules/aws-cdk-lib/aws-appmesh/README.md +883 -0
  85. package/iac/node_modules/aws-cdk-lib/aws-apprunner/README.md +32 -0
  86. package/iac/node_modules/aws-cdk-lib/aws-appstream/README.md +27 -0
  87. package/iac/node_modules/aws-cdk-lib/aws-appsync/README.md +32 -0
  88. package/iac/node_modules/aws-cdk-lib/aws-aps/README.md +27 -0
  89. package/iac/node_modules/aws-cdk-lib/aws-athena/README.md +27 -0
  90. package/iac/node_modules/aws-cdk-lib/aws-auditmanager/README.md +27 -0
  91. package/iac/node_modules/aws-cdk-lib/aws-autoscaling/README.md +540 -0
  92. package/iac/node_modules/aws-cdk-lib/aws-autoscaling-common/README.md +8 -0
  93. package/iac/node_modules/aws-cdk-lib/aws-autoscaling-hooktargets/README.md +18 -0
  94. package/iac/node_modules/aws-cdk-lib/aws-autoscalingplans/README.md +27 -0
  95. package/iac/node_modules/aws-cdk-lib/aws-backup/README.md +210 -0
  96. package/iac/node_modules/aws-cdk-lib/aws-batch/README.md +32 -0
  97. package/iac/node_modules/aws-cdk-lib/aws-billingconductor/README.md +27 -0
  98. package/iac/node_modules/aws-cdk-lib/aws-budgets/README.md +27 -0
  99. package/iac/node_modules/aws-cdk-lib/aws-cassandra/README.md +27 -0
  100. package/iac/node_modules/aws-cdk-lib/aws-ce/README.md +27 -0
  101. package/iac/node_modules/aws-cdk-lib/aws-certificatemanager/README.md +166 -0
  102. package/iac/node_modules/aws-cdk-lib/aws-certificatemanager/lambda-packages/dns_validated_certificate_handler/README.md +2 -0
  103. package/iac/node_modules/aws-cdk-lib/aws-certificatemanager/suffixes/README.txt +8 -0
  104. package/iac/node_modules/aws-cdk-lib/aws-chatbot/README.md +44 -0
  105. package/iac/node_modules/aws-cdk-lib/aws-cloud9/README.md +32 -0
  106. package/iac/node_modules/aws-cdk-lib/aws-cloudformation/README.md +4 -0
  107. package/iac/node_modules/aws-cdk-lib/aws-cloudfront/README.md +973 -0
  108. package/iac/node_modules/aws-cdk-lib/aws-cloudfront-origins/README.md +126 -0
  109. package/iac/node_modules/aws-cdk-lib/aws-cloudtrail/README.md +189 -0
  110. package/iac/node_modules/aws-cdk-lib/aws-cloudwatch/README.md +579 -0
  111. package/iac/node_modules/aws-cdk-lib/aws-cloudwatch-actions/README.md +43 -0
  112. package/iac/node_modules/aws-cdk-lib/aws-codeartifact/README.md +27 -0
  113. package/iac/node_modules/aws-cdk-lib/aws-codebuild/README.md +759 -0
  114. package/iac/node_modules/aws-cdk-lib/aws-codecommit/README.md +85 -0
  115. package/iac/node_modules/aws-cdk-lib/aws-codedeploy/README.md +319 -0
  116. package/iac/node_modules/aws-cdk-lib/aws-codeguruprofiler/README.md +37 -0
  117. package/iac/node_modules/aws-cdk-lib/aws-codegurureviewer/README.md +27 -0
  118. package/iac/node_modules/aws-cdk-lib/aws-codepipeline/README.md +481 -0
  119. package/iac/node_modules/aws-cdk-lib/aws-codepipeline-actions/README.md +1203 -0
  120. package/iac/node_modules/aws-cdk-lib/aws-codestar/README.md +32 -0
  121. package/iac/node_modules/aws-cdk-lib/aws-codestarconnections/README.md +27 -0
  122. package/iac/node_modules/aws-cdk-lib/aws-codestarnotifications/README.md +68 -0
  123. package/iac/node_modules/aws-cdk-lib/aws-cognito/README.md +843 -0
  124. package/iac/node_modules/aws-cdk-lib/aws-config/README.md +218 -0
  125. package/iac/node_modules/aws-cdk-lib/aws-connect/README.md +27 -0
  126. package/iac/node_modules/aws-cdk-lib/aws-controltower/README.md +27 -0
  127. package/iac/node_modules/aws-cdk-lib/aws-cur/README.md +27 -0
  128. package/iac/node_modules/aws-cdk-lib/aws-customerprofiles/README.md +27 -0
  129. package/iac/node_modules/aws-cdk-lib/aws-databrew/README.md +27 -0
  130. package/iac/node_modules/aws-cdk-lib/aws-datapipeline/README.md +27 -0
  131. package/iac/node_modules/aws-cdk-lib/aws-datasync/README.md +27 -0
  132. package/iac/node_modules/aws-cdk-lib/aws-dax/README.md +27 -0
  133. package/iac/node_modules/aws-cdk-lib/aws-detective/README.md +27 -0
  134. package/iac/node_modules/aws-cdk-lib/aws-devopsguru/README.md +27 -0
  135. package/iac/node_modules/aws-cdk-lib/aws-directoryservice/README.md +27 -0
  136. package/iac/node_modules/aws-cdk-lib/aws-dlm/README.md +27 -0
  137. package/iac/node_modules/aws-cdk-lib/aws-dms/README.md +27 -0
  138. package/iac/node_modules/aws-cdk-lib/aws-docdb/README.md +153 -0
  139. package/iac/node_modules/aws-cdk-lib/aws-dynamodb/README.md +200 -0
  140. package/iac/node_modules/aws-cdk-lib/aws-ec2/README.md +1514 -0
  141. package/iac/node_modules/aws-cdk-lib/aws-ecr/README.md +110 -0
  142. package/iac/node_modules/aws-cdk-lib/aws-ecr-assets/README.md +167 -0
  143. package/iac/node_modules/aws-cdk-lib/aws-ecs/README.md +1225 -0
  144. package/iac/node_modules/aws-cdk-lib/aws-ecs-patterns/README.md +980 -0
  145. package/iac/node_modules/aws-cdk-lib/aws-efs/README.md +154 -0
  146. package/iac/node_modules/aws-cdk-lib/aws-eks/README.md +1450 -0
  147. package/iac/node_modules/aws-cdk-lib/aws-elasticache/README.md +27 -0
  148. package/iac/node_modules/aws-cdk-lib/aws-elasticbeanstalk/README.md +27 -0
  149. package/iac/node_modules/aws-cdk-lib/aws-elasticloadbalancing/README.md +40 -0
  150. package/iac/node_modules/aws-cdk-lib/aws-elasticloadbalancingv2/README.md +569 -0
  151. package/iac/node_modules/aws-cdk-lib/aws-elasticloadbalancingv2-actions/README.md +68 -0
  152. package/iac/node_modules/aws-cdk-lib/aws-elasticloadbalancingv2-targets/README.md +4 -0
  153. package/iac/node_modules/aws-cdk-lib/aws-elasticsearch/README.md +441 -0
  154. package/iac/node_modules/aws-cdk-lib/aws-emr/README.md +27 -0
  155. package/iac/node_modules/aws-cdk-lib/aws-emrcontainers/README.md +27 -0
  156. package/iac/node_modules/aws-cdk-lib/aws-emrserverless/README.md +27 -0
  157. package/iac/node_modules/aws-cdk-lib/aws-events/README.md +249 -0
  158. package/iac/node_modules/aws-cdk-lib/aws-events-targets/README.md +339 -0
  159. package/iac/node_modules/aws-cdk-lib/aws-eventschemas/README.md +27 -0
  160. package/iac/node_modules/aws-cdk-lib/aws-evidently/README.md +27 -0
  161. package/iac/node_modules/aws-cdk-lib/aws-finspace/README.md +27 -0
  162. package/iac/node_modules/aws-cdk-lib/aws-fis/README.md +27 -0
  163. package/iac/node_modules/aws-cdk-lib/aws-fms/README.md +27 -0
  164. package/iac/node_modules/aws-cdk-lib/aws-forecast/README.md +27 -0
  165. package/iac/node_modules/aws-cdk-lib/aws-frauddetector/README.md +27 -0
  166. package/iac/node_modules/aws-cdk-lib/aws-fsx/README.md +200 -0
  167. package/iac/node_modules/aws-cdk-lib/aws-gamelift/README.md +27 -0
  168. package/iac/node_modules/aws-cdk-lib/aws-globalaccelerator/README.md +182 -0
  169. package/iac/node_modules/aws-cdk-lib/aws-globalaccelerator-endpoints/README.md +10 -0
  170. package/iac/node_modules/aws-cdk-lib/aws-glue/README.md +32 -0
  171. package/iac/node_modules/aws-cdk-lib/aws-greengrass/README.md +27 -0
  172. package/iac/node_modules/aws-cdk-lib/aws-greengrassv2/README.md +27 -0
  173. package/iac/node_modules/aws-cdk-lib/aws-groundstation/README.md +27 -0
  174. package/iac/node_modules/aws-cdk-lib/aws-guardduty/README.md +27 -0
  175. package/iac/node_modules/aws-cdk-lib/aws-healthlake/README.md +27 -0
  176. package/iac/node_modules/aws-cdk-lib/aws-iam/README.md +509 -0
  177. package/iac/node_modules/aws-cdk-lib/aws-imagebuilder/README.md +27 -0
  178. package/iac/node_modules/aws-cdk-lib/aws-inspector/README.md +27 -0
  179. package/iac/node_modules/aws-cdk-lib/aws-inspectorv2/README.md +27 -0
  180. package/iac/node_modules/aws-cdk-lib/aws-iot/README.md +32 -0
  181. package/iac/node_modules/aws-cdk-lib/aws-iot1click/README.md +27 -0
  182. package/iac/node_modules/aws-cdk-lib/aws-iotanalytics/README.md +27 -0
  183. package/iac/node_modules/aws-cdk-lib/aws-iotcoredeviceadvisor/README.md +27 -0
  184. package/iac/node_modules/aws-cdk-lib/aws-iotevents/README.md +32 -0
  185. package/iac/node_modules/aws-cdk-lib/aws-iotfleethub/README.md +27 -0
  186. package/iac/node_modules/aws-cdk-lib/aws-iotsitewise/README.md +27 -0
  187. package/iac/node_modules/aws-cdk-lib/aws-iotthingsgraph/README.md +27 -0
  188. package/iac/node_modules/aws-cdk-lib/aws-iottwinmaker/README.md +27 -0
  189. package/iac/node_modules/aws-cdk-lib/aws-iotwireless/README.md +27 -0
  190. package/iac/node_modules/aws-cdk-lib/aws-ivs/README.md +32 -0
  191. package/iac/node_modules/aws-cdk-lib/aws-kafkaconnect/README.md +27 -0
  192. package/iac/node_modules/aws-cdk-lib/aws-kendra/README.md +27 -0
  193. package/iac/node_modules/aws-cdk-lib/aws-kinesis/README.md +188 -0
  194. package/iac/node_modules/aws-cdk-lib/aws-kinesisanalytics/README.md +27 -0
  195. package/iac/node_modules/aws-cdk-lib/aws-kinesisanalyticsv2/README.md +27 -0
  196. package/iac/node_modules/aws-cdk-lib/aws-kinesisfirehose/README.md +32 -0
  197. package/iac/node_modules/aws-cdk-lib/aws-kinesisvideo/README.md +27 -0
  198. package/iac/node_modules/aws-cdk-lib/aws-kms/README.md +209 -0
  199. package/iac/node_modules/aws-cdk-lib/aws-lakeformation/README.md +27 -0
  200. package/iac/node_modules/aws-cdk-lib/aws-lambda/README.md +985 -0
  201. package/iac/node_modules/aws-cdk-lib/aws-lambda-destinations/README.md +147 -0
  202. package/iac/node_modules/aws-cdk-lib/aws-lambda-event-sources/README.md +281 -0
  203. package/iac/node_modules/aws-cdk-lib/aws-lambda-nodejs/README.md +317 -0
  204. package/iac/node_modules/aws-cdk-lib/aws-lex/README.md +27 -0
  205. package/iac/node_modules/aws-cdk-lib/aws-licensemanager/README.md +27 -0
  206. package/iac/node_modules/aws-cdk-lib/aws-lightsail/README.md +27 -0
  207. package/iac/node_modules/aws-cdk-lib/aws-location/README.md +27 -0
  208. package/iac/node_modules/aws-cdk-lib/aws-logs/README.md +322 -0
  209. package/iac/node_modules/aws-cdk-lib/aws-logs-destinations/README.md +7 -0
  210. package/iac/node_modules/aws-cdk-lib/aws-lookoutequipment/README.md +27 -0
  211. package/iac/node_modules/aws-cdk-lib/aws-lookoutmetrics/README.md +27 -0
  212. package/iac/node_modules/aws-cdk-lib/aws-lookoutvision/README.md +27 -0
  213. package/iac/node_modules/aws-cdk-lib/aws-m2/README.md +27 -0
  214. package/iac/node_modules/aws-cdk-lib/aws-macie/README.md +27 -0
  215. package/iac/node_modules/aws-cdk-lib/aws-managedblockchain/README.md +27 -0
  216. package/iac/node_modules/aws-cdk-lib/aws-mediaconnect/README.md +27 -0
  217. package/iac/node_modules/aws-cdk-lib/aws-mediaconvert/README.md +27 -0
  218. package/iac/node_modules/aws-cdk-lib/aws-medialive/README.md +27 -0
  219. package/iac/node_modules/aws-cdk-lib/aws-mediapackage/README.md +27 -0
  220. package/iac/node_modules/aws-cdk-lib/aws-mediastore/README.md +27 -0
  221. package/iac/node_modules/aws-cdk-lib/aws-mediatailor/README.md +27 -0
  222. package/iac/node_modules/aws-cdk-lib/aws-memorydb/README.md +27 -0
  223. package/iac/node_modules/aws-cdk-lib/aws-msk/README.md +32 -0
  224. package/iac/node_modules/aws-cdk-lib/aws-mwaa/README.md +27 -0
  225. package/iac/node_modules/aws-cdk-lib/aws-neptune/README.md +32 -0
  226. package/iac/node_modules/aws-cdk-lib/aws-networkfirewall/README.md +27 -0
  227. package/iac/node_modules/aws-cdk-lib/aws-networkmanager/README.md +27 -0
  228. package/iac/node_modules/aws-cdk-lib/aws-nimblestudio/README.md +27 -0
  229. package/iac/node_modules/aws-cdk-lib/aws-opensearchservice/README.md +378 -0
  230. package/iac/node_modules/aws-cdk-lib/aws-opsworks/README.md +27 -0
  231. package/iac/node_modules/aws-cdk-lib/aws-opsworkscm/README.md +27 -0
  232. package/iac/node_modules/aws-cdk-lib/aws-panorama/README.md +27 -0
  233. package/iac/node_modules/aws-cdk-lib/aws-personalize/README.md +27 -0
  234. package/iac/node_modules/aws-cdk-lib/aws-pinpoint/README.md +27 -0
  235. package/iac/node_modules/aws-cdk-lib/aws-pinpointemail/README.md +27 -0
  236. package/iac/node_modules/aws-cdk-lib/aws-qldb/README.md +27 -0
  237. package/iac/node_modules/aws-cdk-lib/aws-quicksight/README.md +27 -0
  238. package/iac/node_modules/aws-cdk-lib/aws-ram/README.md +27 -0
  239. package/iac/node_modules/aws-cdk-lib/aws-rds/README.md +704 -0
  240. package/iac/node_modules/aws-cdk-lib/aws-redshift/README.md +32 -0
  241. package/iac/node_modules/aws-cdk-lib/aws-redshiftserverless/README.md +27 -0
  242. package/iac/node_modules/aws-cdk-lib/aws-refactorspaces/README.md +27 -0
  243. package/iac/node_modules/aws-cdk-lib/aws-rekognition/README.md +27 -0
  244. package/iac/node_modules/aws-cdk-lib/aws-resiliencehub/README.md +27 -0
  245. package/iac/node_modules/aws-cdk-lib/aws-resourcegroups/README.md +27 -0
  246. package/iac/node_modules/aws-cdk-lib/aws-robomaker/README.md +27 -0
  247. package/iac/node_modules/aws-cdk-lib/aws-route53/README.md +281 -0
  248. package/iac/node_modules/aws-cdk-lib/aws-route53-patterns/README.md +45 -0
  249. package/iac/node_modules/aws-cdk-lib/aws-route53-targets/README.md +181 -0
  250. package/iac/node_modules/aws-cdk-lib/aws-route53recoverycontrol/README.md +27 -0
  251. package/iac/node_modules/aws-cdk-lib/aws-route53recoveryreadiness/README.md +27 -0
  252. package/iac/node_modules/aws-cdk-lib/aws-route53resolver/README.md +32 -0
  253. package/iac/node_modules/aws-cdk-lib/aws-rum/README.md +27 -0
  254. package/iac/node_modules/aws-cdk-lib/aws-s3/README.md +581 -0
  255. package/iac/node_modules/aws-cdk-lib/aws-s3-assets/README.md +179 -0
  256. package/iac/node_modules/aws-cdk-lib/aws-s3-deployment/README.md +349 -0
  257. package/iac/node_modules/aws-cdk-lib/aws-s3-notifications/README.md +46 -0
  258. package/iac/node_modules/aws-cdk-lib/aws-s3objectlambda/README.md +32 -0
  259. package/iac/node_modules/aws-cdk-lib/aws-s3outposts/README.md +27 -0
  260. package/iac/node_modules/aws-cdk-lib/aws-sagemaker/README.md +27 -0
  261. package/iac/node_modules/aws-cdk-lib/aws-sam/README.md +27 -0
  262. package/iac/node_modules/aws-cdk-lib/aws-sdb/README.md +27 -0
  263. package/iac/node_modules/aws-cdk-lib/aws-secretsmanager/README.md +285 -0
  264. package/iac/node_modules/aws-cdk-lib/aws-securityhub/README.md +27 -0
  265. package/iac/node_modules/aws-cdk-lib/aws-servicecatalog/README.md +491 -0
  266. package/iac/node_modules/aws-cdk-lib/aws-servicecatalogappregistry/README.md +32 -0
  267. package/iac/node_modules/aws-cdk-lib/aws-servicediscovery/README.md +45 -0
  268. package/iac/node_modules/aws-cdk-lib/aws-ses/README.md +194 -0
  269. package/iac/node_modules/aws-cdk-lib/aws-ses-actions/README.md +16 -0
  270. package/iac/node_modules/aws-cdk-lib/aws-signer/README.md +41 -0
  271. package/iac/node_modules/aws-cdk-lib/aws-sns/README.md +184 -0
  272. package/iac/node_modules/aws-cdk-lib/aws-sns-subscriptions/README.md +120 -0
  273. package/iac/node_modules/aws-cdk-lib/aws-sqs/README.md +57 -0
  274. package/iac/node_modules/aws-cdk-lib/aws-ssm/README.md +99 -0
  275. package/iac/node_modules/aws-cdk-lib/aws-ssmcontacts/README.md +27 -0
  276. package/iac/node_modules/aws-cdk-lib/aws-ssmincidents/README.md +27 -0
  277. package/iac/node_modules/aws-cdk-lib/aws-sso/README.md +27 -0
  278. package/iac/node_modules/aws-cdk-lib/aws-stepfunctions/README.md +884 -0
  279. package/iac/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/README.md +1288 -0
  280. package/iac/node_modules/aws-cdk-lib/aws-supportapp/README.md +27 -0
  281. package/iac/node_modules/aws-cdk-lib/aws-synthetics/README.md +32 -0
  282. package/iac/node_modules/aws-cdk-lib/aws-timestream/README.md +27 -0
  283. package/iac/node_modules/aws-cdk-lib/aws-transfer/README.md +27 -0
  284. package/iac/node_modules/aws-cdk-lib/aws-voiceid/README.md +27 -0
  285. package/iac/node_modules/aws-cdk-lib/aws-waf/README.md +27 -0
  286. package/iac/node_modules/aws-cdk-lib/aws-wafregional/README.md +27 -0
  287. package/iac/node_modules/aws-cdk-lib/aws-wafv2/README.md +27 -0
  288. package/iac/node_modules/aws-cdk-lib/aws-wisdom/README.md +27 -0
  289. package/iac/node_modules/aws-cdk-lib/aws-workspaces/README.md +27 -0
  290. package/iac/node_modules/aws-cdk-lib/aws-xray/README.md +27 -0
  291. package/iac/node_modules/aws-cdk-lib/cloud-assembly-schema/README.md +55 -0
  292. package/iac/node_modules/aws-cdk-lib/cloud-assembly-schema/schema/README.md +5 -0
  293. package/iac/node_modules/aws-cdk-lib/cloudformation-include/README.md +466 -0
  294. package/iac/node_modules/aws-cdk-lib/core/README.md +1078 -0
  295. package/iac/node_modules/aws-cdk-lib/custom-resources/README.md +624 -0
  296. package/iac/node_modules/aws-cdk-lib/cx-api/README.md +98 -0
  297. package/iac/node_modules/aws-cdk-lib/lambda-layer-awscli/README.md +19 -0
  298. package/iac/node_modules/aws-cdk-lib/lambda-layer-kubectl/README.md +20 -0
  299. package/iac/node_modules/aws-cdk-lib/lambda-layer-node-proxy-agent/README.md +18 -0
  300. package/iac/node_modules/aws-cdk-lib/node_modules/@balena/dockerignore/LICENSE.md +206 -0
  301. package/iac/node_modules/aws-cdk-lib/node_modules/@balena/dockerignore/README.md +261 -0
  302. package/iac/node_modules/aws-cdk-lib/node_modules/at-least-node/LICENSE +6 -0
  303. package/iac/node_modules/aws-cdk-lib/node_modules/at-least-node/README.md +25 -0
  304. package/iac/node_modules/aws-cdk-lib/node_modules/balanced-match/LICENSE.md +21 -0
  305. package/iac/node_modules/aws-cdk-lib/node_modules/balanced-match/README.md +97 -0
  306. package/iac/node_modules/aws-cdk-lib/node_modules/brace-expansion/LICENSE +21 -0
  307. package/iac/node_modules/aws-cdk-lib/node_modules/brace-expansion/README.md +129 -0
  308. package/iac/node_modules/aws-cdk-lib/node_modules/case/LICENSE +22 -0
  309. package/iac/node_modules/aws-cdk-lib/node_modules/case/README.md +139 -0
  310. package/iac/node_modules/aws-cdk-lib/node_modules/case/dist/Case.min.js.map +1 -0
  311. package/iac/node_modules/aws-cdk-lib/node_modules/case/dist/Case.plus.min.js.map +1 -0
  312. package/iac/node_modules/aws-cdk-lib/node_modules/concat-map/LICENSE +18 -0
  313. package/iac/node_modules/aws-cdk-lib/node_modules/concat-map/README.markdown +62 -0
  314. package/iac/node_modules/aws-cdk-lib/node_modules/fs-extra/LICENSE +15 -0
  315. package/iac/node_modules/aws-cdk-lib/node_modules/fs-extra/README.md +264 -0
  316. package/iac/node_modules/aws-cdk-lib/node_modules/graceful-fs/LICENSE +15 -0
  317. package/iac/node_modules/aws-cdk-lib/node_modules/graceful-fs/README.md +143 -0
  318. package/iac/node_modules/aws-cdk-lib/node_modules/ignore/README.md +412 -0
  319. package/iac/node_modules/aws-cdk-lib/node_modules/jsonfile/LICENSE +15 -0
  320. package/iac/node_modules/aws-cdk-lib/node_modules/jsonfile/README.md +230 -0
  321. package/iac/node_modules/aws-cdk-lib/node_modules/jsonschema/LICENSE +21 -0
  322. package/iac/node_modules/aws-cdk-lib/node_modules/jsonschema/README.md +421 -0
  323. package/iac/node_modules/aws-cdk-lib/node_modules/lru-cache/LICENSE +15 -0
  324. package/iac/node_modules/aws-cdk-lib/node_modules/lru-cache/README.md +166 -0
  325. package/iac/node_modules/aws-cdk-lib/node_modules/minimatch/LICENSE +15 -0
  326. package/iac/node_modules/aws-cdk-lib/node_modules/minimatch/README.md +230 -0
  327. package/iac/node_modules/aws-cdk-lib/node_modules/punycode/README.md +122 -0
  328. package/iac/node_modules/aws-cdk-lib/node_modules/semver/LICENSE +15 -0
  329. package/iac/node_modules/aws-cdk-lib/node_modules/semver/README.md +568 -0
  330. package/iac/node_modules/aws-cdk-lib/node_modules/universalify/LICENSE +20 -0
  331. package/iac/node_modules/aws-cdk-lib/node_modules/universalify/README.md +76 -0
  332. package/iac/node_modules/aws-cdk-lib/node_modules/yallist/LICENSE +15 -0
  333. package/iac/node_modules/aws-cdk-lib/node_modules/yallist/README.md +204 -0
  334. package/iac/node_modules/aws-cdk-lib/node_modules/yaml/LICENSE +13 -0
  335. package/iac/node_modules/aws-cdk-lib/node_modules/yaml/README.md +127 -0
  336. package/iac/node_modules/aws-cdk-lib/pipelines/README.md +1573 -0
  337. package/iac/node_modules/aws-cdk-lib/region-info/README.md +84 -0
  338. package/iac/node_modules/aws-cdk-lib/triggers/README.md +86 -0
  339. package/iac/node_modules/balanced-match/LICENSE.md +21 -0
  340. package/iac/node_modules/balanced-match/README.md +97 -0
  341. package/iac/node_modules/brace-expansion/LICENSE +21 -0
  342. package/iac/node_modules/brace-expansion/README.md +129 -0
  343. package/iac/node_modules/buffer-from/LICENSE +21 -0
  344. package/iac/node_modules/buffer-from/readme.md +69 -0
  345. package/iac/node_modules/case/LICENSE +22 -0
  346. package/iac/node_modules/case/README.md +139 -0
  347. package/iac/node_modules/case/dist/Case.min.js.map +1 -0
  348. package/iac/node_modules/case/dist/Case.plus.min.js.map +1 -0
  349. package/iac/node_modules/chalk/license +9 -0
  350. package/iac/node_modules/chalk/node_modules/ansi-styles/license +9 -0
  351. package/iac/node_modules/chalk/node_modules/ansi-styles/readme.md +152 -0
  352. package/iac/node_modules/chalk/readme.md +341 -0
  353. package/iac/node_modules/color-convert/LICENSE +21 -0
  354. package/iac/node_modules/color-convert/README.md +68 -0
  355. package/iac/node_modules/color-name/LICENSE +8 -0
  356. package/iac/node_modules/color-name/README.md +11 -0
  357. package/iac/node_modules/concat-map/LICENSE +18 -0
  358. package/iac/node_modules/concat-map/README.markdown +62 -0
  359. package/iac/node_modules/constructs/LICENSE +202 -0
  360. package/iac/node_modules/constructs/README.md +28 -0
  361. package/iac/node_modules/create-require/LICENSE +25 -0
  362. package/iac/node_modules/create-require/README.md +46 -0
  363. package/iac/node_modules/diff/LICENSE +31 -0
  364. package/iac/node_modules/diff/README.md +207 -0
  365. package/iac/node_modules/diff-sequences/LICENSE +21 -0
  366. package/iac/node_modules/diff-sequences/README.md +404 -0
  367. package/iac/node_modules/fs-extra/LICENSE +15 -0
  368. package/iac/node_modules/fs-extra/README.md +264 -0
  369. package/iac/node_modules/fsevents/LICENSE +22 -0
  370. package/iac/node_modules/fsevents/README.md +83 -0
  371. package/iac/node_modules/graceful-fs/LICENSE +15 -0
  372. package/iac/node_modules/graceful-fs/README.md +143 -0
  373. package/iac/node_modules/has-flag/license +9 -0
  374. package/iac/node_modules/has-flag/readme.md +89 -0
  375. package/iac/node_modules/ignore/README.md +412 -0
  376. package/iac/node_modules/jest-diff/LICENSE +21 -0
  377. package/iac/node_modules/jest-diff/README.md +671 -0
  378. package/iac/node_modules/jest-get-type/LICENSE +21 -0
  379. package/iac/node_modules/jest-matcher-utils/LICENSE +21 -0
  380. package/iac/node_modules/jest-matcher-utils/README.md +24 -0
  381. package/iac/node_modules/jsonfile/LICENSE +15 -0
  382. package/iac/node_modules/jsonfile/README.md +230 -0
  383. package/iac/node_modules/jsonschema/LICENSE +21 -0
  384. package/iac/node_modules/jsonschema/README.md +421 -0
  385. package/iac/node_modules/lru-cache/LICENSE +15 -0
  386. package/iac/node_modules/lru-cache/README.md +166 -0
  387. package/iac/node_modules/make-error/LICENSE +5 -0
  388. package/iac/node_modules/make-error/README.md +112 -0
  389. package/iac/node_modules/minimatch/LICENSE +15 -0
  390. package/iac/node_modules/minimatch/README.md +230 -0
  391. package/iac/node_modules/pretty-format/LICENSE +21 -0
  392. package/iac/node_modules/pretty-format/README.md +458 -0
  393. package/iac/node_modules/punycode/README.md +122 -0
  394. package/iac/node_modules/react-is/LICENSE +21 -0
  395. package/iac/node_modules/react-is/README.md +104 -0
  396. package/iac/node_modules/semver/LICENSE +15 -0
  397. package/iac/node_modules/semver/README.md +568 -0
  398. package/iac/node_modules/source-map/LICENSE +28 -0
  399. package/iac/node_modules/source-map/README.md +742 -0
  400. package/iac/node_modules/source-map/dist/source-map.min.js.map +1 -0
  401. package/iac/node_modules/source-map-support/LICENSE.md +21 -0
  402. package/iac/node_modules/source-map-support/README.md +284 -0
  403. package/iac/node_modules/supports-color/license +9 -0
  404. package/iac/node_modules/supports-color/readme.md +76 -0
  405. package/iac/node_modules/ts-node/LICENSE +21 -0
  406. package/iac/node_modules/ts-node/README.md +1442 -0
  407. package/iac/node_modules/ts-node/dist/bin-cwd.js.map +1 -0
  408. package/iac/node_modules/ts-node/dist/bin-esm.js.map +1 -0
  409. package/iac/node_modules/ts-node/dist/bin-script-deprecated.js.map +1 -0
  410. package/iac/node_modules/ts-node/dist/bin-script.js.map +1 -0
  411. package/iac/node_modules/ts-node/dist/bin-transpile.js.map +1 -0
  412. package/iac/node_modules/ts-node/dist/bin.js.map +1 -0
  413. package/iac/node_modules/ts-node/dist/child/argv-payload.js.map +1 -0
  414. package/iac/node_modules/ts-node/dist/child/child-entrypoint.js.map +1 -0
  415. package/iac/node_modules/ts-node/dist/child/child-loader.js.map +1 -0
  416. package/iac/node_modules/ts-node/dist/child/child-require.js.map +1 -0
  417. package/iac/node_modules/ts-node/dist/child/spawn-child.js.map +1 -0
  418. package/iac/node_modules/ts-node/dist/cjs-resolve-hooks.js.map +1 -0
  419. package/iac/node_modules/ts-node/dist/configuration.js.map +1 -0
  420. package/iac/node_modules/ts-node/dist/esm.js.map +1 -0
  421. package/iac/node_modules/ts-node/dist/file-extensions.js.map +1 -0
  422. package/iac/node_modules/ts-node/dist/index.js.map +1 -0
  423. package/iac/node_modules/ts-node/dist/module-type-classifier.js.map +1 -0
  424. package/iac/node_modules/ts-node/dist/node-module-type-classifier.js.map +1 -0
  425. package/iac/node_modules/ts-node/dist/repl.js.map +1 -0
  426. package/iac/node_modules/ts-node/dist/resolver-functions.js.map +1 -0
  427. package/iac/node_modules/ts-node/dist/transpilers/swc.js.map +1 -0
  428. package/iac/node_modules/ts-node/dist/transpilers/types.js.map +1 -0
  429. package/iac/node_modules/ts-node/dist/ts-compiler-types.js.map +1 -0
  430. package/iac/node_modules/ts-node/dist/ts-internals.js.map +1 -0
  431. package/iac/node_modules/ts-node/dist/ts-transpile-module.js.map +1 -0
  432. package/iac/node_modules/ts-node/dist/tsconfig-schema.js.map +1 -0
  433. package/iac/node_modules/ts-node/dist/tsconfigs.js.map +1 -0
  434. package/iac/node_modules/ts-node/dist/util.js.map +1 -0
  435. package/iac/node_modules/ts-node/dist-raw/README.md +36 -0
  436. package/iac/node_modules/typescript/LICENSE.txt +55 -0
  437. package/iac/node_modules/typescript/README.md +104 -0
  438. package/iac/node_modules/typescript/lib/README.md +5 -0
  439. package/iac/node_modules/universalify/LICENSE +20 -0
  440. package/iac/node_modules/universalify/README.md +76 -0
  441. package/iac/node_modules/v8-compile-cache-lib/LICENSE +21 -0
  442. package/iac/node_modules/v8-compile-cache-lib/README.md +60 -0
  443. package/iac/node_modules/yallist/LICENSE +15 -0
  444. package/iac/node_modules/yallist/README.md +204 -0
  445. package/iac/node_modules/yaml/LICENSE +13 -0
  446. package/iac/node_modules/yaml/README.md +127 -0
  447. package/iac/node_modules/yn/license +9 -0
  448. package/iac/node_modules/yn/readme.md +83 -0
  449. package/index.d.ts +1 -0
  450. package/index.js +18 -0
  451. package/index.js.map +1 -0
  452. package/package.json +26 -5
  453. package/react/Edit.d.ts +3 -0
  454. package/react/Edit.js +10 -0
  455. package/react/Edit.js.map +1 -0
  456. package/react/index.d.ts +1 -0
  457. package/react/index.js +18 -0
  458. package/react/index.js.map +1 -0
  459. package/src/material-symbols.d.ts +4 -0
@@ -0,0 +1,671 @@
1
+ # jest-diff
2
+
3
+ Display differences clearly so people can review changes confidently.
4
+
5
+ The `diff` named export serializes JavaScript **values**, compares them line-by-line, and returns a string which includes comparison lines.
6
+
7
+ Two named exports compare **strings** character-by-character:
8
+
9
+ - `diffStringsUnified` returns a string.
10
+ - `diffStringsRaw` returns an array of `Diff` objects.
11
+
12
+ Three named exports compare **arrays of strings** line-by-line:
13
+
14
+ - `diffLinesUnified` and `diffLinesUnified2` return a string.
15
+ - `diffLinesRaw` returns an array of `Diff` objects.
16
+
17
+ ## Installation
18
+
19
+ To add this package as a dependency of a project, run either of the following commands:
20
+
21
+ - `npm install jest-diff`
22
+ - `yarn add jest-diff`
23
+
24
+ ## Usage of `diff()`
25
+
26
+ Given JavaScript **values**, `diff(a, b, options?)` does the following:
27
+
28
+ 1. **serialize** the values as strings using the `pretty-format` package
29
+ 2. **compare** the strings line-by-line using the `diff-sequences` package
30
+ 3. **format** the changed or common lines using the `chalk` package
31
+
32
+ To use this function, write either of the following:
33
+
34
+ - `const {diff} = require('jest-diff');` in CommonJS modules
35
+ - `import {diff} from 'jest-diff';` in ECMAScript modules
36
+
37
+ ### Example of `diff()`
38
+
39
+ ```js
40
+ const a = ['delete', 'common', 'changed from'];
41
+ const b = ['common', 'changed to', 'insert'];
42
+
43
+ const difference = diff(a, b);
44
+ ```
45
+
46
+ The returned **string** consists of:
47
+
48
+ - annotation lines: describe the two change indicators with labels, and a blank line
49
+ - comparison lines: similar to “unified” view on GitHub, but `Expected` lines are green, `Received` lines are red, and common lines are dim (by default, see Options)
50
+
51
+ ```diff
52
+ - Expected
53
+ + Received
54
+
55
+ Array [
56
+ - "delete",
57
+ "common",
58
+ - "changed from",
59
+ + "changed to",
60
+ + "insert",
61
+ ]
62
+ ```
63
+
64
+ ### Edge cases of `diff()`
65
+
66
+ Here are edge cases for the return value:
67
+
68
+ - `' Comparing two different types of values. …'` if the arguments have **different types** according to the `jest-get-type` package (instances of different classes have the same `'object'` type)
69
+ - `'Compared values have no visual difference.'` if the arguments have either **referential identity** according to `Object.is` method or **same serialization** according to the `pretty-format` package
70
+ - `null` if either argument is a so-called **asymmetric matcher** in Jasmine or Jest
71
+
72
+ ## Usage of diffStringsUnified
73
+
74
+ Given **strings**, `diffStringsUnified(a, b, options?)` does the following:
75
+
76
+ 1. **compare** the strings character-by-character using the `diff-sequences` package
77
+ 2. **clean up** small (often coincidental) common substrings, also known as chaff
78
+ 3. **format** the changed or common lines using the `chalk` package
79
+
80
+ Although the function is mainly for **multiline** strings, it compares any strings.
81
+
82
+ Write either of the following:
83
+
84
+ - `const {diffStringsUnified} = require('jest-diff');` in CommonJS modules
85
+ - `import {diffStringsUnified} from 'jest-diff';` in ECMAScript modules
86
+
87
+ ### Example of diffStringsUnified
88
+
89
+ ```js
90
+ const a = 'common\nchanged from';
91
+ const b = 'common\nchanged to';
92
+
93
+ const difference = diffStringsUnified(a, b);
94
+ ```
95
+
96
+ The returned **string** consists of:
97
+
98
+ - annotation lines: describe the two change indicators with labels, and a blank line
99
+ - comparison lines: similar to “unified” view on GitHub, and **changed substrings** have **inverse** foreground and background colors (that is, `from` has white-on-green and `to` has white-on-red, which the following example does not show)
100
+
101
+ ```diff
102
+ - Expected
103
+ + Received
104
+
105
+ common
106
+ - changed from
107
+ + changed to
108
+ ```
109
+
110
+ ### Performance of diffStringsUnified
111
+
112
+ To get the benefit of **changed substrings** within the comparison lines, a character-by-character comparison has a higher computational cost (in time and space) than a line-by-line comparison.
113
+
114
+ If the input strings can have **arbitrary length**, we recommend that the calling code set a limit, beyond which splits the strings, and then calls `diffLinesUnified` instead. For example, Jest falls back to line-by-line comparison if either string has length greater than 20K characters.
115
+
116
+ ## Usage of diffLinesUnified
117
+
118
+ Given **arrays of strings**, `diffLinesUnified(aLines, bLines, options?)` does the following:
119
+
120
+ 1. **compare** the arrays line-by-line using the `diff-sequences` package
121
+ 2. **format** the changed or common lines using the `chalk` package
122
+
123
+ You might call this function when strings have been split into lines and you do not need to see changed substrings within lines.
124
+
125
+ ### Example of diffLinesUnified
126
+
127
+ ```js
128
+ const aLines = ['delete', 'common', 'changed from'];
129
+ const bLines = ['common', 'changed to', 'insert'];
130
+
131
+ const difference = diffLinesUnified(aLines, bLines);
132
+ ```
133
+
134
+ ```diff
135
+ - Expected
136
+ + Received
137
+
138
+ - delete
139
+ common
140
+ - changed from
141
+ + changed to
142
+ + insert
143
+ ```
144
+
145
+ ### Edge cases of diffLinesUnified or diffStringsUnified
146
+
147
+ Here are edge cases for arguments and return values:
148
+
149
+ - both `a` and `b` are empty strings: no comparison lines
150
+ - only `a` is empty string: all comparison lines have `bColor` and `bIndicator` (see Options)
151
+ - only `b` is empty string: all comparison lines have `aColor` and `aIndicator` (see Options)
152
+ - `a` and `b` are equal non-empty strings: all comparison lines have `commonColor` and `commonIndicator` (see Options)
153
+
154
+ ## Usage of diffLinesUnified2
155
+
156
+ Given two **pairs** of arrays of strings, `diffLinesUnified2(aLinesDisplay, bLinesDisplay, aLinesCompare, bLinesCompare, options?)` does the following:
157
+
158
+ 1. **compare** the pair of `Compare` arrays line-by-line using the `diff-sequences` package
159
+ 2. **format** the corresponding lines in the pair of `Display` arrays using the `chalk` package
160
+
161
+ Jest calls this function to consider lines as common instead of changed if the only difference is indentation.
162
+
163
+ You might call this function for case insensitive or Unicode equivalence comparison of lines.
164
+
165
+ ### Example of diffLinesUnified2
166
+
167
+ ```js
168
+ import {format} from 'pretty-format';
169
+
170
+ const a = {
171
+ text: 'Ignore indentation in serialized object',
172
+ time: '2019-09-19T12:34:56.000Z',
173
+ type: 'CREATE_ITEM',
174
+ };
175
+ const b = {
176
+ payload: {
177
+ text: 'Ignore indentation in serialized object',
178
+ time: '2019-09-19T12:34:56.000Z',
179
+ },
180
+ type: 'CREATE_ITEM',
181
+ };
182
+
183
+ const difference = diffLinesUnified2(
184
+ // serialize with indentation to display lines
185
+ format(a).split('\n'),
186
+ format(b).split('\n'),
187
+ // serialize without indentation to compare lines
188
+ format(a, {indent: 0}).split('\n'),
189
+ format(b, {indent: 0}).split('\n'),
190
+ );
191
+ ```
192
+
193
+ The `text` and `time` properties are common, because their only difference is indentation:
194
+
195
+ ```diff
196
+ - Expected
197
+ + Received
198
+
199
+ Object {
200
+ + payload: Object {
201
+ text: 'Ignore indentation in serialized object',
202
+ time: '2019-09-19T12:34:56.000Z',
203
+ + },
204
+ type: 'CREATE_ITEM',
205
+ }
206
+ ```
207
+
208
+ The preceding example illustrates why (at least for indentation) it seems more intuitive that the function returns the common line from the `bLinesDisplay` array instead of from the `aLinesDisplay` array.
209
+
210
+ ## Usage of diffStringsRaw
211
+
212
+ Given **strings** and a boolean option, `diffStringsRaw(a, b, cleanup)` does the following:
213
+
214
+ 1. **compare** the strings character-by-character using the `diff-sequences` package
215
+ 2. optionally **clean up** small (often coincidental) common substrings, also known as chaff
216
+
217
+ Because `diffStringsRaw` returns the difference as **data** instead of a string, you can format it as your application requires (for example, enclosed in HTML markup for browser instead of escape sequences for console).
218
+
219
+ The returned **array** describes substrings as instances of the `Diff` class, which calling code can access like array tuples:
220
+
221
+ The value at index `0` is one of the following:
222
+
223
+ | value | named export | description |
224
+ | ----: | :------------ | :-------------------- |
225
+ | `0` | `DIFF_EQUAL` | in `a` and in `b` |
226
+ | `-1` | `DIFF_DELETE` | in `a` but not in `b` |
227
+ | `1` | `DIFF_INSERT` | in `b` but not in `a` |
228
+
229
+ The value at index `1` is a substring of `a` or `b` or both.
230
+
231
+ ### Example of diffStringsRaw with cleanup
232
+
233
+ ```js
234
+ const diffs = diffStringsRaw('changed from', 'changed to', true);
235
+ ```
236
+
237
+ | `i` | `diffs[i][0]` | `diffs[i][1]` |
238
+ | --: | ------------: | :------------ |
239
+ | `0` | `0` | `'changed '` |
240
+ | `1` | `-1` | `'from'` |
241
+ | `2` | `1` | `'to'` |
242
+
243
+ ### Example of diffStringsRaw without cleanup
244
+
245
+ ```js
246
+ const diffs = diffStringsRaw('changed from', 'changed to', false);
247
+ ```
248
+
249
+ | `i` | `diffs[i][0]` | `diffs[i][1]` |
250
+ | --: | ------------: | :------------ |
251
+ | `0` | `0` | `'changed '` |
252
+ | `1` | `-1` | `'fr'` |
253
+ | `2` | `1` | `'t'` |
254
+ | `3` | `0` | `'o'` |
255
+ | `4` | `-1` | `'m'` |
256
+
257
+ ### Advanced import for diffStringsRaw
258
+
259
+ Here are all the named imports that you might need for the `diffStringsRaw` function:
260
+
261
+ - `const {DIFF_DELETE, DIFF_EQUAL, DIFF_INSERT, Diff, diffStringsRaw} = require('jest-diff');` in CommonJS modules
262
+ - `import {DIFF_DELETE, DIFF_EQUAL, DIFF_INSERT, Diff, diffStringsRaw} from 'jest-diff';` in ECMAScript modules
263
+
264
+ To write a **formatting** function, you might need the named constants (and `Diff` in TypeScript annotations).
265
+
266
+ If you write an application-specific **cleanup** algorithm, then you might need to call the `Diff` constructor:
267
+
268
+ ```js
269
+ const diffCommon = new Diff(DIFF_EQUAL, 'changed ');
270
+ const diffDelete = new Diff(DIFF_DELETE, 'from');
271
+ const diffInsert = new Diff(DIFF_INSERT, 'to');
272
+ ```
273
+
274
+ ## Usage of diffLinesRaw
275
+
276
+ Given **arrays of strings**, `diffLinesRaw(aLines, bLines)` does the following:
277
+
278
+ - **compare** the arrays line-by-line using the `diff-sequences` package
279
+
280
+ Because `diffLinesRaw` returns the difference as **data** instead of a string, you can format it as your application requires.
281
+
282
+ ### Example of diffLinesRaw
283
+
284
+ ```js
285
+ const aLines = ['delete', 'common', 'changed from'];
286
+ const bLines = ['common', 'changed to', 'insert'];
287
+
288
+ const diffs = diffLinesRaw(aLines, bLines);
289
+ ```
290
+
291
+ | `i` | `diffs[i][0]` | `diffs[i][1]` |
292
+ | --: | ------------: | :--------------- |
293
+ | `0` | `-1` | `'delete'` |
294
+ | `1` | `0` | `'common'` |
295
+ | `2` | `-1` | `'changed from'` |
296
+ | `3` | `1` | `'changed to'` |
297
+ | `4` | `1` | `'insert'` |
298
+
299
+ ### Edge case of diffLinesRaw
300
+
301
+ If you call `string.split('\n')` for an empty string:
302
+
303
+ - the result is `['']` an array which contains an empty string
304
+ - instead of `[]` an empty array
305
+
306
+ Depending of your application, you might call `diffLinesRaw` with either array.
307
+
308
+ ### Example of split method
309
+
310
+ ```js
311
+ import {diffLinesRaw} from 'jest-diff';
312
+
313
+ const a = 'non-empty string';
314
+ const b = '';
315
+
316
+ const diffs = diffLinesRaw(a.split('\n'), b.split('\n'));
317
+ ```
318
+
319
+ | `i` | `diffs[i][0]` | `diffs[i][1]` |
320
+ | --: | ------------: | :------------------- |
321
+ | `0` | `-1` | `'non-empty string'` |
322
+ | `1` | `1` | `''` |
323
+
324
+ Which you might format as follows:
325
+
326
+ ```diff
327
+ - Expected - 1
328
+ + Received + 1
329
+
330
+ - non-empty string
331
+ +
332
+ ```
333
+
334
+ ### Example of splitLines0 function
335
+
336
+ For edge case behavior like the `diffLinesUnified` function, you might define a `splitLines0` function, which given an empty string, returns `[]` an empty array:
337
+
338
+ ```js
339
+ export const splitLines0 = string =>
340
+ string.length === 0 ? [] : string.split('\n');
341
+ ```
342
+
343
+ ```js
344
+ import {diffLinesRaw} from 'jest-diff';
345
+
346
+ const a = '';
347
+ const b = 'line 1\nline 2\nline 3';
348
+
349
+ const diffs = diffLinesRaw(a.split('\n'), b.split('\n'));
350
+ ```
351
+
352
+ | `i` | `diffs[i][0]` | `diffs[i][1]` |
353
+ | --: | ------------: | :------------ |
354
+ | `0` | `1` | `'line 1'` |
355
+ | `1` | `1` | `'line 2'` |
356
+ | `2` | `1` | `'line 3'` |
357
+
358
+ Which you might format as follows:
359
+
360
+ ```diff
361
+ - Expected - 0
362
+ + Received + 3
363
+
364
+ + line 1
365
+ + line 2
366
+ + line 3
367
+ ```
368
+
369
+ In contrast to the `diffLinesRaw` function, the `diffLinesUnified` and `diffLinesUnified2` functions **automatically** convert array arguments computed by string `split` method, so callers do **not** need a `splitLine0` function.
370
+
371
+ ## Options
372
+
373
+ The default options are for the report when an assertion fails from the `expect` package used by Jest.
374
+
375
+ For other applications, you can provide an options object as a third argument:
376
+
377
+ - `diff(a, b, options)`
378
+ - `diffStringsUnified(a, b, options)`
379
+ - `diffLinesUnified(aLines, bLines, options)`
380
+ - `diffLinesUnified2(aLinesDisplay, bLinesDisplay, aLinesCompare, bLinesCompare, options)`
381
+
382
+ ### Properties of options object
383
+
384
+ | name | default |
385
+ | :-------------------------------- | :----------------- |
386
+ | `aAnnotation` | `'Expected'` |
387
+ | `aColor` | `chalk.green` |
388
+ | `aIndicator` | `'-'` |
389
+ | `bAnnotation` | `'Received'` |
390
+ | `bColor` | `chalk.red` |
391
+ | `bIndicator` | `'+'` |
392
+ | `changeColor` | `chalk.inverse` |
393
+ | `changeLineTrailingSpaceColor` | `string => string` |
394
+ | `commonColor` | `chalk.dim` |
395
+ | `commonIndicator` | `' '` |
396
+ | `commonLineTrailingSpaceColor` | `string => string` |
397
+ | `compareKeys` | `undefined` |
398
+ | `contextLines` | `5` |
399
+ | `emptyFirstOrLastLinePlaceholder` | `''` |
400
+ | `expand` | `true` |
401
+ | `includeChangeCounts` | `false` |
402
+ | `omitAnnotationLines` | `false` |
403
+ | `patchColor` | `chalk.yellow` |
404
+
405
+ For more information about the options, see the following examples.
406
+
407
+ ### Example of options for labels
408
+
409
+ If the application is code modification, you might replace the labels:
410
+
411
+ ```js
412
+ const options = {
413
+ aAnnotation: 'Original',
414
+ bAnnotation: 'Modified',
415
+ };
416
+ ```
417
+
418
+ ```diff
419
+ - Original
420
+ + Modified
421
+
422
+ common
423
+ - changed from
424
+ + changed to
425
+ ```
426
+
427
+ The `jest-diff` package does not assume that the 2 labels have equal length.
428
+
429
+ ### Example of options for colors of changed lines
430
+
431
+ For consistency with most diff tools, you might exchange the colors:
432
+
433
+ ```ts
434
+ import chalk = require('chalk');
435
+
436
+ const options = {
437
+ aColor: chalk.red,
438
+ bColor: chalk.green,
439
+ };
440
+ ```
441
+
442
+ ### Example of option for color of changed substrings
443
+
444
+ Although the default inverse of foreground and background colors is hard to beat for changed substrings **within lines**, especially because it highlights spaces, if you want bold font weight on yellow background color:
445
+
446
+ ```ts
447
+ import chalk = require('chalk');
448
+
449
+ const options = {
450
+ changeColor: chalk.bold.bgYellowBright,
451
+ };
452
+ ```
453
+
454
+ ### Example of option to format trailing spaces
455
+
456
+ Because `diff()` does not display substring differences within lines, formatting can help you see when lines differ by the presence or absence of trailing spaces found by `/\s+$/` regular expression.
457
+
458
+ - If change lines have a background color, then you can see trailing spaces.
459
+ - If common lines have default dim color, then you cannot see trailing spaces. You might want yellowish background color to see them.
460
+
461
+ ```js
462
+ const options = {
463
+ aColor: chalk.rgb(128, 0, 128).bgRgb(255, 215, 255), // magenta
464
+ bColor: chalk.rgb(0, 95, 0).bgRgb(215, 255, 215), // green
465
+ commonLineTrailingSpaceColor: chalk.bgYellow,
466
+ };
467
+ ```
468
+
469
+ The value of a Color option is a function, which given a string, returns a string.
470
+
471
+ If you want to replace trailing spaces with middle dot characters:
472
+
473
+ ```js
474
+ const replaceSpacesWithMiddleDot = string => '·'.repeat(string.length);
475
+
476
+ const options = {
477
+ changeLineTrailingSpaceColor: replaceSpacesWithMiddleDot,
478
+ commonLineTrailingSpaceColor: replaceSpacesWithMiddleDot,
479
+ };
480
+ ```
481
+
482
+ If you need the TypeScript type of a Color option:
483
+
484
+ ```ts
485
+ import {DiffOptionsColor} from 'jest-diff';
486
+ ```
487
+
488
+ ### Example of options for no colors
489
+
490
+ To store the difference in a file without escape codes for colors, provide an identity function:
491
+
492
+ ```js
493
+ const noColor = string => string;
494
+
495
+ const options = {
496
+ aColor: noColor,
497
+ bColor: noColor,
498
+ changeColor: noColor,
499
+ commonColor: noColor,
500
+ patchColor: noColor,
501
+ };
502
+ ```
503
+
504
+ ### Example of options for indicators
505
+
506
+ For consistency with the `diff` command, you might replace the indicators:
507
+
508
+ ```js
509
+ const options = {
510
+ aIndicator: '<',
511
+ bIndicator: '>',
512
+ };
513
+ ```
514
+
515
+ The `jest-diff` package assumes (but does not enforce) that the 3 indicators have equal length.
516
+
517
+ ### Example of options to limit common lines
518
+
519
+ By default, the output includes all common lines.
520
+
521
+ To emphasize the changes, you might limit the number of common “context” lines:
522
+
523
+ ```js
524
+ const options = {
525
+ contextLines: 1,
526
+ expand: false,
527
+ };
528
+ ```
529
+
530
+ A patch mark like `@@ -12,7 +12,9 @@` accounts for omitted common lines.
531
+
532
+ ### Example of option for color of patch marks
533
+
534
+ If you want patch marks to have the same dim color as common lines:
535
+
536
+ ```ts
537
+ import chalk = require('chalk');
538
+
539
+ const options = {
540
+ expand: false,
541
+ patchColor: chalk.dim,
542
+ };
543
+ ```
544
+
545
+ ### Example of option to include change counts
546
+
547
+ To display the number of changed lines at the right of annotation lines:
548
+
549
+ ```js
550
+ const a = ['common', 'changed from'];
551
+ const b = ['common', 'changed to', 'insert'];
552
+
553
+ const options = {
554
+ includeChangeCounts: true,
555
+ };
556
+
557
+ const difference = diff(a, b, options);
558
+ ```
559
+
560
+ ```diff
561
+ - Expected - 1
562
+ + Received + 2
563
+
564
+ Array [
565
+ "common",
566
+ - "changed from",
567
+ + "changed to",
568
+ + "insert",
569
+ ]
570
+ ```
571
+
572
+ ### Example of option to omit annotation lines
573
+
574
+ To display only the comparison lines:
575
+
576
+ ```js
577
+ const a = 'common\nchanged from';
578
+ const b = 'common\nchanged to';
579
+
580
+ const options = {
581
+ omitAnnotationLines: true,
582
+ };
583
+
584
+ const difference = diffStringsUnified(a, b, options);
585
+ ```
586
+
587
+ ```diff
588
+ common
589
+ - changed from
590
+ + changed to
591
+ ```
592
+
593
+ ### Example of option for empty first or last lines
594
+
595
+ If the **first** or **last** comparison line is **empty**, because the content is empty and the indicator is a space, you might not notice it.
596
+
597
+ The replacement option is a string whose default value is `''` empty string.
598
+
599
+ Because Jest trims the report when a matcher fails, it deletes an empty last line.
600
+
601
+ Therefore, Jest uses as placeholder the downwards arrow with corner leftwards:
602
+
603
+ ```js
604
+ const options = {
605
+ emptyFirstOrLastLinePlaceholder: '↵', // U+21B5
606
+ };
607
+ ```
608
+
609
+ If a content line is empty, then the corresponding comparison line is automatically trimmed to remove the margin space (represented as a middle dot below) for the default indicators:
610
+
611
+ | Indicator | untrimmed | trimmed |
612
+ | ----------------: | :-------- | :------ |
613
+ | `aIndicator` | `'-·'` | `'-'` |
614
+ | `bIndicator` | `'+·'` | `'+'` |
615
+ | `commonIndicator` | `' ·'` | `''` |
616
+
617
+ ### Example of option for sorting object keys
618
+
619
+ When two objects are compared their keys are printed in alphabetical order by default. If this was not the original order of the keys the diff becomes harder to read as the keys are not in their original position.
620
+
621
+ Use `compareKeys` to pass a function which will be used when sorting the object keys.
622
+
623
+ ```js
624
+ const a = {c: 'c', b: 'b1', a: 'a'};
625
+ const b = {c: 'c', b: 'b2', a: 'a'};
626
+
627
+ const options = {
628
+ // The keys will be in their original order
629
+ compareKeys: () => 0,
630
+ };
631
+
632
+ const difference = diff(a, b, options);
633
+ ```
634
+
635
+ ```diff
636
+ - Expected
637
+ + Received
638
+
639
+ Object {
640
+ "c": "c",
641
+ - "b": "b1",
642
+ + "b": "b2",
643
+ "a": "a",
644
+ }
645
+ ```
646
+
647
+ Depending on the implementation of `compareKeys` any sort order can be used.
648
+
649
+ ```js
650
+ const a = {c: 'c', b: 'b1', a: 'a'};
651
+ const b = {c: 'c', b: 'b2', a: 'a'};
652
+
653
+ const options = {
654
+ // The keys will be in reverse order
655
+ compareKeys: (a, b) => (a > b ? -1 : 1),
656
+ };
657
+
658
+ const difference = diff(a, b, options);
659
+ ```
660
+
661
+ ```diff
662
+ - Expected
663
+ + Received
664
+
665
+ Object {
666
+ "a": "a",
667
+ - "b": "b1",
668
+ + "b": "b2",
669
+ "c": "c",
670
+ }
671
+ ```
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Facebook, Inc. and its affiliates.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Facebook, Inc. and its affiliates.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.