@gemeentenijmegen/webapp 1.1.1 → 1.1.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 (394) hide show
  1. package/.jsii +10 -10
  2. package/assets/webapp/auth/auth.lambda/index.js +56 -35
  3. package/assets/webapp/login/login.lambda/index.js +56 -35
  4. package/assets/webapp/logout/logout.lambda/index.js +56 -209
  5. package/lib/webapp/Criticality.js +1 -1
  6. package/lib/webapp/Webapp.js +1 -1
  7. package/lib/webapp/Webpage.js +1 -1
  8. package/lib/webapp/util/Files.js +1 -1
  9. package/node_modules/@aws-sdk/client-dynamodb/dist-cjs/index.js +23 -20
  10. package/node_modules/@aws-sdk/client-dynamodb/dist-es/models/models_0.js +15 -15
  11. package/node_modules/@aws-sdk/client-dynamodb/dist-es/protocols/Aws_json1_0.js +3 -0
  12. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/CreateGlobalTableCommand.d.ts +10 -0
  13. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/CreateTableCommand.d.ts +28 -0
  14. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/DeleteTableCommand.d.ts +20 -0
  15. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/DescribeGlobalTableCommand.d.ts +10 -0
  16. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/DescribeImportCommand.d.ts +4 -0
  17. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/DescribeTableCommand.d.ts +20 -0
  18. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/ImportTableCommand.d.ts +8 -0
  19. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/RestoreTableFromBackupCommand.d.ts +24 -0
  20. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/RestoreTableToPointInTimeCommand.d.ts +24 -0
  21. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/UpdateGlobalTableCommand.d.ts +10 -0
  22. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/UpdateTableCommand.d.ts +32 -0
  23. package/node_modules/@aws-sdk/client-dynamodb/dist-types/models/models_0.d.ts +758 -655
  24. package/node_modules/@aws-sdk/client-dynamodb/dist-types/ts3.4/models/models_0.d.ts +744 -641
  25. package/node_modules/@aws-sdk/client-dynamodb/package.json +37 -37
  26. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +152 -29
  27. package/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteObjectsCommand.js +0 -1
  28. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectCommand.js +0 -1
  29. package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketAccelerateConfigurationCommand.js +0 -1
  30. package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketAclCommand.js +0 -1
  31. package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketCorsCommand.js +0 -1
  32. package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketEncryptionCommand.js +0 -1
  33. package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketLifecycleConfigurationCommand.js +0 -1
  34. package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketLoggingCommand.js +0 -1
  35. package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketOwnershipControlsCommand.js +0 -1
  36. package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketPolicyCommand.js +0 -1
  37. package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketReplicationCommand.js +0 -1
  38. package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketRequestPaymentCommand.js +0 -1
  39. package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketTaggingCommand.js +0 -1
  40. package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketVersioningCommand.js +0 -1
  41. package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketWebsiteCommand.js +0 -1
  42. package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectAclCommand.js +0 -1
  43. package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectCommand.js +0 -1
  44. package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectLegalHoldCommand.js +0 -1
  45. package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectLockConfigurationCommand.js +0 -1
  46. package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectRetentionCommand.js +0 -1
  47. package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectTaggingCommand.js +0 -1
  48. package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutPublicAccessBlockCommand.js +0 -1
  49. package/node_modules/@aws-sdk/client-s3/dist-es/commands/RestoreObjectCommand.js +0 -1
  50. package/node_modules/@aws-sdk/client-s3/dist-es/commands/UploadPartCommand.js +0 -1
  51. package/node_modules/@aws-sdk/client-s3/dist-es/models/models_1.js +48 -0
  52. package/node_modules/@aws-sdk/client-s3/dist-es/protocols/Aws_restXml.js +75 -4
  53. package/node_modules/@aws-sdk/client-s3/dist-types/commands/AbortMultipartUploadCommand.d.ts +16 -13
  54. package/node_modules/@aws-sdk/client-s3/dist-types/commands/CompleteMultipartUploadCommand.d.ts +47 -42
  55. package/node_modules/@aws-sdk/client-s3/dist-types/commands/CopyObjectCommand.d.ts +77 -57
  56. package/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateBucketCommand.d.ts +60 -45
  57. package/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateMultipartUploadCommand.d.ts +92 -66
  58. package/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateSessionCommand.d.ts +30 -16
  59. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +1 -1
  60. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketCommand.d.ts +10 -3
  61. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketCorsCommand.d.ts +1 -1
  62. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketEncryptionCommand.d.ts +18 -10
  63. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +1 -1
  64. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketInventoryConfigurationCommand.d.ts +1 -1
  65. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketLifecycleCommand.d.ts +52 -9
  66. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketMetricsConfigurationCommand.d.ts +1 -1
  67. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketOwnershipControlsCommand.d.ts +1 -1
  68. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketPolicyCommand.d.ts +25 -21
  69. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketReplicationCommand.d.ts +1 -1
  70. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketTaggingCommand.d.ts +1 -1
  71. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketWebsiteCommand.d.ts +1 -1
  72. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteObjectCommand.d.ts +3 -0
  73. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteObjectTaggingCommand.d.ts +1 -1
  74. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteObjectsCommand.d.ts +41 -27
  75. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeletePublicAccessBlockCommand.d.ts +1 -1
  76. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketAccelerateConfigurationCommand.d.ts +1 -1
  77. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketAclCommand.d.ts +1 -1
  78. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketAnalyticsConfigurationCommand.d.ts +1 -1
  79. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketCorsCommand.d.ts +1 -1
  80. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketEncryptionCommand.d.ts +18 -10
  81. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +1 -1
  82. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +1 -1
  83. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +61 -17
  84. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketLocationCommand.d.ts +1 -1
  85. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketLoggingCommand.d.ts +1 -1
  86. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketMetricsConfigurationCommand.d.ts +1 -1
  87. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +1 -1
  88. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +1 -1
  89. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketPolicyCommand.d.ts +30 -21
  90. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketPolicyStatusCommand.d.ts +1 -1
  91. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketReplicationCommand.d.ts +1 -1
  92. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketRequestPaymentCommand.d.ts +1 -1
  93. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketTaggingCommand.d.ts +1 -1
  94. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketVersioningCommand.d.ts +1 -1
  95. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketWebsiteCommand.d.ts +1 -1
  96. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectAclCommand.d.ts +1 -1
  97. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectAttributesCommand.d.ts +62 -44
  98. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectCommand.d.ts +98 -79
  99. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectLegalHoldCommand.d.ts +1 -1
  100. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +1 -1
  101. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectRetentionCommand.d.ts +1 -1
  102. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectTaggingCommand.d.ts +20 -20
  103. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectTorrentCommand.d.ts +1 -1
  104. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetPublicAccessBlockCommand.d.ts +1 -1
  105. package/node_modules/@aws-sdk/client-s3/dist-types/commands/HeadBucketCommand.d.ts +32 -16
  106. package/node_modules/@aws-sdk/client-s3/dist-types/commands/HeadObjectCommand.d.ts +61 -39
  107. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +1 -1
  108. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +1 -1
  109. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +1 -1
  110. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketMetricsConfigurationsCommand.d.ts +1 -1
  111. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketsCommand.d.ts +10 -3
  112. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListDirectoryBucketsCommand.d.ts +12 -3
  113. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListMultipartUploadsCommand.d.ts +82 -65
  114. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListObjectVersionsCommand.d.ts +1 -1
  115. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListObjectsCommand.d.ts +1 -1
  116. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListObjectsV2Command.d.ts +23 -14
  117. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListPartsCommand.d.ts +22 -17
  118. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketAccelerateConfigurationCommand.d.ts +1 -1
  119. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketAclCommand.d.ts +1 -1
  120. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketAnalyticsConfigurationCommand.d.ts +1 -1
  121. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketCorsCommand.d.ts +1 -1
  122. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketEncryptionCommand.d.ts +47 -32
  123. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +1 -1
  124. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +1 -1
  125. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +84 -45
  126. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketLoggingCommand.d.ts +1 -1
  127. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +1 -1
  128. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +1 -1
  129. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +1 -1
  130. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketPolicyCommand.d.ts +30 -21
  131. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketReplicationCommand.d.ts +3 -4
  132. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketRequestPaymentCommand.d.ts +1 -1
  133. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketTaggingCommand.d.ts +1 -1
  134. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketVersioningCommand.d.ts +3 -6
  135. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketWebsiteCommand.d.ts +1 -1
  136. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectAclCommand.d.ts +1 -1
  137. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectCommand.d.ts +126 -78
  138. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectLegalHoldCommand.d.ts +1 -1
  139. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +3 -3
  140. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectRetentionCommand.d.ts +2 -2
  141. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectTaggingCommand.d.ts +1 -1
  142. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutPublicAccessBlockCommand.d.ts +1 -1
  143. package/node_modules/@aws-sdk/client-s3/dist-types/commands/RestoreObjectCommand.d.ts +1 -1
  144. package/node_modules/@aws-sdk/client-s3/dist-types/commands/SelectObjectContentCommand.d.ts +1 -1
  145. package/node_modules/@aws-sdk/client-s3/dist-types/commands/UploadPartCommand.d.ts +52 -41
  146. package/node_modules/@aws-sdk/client-s3/dist-types/commands/UploadPartCopyCommand.d.ts +66 -52
  147. package/node_modules/@aws-sdk/client-s3/dist-types/commands/WriteGetObjectResponseCommand.d.ts +1 -1
  148. package/node_modules/@aws-sdk/client-s3/dist-types/models/models_0.d.ts +1720 -1409
  149. package/node_modules/@aws-sdk/client-s3/dist-types/models/models_1.d.ts +509 -414
  150. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_0.d.ts +799 -780
  151. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_1.d.ts +303 -279
  152. package/node_modules/@aws-sdk/client-s3/package.json +57 -57
  153. package/node_modules/@aws-sdk/client-secrets-manager/dist-types/models/models_0.d.ts +184 -184
  154. package/node_modules/@aws-sdk/client-secrets-manager/dist-types/ts3.4/models/models_0.d.ts +184 -184
  155. package/node_modules/@aws-sdk/client-secrets-manager/package.json +35 -35
  156. package/node_modules/@aws-sdk/client-ssm/README.md +39 -7
  157. package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +834 -437
  158. package/node_modules/@aws-sdk/client-ssm/dist-es/SSM.js +8 -0
  159. package/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetExecutionPreviewCommand.js +22 -0
  160. package/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListNodesCommand.js +23 -0
  161. package/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListNodesSummaryCommand.js +22 -0
  162. package/node_modules/@aws-sdk/client-ssm/dist-es/commands/SendCommandCommand.js +1 -1
  163. package/node_modules/@aws-sdk/client-ssm/dist-es/commands/StartExecutionPreviewCommand.js +22 -0
  164. package/node_modules/@aws-sdk/client-ssm/dist-es/commands/index.js +4 -0
  165. package/node_modules/@aws-sdk/client-ssm/dist-es/models/models_1.js +99 -144
  166. package/node_modules/@aws-sdk/client-ssm/dist-es/models/models_2.js +167 -1
  167. package/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListNodesPaginator.js +4 -0
  168. package/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListNodesSummaryPaginator.js +4 -0
  169. package/node_modules/@aws-sdk/client-ssm/dist-es/pagination/index.js +2 -0
  170. package/node_modules/@aws-sdk/client-ssm/dist-es/protocols/Aws_json1_1.js +159 -3
  171. package/node_modules/@aws-sdk/client-ssm/dist-types/SSM.d.ts +29 -0
  172. package/node_modules/@aws-sdk/client-ssm/dist-types/SSMClient.d.ts +6 -2
  173. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateResourceDataSyncCommand.d.ts +1 -1
  174. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteActivationCommand.d.ts +1 -1
  175. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeActivationsCommand.d.ts +1 -1
  176. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstancePatchStatesForPatchGroupCommand.d.ts +1 -1
  177. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstancePatchesCommand.d.ts +1 -1
  178. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstancePropertiesCommand.d.ts +1 -1
  179. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetExecutionPreviewCommand.d.ts +98 -0
  180. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetInventoryCommand.d.ts +3 -4
  181. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetOpsSummaryCommand.d.ts +3 -4
  182. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListComplianceItemsCommand.d.ts +1 -1
  183. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListComplianceSummariesCommand.d.ts +1 -1
  184. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListInventoryEntriesCommand.d.ts +1 -1
  185. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListNodesCommand.d.ts +123 -0
  186. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListNodesSummaryCommand.d.ts +123 -0
  187. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListResourceComplianceSummariesCommand.d.ts +1 -1
  188. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ResetServiceSettingCommand.d.ts +2 -1
  189. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ResumeSessionCommand.d.ts +1 -1
  190. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/SendAutomationSignalCommand.d.ts +1 -1
  191. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/SendCommandCommand.d.ts +1 -1
  192. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartAssociationsOnceCommand.d.ts +1 -1
  193. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartAutomationExecutionCommand.d.ts +1 -1
  194. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartExecutionPreviewCommand.d.ts +141 -0
  195. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/index.d.ts +4 -0
  196. package/node_modules/@aws-sdk/client-ssm/dist-types/models/models_0.d.ts +711 -706
  197. package/node_modules/@aws-sdk/client-ssm/dist-types/models/models_1.d.ts +2303 -2337
  198. package/node_modules/@aws-sdk/client-ssm/dist-types/models/models_2.d.ts +961 -196
  199. package/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListNodesPaginator.d.ts +7 -0
  200. package/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListNodesSummaryPaginator.d.ts +7 -0
  201. package/node_modules/@aws-sdk/client-ssm/dist-types/pagination/index.d.ts +2 -0
  202. package/node_modules/@aws-sdk/client-ssm/dist-types/protocols/Aws_json1_1.d.ts +36 -0
  203. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/SSM.d.ts +69 -0
  204. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/SSMClient.d.ts +24 -0
  205. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetExecutionPreviewCommand.d.ts +51 -0
  206. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListNodesCommand.d.ts +47 -0
  207. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListNodesSummaryCommand.d.ts +48 -0
  208. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ResetServiceSettingCommand.d.ts +2 -4
  209. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ResumeSessionCommand.d.ts +1 -1
  210. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/SendAutomationSignalCommand.d.ts +1 -1
  211. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/SendCommandCommand.d.ts +1 -1
  212. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/StartAssociationsOnceCommand.d.ts +1 -1
  213. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/StartAutomationExecutionCommand.d.ts +1 -1
  214. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/StartExecutionPreviewCommand.d.ts +51 -0
  215. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/index.d.ts +4 -0
  216. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_0.d.ts +706 -702
  217. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_1.d.ts +1010 -1004
  218. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_2.d.ts +436 -198
  219. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListNodesPaginator.d.ts +11 -0
  220. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListNodesSummaryPaginator.d.ts +11 -0
  221. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/index.d.ts +2 -0
  222. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +48 -0
  223. package/node_modules/@aws-sdk/client-ssm/package.json +36 -36
  224. package/node_modules/@aws-sdk/client-sso/dist-types/models/models_0.d.ts +18 -18
  225. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/models_0.d.ts +18 -18
  226. package/node_modules/@aws-sdk/client-sso/package.json +32 -32
  227. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/models_0.d.ts +74 -74
  228. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/models_0.d.ts +74 -74
  229. package/node_modules/@aws-sdk/client-sso-oidc/package.json +34 -34
  230. package/node_modules/@aws-sdk/client-sts/README.md +8 -0
  231. package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +89 -12
  232. package/node_modules/@aws-sdk/client-sts/dist-es/STS.js +2 -0
  233. package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRootCommand.js +23 -0
  234. package/node_modules/@aws-sdk/client-sts/dist-es/commands/index.js +1 -0
  235. package/node_modules/@aws-sdk/client-sts/dist-es/models/models_0.js +4 -0
  236. package/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js +53 -0
  237. package/node_modules/@aws-sdk/client-sts/dist-types/STS.d.ts +7 -0
  238. package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +3 -2
  239. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleCommand.d.ts +13 -13
  240. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +8 -8
  241. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +15 -30
  242. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRootCommand.d.ts +129 -0
  243. package/node_modules/@aws-sdk/client-sts/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts +2 -2
  244. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetFederationTokenCommand.d.ts +8 -8
  245. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetSessionTokenCommand.d.ts +6 -6
  246. package/node_modules/@aws-sdk/client-sts/dist-types/commands/index.d.ts +1 -0
  247. package/node_modules/@aws-sdk/client-sts/dist-types/models/models_0.d.ts +202 -88
  248. package/node_modules/@aws-sdk/client-sts/dist-types/protocols/Aws_query.d.ts +9 -0
  249. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STS.d.ts +17 -0
  250. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STSClient.d.ts +6 -0
  251. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRootCommand.d.ts +47 -0
  252. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/index.d.ts +1 -0
  253. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/models_0.d.ts +68 -56
  254. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/protocols/Aws_query.d.ts +12 -0
  255. package/node_modules/@aws-sdk/client-sts/package.json +36 -36
  256. package/node_modules/@aws-sdk/core/package.json +14 -14
  257. package/node_modules/@aws-sdk/credential-provider-env/package.json +7 -7
  258. package/node_modules/@aws-sdk/credential-provider-http/package.json +12 -12
  259. package/node_modules/@aws-sdk/credential-provider-ini/package.json +15 -15
  260. package/node_modules/@aws-sdk/credential-provider-node/package.json +14 -14
  261. package/node_modules/@aws-sdk/credential-provider-process/package.json +8 -8
  262. package/node_modules/@aws-sdk/credential-provider-sso/package.json +10 -10
  263. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +10 -10
  264. package/node_modules/@aws-sdk/endpoint-cache/package.json +3 -3
  265. package/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +8 -8
  266. package/node_modules/@aws-sdk/middleware-endpoint-discovery/package.json +10 -10
  267. package/node_modules/@aws-sdk/middleware-expect-continue/package.json +8 -8
  268. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js +2 -2
  269. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-es/flexibleChecksumsMiddleware.js +2 -2
  270. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/flexibleChecksumsMiddleware.d.ts +0 -3
  271. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/ts3.4/flexibleChecksumsMiddleware.d.ts +0 -1
  272. package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +13 -13
  273. package/node_modules/@aws-sdk/middleware-host-header/package.json +8 -8
  274. package/node_modules/@aws-sdk/middleware-location-constraint/package.json +7 -7
  275. package/node_modules/@aws-sdk/middleware-logger/package.json +7 -7
  276. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +8 -8
  277. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +19 -18
  278. package/node_modules/@aws-sdk/middleware-ssec/package.json +7 -7
  279. package/node_modules/@aws-sdk/middleware-user-agent/package.json +11 -11
  280. package/node_modules/@aws-sdk/region-config-resolver/package.json +7 -7
  281. package/node_modules/@aws-sdk/s3-request-presigner/package.json +12 -12
  282. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +8 -8
  283. package/node_modules/@aws-sdk/token-providers/package.json +8 -8
  284. package/node_modules/@aws-sdk/types/package.json +2 -2
  285. package/node_modules/@aws-sdk/util-arn-parser/package.json +3 -3
  286. package/node_modules/@aws-sdk/util-endpoints/package.json +8 -8
  287. package/node_modules/@aws-sdk/util-format-url/package.json +6 -6
  288. package/node_modules/@aws-sdk/util-locate-window/package.json +3 -3
  289. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +5 -5
  290. package/node_modules/@aws-sdk/util-user-agent-node/package.json +7 -7
  291. package/node_modules/@aws-sdk/xml-builder/package.json +4 -4
  292. package/node_modules/@gemeentenijmegen/apiclient/package.json +7 -7
  293. package/node_modules/@gemeentenijmegen/apigateway-http/package.json +5 -5
  294. package/node_modules/@gemeentenijmegen/session/package.json +5 -5
  295. package/node_modules/@gemeentenijmegen/utils/package.json +7 -7
  296. package/node_modules/@smithy/abort-controller/package.json +4 -3
  297. package/node_modules/@smithy/config-resolver/package.json +7 -6
  298. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +32 -7
  299. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +21 -20
  300. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +2 -2
  301. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +11 -1
  302. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-types.js +5 -0
  303. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor.js +8 -2
  304. package/node_modules/@smithy/core/dist-es/submodules/cbor/index.js +1 -0
  305. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +3 -2
  306. package/node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js +1 -1
  307. package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-types.d.ts +23 -0
  308. package/node_modules/@smithy/core/dist-types/submodules/cbor/index.d.ts +1 -0
  309. package/node_modules/@smithy/core/dist-types/submodules/cbor/parseCborBody.d.ts +4 -2
  310. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/cbor-types.d.ts +23 -0
  311. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/index.d.ts +1 -0
  312. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/parseCborBody.d.ts +4 -2
  313. package/node_modules/@smithy/core/package.json +10 -9
  314. package/node_modules/@smithy/credential-provider-imds/package.json +7 -7
  315. package/node_modules/@smithy/eventstream-codec/package.json +4 -3
  316. package/node_modules/@smithy/eventstream-serde-browser/package.json +3 -3
  317. package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +5 -4
  318. package/node_modules/@smithy/eventstream-serde-node/package.json +3 -3
  319. package/node_modules/@smithy/eventstream-serde-universal/package.json +5 -4
  320. package/node_modules/@smithy/fetch-http-handler/dist-cjs/create-request.js +1 -0
  321. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +10 -3
  322. package/node_modules/@smithy/fetch-http-handler/dist-es/create-request.js +3 -0
  323. package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +3 -2
  324. package/node_modules/@smithy/fetch-http-handler/dist-es/stream-collector.js +1 -1
  325. package/node_modules/@smithy/fetch-http-handler/dist-types/create-request.d.ts +6 -0
  326. package/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts +6 -0
  327. package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/create-request.d.ts +6 -0
  328. package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts +6 -0
  329. package/node_modules/@smithy/fetch-http-handler/package.json +9 -6
  330. package/node_modules/@smithy/hash-blob-browser/package.json +4 -3
  331. package/node_modules/@smithy/hash-node/package.json +4 -3
  332. package/node_modules/@smithy/hash-stream-node/package.json +4 -3
  333. package/node_modules/@smithy/invalid-dependency/package.json +4 -3
  334. package/node_modules/@smithy/md5-js/package.json +4 -3
  335. package/node_modules/@smithy/middleware-content-length/package.json +5 -4
  336. package/node_modules/@smithy/middleware-endpoint/package.json +11 -10
  337. package/node_modules/@smithy/middleware-retry/package.json +12 -10
  338. package/node_modules/@smithy/middleware-serde/package.json +6 -4
  339. package/node_modules/@smithy/middleware-stack/package.json +4 -3
  340. package/node_modules/@smithy/node-config-provider/package.json +6 -5
  341. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +20 -14
  342. package/node_modules/@smithy/node-http-handler/dist-cjs/timing.js +1 -0
  343. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +5 -4
  344. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +1 -1
  345. package/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +9 -2
  346. package/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +5 -4
  347. package/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +2 -1
  348. package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +2 -1
  349. package/node_modules/@smithy/node-http-handler/dist-es/timing.js +4 -0
  350. package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +4 -3
  351. package/node_modules/@smithy/node-http-handler/dist-types/timing.d.ts +8 -0
  352. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/timing.d.ts +8 -0
  353. package/node_modules/@smithy/node-http-handler/package.json +7 -6
  354. package/node_modules/@smithy/property-provider/package.json +4 -3
  355. package/node_modules/@smithy/protocol-http/package.json +4 -3
  356. package/node_modules/@smithy/querystring-builder/package.json +2 -2
  357. package/node_modules/@smithy/querystring-parser/package.json +4 -3
  358. package/node_modules/@smithy/service-error-classification/package.json +4 -3
  359. package/node_modules/@smithy/shared-ini-file-loader/package.json +4 -3
  360. package/node_modules/@smithy/signature-v4/package.json +6 -5
  361. package/node_modules/@smithy/smithy-client/package.json +9 -8
  362. package/node_modules/@smithy/types/dist-types/http.d.ts +1 -0
  363. package/node_modules/@smithy/types/dist-types/transform/no-undefined.d.ts +3 -2
  364. package/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts +1 -0
  365. package/node_modules/@smithy/types/dist-types/ts3.4/transform/no-undefined.d.ts +3 -2
  366. package/node_modules/@smithy/types/package.json +1 -1
  367. package/node_modules/@smithy/url-parser/package.json +5 -4
  368. package/node_modules/@smithy/util-defaults-mode-browser/package.json +6 -5
  369. package/node_modules/@smithy/util-defaults-mode-node/package.json +9 -8
  370. package/node_modules/@smithy/util-endpoints/package.json +7 -5
  371. package/node_modules/@smithy/util-middleware/package.json +4 -3
  372. package/node_modules/@smithy/util-retry/dist-cjs/index.js +5 -1
  373. package/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js +2 -1
  374. package/node_modules/@smithy/util-retry/dist-types/DefaultRateLimiter.d.ts +4 -0
  375. package/node_modules/@smithy/util-retry/dist-types/ts3.4/DefaultRateLimiter.d.ts +4 -0
  376. package/node_modules/@smithy/util-retry/package.json +5 -4
  377. package/node_modules/@smithy/util-stream/dist-cjs/index.js +1 -0
  378. package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js +1 -2
  379. package/node_modules/@smithy/util-stream/dist-cjs/splitStream.js +1 -1
  380. package/node_modules/@smithy/util-stream/dist-cjs/stream-type-check.js +6 -1
  381. package/node_modules/@smithy/util-stream/dist-es/sdk-stream-mixin.js +0 -1
  382. package/node_modules/@smithy/util-stream/dist-es/splitStream.js +2 -2
  383. package/node_modules/@smithy/util-stream/dist-es/stream-type-check.js +3 -0
  384. package/node_modules/@smithy/util-stream/dist-types/stream-type-check.d.ts +4 -0
  385. package/node_modules/@smithy/util-stream/dist-types/ts3.4/stream-type-check.d.ts +4 -0
  386. package/node_modules/@smithy/util-stream/package.json +10 -6
  387. package/node_modules/@smithy/util-waiter/package.json +5 -4
  388. package/package.json +13 -13
  389. package/node_modules/@gemeentenijmegen/session/node_modules/cookie/HISTORY.md +0 -147
  390. package/node_modules/@gemeentenijmegen/session/node_modules/cookie/LICENSE +0 -24
  391. package/node_modules/@gemeentenijmegen/session/node_modules/cookie/README.md +0 -317
  392. package/node_modules/@gemeentenijmegen/session/node_modules/cookie/SECURITY.md +0 -25
  393. package/node_modules/@gemeentenijmegen/session/node_modules/cookie/index.js +0 -274
  394. package/node_modules/@gemeentenijmegen/session/node_modules/cookie/package.json +0 -44
@@ -1,317 +0,0 @@
1
- # cookie
2
-
3
- [![NPM Version][npm-version-image]][npm-url]
4
- [![NPM Downloads][npm-downloads-image]][npm-url]
5
- [![Node.js Version][node-image]][node-url]
6
- [![Build Status][ci-image]][ci-url]
7
- [![Coverage Status][coveralls-image]][coveralls-url]
8
-
9
- Basic HTTP cookie parser and serializer for HTTP servers.
10
-
11
- ## Installation
12
-
13
- This is a [Node.js](https://nodejs.org/en/) module available through the
14
- [npm registry](https://www.npmjs.com/). Installation is done using the
15
- [`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):
16
-
17
- ```sh
18
- $ npm install cookie
19
- ```
20
-
21
- ## API
22
-
23
- ```js
24
- var cookie = require('cookie');
25
- ```
26
-
27
- ### cookie.parse(str, options)
28
-
29
- Parse an HTTP `Cookie` header string and returning an object of all cookie name-value pairs.
30
- The `str` argument is the string representing a `Cookie` header value and `options` is an
31
- optional object containing additional parsing options.
32
-
33
- ```js
34
- var cookies = cookie.parse('foo=bar; equation=E%3Dmc%5E2');
35
- // { foo: 'bar', equation: 'E=mc^2' }
36
- ```
37
-
38
- #### Options
39
-
40
- `cookie.parse` accepts these properties in the options object.
41
-
42
- ##### decode
43
-
44
- Specifies a function that will be used to decode a cookie's value. Since the value of a cookie
45
- has a limited character set (and must be a simple string), this function can be used to decode
46
- a previously-encoded cookie value into a JavaScript string or other object.
47
-
48
- The default function is the global `decodeURIComponent`, which will decode any URL-encoded
49
- sequences into their byte representations.
50
-
51
- **note** if an error is thrown from this function, the original, non-decoded cookie value will
52
- be returned as the cookie's value.
53
-
54
- ### cookie.serialize(name, value, options)
55
-
56
- Serialize a cookie name-value pair into a `Set-Cookie` header string. The `name` argument is the
57
- name for the cookie, the `value` argument is the value to set the cookie to, and the `options`
58
- argument is an optional object containing additional serialization options.
59
-
60
- ```js
61
- var setCookie = cookie.serialize('foo', 'bar');
62
- // foo=bar
63
- ```
64
-
65
- #### Options
66
-
67
- `cookie.serialize` accepts these properties in the options object.
68
-
69
- ##### domain
70
-
71
- Specifies the value for the [`Domain` `Set-Cookie` attribute][rfc-6265-5.2.3]. By default, no
72
- domain is set, and most clients will consider the cookie to apply to only the current domain.
73
-
74
- ##### encode
75
-
76
- Specifies a function that will be used to encode a cookie's value. Since value of a cookie
77
- has a limited character set (and must be a simple string), this function can be used to encode
78
- a value into a string suited for a cookie's value.
79
-
80
- The default function is the global `encodeURIComponent`, which will encode a JavaScript string
81
- into UTF-8 byte sequences and then URL-encode any that fall outside of the cookie range.
82
-
83
- ##### expires
84
-
85
- Specifies the `Date` object to be the value for the [`Expires` `Set-Cookie` attribute][rfc-6265-5.2.1].
86
- By default, no expiration is set, and most clients will consider this a "non-persistent cookie" and
87
- will delete it on a condition like exiting a web browser application.
88
-
89
- **note** the [cookie storage model specification][rfc-6265-5.3] states that if both `expires` and
90
- `maxAge` are set, then `maxAge` takes precedence, but it is possible not all clients by obey this,
91
- so if both are set, they should point to the same date and time.
92
-
93
- ##### httpOnly
94
-
95
- Specifies the `boolean` value for the [`HttpOnly` `Set-Cookie` attribute][rfc-6265-5.2.6]. When truthy,
96
- the `HttpOnly` attribute is set, otherwise it is not. By default, the `HttpOnly` attribute is not set.
97
-
98
- **note** be careful when setting this to `true`, as compliant clients will not allow client-side
99
- JavaScript to see the cookie in `document.cookie`.
100
-
101
- ##### maxAge
102
-
103
- Specifies the `number` (in seconds) to be the value for the [`Max-Age` `Set-Cookie` attribute][rfc-6265-5.2.2].
104
- The given number will be converted to an integer by rounding down. By default, no maximum age is set.
105
-
106
- **note** the [cookie storage model specification][rfc-6265-5.3] states that if both `expires` and
107
- `maxAge` are set, then `maxAge` takes precedence, but it is possible not all clients by obey this,
108
- so if both are set, they should point to the same date and time.
109
-
110
- ##### partitioned
111
-
112
- Specifies the `boolean` value for the [`Partitioned` `Set-Cookie`](rfc-cutler-httpbis-partitioned-cookies)
113
- attribute. When truthy, the `Partitioned` attribute is set, otherwise it is not. By default, the
114
- `Partitioned` attribute is not set.
115
-
116
- **note** This is an attribute that has not yet been fully standardized, and may change in the future.
117
- This also means many clients may ignore this attribute until they understand it.
118
-
119
- More information about can be found in [the proposal](https://github.com/privacycg/CHIPS).
120
-
121
- ##### path
122
-
123
- Specifies the value for the [`Path` `Set-Cookie` attribute][rfc-6265-5.2.4]. By default, the path
124
- is considered the ["default path"][rfc-6265-5.1.4].
125
-
126
- ##### priority
127
-
128
- Specifies the `string` to be the value for the [`Priority` `Set-Cookie` attribute][rfc-west-cookie-priority-00-4.1].
129
-
130
- - `'low'` will set the `Priority` attribute to `Low`.
131
- - `'medium'` will set the `Priority` attribute to `Medium`, the default priority when not set.
132
- - `'high'` will set the `Priority` attribute to `High`.
133
-
134
- More information about the different priority levels can be found in
135
- [the specification][rfc-west-cookie-priority-00-4.1].
136
-
137
- **note** This is an attribute that has not yet been fully standardized, and may change in the future.
138
- This also means many clients may ignore this attribute until they understand it.
139
-
140
- ##### sameSite
141
-
142
- Specifies the `boolean` or `string` to be the value for the [`SameSite` `Set-Cookie` attribute][rfc-6265bis-09-5.4.7].
143
-
144
- - `true` will set the `SameSite` attribute to `Strict` for strict same site enforcement.
145
- - `false` will not set the `SameSite` attribute.
146
- - `'lax'` will set the `SameSite` attribute to `Lax` for lax same site enforcement.
147
- - `'none'` will set the `SameSite` attribute to `None` for an explicit cross-site cookie.
148
- - `'strict'` will set the `SameSite` attribute to `Strict` for strict same site enforcement.
149
-
150
- More information about the different enforcement levels can be found in
151
- [the specification][rfc-6265bis-09-5.4.7].
152
-
153
- **note** This is an attribute that has not yet been fully standardized, and may change in the future.
154
- This also means many clients may ignore this attribute until they understand it.
155
-
156
- ##### secure
157
-
158
- Specifies the `boolean` value for the [`Secure` `Set-Cookie` attribute][rfc-6265-5.2.5]. When truthy,
159
- the `Secure` attribute is set, otherwise it is not. By default, the `Secure` attribute is not set.
160
-
161
- **note** be careful when setting this to `true`, as compliant clients will not send the cookie back to
162
- the server in the future if the browser does not have an HTTPS connection.
163
-
164
- ## Example
165
-
166
- The following example uses this module in conjunction with the Node.js core HTTP server
167
- to prompt a user for their name and display it back on future visits.
168
-
169
- ```js
170
- var cookie = require('cookie');
171
- var escapeHtml = require('escape-html');
172
- var http = require('http');
173
- var url = require('url');
174
-
175
- function onRequest(req, res) {
176
- // Parse the query string
177
- var query = url.parse(req.url, true, true).query;
178
-
179
- if (query && query.name) {
180
- // Set a new cookie with the name
181
- res.setHeader('Set-Cookie', cookie.serialize('name', String(query.name), {
182
- httpOnly: true,
183
- maxAge: 60 * 60 * 24 * 7 // 1 week
184
- }));
185
-
186
- // Redirect back after setting cookie
187
- res.statusCode = 302;
188
- res.setHeader('Location', req.headers.referer || '/');
189
- res.end();
190
- return;
191
- }
192
-
193
- // Parse the cookies on the request
194
- var cookies = cookie.parse(req.headers.cookie || '');
195
-
196
- // Get the visitor name set in the cookie
197
- var name = cookies.name;
198
-
199
- res.setHeader('Content-Type', 'text/html; charset=UTF-8');
200
-
201
- if (name) {
202
- res.write('<p>Welcome back, <b>' + escapeHtml(name) + '</b>!</p>');
203
- } else {
204
- res.write('<p>Hello, new visitor!</p>');
205
- }
206
-
207
- res.write('<form method="GET">');
208
- res.write('<input placeholder="enter your name" name="name"> <input type="submit" value="Set Name">');
209
- res.end('</form>');
210
- }
211
-
212
- http.createServer(onRequest).listen(3000);
213
- ```
214
-
215
- ## Testing
216
-
217
- ```sh
218
- $ npm test
219
- ```
220
-
221
- ## Benchmark
222
-
223
- ```
224
- $ npm run bench
225
-
226
- > cookie@0.5.0 bench
227
- > node benchmark/index.js
228
-
229
- node@18.18.2
230
- acorn@8.10.0
231
- ada@2.6.0
232
- ares@1.19.1
233
- brotli@1.0.9
234
- cldr@43.1
235
- icu@73.2
236
- llhttp@6.0.11
237
- modules@108
238
- napi@9
239
- nghttp2@1.57.0
240
- nghttp3@0.7.0
241
- ngtcp2@0.8.1
242
- openssl@3.0.10+quic
243
- simdutf@3.2.14
244
- tz@2023c
245
- undici@5.26.3
246
- unicode@15.0
247
- uv@1.44.2
248
- uvwasi@0.0.18
249
- v8@10.2.154.26-node.26
250
- zlib@1.2.13.1-motley
251
-
252
- > node benchmark/parse-top.js
253
-
254
- cookie.parse - top sites
255
-
256
- 14 tests completed.
257
-
258
- parse accounts.google.com x 2,588,913 ops/sec ±0.74% (186 runs sampled)
259
- parse apple.com x 2,370,002 ops/sec ±0.69% (186 runs sampled)
260
- parse cloudflare.com x 2,213,102 ops/sec ±0.88% (188 runs sampled)
261
- parse docs.google.com x 2,194,157 ops/sec ±1.03% (184 runs sampled)
262
- parse drive.google.com x 2,265,084 ops/sec ±0.79% (187 runs sampled)
263
- parse en.wikipedia.org x 457,099 ops/sec ±0.81% (186 runs sampled)
264
- parse linkedin.com x 504,407 ops/sec ±0.89% (186 runs sampled)
265
- parse maps.google.com x 1,230,959 ops/sec ±0.98% (186 runs sampled)
266
- parse microsoft.com x 926,294 ops/sec ±0.88% (184 runs sampled)
267
- parse play.google.com x 2,311,338 ops/sec ±0.83% (185 runs sampled)
268
- parse support.google.com x 1,508,850 ops/sec ±0.86% (186 runs sampled)
269
- parse www.google.com x 1,022,582 ops/sec ±1.32% (182 runs sampled)
270
- parse youtu.be x 332,136 ops/sec ±1.02% (185 runs sampled)
271
- parse youtube.com x 323,833 ops/sec ±0.77% (183 runs sampled)
272
-
273
- > node benchmark/parse.js
274
-
275
- cookie.parse - generic
276
-
277
- 6 tests completed.
278
-
279
- simple x 3,214,032 ops/sec ±1.61% (183 runs sampled)
280
- decode x 587,237 ops/sec ±1.16% (187 runs sampled)
281
- unquote x 2,954,618 ops/sec ±1.35% (183 runs sampled)
282
- duplicates x 857,008 ops/sec ±0.89% (187 runs sampled)
283
- 10 cookies x 292,133 ops/sec ±0.89% (187 runs sampled)
284
- 100 cookies x 22,610 ops/sec ±0.68% (187 runs sampled)
285
- ```
286
-
287
- ## References
288
-
289
- - [RFC 6265: HTTP State Management Mechanism][rfc-6265]
290
- - [Same-site Cookies][rfc-6265bis-09-5.4.7]
291
-
292
- [rfc-cutler-httpbis-partitioned-cookies]: https://tools.ietf.org/html/draft-cutler-httpbis-partitioned-cookies/
293
- [rfc-west-cookie-priority-00-4.1]: https://tools.ietf.org/html/draft-west-cookie-priority-00#section-4.1
294
- [rfc-6265bis-09-5.4.7]: https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-09#section-5.4.7
295
- [rfc-6265]: https://tools.ietf.org/html/rfc6265
296
- [rfc-6265-5.1.4]: https://tools.ietf.org/html/rfc6265#section-5.1.4
297
- [rfc-6265-5.2.1]: https://tools.ietf.org/html/rfc6265#section-5.2.1
298
- [rfc-6265-5.2.2]: https://tools.ietf.org/html/rfc6265#section-5.2.2
299
- [rfc-6265-5.2.3]: https://tools.ietf.org/html/rfc6265#section-5.2.3
300
- [rfc-6265-5.2.4]: https://tools.ietf.org/html/rfc6265#section-5.2.4
301
- [rfc-6265-5.2.5]: https://tools.ietf.org/html/rfc6265#section-5.2.5
302
- [rfc-6265-5.2.6]: https://tools.ietf.org/html/rfc6265#section-5.2.6
303
- [rfc-6265-5.3]: https://tools.ietf.org/html/rfc6265#section-5.3
304
-
305
- ## License
306
-
307
- [MIT](LICENSE)
308
-
309
- [ci-image]: https://badgen.net/github/checks/jshttp/cookie/master?label=ci
310
- [ci-url]: https://github.com/jshttp/cookie/actions/workflows/ci.yml
311
- [coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/cookie/master
312
- [coveralls-url]: https://coveralls.io/r/jshttp/cookie?branch=master
313
- [node-image]: https://badgen.net/npm/node/cookie
314
- [node-url]: https://nodejs.org/en/download
315
- [npm-downloads-image]: https://badgen.net/npm/dm/cookie
316
- [npm-url]: https://npmjs.org/package/cookie
317
- [npm-version-image]: https://badgen.net/npm/v/cookie
@@ -1,25 +0,0 @@
1
- # Security Policies and Procedures
2
-
3
- ## Reporting a Bug
4
-
5
- The `cookie` team and community take all security bugs seriously. Thank
6
- you for improving the security of the project. We appreciate your efforts and
7
- responsible disclosure and will make every effort to acknowledge your
8
- contributions.
9
-
10
- Report security bugs by emailing the current owner(s) of `cookie`. This
11
- information can be found in the npm registry using the command
12
- `npm owner ls cookie`.
13
- If unsure or unable to get the information from the above, open an issue
14
- in the [project issue tracker](https://github.com/jshttp/cookie/issues)
15
- asking for the current contact information.
16
-
17
- To ensure the timely response to your report, please ensure that the entirety
18
- of the report is contained within the email body and not solely behind a web
19
- link or an attachment.
20
-
21
- At least one owner will acknowledge your email within 48 hours, and will send a
22
- more detailed response within 48 hours indicating the next steps in handling
23
- your report. After the initial reply to your report, the owners will
24
- endeavor to keep you informed of the progress towards a fix and full
25
- announcement, and may ask for additional information or guidance.
@@ -1,274 +0,0 @@
1
- /*!
2
- * cookie
3
- * Copyright(c) 2012-2014 Roman Shtylman
4
- * Copyright(c) 2015 Douglas Christopher Wilson
5
- * MIT Licensed
6
- */
7
-
8
- 'use strict';
9
-
10
- /**
11
- * Module exports.
12
- * @public
13
- */
14
-
15
- exports.parse = parse;
16
- exports.serialize = serialize;
17
-
18
- /**
19
- * Module variables.
20
- * @private
21
- */
22
-
23
- var __toString = Object.prototype.toString
24
-
25
- /**
26
- * RegExp to match field-content in RFC 7230 sec 3.2
27
- *
28
- * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
29
- * field-vchar = VCHAR / obs-text
30
- * obs-text = %x80-FF
31
- */
32
-
33
- var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
34
-
35
- /**
36
- * Parse a cookie header.
37
- *
38
- * Parse the given cookie header string into an object
39
- * The object has the various cookies as keys(names) => values
40
- *
41
- * @param {string} str
42
- * @param {object} [options]
43
- * @return {object}
44
- * @public
45
- */
46
-
47
- function parse(str, options) {
48
- if (typeof str !== 'string') {
49
- throw new TypeError('argument str must be a string');
50
- }
51
-
52
- var obj = {}
53
- var opt = options || {};
54
- var dec = opt.decode || decode;
55
-
56
- var index = 0
57
- while (index < str.length) {
58
- var eqIdx = str.indexOf('=', index)
59
-
60
- // no more cookie pairs
61
- if (eqIdx === -1) {
62
- break
63
- }
64
-
65
- var endIdx = str.indexOf(';', index)
66
-
67
- if (endIdx === -1) {
68
- endIdx = str.length
69
- } else if (endIdx < eqIdx) {
70
- // backtrack on prior semicolon
71
- index = str.lastIndexOf(';', eqIdx - 1) + 1
72
- continue
73
- }
74
-
75
- var key = str.slice(index, eqIdx).trim()
76
-
77
- // only assign once
78
- if (undefined === obj[key]) {
79
- var val = str.slice(eqIdx + 1, endIdx).trim()
80
-
81
- // quoted values
82
- if (val.charCodeAt(0) === 0x22) {
83
- val = val.slice(1, -1)
84
- }
85
-
86
- obj[key] = tryDecode(val, dec);
87
- }
88
-
89
- index = endIdx + 1
90
- }
91
-
92
- return obj;
93
- }
94
-
95
- /**
96
- * Serialize data into a cookie header.
97
- *
98
- * Serialize the a name value pair into a cookie string suitable for
99
- * http headers. An optional options object specified cookie parameters.
100
- *
101
- * serialize('foo', 'bar', { httpOnly: true })
102
- * => "foo=bar; httpOnly"
103
- *
104
- * @param {string} name
105
- * @param {string} val
106
- * @param {object} [options]
107
- * @return {string}
108
- * @public
109
- */
110
-
111
- function serialize(name, val, options) {
112
- var opt = options || {};
113
- var enc = opt.encode || encode;
114
-
115
- if (typeof enc !== 'function') {
116
- throw new TypeError('option encode is invalid');
117
- }
118
-
119
- if (!fieldContentRegExp.test(name)) {
120
- throw new TypeError('argument name is invalid');
121
- }
122
-
123
- var value = enc(val);
124
-
125
- if (value && !fieldContentRegExp.test(value)) {
126
- throw new TypeError('argument val is invalid');
127
- }
128
-
129
- var str = name + '=' + value;
130
-
131
- if (null != opt.maxAge) {
132
- var maxAge = opt.maxAge - 0;
133
-
134
- if (isNaN(maxAge) || !isFinite(maxAge)) {
135
- throw new TypeError('option maxAge is invalid')
136
- }
137
-
138
- str += '; Max-Age=' + Math.floor(maxAge);
139
- }
140
-
141
- if (opt.domain) {
142
- if (!fieldContentRegExp.test(opt.domain)) {
143
- throw new TypeError('option domain is invalid');
144
- }
145
-
146
- str += '; Domain=' + opt.domain;
147
- }
148
-
149
- if (opt.path) {
150
- if (!fieldContentRegExp.test(opt.path)) {
151
- throw new TypeError('option path is invalid');
152
- }
153
-
154
- str += '; Path=' + opt.path;
155
- }
156
-
157
- if (opt.expires) {
158
- var expires = opt.expires
159
-
160
- if (!isDate(expires) || isNaN(expires.valueOf())) {
161
- throw new TypeError('option expires is invalid');
162
- }
163
-
164
- str += '; Expires=' + expires.toUTCString()
165
- }
166
-
167
- if (opt.httpOnly) {
168
- str += '; HttpOnly';
169
- }
170
-
171
- if (opt.secure) {
172
- str += '; Secure';
173
- }
174
-
175
- if (opt.partitioned) {
176
- str += '; Partitioned'
177
- }
178
-
179
- if (opt.priority) {
180
- var priority = typeof opt.priority === 'string'
181
- ? opt.priority.toLowerCase()
182
- : opt.priority
183
-
184
- switch (priority) {
185
- case 'low':
186
- str += '; Priority=Low'
187
- break
188
- case 'medium':
189
- str += '; Priority=Medium'
190
- break
191
- case 'high':
192
- str += '; Priority=High'
193
- break
194
- default:
195
- throw new TypeError('option priority is invalid')
196
- }
197
- }
198
-
199
- if (opt.sameSite) {
200
- var sameSite = typeof opt.sameSite === 'string'
201
- ? opt.sameSite.toLowerCase() : opt.sameSite;
202
-
203
- switch (sameSite) {
204
- case true:
205
- str += '; SameSite=Strict';
206
- break;
207
- case 'lax':
208
- str += '; SameSite=Lax';
209
- break;
210
- case 'strict':
211
- str += '; SameSite=Strict';
212
- break;
213
- case 'none':
214
- str += '; SameSite=None';
215
- break;
216
- default:
217
- throw new TypeError('option sameSite is invalid');
218
- }
219
- }
220
-
221
- return str;
222
- }
223
-
224
- /**
225
- * URL-decode string value. Optimized to skip native call when no %.
226
- *
227
- * @param {string} str
228
- * @returns {string}
229
- */
230
-
231
- function decode (str) {
232
- return str.indexOf('%') !== -1
233
- ? decodeURIComponent(str)
234
- : str
235
- }
236
-
237
- /**
238
- * URL-encode value.
239
- *
240
- * @param {string} val
241
- * @returns {string}
242
- */
243
-
244
- function encode (val) {
245
- return encodeURIComponent(val)
246
- }
247
-
248
- /**
249
- * Determine if value is a Date.
250
- *
251
- * @param {*} val
252
- * @private
253
- */
254
-
255
- function isDate (val) {
256
- return __toString.call(val) === '[object Date]' ||
257
- val instanceof Date
258
- }
259
-
260
- /**
261
- * Try decoding a string using a decoding function.
262
- *
263
- * @param {string} str
264
- * @param {function} decode
265
- * @private
266
- */
267
-
268
- function tryDecode(str, decode) {
269
- try {
270
- return decode(str);
271
- } catch (e) {
272
- return str;
273
- }
274
- }
@@ -1,44 +0,0 @@
1
- {
2
- "name": "cookie",
3
- "description": "HTTP server cookie parsing and serialization",
4
- "version": "0.6.0",
5
- "author": "Roman Shtylman <shtylman@gmail.com>",
6
- "contributors": [
7
- "Douglas Christopher Wilson <doug@somethingdoug.com>"
8
- ],
9
- "license": "MIT",
10
- "keywords": [
11
- "cookie",
12
- "cookies"
13
- ],
14
- "repository": "jshttp/cookie",
15
- "devDependencies": {
16
- "beautify-benchmark": "0.2.4",
17
- "benchmark": "2.1.4",
18
- "eslint": "8.53.0",
19
- "eslint-plugin-markdown": "3.0.1",
20
- "mocha": "10.2.0",
21
- "nyc": "15.1.0",
22
- "safe-buffer": "5.2.1",
23
- "top-sites": "1.1.194"
24
- },
25
- "files": [
26
- "HISTORY.md",
27
- "LICENSE",
28
- "README.md",
29
- "SECURITY.md",
30
- "index.js"
31
- ],
32
- "engines": {
33
- "node": ">= 0.6"
34
- },
35
- "scripts": {
36
- "bench": "node benchmark/index.js",
37
- "lint": "eslint .",
38
- "test": "mocha --reporter spec --bail --check-leaks test/",
39
- "test-ci": "nyc --reporter=lcov --reporter=text npm test",
40
- "test-cov": "nyc --reporter=html --reporter=text npm test",
41
- "update-bench": "node scripts/update-benchmark.js",
42
- "version": "node scripts/version-history.js && git add HISTORY.md"
43
- }
44
- }