@kensio/yulin 1.10.0 → 1.10.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 (677) hide show
  1. package/dist/cli/watch/sim-watch-event-path.js +1 -1
  2. package/dist/cli/watch/sim-watch-restarts.js +1 -1
  3. package/dist/cli/watch/sim-watch-restarts.js.map +1 -1
  4. package/dist/cli/watch/sim-watch-watcher.js +3 -3
  5. package/dist/config/eslint/cffjs2.eslint.config.js +17 -98
  6. package/dist/config/eslint/cffjs2.eslint.config.js.map +1 -1
  7. package/dist/config/lint/cff-js2-lint-plugin.d.ts +16 -0
  8. package/dist/config/lint/cff-js2-lint-plugin.d.ts.map +1 -0
  9. package/dist/config/lint/cff-js2-lint-plugin.js +39 -0
  10. package/dist/config/lint/cff-js2-lint-plugin.js.map +1 -0
  11. package/dist/config/lint/cff-js2-lint-rules.d.ts +20 -0
  12. package/dist/config/lint/cff-js2-lint-rules.d.ts.map +1 -0
  13. package/dist/config/lint/cff-js2-lint-rules.js +53 -0
  14. package/dist/config/lint/cff-js2-lint-rules.js.map +1 -0
  15. package/dist/config/lint/cff-js2-lint.fixture.d.ts +39 -0
  16. package/dist/config/lint/cff-js2-lint.fixture.d.ts.map +1 -0
  17. package/dist/config/lint/cff-js2-lint.fixture.js +229 -0
  18. package/dist/config/lint/cff-js2-lint.fixture.js.map +1 -0
  19. package/dist/config/lint/cff-js2-oxlint-plugin.d.ts +9 -0
  20. package/dist/config/lint/cff-js2-oxlint-plugin.d.ts.map +1 -0
  21. package/dist/config/lint/cff-js2-oxlint-plugin.js +9 -0
  22. package/dist/config/lint/cff-js2-oxlint-plugin.js.map +1 -0
  23. package/dist/config/lint/cff-js2-restriction.d.ts +82 -0
  24. package/dist/config/lint/cff-js2-restriction.d.ts.map +1 -0
  25. package/dist/config/lint/cff-js2-restriction.js +85 -0
  26. package/dist/config/lint/cff-js2-restriction.js.map +1 -0
  27. package/dist/config/lint/cff-js2-unavailable-global.rule.d.ts +10 -0
  28. package/dist/config/lint/cff-js2-unavailable-global.rule.d.ts.map +1 -0
  29. package/dist/config/lint/cff-js2-unavailable-global.rule.js +42 -0
  30. package/dist/config/lint/cff-js2-unavailable-global.rule.js.map +1 -0
  31. package/dist/config/lint/index.d.ts +6 -0
  32. package/dist/config/lint/index.d.ts.map +1 -0
  33. package/dist/config/lint/index.js +5 -0
  34. package/dist/config/lint/index.js.map +1 -0
  35. package/dist/config/lint/lint-plugin.type.d.ts +82 -0
  36. package/dist/config/lint/lint-plugin.type.d.ts.map +1 -0
  37. package/dist/config/lint/lint-plugin.type.js +11 -0
  38. package/dist/config/lint/lint-plugin.type.js.map +1 -0
  39. package/dist/config/lint/repo-lint-plugin.d.ts +68 -0
  40. package/dist/config/lint/repo-lint-plugin.d.ts.map +1 -0
  41. package/dist/config/lint/repo-lint-plugin.js +64 -0
  42. package/dist/config/lint/repo-lint-plugin.js.map +1 -0
  43. package/dist/config/oxlint/cffjs2.oxlint.config.d.ts +26 -0
  44. package/dist/config/oxlint/cffjs2.oxlint.config.d.ts.map +1 -0
  45. package/dist/config/oxlint/cffjs2.oxlint.config.js +28 -0
  46. package/dist/config/oxlint/cffjs2.oxlint.config.js.map +1 -0
  47. package/dist/config/oxlint/cffjs2.oxlintrc.json +36 -0
  48. package/dist/config/oxlint/index.d.ts +2 -0
  49. package/dist/config/oxlint/index.d.ts.map +1 -0
  50. package/dist/config/oxlint/index.js +2 -0
  51. package/dist/config/oxlint/index.js.map +1 -0
  52. package/dist/sdk/module/sim-sdk-module-client-interceptor.js +1 -1
  53. package/dist/sdk/send-patch.js +1 -1
  54. package/dist/sdk/send-patch.js.map +1 -1
  55. package/dist/sdk/sim-sdk-interception.js +1 -1
  56. package/dist/sdk/sim-sdk-interception.js.map +1 -1
  57. package/dist/sdk/sim-sdk.js +1 -1
  58. package/dist/sdk/sim-sdk.js.map +1 -1
  59. package/dist/serve/http/live-reload/sim-live-reload-report.js +1 -1
  60. package/dist/serve/http/live-reload/sim-local-live-reload.d.ts.map +1 -1
  61. package/dist/serve/http/live-reload/sim-local-live-reload.js +2 -3
  62. package/dist/serve/http/live-reload/sim-local-live-reload.js.map +1 -1
  63. package/dist/serve/http/local-server/sim-aws-local-request-handler.js +1 -1
  64. package/dist/serve/http/local-server/sim-aws-local-request-handler.js.map +1 -1
  65. package/dist/service/acm/certificate/sim-acm-certificate.d.ts.map +1 -1
  66. package/dist/service/acm/certificate/sim-acm-certificate.js.map +1 -1
  67. package/dist/service/acm/certificate/sim-acm-domain-validation.d.ts.map +1 -1
  68. package/dist/service/acm/certificate/sim-acm-domain-validation.js.map +1 -1
  69. package/dist/service/acm/cfn/property/sim-cfn-acm-cert-properties.d.ts.map +1 -1
  70. package/dist/service/acm/cfn/property/sim-cfn-acm-cert-properties.js.map +1 -1
  71. package/dist/service/acm/cfn/validation/sim-cfn-acm-validation-records.js +1 -1
  72. package/dist/service/acm/command/describe-certificate/describe-certificate.command.d.ts.map +1 -1
  73. package/dist/service/acm/command/list-certificates/list-certificates.command.d.ts.map +1 -1
  74. package/dist/service/acm/command/request-certificate/request-certificate.command.d.ts.map +1 -1
  75. package/dist/service/acm/validation/sim-acm-certificate-validation.d.ts.map +1 -1
  76. package/dist/service/acm/validation/sim-acm-certificate-validation.js +3 -4
  77. package/dist/service/acm/validation/sim-acm-certificate-validation.js.map +1 -1
  78. package/dist/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-options.d.ts.map +1 -1
  79. package/dist/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-options.js.map +1 -1
  80. package/dist/service/aws/caller/sim-aws-caller-resolver.d.ts.map +1 -1
  81. package/dist/service/aws/caller/sim-aws-caller-resolver.js +2 -3
  82. package/dist/service/aws/caller/sim-aws-caller-resolver.js.map +1 -1
  83. package/dist/service/aws/caller/sim-aws-caller.d.ts.map +1 -1
  84. package/dist/service/aws/factory/account-service-cache-key.d.ts.map +1 -1
  85. package/dist/service/aws/factory/account-service-cache-key.js.map +1 -1
  86. package/dist/service/aws/factory/sim-aws-account-service-cache.js +1 -1
  87. package/dist/service/aws/factory/sim-aws-account-service-cache.js.map +1 -1
  88. package/dist/service/cloudformation/bind/validate/sim-cfn-exec-binding-finder.d.ts.map +1 -1
  89. package/dist/service/cloudformation/bind/validate/sim-cfn-exec-binding-finder.js +1 -1
  90. package/dist/service/cloudformation/bind/validate/sim-cfn-exec-binding-finder.js.map +1 -1
  91. package/dist/service/cloudformation/bind/validate/sim-cfn-exec-binding-matcher.js +2 -2
  92. package/dist/service/cloudformation/cdk/assets/sim-cdk-asset-bytes.js +3 -3
  93. package/dist/service/cloudformation/cdk/assets/sim-cdk-assets-publisher.js +1 -1
  94. package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding-template.factory.d.ts +40 -0
  95. package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding-template.factory.d.ts.map +1 -0
  96. package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding-template.factory.js +107 -0
  97. package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding-template.factory.js.map +1 -0
  98. package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding.d.ts +66 -0
  99. package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding.d.ts.map +1 -0
  100. package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding.js +133 -0
  101. package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding.js.map +1 -0
  102. package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-copier.d.ts +6 -1
  103. package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-copier.d.ts.map +1 -1
  104. package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-copier.js +7 -1
  105. package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-copier.js.map +1 -1
  106. package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-file.js +1 -1
  107. package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-files.js +2 -2
  108. package/dist/service/cloudformation/cdk/s3/bucket-deployment/destination/sim-cdk-bucket-deploy-destination.d.ts +14 -0
  109. package/dist/service/cloudformation/cdk/s3/bucket-deployment/destination/sim-cdk-bucket-deploy-destination.d.ts.map +1 -0
  110. package/dist/service/cloudformation/cdk/s3/bucket-deployment/destination/sim-cdk-bucket-deploy-destination.js +20 -0
  111. package/dist/service/cloudformation/cdk/s3/bucket-deployment/destination/sim-cdk-bucket-deploy-destination.js.map +1 -0
  112. package/dist/service/cloudformation/cdk/s3/bucket-deployment/filter/sim-cdk-bucket-deploy-filter.js +7 -1
  113. package/dist/service/cloudformation/cdk/s3/bucket-deployment/filter/sim-cdk-bucket-deploy-filter.js.map +1 -1
  114. package/dist/service/cloudformation/cdk/s3/bucket-deployment/metadata/sim-cdk-bucket-deploy-metadata.d.ts +58 -0
  115. package/dist/service/cloudformation/cdk/s3/bucket-deployment/metadata/sim-cdk-bucket-deploy-metadata.d.ts.map +1 -0
  116. package/dist/service/cloudformation/cdk/s3/bucket-deployment/metadata/sim-cdk-bucket-deploy-metadata.js +65 -0
  117. package/dist/service/cloudformation/cdk/s3/bucket-deployment/metadata/sim-cdk-bucket-deploy-metadata.js.map +1 -0
  118. package/dist/service/cloudformation/cdk/s3/bucket-deployment/property/sim-cdk-bucket-deploy-values.js +1 -1
  119. package/dist/service/cloudformation/cdk/s3/bucket-deployment/sim-cdk-bucket-deployment.d.ts.map +1 -1
  120. package/dist/service/cloudformation/cdk/s3/bucket-deployment/sim-cdk-bucket-deployment.js +16 -7
  121. package/dist/service/cloudformation/cdk/s3/bucket-deployment/sim-cdk-bucket-deployment.js.map +1 -1
  122. package/dist/service/cloudformation/cdk/s3/bucket-deployment/source/sim-cdk-bucket-deploy-source.d.ts.map +1 -1
  123. package/dist/service/cloudformation/cdk/s3/bucket-deployment/source/sim-cdk-bucket-deploy-source.js +1 -0
  124. package/dist/service/cloudformation/cdk/s3/bucket-deployment/source/sim-cdk-bucket-deploy-source.js.map +1 -1
  125. package/dist/service/cloudformation/cdk/s3/bucket-notifications/property/sim-cdk-bucket-notification-properties.js +1 -1
  126. package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications.d.ts +4 -2
  127. package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications.d.ts.map +1 -1
  128. package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications.js +4 -2
  129. package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications.js.map +1 -1
  130. package/dist/service/cloudformation/cdk/sim-cdk-out-context.js +1 -1
  131. package/dist/service/cloudformation/command/create-stack/create-stack.handler.d.ts.map +1 -1
  132. package/dist/service/cloudformation/command/create-stack/create-stack.handler.js.map +1 -1
  133. package/dist/service/cloudformation/command/describe-stacks/describe-stacks.handler.d.ts.map +1 -1
  134. package/dist/service/cloudformation/command/describe-stacks/describe-stacks.handler.js.map +1 -1
  135. package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.js +1 -1
  136. package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-cfn-value-adapter.d.ts.map +1 -1
  137. package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-cfn-value-adapter.js +8 -0
  138. package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-cfn-value-adapter.js.map +1 -1
  139. package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-oac-cfn.d.ts +25 -0
  140. package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-oac-cfn.d.ts.map +1 -0
  141. package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-oac-cfn.js +32 -0
  142. package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-oac-cfn.js.map +1 -0
  143. package/dist/service/cloudformation/resource/cfn/dynamodb/sim-dynamodb-table-cfn.d.ts.map +1 -1
  144. package/dist/service/cloudformation/resource/cfn/dynamodb/sim-dynamodb-table-cfn.js +4 -5
  145. package/dist/service/cloudformation/resource/cfn/dynamodb/sim-dynamodb-table-cfn.js.map +1 -1
  146. package/dist/service/cloudformation/resource/create/sim-cfn-resource-create-operation.d.ts +11 -0
  147. package/dist/service/cloudformation/resource/create/sim-cfn-resource-create-operation.d.ts.map +1 -1
  148. package/dist/service/cloudformation/resource/create/sim-cfn-resource-create-operation.js +20 -2
  149. package/dist/service/cloudformation/resource/create/sim-cfn-resource-create-operation.js.map +1 -1
  150. package/dist/service/cloudformation/resource/inert/sim-cfn-inert-resource-types.d.ts +20 -0
  151. package/dist/service/cloudformation/resource/inert/sim-cfn-inert-resource-types.d.ts.map +1 -0
  152. package/dist/service/cloudformation/resource/inert/sim-cfn-inert-resource-types.js +32 -0
  153. package/dist/service/cloudformation/resource/inert/sim-cfn-inert-resource-types.js.map +1 -0
  154. package/dist/service/cloudformation/resource/inert/sim-cfn-inert-resource.d.ts +19 -0
  155. package/dist/service/cloudformation/resource/inert/sim-cfn-inert-resource.d.ts.map +1 -0
  156. package/dist/service/cloudformation/resource/inert/sim-cfn-inert-resource.js +26 -0
  157. package/dist/service/cloudformation/resource/inert/sim-cfn-inert-resource.js.map +1 -0
  158. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-resolver.d.ts.map +1 -1
  159. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-resolver.js +2 -3
  160. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-resolver.js.map +1 -1
  161. package/dist/service/cloudformation/resource/sim-cfn-resource.d.ts +15 -0
  162. package/dist/service/cloudformation/resource/sim-cfn-resource.d.ts.map +1 -1
  163. package/dist/service/cloudformation/resource/sim-cfn-resource.js +21 -0
  164. package/dist/service/cloudformation/resource/sim-cfn-resource.js.map +1 -1
  165. package/dist/service/cloudformation/resource/state/sim-cfn-resource-creation-state.d.ts +20 -0
  166. package/dist/service/cloudformation/resource/state/sim-cfn-resource-creation-state.d.ts.map +1 -1
  167. package/dist/service/cloudformation/resource/state/sim-cfn-resource-creation-state.js +41 -11
  168. package/dist/service/cloudformation/resource/state/sim-cfn-resource-creation-state.js.map +1 -1
  169. package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-resource-batch-creator.d.ts.map +1 -1
  170. package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-resource-batch-creator.js.map +1 -1
  171. package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-resource-creator.js +1 -1
  172. package/dist/service/cloudformation/stack/report/sim-cfn-stack-resource-report.d.ts +9 -0
  173. package/dist/service/cloudformation/stack/report/sim-cfn-stack-resource-report.d.ts.map +1 -1
  174. package/dist/service/cloudformation/stack/report/sim-cfn-stack-resource-report.js +11 -0
  175. package/dist/service/cloudformation/stack/report/sim-cfn-stack-resource-report.js.map +1 -1
  176. package/dist/service/cloudformation/stack/sim-cfn-stack-resource-operations.d.ts.map +1 -1
  177. package/dist/service/cloudformation/stack/sim-cfn-stack-resource-operations.js.map +1 -1
  178. package/dist/service/cloudformation/stack/sim-cfn-stack.d.ts +2 -0
  179. package/dist/service/cloudformation/stack/sim-cfn-stack.d.ts.map +1 -1
  180. package/dist/service/cloudformation/stack/sim-cfn-stack.js +4 -0
  181. package/dist/service/cloudformation/stack/sim-cfn-stack.js.map +1 -1
  182. package/dist/service/cloudformation/stack/teardown/sim-cfn-stack-resource-deleter.js +1 -1
  183. package/dist/service/cloudformation/template/node/fn/find-in-map/sim-cfn-fn-find-in-map.js +2 -2
  184. package/dist/service/cloudformation/template/node/fn/if/sim-cfn-fn-if.d.ts.map +1 -1
  185. package/dist/service/cloudformation/template/node/fn/if/sim-cfn-fn-if.js +3 -4
  186. package/dist/service/cloudformation/template/node/fn/if/sim-cfn-fn-if.js.map +1 -1
  187. package/dist/service/cloudformation/template/node/fn/select/sim-cfn-fn-select.js +1 -1
  188. package/dist/service/cloudformation/watch/sim-cfn-template-file-events.js +1 -1
  189. package/dist/service/cloudformation/watch/sim-cfn-template-watch-report.js +2 -2
  190. package/dist/service/cloudfront/cff/adapter/sim-cff-request-metadata-adapter.js +3 -3
  191. package/dist/service/cloudfront/cff/function-code-module/cff-code-module-file.js +1 -1
  192. package/dist/service/cloudfront/cff/sim-cloudfront-function.d.ts.map +1 -1
  193. package/dist/service/cloudfront/cff/sim-cloudfront-function.js.map +1 -1
  194. package/dist/service/cloudfront/cfn/cff/sim-cfn-cff-create-input-builder.d.ts.map +1 -1
  195. package/dist/service/cloudfront/cfn/cff/sim-cfn-cff-create-input-builder.js.map +1 -1
  196. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-config-validator.d.ts.map +1 -1
  197. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-config-validator.js.map +1 -1
  198. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-deleter.d.ts.map +1 -1
  199. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-deleter.js.map +1 -1
  200. package/dist/service/cloudfront/cfn/origin-access-control/sim-cfn-cf-oac-config.d.ts +39 -0
  201. package/dist/service/cloudfront/cfn/origin-access-control/sim-cfn-cf-oac-config.d.ts.map +1 -0
  202. package/dist/service/cloudfront/cfn/origin-access-control/sim-cfn-cf-oac-config.js +97 -0
  203. package/dist/service/cloudfront/cfn/origin-access-control/sim-cfn-cf-oac-config.js.map +1 -0
  204. package/dist/service/cloudfront/cfn/origin-access-control/sim-cfn-cf-oac-creator.d.ts +25 -0
  205. package/dist/service/cloudfront/cfn/origin-access-control/sim-cfn-cf-oac-creator.d.ts.map +1 -0
  206. package/dist/service/cloudfront/cfn/origin-access-control/sim-cfn-cf-oac-creator.js +33 -0
  207. package/dist/service/cloudfront/cfn/origin-access-control/sim-cfn-cf-oac-creator.js.map +1 -0
  208. package/dist/service/cloudfront/cfn/response-headers-policy/sim-cfn-cf-rh-policy-config.js +2 -2
  209. package/dist/service/cloudfront/cfn/response-headers-policy/sim-cfn-cf-rh-policy-creator.d.ts.map +1 -1
  210. package/dist/service/cloudfront/cfn/response-headers-policy/sim-cfn-cf-rh-policy-creator.js.map +1 -1
  211. package/dist/service/cloudfront/cfn/sim-cfn-cloudfront-resource-factory.d.ts +1 -0
  212. package/dist/service/cloudfront/cfn/sim-cfn-cloudfront-resource-factory.d.ts.map +1 -1
  213. package/dist/service/cloudfront/cfn/sim-cfn-cloudfront-resource-factory.js +12 -0
  214. package/dist/service/cloudfront/cfn/sim-cfn-cloudfront-resource-factory.js.map +1 -1
  215. package/dist/service/cloudfront/command/create-distribution/create-distribution.command.d.ts +8 -1
  216. package/dist/service/cloudfront/command/create-distribution/create-distribution.command.d.ts.map +1 -1
  217. package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.d.ts +2 -0
  218. package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.d.ts.map +1 -1
  219. package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.js.map +1 -1
  220. package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.d.ts.map +1 -1
  221. package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.js.map +1 -1
  222. package/dist/service/cloudfront/command/update-distribution/update-distribution.handler.d.ts +2 -0
  223. package/dist/service/cloudfront/command/update-distribution/update-distribution.handler.d.ts.map +1 -1
  224. package/dist/service/cloudfront/command/update-distribution/update-distribution.handler.js.map +1 -1
  225. package/dist/service/cloudfront/distribution/configurator/sim-cf-distribution-configurator.factory.d.ts +2 -0
  226. package/dist/service/cloudfront/distribution/configurator/sim-cf-distribution-configurator.factory.d.ts.map +1 -1
  227. package/dist/service/cloudfront/distribution/configurator/sim-cf-distribution-configurator.factory.js +1 -1
  228. package/dist/service/cloudfront/distribution/configurator/sim-cf-distribution-configurator.factory.js.map +1 -1
  229. package/dist/service/cloudfront/distribution/configurator/sim-cff-associations-configure.d.ts.map +1 -1
  230. package/dist/service/cloudfront/distribution/configurator/sim-cff-associations-configure.js.map +1 -1
  231. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-behavior-configurator.js.map +1 -1
  232. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.d.ts +19 -1
  233. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.d.ts.map +1 -1
  234. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js +51 -4
  235. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js.map +1 -1
  236. package/dist/service/cloudfront/distribution/sim-cf-distribution-reconfigurer.d.ts +2 -0
  237. package/dist/service/cloudfront/distribution/sim-cf-distribution-reconfigurer.d.ts.map +1 -1
  238. package/dist/service/cloudfront/distribution/sim-cf-distribution-reconfigurer.js.map +1 -1
  239. package/dist/service/cloudfront/error/sim-cloudfront.error.d.ts +20 -0
  240. package/dist/service/cloudfront/error/sim-cloudfront.error.d.ts.map +1 -1
  241. package/dist/service/cloudfront/error/sim-cloudfront.error.js +24 -0
  242. package/dist/service/cloudfront/error/sim-cloudfront.error.js.map +1 -1
  243. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-access-identity.d.ts +14 -0
  244. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-access-identity.d.ts.map +1 -0
  245. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-access-identity.js +19 -0
  246. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-access-identity.js.map +1 -0
  247. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-bucket.d.ts +14 -0
  248. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-bucket.d.ts.map +1 -0
  249. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-bucket.js +2 -0
  250. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-bucket.js.map +1 -0
  251. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-key.d.ts +17 -0
  252. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-key.d.ts.map +1 -0
  253. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-key.js +23 -0
  254. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-key.js.map +1 -0
  255. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-loader.d.ts +31 -0
  256. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-loader.d.ts.map +1 -0
  257. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-loader.js +54 -0
  258. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-loader.js.map +1 -0
  259. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-resolver-factory.d.ts +11 -2
  260. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-resolver-factory.d.ts.map +1 -1
  261. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-resolver-factory.js +19 -6
  262. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-resolver-factory.js.map +1 -1
  263. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-responses.d.ts +32 -0
  264. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-responses.d.ts.map +1 -0
  265. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-responses.js +51 -0
  266. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-responses.js.map +1 -0
  267. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-signer.d.ts +26 -0
  268. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-signer.d.ts.map +1 -0
  269. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-signer.js +36 -0
  270. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-signer.js.map +1 -0
  271. package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.d.ts +25 -9
  272. package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.d.ts.map +1 -1
  273. package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.js +40 -48
  274. package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.js.map +1 -1
  275. package/dist/service/cloudfront/origin-access-control/sim-cf-origin-access-control-registry.d.ts +28 -0
  276. package/dist/service/cloudfront/origin-access-control/sim-cf-origin-access-control-registry.d.ts.map +1 -0
  277. package/dist/service/cloudfront/origin-access-control/sim-cf-origin-access-control-registry.js +41 -0
  278. package/dist/service/cloudfront/origin-access-control/sim-cf-origin-access-control-registry.js.map +1 -0
  279. package/dist/service/cloudfront/origin-access-control/sim-cf-origin-access-control.d.ts +61 -0
  280. package/dist/service/cloudfront/origin-access-control/sim-cf-origin-access-control.d.ts.map +1 -0
  281. package/dist/service/cloudfront/origin-access-control/sim-cf-origin-access-control.js +53 -0
  282. package/dist/service/cloudfront/origin-access-control/sim-cf-origin-access-control.js.map +1 -0
  283. package/dist/service/cloudfront/resolver/sim-cloudfront-path-pattern.d.ts +10 -0
  284. package/dist/service/cloudfront/resolver/sim-cloudfront-path-pattern.d.ts.map +1 -1
  285. package/dist/service/cloudfront/resolver/sim-cloudfront-path-pattern.js +22 -2
  286. package/dist/service/cloudfront/resolver/sim-cloudfront-path-pattern.js.map +1 -1
  287. package/dist/service/cloudfront/sim-cloudfront-commands.d.ts +3 -0
  288. package/dist/service/cloudfront/sim-cloudfront-commands.d.ts.map +1 -1
  289. package/dist/service/cloudfront/sim-cloudfront-commands.js +3 -0
  290. package/dist/service/cloudfront/sim-cloudfront-commands.js.map +1 -1
  291. package/dist/service/cloudfront/sim-cloudfront-service-principal.d.ts +9 -0
  292. package/dist/service/cloudfront/sim-cloudfront-service-principal.d.ts.map +1 -0
  293. package/dist/service/cloudfront/sim-cloudfront-service-principal.js +9 -0
  294. package/dist/service/cloudfront/sim-cloudfront-service-principal.js.map +1 -0
  295. package/dist/service/cloudfront/sim-cloudfront.d.ts +19 -0
  296. package/dist/service/cloudfront/sim-cloudfront.d.ts.map +1 -1
  297. package/dist/service/cloudfront/sim-cloudfront.js +26 -0
  298. package/dist/service/cloudfront/sim-cloudfront.js.map +1 -1
  299. package/dist/service/cognito/command/auth/auth.command.d.ts.map +1 -1
  300. package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.d.ts.map +1 -1
  301. package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.js +0 -1
  302. package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.js.map +1 -1
  303. package/dist/service/cognito/command/client/list-user-pool-clients.command.d.ts.map +1 -1
  304. package/dist/service/cognito/command/user-pool/user-pool.command.d.ts.map +1 -1
  305. package/dist/service/cognito/serve/sim-cognito-openid-configuration.d.ts.map +1 -1
  306. package/dist/service/cognito/serve/sim-cognito-openid-configuration.js.map +1 -1
  307. package/dist/service/cognito/user-pool/auth/sim-cognito-secret-hash.js +1 -1
  308. package/dist/service/cognito/user-pool/client/sim-cognito-token-lifetime.d.ts.map +1 -1
  309. package/dist/service/cognito/user-pool/client/sim-cognito-token-lifetime.js.map +1 -1
  310. package/dist/service/cognito/user-pool/message/sim-cognito-message-occasion.d.ts.map +1 -1
  311. package/dist/service/cognito/user-pool/message/sim-cognito-verification-messages.d.ts.map +1 -1
  312. package/dist/service/cognito/user-pool/message/sim-cognito-verification-messages.js.map +1 -1
  313. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts.map +1 -1
  314. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js.map +1 -1
  315. package/dist/service/cognito/user-pool/token/sim-cognito-access-token.d.ts.map +1 -1
  316. package/dist/service/cognito/user-pool/token/sim-cognito-access-token.js +0 -2
  317. package/dist/service/cognito/user-pool/token/sim-cognito-access-token.js.map +1 -1
  318. package/dist/service/cognito/user-pool/token/sim-cognito-group-override.js +1 -1
  319. package/dist/service/cognito/user-pool/token/sim-cognito-id-token.d.ts.map +1 -1
  320. package/dist/service/cognito/user-pool/token/sim-cognito-id-token.js +0 -2
  321. package/dist/service/cognito/user-pool/token/sim-cognito-id-token.js.map +1 -1
  322. package/dist/service/cognito/user-pool/token/sim-cognito-token-claims.d.ts.map +1 -1
  323. package/dist/service/cognito/user-pool/token/sim-cognito-token-claims.js.map +1 -1
  324. package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.d.ts.map +1 -1
  325. package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.js +1 -0
  326. package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.js.map +1 -1
  327. package/dist/service/cognito/user-pool/user/sim-cognito-user-status.d.ts.map +1 -1
  328. package/dist/service/cognito/user-pool/user/sim-cognito-user-status.js.map +1 -1
  329. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-properties.d.ts.map +1 -1
  330. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-properties.js.map +1 -1
  331. package/dist/service/dynamodb/command/batch/batch.command.d.ts.map +1 -1
  332. package/dist/service/dynamodb/command/batch/sim-dynamodb-batch-reads.d.ts.map +1 -1
  333. package/dist/service/dynamodb/command/batch/sim-dynamodb-batch-reads.js.map +1 -1
  334. package/dist/service/dynamodb/command/batch/sim-dynamodb-batch-writes.d.ts.map +1 -1
  335. package/dist/service/dynamodb/command/batch/sim-dynamodb-batch-writes.js.map +1 -1
  336. package/dist/service/dynamodb/command/item/item.command.d.ts.map +1 -1
  337. package/dist/service/dynamodb/command/item/item.types.d.ts.map +1 -1
  338. package/dist/service/dynamodb/command/item/sim-dynamodb-condition-check.d.ts.map +1 -1
  339. package/dist/service/dynamodb/command/item/sim-dynamodb-condition-check.js.map +1 -1
  340. package/dist/service/dynamodb/command/item/sim-dynamodb-item-page.d.ts.map +1 -1
  341. package/dist/service/dynamodb/command/item/sim-dynamodb-item-page.js.map +1 -1
  342. package/dist/service/dynamodb/command/item/sim-dynamodb-unsimulated-item-write-input.d.ts.map +1 -1
  343. package/dist/service/dynamodb/command/item/sim-dynamodb-unsimulated-item-write-input.js.map +1 -1
  344. package/dist/service/dynamodb/command/query/query.command.d.ts.map +1 -1
  345. package/dist/service/dynamodb/command/query/sim-dynamodb-query-start-key.d.ts.map +1 -1
  346. package/dist/service/dynamodb/command/query/sim-dynamodb-query-start-key.js.map +1 -1
  347. package/dist/service/dynamodb/command/read/sim-dynamodb-read-answer.d.ts.map +1 -1
  348. package/dist/service/dynamodb/command/read/sim-dynamodb-read-answer.js.map +1 -1
  349. package/dist/service/dynamodb/command/scan/scan.command.d.ts.map +1 -1
  350. package/dist/service/dynamodb/command/scan/sim-dynamodb-scan-start-key.d.ts.map +1 -1
  351. package/dist/service/dynamodb/command/scan/sim-dynamodb-scan-start-key.js.map +1 -1
  352. package/dist/service/dynamodb/command/stream/stream.types.d.ts.map +1 -1
  353. package/dist/service/dynamodb/command/table/table.command.d.ts.map +1 -1
  354. package/dist/service/dynamodb/command/table/table.types.d.ts.map +1 -1
  355. package/dist/service/dynamodb/command/time-to-live/time-to-live.command.d.ts.map +1 -1
  356. package/dist/service/dynamodb/command/time-to-live/time-to-live.types.d.ts.map +1 -1
  357. package/dist/service/dynamodb/command/transact/transact.command.d.ts.map +1 -1
  358. package/dist/service/dynamodb/document/sim-dynamodb-document-path.js +2 -2
  359. package/dist/service/dynamodb/error/dynamodb.error.d.ts.map +1 -1
  360. package/dist/service/dynamodb/error/dynamodb.error.js.map +1 -1
  361. package/dist/service/dynamodb/expression/sim-dynamodb-document-path.d.ts.map +1 -1
  362. package/dist/service/dynamodb/expression/sim-dynamodb-document-path.js.map +1 -1
  363. package/dist/service/dynamodb/expression/sim-dynamodb-expression-parameters.d.ts.map +1 -1
  364. package/dist/service/dynamodb/expression/sim-dynamodb-expression-parameters.js.map +1 -1
  365. package/dist/service/dynamodb/expression/sim-dynamodb-expression-token.d.ts.map +1 -1
  366. package/dist/service/dynamodb/expression/update/sim-dynamodb-update-erase.js +1 -1
  367. package/dist/service/dynamodb/expression/update/sim-dynamodb-update-write.js +1 -1
  368. package/dist/service/dynamodb/item/sim-dynamodb-number.js +1 -1
  369. package/dist/service/dynamodb/secondary-index/sim-dynamodb-local-secondary-indexes.d.ts.map +1 -1
  370. package/dist/service/dynamodb/secondary-index/sim-dynamodb-local-secondary-indexes.js.map +1 -1
  371. package/dist/service/dynamodb/secondary-index/sim-dynamodb-secondary-indexes.d.ts.map +1 -1
  372. package/dist/service/dynamodb/secondary-index/sim-dynamodb-secondary-indexes.js.map +1 -1
  373. package/dist/service/dynamodb/stream/sim-dynamodb-stream.types.d.ts.map +1 -1
  374. package/dist/service/dynamodb/stream/sim-dynamodb-streamed-orders.factory.js +1 -1
  375. package/dist/service/dynamodb/table/sim-dynamodb-item-key.d.ts.map +1 -1
  376. package/dist/service/dynamodb/table/sim-dynamodb-item-key.js.map +1 -1
  377. package/dist/service/iam/authorize/context/sim-iam-auth-z-context-builder.d.ts.map +1 -1
  378. package/dist/service/iam/authorize/context/sim-iam-auth-z-context-builder.js.map +1 -1
  379. package/dist/service/iam/authorize/sim-iam-wildcard.js +1 -1
  380. package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-creator.js +1 -1
  381. package/dist/service/iam/command/policy/create-policy/create-policy-record-factory.d.ts.map +1 -1
  382. package/dist/service/iam/command/policy/create-policy/create-policy-record-factory.js.map +1 -1
  383. package/dist/service/iam/command/policy/create-policy/create-policy.command.d.ts.map +1 -1
  384. package/dist/service/iam/command/policy/put-role-policy/put-role-policy.command.d.ts.map +1 -1
  385. package/dist/service/iam/command/policy/put-user-policy/put-user-policy.command.d.ts.map +1 -1
  386. package/dist/service/iam/command/role/create-role/create-role-record-factory.d.ts.map +1 -1
  387. package/dist/service/iam/command/role/create-role/create-role-record-factory.js.map +1 -1
  388. package/dist/service/iam/credential/session/sim-iam-session-manager.d.ts.map +1 -1
  389. package/dist/service/iam/credential/session/sim-iam-session-manager.js +2 -4
  390. package/dist/service/iam/credential/session/sim-iam-session-manager.js.map +1 -1
  391. package/dist/service/iam/policy/sim-iam-pol-document-statements.js +1 -1
  392. package/dist/service/iam/policy/sim-iam-pol-document-statements.js.map +1 -1
  393. package/dist/service/iam/policy/sim-iam-policy.d.ts.map +1 -1
  394. package/dist/service/iam/principal/sim-iam-principal.d.ts.map +1 -1
  395. package/dist/service/iam/registry/sim-iam-registry.d.ts.map +1 -1
  396. package/dist/service/iam/registry/sim-iam-registry.js +2 -3
  397. package/dist/service/iam/registry/sim-iam-registry.js.map +1 -1
  398. package/dist/service/iam/request/error/sim-aws-request-auth.error.d.ts.map +1 -1
  399. package/dist/service/iam/request/error/sim-aws-request-auth.error.js.map +1 -1
  400. package/dist/service/iam/role/arn/sim-iam-role-arn.js.map +1 -1
  401. package/dist/service/iam/role/sim-iam-role.d.ts.map +1 -1
  402. package/dist/service/iam/user/arn/sim-iam-user-arn.js.map +1 -1
  403. package/dist/service/iam/validate/sim-iam-policy-document-validator.js +1 -1
  404. package/dist/service/iam/validate/sim-iam-policy-document-validator.js.map +1 -1
  405. package/dist/service/iam/validate/trust/sim-iam-trust-policy-document-validator.js +1 -1
  406. package/dist/service/iam/validate/trust/sim-iam-trust-policy-document-validator.js.map +1 -1
  407. package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-properties.d.ts.map +1 -1
  408. package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-properties.js.map +1 -1
  409. package/dist/service/lambda/cfn/function/sim-cfn-lambda-runtime-skip.d.ts +5 -1
  410. package/dist/service/lambda/cfn/function/sim-cfn-lambda-runtime-skip.d.ts.map +1 -1
  411. package/dist/service/lambda/cfn/function/sim-cfn-lambda-runtime-skip.js +5 -1
  412. package/dist/service/lambda/cfn/function/sim-cfn-lambda-runtime-skip.js.map +1 -1
  413. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.d.ts.map +1 -1
  414. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.js.map +1 -1
  415. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.d.ts.map +1 -1
  416. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.js.map +1 -1
  417. package/dist/service/lambda/event-source/queue/sim-lambda-event-source-queues.d.ts.map +1 -1
  418. package/dist/service/lambda/event-source/queue/sim-lambda-event-source-queues.js.map +1 -1
  419. package/dist/service/lambda/event-source/sim-lambda-event-source-arn.d.ts.map +1 -1
  420. package/dist/service/lambda/event-source/sim-lambda-event-source-arn.js.map +1 -1
  421. package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.d.ts.map +1 -1
  422. package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.js.map +1 -1
  423. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.d.ts.map +1 -1
  424. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.js.map +1 -1
  425. package/dist/service/lambda/function/environment/sim-lambda-environment-conflicts.js +2 -2
  426. package/dist/service/lambda/function/environment/sim-lambda-process-environment.js +1 -1
  427. package/dist/service/lambda/function/invoke/sim-lambda-handler-runner.js +1 -1
  428. package/dist/service/lambda/function/invoke/sim-lambda-handler-runner.js.map +1 -1
  429. package/dist/service/lambda/function/sim-lambda-function.d.ts.map +1 -1
  430. package/dist/service/lambda/function/sim-lambda-function.js.map +1 -1
  431. package/dist/service/rekognition/face/sim-rekognition-face-detail-builder.d.ts.map +1 -1
  432. package/dist/service/rekognition/face/sim-rekognition-face-detail-builder.js +1 -1
  433. package/dist/service/rekognition/face/sim-rekognition-face-detail-builder.js.map +1 -1
  434. package/dist/service/rekognition/face/sim-rekognition-face-landmark-points.js +2 -2
  435. package/dist/service/rekognition/label/sim-rekognition-label-declaration.d.ts.map +1 -1
  436. package/dist/service/rekognition/label/sim-rekognition-label-declaration.js.map +1 -1
  437. package/dist/service/rekognition/moderation/sim-rekognition-moderation-result.d.ts.map +1 -1
  438. package/dist/service/rekognition/moderation/sim-rekognition-moderation-result.js.map +1 -1
  439. package/dist/service/rekognition/sample/sim-rekognition-sample-image-files.js +1 -1
  440. package/dist/service/route53/command/list-resource-record-sets/list-resource-record-sets.command.d.ts.map +1 -1
  441. package/dist/service/route53/command/list-resource-record-sets/record-set-output.d.ts.map +1 -1
  442. package/dist/service/route53/command/list-resource-record-sets/record-set-output.js +2 -4
  443. package/dist/service/route53/command/list-resource-record-sets/record-set-output.js.map +1 -1
  444. package/dist/service/route53/dns/dns-record-type.d.ts.map +1 -1
  445. package/dist/service/route53/dns/dns-record-type.js +2 -4
  446. package/dist/service/route53/dns/dns-record-type.js.map +1 -1
  447. package/dist/service/s3/bucket/sim-s3-bucket-access.d.ts +5 -0
  448. package/dist/service/s3/bucket/sim-s3-bucket-access.d.ts.map +1 -1
  449. package/dist/service/s3/bucket/sim-s3-bucket-access.js +13 -1
  450. package/dist/service/s3/bucket/sim-s3-bucket-access.js.map +1 -1
  451. package/dist/service/s3/bucket/sim-s3-bucket-system-metadata.d.ts +29 -0
  452. package/dist/service/s3/bucket/sim-s3-bucket-system-metadata.d.ts.map +1 -0
  453. package/dist/service/s3/bucket/sim-s3-bucket-system-metadata.js +32 -0
  454. package/dist/service/s3/bucket/sim-s3-bucket-system-metadata.js.map +1 -0
  455. package/dist/service/s3/bucket/sim-s3-bucket.d.ts +11 -0
  456. package/dist/service/s3/bucket/sim-s3-bucket.d.ts.map +1 -1
  457. package/dist/service/s3/bucket/sim-s3-bucket.js +13 -0
  458. package/dist/service/s3/bucket/sim-s3-bucket.js.map +1 -1
  459. package/dist/service/s3/bucket/sim-s3-public-read.fixture.d.ts +17 -0
  460. package/dist/service/s3/bucket/sim-s3-public-read.fixture.d.ts.map +1 -0
  461. package/dist/service/s3/bucket/sim-s3-public-read.fixture.js +40 -0
  462. package/dist/service/s3/bucket/sim-s3-public-read.fixture.js.map +1 -0
  463. package/dist/service/s3/bucket/website/redirect/s3-bucket-website-redirects.js +1 -1
  464. package/dist/service/s3/bucket/website/redirect/s3-bucket-website-redirects.js.map +1 -1
  465. package/dist/service/s3/command/authorize/sim-s3-condition-context.d.ts +14 -0
  466. package/dist/service/s3/command/authorize/sim-s3-condition-context.d.ts.map +1 -0
  467. package/dist/service/s3/command/authorize/sim-s3-condition-context.js +22 -0
  468. package/dist/service/s3/command/authorize/sim-s3-condition-context.js.map +1 -0
  469. package/dist/service/s3/command/create-bucket/create-bucket.handler.d.ts +2 -5
  470. package/dist/service/s3/command/create-bucket/create-bucket.handler.d.ts.map +1 -1
  471. package/dist/service/s3/command/create-bucket/create-bucket.handler.js +2 -0
  472. package/dist/service/s3/command/create-bucket/create-bucket.handler.js.map +1 -1
  473. package/dist/service/s3/command/delete-bucket/delete-bucket-authorizer.d.ts +2 -2
  474. package/dist/service/s3/command/delete-bucket/delete-bucket-authorizer.d.ts.map +1 -1
  475. package/dist/service/s3/command/delete-bucket/delete-bucket-authorizer.js +4 -2
  476. package/dist/service/s3/command/delete-bucket/delete-bucket-authorizer.js.map +1 -1
  477. package/dist/service/s3/command/delete-bucket/delete-bucket.handler.d.ts +2 -5
  478. package/dist/service/s3/command/delete-bucket/delete-bucket.handler.d.ts.map +1 -1
  479. package/dist/service/s3/command/delete-bucket/delete-bucket.handler.js +1 -1
  480. package/dist/service/s3/command/delete-bucket/delete-bucket.handler.js.map +1 -1
  481. package/dist/service/s3/command/delete-bucket-policy/delete-bucket-policy-authorizer.d.ts +2 -2
  482. package/dist/service/s3/command/delete-bucket-policy/delete-bucket-policy-authorizer.d.ts.map +1 -1
  483. package/dist/service/s3/command/delete-bucket-policy/delete-bucket-policy-authorizer.js +4 -2
  484. package/dist/service/s3/command/delete-bucket-policy/delete-bucket-policy-authorizer.js.map +1 -1
  485. package/dist/service/s3/command/delete-bucket-policy/delete-bucket-policy.handler.d.ts +2 -5
  486. package/dist/service/s3/command/delete-bucket-policy/delete-bucket-policy.handler.d.ts.map +1 -1
  487. package/dist/service/s3/command/delete-bucket-policy/delete-bucket-policy.handler.js +1 -1
  488. package/dist/service/s3/command/delete-bucket-policy/delete-bucket-policy.handler.js.map +1 -1
  489. package/dist/service/s3/command/delete-object/delete-object-authorizer.d.ts +2 -2
  490. package/dist/service/s3/command/delete-object/delete-object-authorizer.d.ts.map +1 -1
  491. package/dist/service/s3/command/delete-object/delete-object-authorizer.js +4 -2
  492. package/dist/service/s3/command/delete-object/delete-object-authorizer.js.map +1 -1
  493. package/dist/service/s3/command/delete-object/delete-object.handler.d.ts +2 -5
  494. package/dist/service/s3/command/delete-object/delete-object.handler.d.ts.map +1 -1
  495. package/dist/service/s3/command/delete-object/delete-object.handler.js +1 -1
  496. package/dist/service/s3/command/delete-object/delete-object.handler.js.map +1 -1
  497. package/dist/service/s3/command/delete-objects/delete-objects-key-removal.d.ts +2 -2
  498. package/dist/service/s3/command/delete-objects/delete-objects-key-removal.d.ts.map +1 -1
  499. package/dist/service/s3/command/delete-objects/delete-objects-key-removal.js +2 -2
  500. package/dist/service/s3/command/delete-objects/delete-objects-key-removal.js.map +1 -1
  501. package/dist/service/s3/command/delete-objects/delete-objects.handler.d.ts +2 -5
  502. package/dist/service/s3/command/delete-objects/delete-objects.handler.d.ts.map +1 -1
  503. package/dist/service/s3/command/delete-objects/delete-objects.handler.js +1 -1
  504. package/dist/service/s3/command/delete-objects/delete-objects.handler.js.map +1 -1
  505. package/dist/service/s3/command/delete-public-access-block/delete-public-access-block.handler.d.ts +2 -5
  506. package/dist/service/s3/command/delete-public-access-block/delete-public-access-block.handler.d.ts.map +1 -1
  507. package/dist/service/s3/command/delete-public-access-block/delete-public-access-block.handler.js +1 -1
  508. package/dist/service/s3/command/delete-public-access-block/delete-public-access-block.handler.js.map +1 -1
  509. package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.command.d.ts.map +1 -1
  510. package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.handler.d.ts +2 -5
  511. package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.handler.d.ts.map +1 -1
  512. package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.handler.js +1 -1
  513. package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.handler.js.map +1 -1
  514. package/dist/service/s3/command/get-bucket-policy/get-bucket-policy-authorizer.d.ts +2 -2
  515. package/dist/service/s3/command/get-bucket-policy/get-bucket-policy-authorizer.d.ts.map +1 -1
  516. package/dist/service/s3/command/get-bucket-policy/get-bucket-policy-authorizer.js +4 -2
  517. package/dist/service/s3/command/get-bucket-policy/get-bucket-policy-authorizer.js.map +1 -1
  518. package/dist/service/s3/command/get-bucket-policy/get-bucket-policy.handler.d.ts +2 -5
  519. package/dist/service/s3/command/get-bucket-policy/get-bucket-policy.handler.d.ts.map +1 -1
  520. package/dist/service/s3/command/get-bucket-policy/get-bucket-policy.handler.js +1 -1
  521. package/dist/service/s3/command/get-bucket-policy/get-bucket-policy.handler.js.map +1 -1
  522. package/dist/service/s3/command/get-object/get-object-authorizer.d.ts +6 -2
  523. package/dist/service/s3/command/get-object/get-object-authorizer.d.ts.map +1 -1
  524. package/dist/service/s3/command/get-object/get-object-authorizer.js +8 -2
  525. package/dist/service/s3/command/get-object/get-object-authorizer.js.map +1 -1
  526. package/dist/service/s3/command/get-object/get-object.handler.d.ts +2 -5
  527. package/dist/service/s3/command/get-object/get-object.handler.d.ts.map +1 -1
  528. package/dist/service/s3/command/get-object/get-object.handler.js +1 -1
  529. package/dist/service/s3/command/get-object/get-object.handler.js.map +1 -1
  530. package/dist/service/s3/command/get-public-access-block/get-public-access-block.handler.d.ts +2 -5
  531. package/dist/service/s3/command/get-public-access-block/get-public-access-block.handler.d.ts.map +1 -1
  532. package/dist/service/s3/command/get-public-access-block/get-public-access-block.handler.js +1 -1
  533. package/dist/service/s3/command/get-public-access-block/get-public-access-block.handler.js.map +1 -1
  534. package/dist/service/s3/command/list-buckets/list-buckets-authorizer.d.ts +2 -2
  535. package/dist/service/s3/command/list-buckets/list-buckets-authorizer.d.ts.map +1 -1
  536. package/dist/service/s3/command/list-buckets/list-buckets-authorizer.js +4 -2
  537. package/dist/service/s3/command/list-buckets/list-buckets-authorizer.js.map +1 -1
  538. package/dist/service/s3/command/list-buckets/list-buckets.handler.d.ts +2 -5
  539. package/dist/service/s3/command/list-buckets/list-buckets.handler.d.ts.map +1 -1
  540. package/dist/service/s3/command/list-buckets/list-buckets.handler.js +1 -1
  541. package/dist/service/s3/command/list-buckets/list-buckets.handler.js.map +1 -1
  542. package/dist/service/s3/command/list-objects/list-objects-authorizer.d.ts +2 -2
  543. package/dist/service/s3/command/list-objects/list-objects-authorizer.d.ts.map +1 -1
  544. package/dist/service/s3/command/list-objects/list-objects-authorizer.js +3 -1
  545. package/dist/service/s3/command/list-objects/list-objects-authorizer.js.map +1 -1
  546. package/dist/service/s3/command/list-objects/list-objects.handler.d.ts +2 -5
  547. package/dist/service/s3/command/list-objects/list-objects.handler.d.ts.map +1 -1
  548. package/dist/service/s3/command/list-objects/list-objects.handler.js +1 -1
  549. package/dist/service/s3/command/list-objects/list-objects.handler.js.map +1 -1
  550. package/dist/service/s3/command/notification/sim-s3-notification-authorizer.d.ts +3 -3
  551. package/dist/service/s3/command/notification/sim-s3-notification-authorizer.d.ts.map +1 -1
  552. package/dist/service/s3/command/notification/sim-s3-notification-authorizer.js +8 -6
  553. package/dist/service/s3/command/notification/sim-s3-notification-authorizer.js.map +1 -1
  554. package/dist/service/s3/command/public-access-block/sim-s3-public-access-block-authorizer.d.ts +3 -3
  555. package/dist/service/s3/command/public-access-block/sim-s3-public-access-block-authorizer.d.ts.map +1 -1
  556. package/dist/service/s3/command/public-access-block/sim-s3-public-access-block-authorizer.js +8 -6
  557. package/dist/service/s3/command/public-access-block/sim-s3-public-access-block-authorizer.js.map +1 -1
  558. package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.command.d.ts.map +1 -1
  559. package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.handler.d.ts +2 -5
  560. package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.handler.d.ts.map +1 -1
  561. package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.handler.js +1 -1
  562. package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.handler.js.map +1 -1
  563. package/dist/service/s3/command/put-bucket-policy/put-bucket-policy-authorizer.d.ts +2 -2
  564. package/dist/service/s3/command/put-bucket-policy/put-bucket-policy-authorizer.d.ts.map +1 -1
  565. package/dist/service/s3/command/put-bucket-policy/put-bucket-policy-authorizer.js +4 -2
  566. package/dist/service/s3/command/put-bucket-policy/put-bucket-policy-authorizer.js.map +1 -1
  567. package/dist/service/s3/command/put-bucket-policy/put-bucket-policy.handler.d.ts +2 -5
  568. package/dist/service/s3/command/put-bucket-policy/put-bucket-policy.handler.d.ts.map +1 -1
  569. package/dist/service/s3/command/put-bucket-policy/put-bucket-policy.handler.js +1 -1
  570. package/dist/service/s3/command/put-bucket-policy/put-bucket-policy.handler.js.map +1 -1
  571. package/dist/service/s3/command/put-bucket-website/put-bucket-website-authorizer.d.ts +2 -2
  572. package/dist/service/s3/command/put-bucket-website/put-bucket-website-authorizer.d.ts.map +1 -1
  573. package/dist/service/s3/command/put-bucket-website/put-bucket-website-authorizer.js +4 -2
  574. package/dist/service/s3/command/put-bucket-website/put-bucket-website-authorizer.js.map +1 -1
  575. package/dist/service/s3/command/put-bucket-website/put-bucket-website.command.d.ts.map +1 -1
  576. package/dist/service/s3/command/put-bucket-website/put-bucket-website.handler.d.ts +2 -5
  577. package/dist/service/s3/command/put-bucket-website/put-bucket-website.handler.d.ts.map +1 -1
  578. package/dist/service/s3/command/put-bucket-website/put-bucket-website.handler.js +1 -1
  579. package/dist/service/s3/command/put-bucket-website/put-bucket-website.handler.js.map +1 -1
  580. package/dist/service/s3/command/put-object/put-object-authorizer.d.ts +2 -2
  581. package/dist/service/s3/command/put-object/put-object-authorizer.d.ts.map +1 -1
  582. package/dist/service/s3/command/put-object/put-object-authorizer.js +4 -2
  583. package/dist/service/s3/command/put-object/put-object-authorizer.js.map +1 -1
  584. package/dist/service/s3/command/put-object/put-object.handler.d.ts +2 -5
  585. package/dist/service/s3/command/put-object/put-object.handler.d.ts.map +1 -1
  586. package/dist/service/s3/command/put-object/put-object.handler.js +1 -1
  587. package/dist/service/s3/command/put-object/put-object.handler.js.map +1 -1
  588. package/dist/service/s3/command/put-public-access-block/put-public-access-block.command.d.ts.map +1 -1
  589. package/dist/service/s3/command/put-public-access-block/put-public-access-block.handler.d.ts +2 -5
  590. package/dist/service/s3/command/put-public-access-block/put-public-access-block.handler.d.ts.map +1 -1
  591. package/dist/service/s3/command/put-public-access-block/put-public-access-block.handler.js +1 -1
  592. package/dist/service/s3/command/put-public-access-block/put-public-access-block.handler.js.map +1 -1
  593. package/dist/service/s3/command/sim-s3-request-options.d.ts +40 -0
  594. package/dist/service/s3/command/sim-s3-request-options.d.ts.map +1 -1
  595. package/dist/service/s3/command/sim-s3-request-options.js +19 -1
  596. package/dist/service/s3/command/sim-s3-request-options.js.map +1 -1
  597. package/dist/service/s3/index.d.ts +2 -0
  598. package/dist/service/s3/index.d.ts.map +1 -1
  599. package/dist/service/s3/mount/sim-s3-mount-directory-events.js +1 -1
  600. package/dist/service/s3/mount/sim-s3-mount.type.d.ts +27 -0
  601. package/dist/service/s3/mount/sim-s3-mount.type.d.ts.map +1 -1
  602. package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.d.ts.map +1 -1
  603. package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.js +1 -0
  604. package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.js.map +1 -1
  605. package/dist/service/s3/notification/sim-s3-notification-failures.js +1 -1
  606. package/dist/service/s3/object/s3-declared-system-metadata.d.ts +63 -0
  607. package/dist/service/s3/object/s3-declared-system-metadata.d.ts.map +1 -0
  608. package/dist/service/s3/object/s3-declared-system-metadata.js +82 -0
  609. package/dist/service/s3/object/s3-declared-system-metadata.js.map +1 -0
  610. package/dist/service/s3/object/s3-key-prefix-metadata.d.ts +32 -0
  611. package/dist/service/s3/object/s3-key-prefix-metadata.d.ts.map +1 -0
  612. package/dist/service/s3/object/s3-key-prefix-metadata.js +25 -0
  613. package/dist/service/s3/object/s3-key-prefix-metadata.js.map +1 -0
  614. package/dist/service/s3/object/s3-system-metadata-declaration.type.d.ts +38 -0
  615. package/dist/service/s3/object/s3-system-metadata-declaration.type.d.ts.map +1 -0
  616. package/dist/service/s3/object/s3-system-metadata-declaration.type.js +2 -0
  617. package/dist/service/s3/object/s3-system-metadata-declaration.type.js.map +1 -0
  618. package/dist/service/s3/object/s3-system-metadata.d.ts +19 -0
  619. package/dist/service/s3/object/s3-system-metadata.d.ts.map +1 -1
  620. package/dist/service/s3/object/s3-system-metadata.js +19 -0
  621. package/dist/service/s3/object/s3-system-metadata.js.map +1 -1
  622. package/dist/service/s3/serve/sim-s3-route.d.ts.map +1 -1
  623. package/dist/service/s3/serve/sim-s3-route.js.map +1 -1
  624. package/dist/service/s3/sim-s3.d.ts +7 -0
  625. package/dist/service/s3/sim-s3.d.ts.map +1 -1
  626. package/dist/service/s3/sim-s3.js +7 -0
  627. package/dist/service/s3/sim-s3.js.map +1 -1
  628. package/dist/service/s3/storage/filesystem/filesystem-path-exists.js +1 -1
  629. package/dist/service/s3/storage/filesystem/s3-filesystem-object-keys.js +1 -1
  630. package/dist/service/s3/storage/filesystem/s3-filesystem-object-metadata.d.ts +6 -1
  631. package/dist/service/s3/storage/filesystem/s3-filesystem-object-metadata.d.ts.map +1 -1
  632. package/dist/service/s3/storage/filesystem/s3-filesystem-object-metadata.js +7 -1
  633. package/dist/service/s3/storage/filesystem/s3-filesystem-object-metadata.js.map +1 -1
  634. package/dist/service/s3/storage/filesystem/s3-filesystem-storage.d.ts +8 -0
  635. package/dist/service/s3/storage/filesystem/s3-filesystem-storage.d.ts.map +1 -1
  636. package/dist/service/s3/storage/filesystem/s3-filesystem-storage.js +8 -4
  637. package/dist/service/s3/storage/filesystem/s3-filesystem-storage.js.map +1 -1
  638. package/dist/service/secretsmanager/secret/generate/sim-secrets-manager-password-character-set.js +1 -1
  639. package/dist/service/secretsmanager/secret/sim-secrets-manager-secret-arn.js +1 -1
  640. package/dist/service/sns/cfn/topic/sim-cfn-sns-topic-creator.js +1 -1
  641. package/dist/service/sns/command/publish/publish.command.d.ts.map +1 -1
  642. package/dist/service/sns/delivery/sim-sns-delivery-failures.js +1 -1
  643. package/dist/service/sns/filter/sim-sns-body-subject.js +1 -1
  644. package/dist/service/sns/subscription/sim-sns-subscription-protocol.d.ts.map +1 -1
  645. package/dist/service/sns/subscription/sim-sns-subscription-protocol.js.map +1 -1
  646. package/dist/service/sqs/command/message/consume.command.d.ts.map +1 -1
  647. package/dist/service/sqs/command/message/receive.command.d.ts.map +1 -1
  648. package/dist/service/sqs/command/message/send.command.d.ts.map +1 -1
  649. package/dist/service/sqs/queue/sim-sqs-redrive-policy.js +1 -1
  650. package/dist/service/ssm/command/parameter/sim-ssm-get-parameter-commands.js +1 -1
  651. package/dist/service/sts/assume/sim-sts-assume-role-request-parser.d.ts.map +1 -1
  652. package/dist/service/sts/assume/sim-sts-assume-role-request-parser.js.map +1 -1
  653. package/dist/service/sts/auth-z/assume-role-auth-z-coordinator.d.ts.map +1 -1
  654. package/dist/service/sts/auth-z/assume-role-auth-z-coordinator.js.map +1 -1
  655. package/dist/service/sts/auth-z/assume-role-target-auth-z.d.ts.map +1 -1
  656. package/dist/service/sts/auth-z/assume-role-target-auth-z.js.map +1 -1
  657. package/dist/service/sts/auth-z/assume-role-trust-policy-authorizer.d.ts.map +1 -1
  658. package/dist/service/sts/auth-z/assume-role-trust-policy-authorizer.js.map +1 -1
  659. package/dist/util/background/background.js +2 -2
  660. package/dist/util/background/background.js.map +1 -1
  661. package/dist/util/background/non-deterministic-background.js +2 -2
  662. package/dist/util/background/non-deterministic-background.js.map +1 -1
  663. package/dist/util/clock/sim-clock-control.js +1 -1
  664. package/dist/util/filesystem/path.js +1 -1
  665. package/dist/util/filesystem/temporary-directory.d.ts +4 -1
  666. package/dist/util/filesystem/temporary-directory.d.ts.map +1 -1
  667. package/dist/util/filesystem/temporary-directory.js +8 -6
  668. package/dist/util/filesystem/temporary-directory.js.map +1 -1
  669. package/dist/util/jwt/sim-jwt-claims.js +1 -1
  670. package/dist/util/type-guard/json.d.ts.map +1 -1
  671. package/dist/util/type-guard/json.js +2 -2
  672. package/dist/util/type-guard/json.js.map +1 -1
  673. package/package.json +15 -12
  674. package/dist/service/s3/bucket/website/sim-s3-public-website.fixture.d.ts +0 -13
  675. package/dist/service/s3/bucket/website/sim-s3-public-website.fixture.d.ts.map +0 -1
  676. package/dist/service/s3/bucket/website/sim-s3-public-website.fixture.js +0 -36
  677. package/dist/service/s3/bucket/website/sim-s3-public-website.fixture.js.map +0 -1
@@ -0,0 +1,82 @@
1
+ /**
2
+ * What the CloudFront Functions JS2 runtime will not run, as syntax selectors.
3
+ *
4
+ * JS2 is compliant with ECMAScript 5.1 and adds a named subset of ES 6 to 12,
5
+ * so a Function that uses something outside that subset fails when it is
6
+ * published, a long way from where it was written. Each entry names a
7
+ * construct the runtime has no support for and says what to write instead, so
8
+ * the refusal arrives in the editor.
9
+ *
10
+ * Every entry is drawn from the runtime's own feature list, which is an
11
+ * allow-list: anything the documentation does not name is unsupported. Nothing
12
+ * here is house style. A restriction on syntax JS2 accepts would send a reader
13
+ * away from code that works, which is worse than no lint rule at all.
14
+ *
15
+ * https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/functions-javascript-runtime-20.html
16
+ *
17
+ * The selector syntax is the one both ESLint and Oxlint accept, which is what
18
+ * lets a single rule module serve either linter.
19
+ */
20
+ export declare const cffJs2SyntaxRestrictions: {
21
+ readonly "no-import": {
22
+ readonly selector: "ImportDeclaration";
23
+ readonly message: "CloudFront Functions must be self-contained and should not use import syntax.";
24
+ };
25
+ readonly "only-handler-export": {
26
+ readonly selector: "ExportNamedDeclaration:not([declaration.type='FunctionDeclaration'][declaration.id.name='handler']), ExportDefaultDeclaration, ExportAllDeclaration";
27
+ readonly message: "CloudFront Function files may only export the handler as `export function handler(...)`.";
28
+ };
29
+ readonly "only-built-in-require": {
30
+ readonly selector: "CallExpression[callee.name='require']:not(:has(Literal[value='querystring'])):not(:has(Literal[value='crypto'])):not(:has(Literal[value='buffer']))";
31
+ readonly message: "CloudFront Functions can only require the built-in `querystring`, `crypto` and `buffer` modules. Everything else must be inlined.";
32
+ };
33
+ readonly "no-class": {
34
+ readonly selector: "ClassDeclaration, ClassExpression";
35
+ readonly message: "CloudFront Functions JS2 does not support class syntax. Use a constructor function or a plain object instead.";
36
+ };
37
+ readonly "no-generator": {
38
+ readonly selector: "YieldExpression, FunctionDeclaration[generator=true], FunctionExpression[generator=true]";
39
+ readonly message: "CloudFront Functions JS2 does not support generators.";
40
+ };
41
+ readonly "no-destructuring": {
42
+ readonly selector: "ObjectPattern, ArrayPattern";
43
+ readonly message: "CloudFront Functions JS2 does not support destructuring. Read the properties one at a time instead.";
44
+ };
45
+ readonly "no-spread": {
46
+ readonly selector: "SpreadElement";
47
+ readonly message: "CloudFront Functions JS2 does not support spread syntax. Rest parameters are supported, so `function f(...args)` is fine, but `[...list]` is not.";
48
+ };
49
+ readonly "no-for-of": {
50
+ readonly selector: "ForOfStatement";
51
+ readonly message: "CloudFront Functions JS2 does not support for...of. Use an index-based loop or for...in instead.";
52
+ };
53
+ };
54
+ /**
55
+ * Globals a CloudFront Function cannot reach, and why each one is absent.
56
+ *
57
+ * These read as ordinary JavaScript and fail only at the edge, which is the
58
+ * worst place to find out. The reason matters as much as the refusal: `fetch`
59
+ * is missing because the runtime has no network, and `setTimeout` because it
60
+ * has no event loop, and those two dead ends want different rewrites.
61
+ *
62
+ * `Promise` and `Buffer` are deliberately absent from this list. Both are
63
+ * supported in runtime 2.0, and an earlier version of this config refused them.
64
+ */
65
+ export declare const cffJs2UnavailableGlobals: {
66
+ readonly fetch: "CloudFront Functions cannot make network requests.";
67
+ readonly XMLHttpRequest: "CloudFront Functions cannot make network requests.";
68
+ readonly WebSocket: "CloudFront Functions cannot open network connections.";
69
+ readonly process: "CloudFront Functions do not have access to Node.js process APIs.";
70
+ readonly setTimeout: "CloudFront Functions do not support timers, and must run to completion synchronously.";
71
+ readonly setInterval: "CloudFront Functions do not support timers, and must run to completion synchronously.";
72
+ readonly setImmediate: "CloudFront Functions do not support timers, and must run to completion synchronously.";
73
+ readonly clearTimeout: "CloudFront Functions do not support timers, so there is nothing to clear.";
74
+ };
75
+ /**
76
+ * The name of the rule that reports an unavailable global.
77
+ *
78
+ * It is kept apart from the syntax restrictions because it resolves names
79
+ * through scope rather than matching a selector.
80
+ */
81
+ export declare const cffJs2UnavailableGlobalRuleName = "no-unavailable-global";
82
+ //# sourceMappingURL=cff-js2-restriction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cff-js2-restriction.d.ts","sourceRoot":"","sources":["../../../src/config/lint/cff-js2-restriction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,wBAAwB;;iBAEjC,QAAQ,EAAE,mBAAmB;iBAC7B,OAAO,EACL,+EAA+E;;;iBAGjF,QAAQ,EACN,qJAAqJ;iBACvJ,OAAO,EACL,0FAA0F;;;iBAG5F,QAAQ,EACN,qJAAqJ;iBACvJ,OAAO,EACL,mIAAmI;;;iBAGrI,QAAQ,EAAE,mCAAmC;iBAC7C,OAAO,EACL,+GAA+G;;;iBAGjH,QAAQ,EACN,0FAA0F;iBAC5F,OAAO,EAAE,uDAAuD;;;iBAGhE,QAAQ,EAAE,6BAA6B;iBACvC,OAAO,EACL,qGAAqG;;;iBAMvG,QAAQ,EAAE,eAAe;iBACzB,OAAO,EACL,mJAAmJ;;;iBAGrJ,QAAQ,EAAE,gBAAgB;iBAC1B,OAAO,EACL,kGAAkG;;CAIvG,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,wBAAwB;oBAC5B,oDAAoD;6BAC3C,oDAAoD;wBACzD,uDAAuD;sBACzD,kEAAkE;yBAEzE,uFAAuF;0BAEvF,uFAAuF;2BAEvF,uFAAuF;2BAEvF,2EAA2E;CAC1B,CAAC;AAEtD;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B,0BAA0B,CAAC"}
@@ -0,0 +1,85 @@
1
+ /**
2
+ * What the CloudFront Functions JS2 runtime will not run, as syntax selectors.
3
+ *
4
+ * JS2 is compliant with ECMAScript 5.1 and adds a named subset of ES 6 to 12,
5
+ * so a Function that uses something outside that subset fails when it is
6
+ * published, a long way from where it was written. Each entry names a
7
+ * construct the runtime has no support for and says what to write instead, so
8
+ * the refusal arrives in the editor.
9
+ *
10
+ * Every entry is drawn from the runtime's own feature list, which is an
11
+ * allow-list: anything the documentation does not name is unsupported. Nothing
12
+ * here is house style. A restriction on syntax JS2 accepts would send a reader
13
+ * away from code that works, which is worse than no lint rule at all.
14
+ *
15
+ * https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/functions-javascript-runtime-20.html
16
+ *
17
+ * The selector syntax is the one both ESLint and Oxlint accept, which is what
18
+ * lets a single rule module serve either linter.
19
+ */
20
+ export const cffJs2SyntaxRestrictions = {
21
+ "no-import": {
22
+ selector: "ImportDeclaration",
23
+ message: "CloudFront Functions must be self-contained and should not use import syntax.",
24
+ },
25
+ "only-handler-export": {
26
+ selector: "ExportNamedDeclaration:not([declaration.type='FunctionDeclaration'][declaration.id.name='handler']), ExportDefaultDeclaration, ExportAllDeclaration",
27
+ message: "CloudFront Function files may only export the handler as `export function handler(...)`.",
28
+ },
29
+ "only-built-in-require": {
30
+ selector: "CallExpression[callee.name='require']:not(:has(Literal[value='querystring'])):not(:has(Literal[value='crypto'])):not(:has(Literal[value='buffer']))",
31
+ message: "CloudFront Functions can only require the built-in `querystring`, `crypto` and `buffer` modules. Everything else must be inlined.",
32
+ },
33
+ "no-class": {
34
+ selector: "ClassDeclaration, ClassExpression",
35
+ message: "CloudFront Functions JS2 does not support class syntax. Use a constructor function or a plain object instead.",
36
+ },
37
+ "no-generator": {
38
+ selector: "YieldExpression, FunctionDeclaration[generator=true], FunctionExpression[generator=true]",
39
+ message: "CloudFront Functions JS2 does not support generators.",
40
+ },
41
+ "no-destructuring": {
42
+ selector: "ObjectPattern, ArrayPattern",
43
+ message: "CloudFront Functions JS2 does not support destructuring. Read the properties one at a time instead.",
44
+ },
45
+ "no-spread": {
46
+ // Rest parameters are a separate ES 6 feature that JS2 does name as
47
+ // supported, and they share the `RestElement` node, so only spread is
48
+ // matched here.
49
+ selector: "SpreadElement",
50
+ message: "CloudFront Functions JS2 does not support spread syntax. Rest parameters are supported, so `function f(...args)` is fine, but `[...list]` is not.",
51
+ },
52
+ "no-for-of": {
53
+ selector: "ForOfStatement",
54
+ message: "CloudFront Functions JS2 does not support for...of. Use an index-based loop or for...in instead.",
55
+ },
56
+ };
57
+ /**
58
+ * Globals a CloudFront Function cannot reach, and why each one is absent.
59
+ *
60
+ * These read as ordinary JavaScript and fail only at the edge, which is the
61
+ * worst place to find out. The reason matters as much as the refusal: `fetch`
62
+ * is missing because the runtime has no network, and `setTimeout` because it
63
+ * has no event loop, and those two dead ends want different rewrites.
64
+ *
65
+ * `Promise` and `Buffer` are deliberately absent from this list. Both are
66
+ * supported in runtime 2.0, and an earlier version of this config refused them.
67
+ */
68
+ export const cffJs2UnavailableGlobals = {
69
+ fetch: "CloudFront Functions cannot make network requests.",
70
+ XMLHttpRequest: "CloudFront Functions cannot make network requests.",
71
+ WebSocket: "CloudFront Functions cannot open network connections.",
72
+ process: "CloudFront Functions do not have access to Node.js process APIs.",
73
+ setTimeout: "CloudFront Functions do not support timers, and must run to completion synchronously.",
74
+ setInterval: "CloudFront Functions do not support timers, and must run to completion synchronously.",
75
+ setImmediate: "CloudFront Functions do not support timers, and must run to completion synchronously.",
76
+ clearTimeout: "CloudFront Functions do not support timers, so there is nothing to clear.",
77
+ };
78
+ /**
79
+ * The name of the rule that reports an unavailable global.
80
+ *
81
+ * It is kept apart from the syntax restrictions because it resolves names
82
+ * through scope rather than matching a selector.
83
+ */
84
+ export const cffJs2UnavailableGlobalRuleName = "no-unavailable-global";
85
+ //# sourceMappingURL=cff-js2-restriction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cff-js2-restriction.js","sourceRoot":"","sources":["../../../src/config/lint/cff-js2-restriction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,WAAW,EAAE;QACX,QAAQ,EAAE,mBAAmB;QAC7B,OAAO,EACL,+EAA+E;KAClF;IACD,qBAAqB,EAAE;QACrB,QAAQ,EACN,qJAAqJ;QACvJ,OAAO,EACL,0FAA0F;KAC7F;IACD,uBAAuB,EAAE;QACvB,QAAQ,EACN,qJAAqJ;QACvJ,OAAO,EACL,mIAAmI;KACtI;IACD,UAAU,EAAE;QACV,QAAQ,EAAE,mCAAmC;QAC7C,OAAO,EACL,+GAA+G;KAClH;IACD,cAAc,EAAE;QACd,QAAQ,EACN,0FAA0F;QAC5F,OAAO,EAAE,uDAAuD;KACjE;IACD,kBAAkB,EAAE;QAClB,QAAQ,EAAE,6BAA6B;QACvC,OAAO,EACL,qGAAqG;KACxG;IACD,WAAW,EAAE;QACX,oEAAoE;QACpE,sEAAsE;QACtE,gBAAgB;QAChB,QAAQ,EAAE,eAAe;QACzB,OAAO,EACL,mJAAmJ;KACtJ;IACD,WAAW,EAAE;QACX,QAAQ,EAAE,gBAAgB;QAC1B,OAAO,EACL,kGAAkG;KACrG;CAGF,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,KAAK,EAAE,oDAAoD;IAC3D,cAAc,EAAE,oDAAoD;IACpE,SAAS,EAAE,uDAAuD;IAClE,OAAO,EAAE,kEAAkE;IAC3E,UAAU,EACR,uFAAuF;IACzF,WAAW,EACT,uFAAuF;IACzF,YAAY,EACV,uFAAuF;IACzF,YAAY,EACV,2EAA2E;CAC1B,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,uBAAuB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { LintRule } from "./lint-plugin.type.js";
2
+ /**
3
+ * Reports a name the CloudFront Functions runtime does not provide.
4
+ *
5
+ * Names are resolved through scope rather than matched as text, so a local
6
+ * variable called `fetch` and a property called `event.fetch` are both left
7
+ * alone: what is reported is a reference that would reach a global.
8
+ */
9
+ export declare function cffJs2UnavailableGlobalRule(): LintRule;
10
+ //# sourceMappingURL=cff-js2-unavailable-global.rule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cff-js2-unavailable-global.rule.d.ts","sourceRoot":"","sources":["../../../src/config/lint/cff-js2-unavailable-global.rule.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,QAAQ,EAGT,MAAM,uBAAuB,CAAC;AAY/B;;;;;;GAMG;AACH,wBAAgB,2BAA2B,IAAI,QAAQ,CA4BtD"}
@@ -0,0 +1,42 @@
1
+ import { cffJs2UnavailableGlobals } from "./cff-js2-restriction.js";
2
+ /**
3
+ * Scope is only complete once the whole file has been walked, so the globals a
4
+ * file reaches for are counted on the way out of it rather than on the way in.
5
+ */
6
+ const programExitSelector = "Program:exit";
7
+ const reasons = new Map(Object.entries(cffJs2UnavailableGlobals));
8
+ /**
9
+ * Reports a name the CloudFront Functions runtime does not provide.
10
+ *
11
+ * Names are resolved through scope rather than matched as text, so a local
12
+ * variable called `fetch` and a property called `event.fetch` are both left
13
+ * alone: what is reported is a reference that would reach a global.
14
+ */
15
+ export function cffJs2UnavailableGlobalRule() {
16
+ return {
17
+ meta: {
18
+ type: "problem",
19
+ schema: [],
20
+ messages: { unsupported: "{{why}}" },
21
+ },
22
+ create: (context) => ({
23
+ [programExitSelector]: (node) => {
24
+ const scope = context.sourceCode.getScope(node);
25
+ for (const reference of [
26
+ ...scope.through,
27
+ ...scope.variables.flatMap((variable) => variable.references),
28
+ ]) {
29
+ const why = reasons.get(reference.identifier.name);
30
+ if (why !== undefined) {
31
+ context.report({
32
+ node: reference.identifier,
33
+ messageId: "unsupported",
34
+ data: { why },
35
+ });
36
+ }
37
+ }
38
+ },
39
+ }),
40
+ };
41
+ }
42
+ //# sourceMappingURL=cff-js2-unavailable-global.rule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cff-js2-unavailable-global.rule.js","sourceRoot":"","sources":["../../../src/config/lint/cff-js2-unavailable-global.rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAQpE;;;GAGG;AACH,MAAM,mBAAmB,GAAG,cAAc,CAAC;AAE3C,MAAM,OAAO,GAAG,IAAI,GAAG,CACrB,MAAM,CAAC,OAAO,CAAC,wBAAwB,CAAC,CACzC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,UAAU,2BAA2B;IACzC,OAAO;QACL,IAAI,EAAE;YACJ,IAAI,EAAE,SAAS;YACf,MAAM,EAAE,EAAE;YACV,QAAQ,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE;SACrC;QACD,MAAM,EAAE,CAAC,OAAwB,EAAe,EAAE,CAAC,CAAC;YAClD,CAAC,mBAAmB,CAAC,EAAE,CAAC,IAAc,EAAQ,EAAE;gBAC9C,MAAM,KAAK,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;gBAEhD,KAAK,MAAM,SAAS,IAAI;oBACtB,GAAG,KAAK,CAAC,OAAO;oBAChB,GAAG,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC;iBAC9D,EAAE,CAAC;oBACF,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;oBAEnD,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;wBACtB,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,SAAS,CAAC,UAAU;4BAC1B,SAAS,EAAE,aAAa;4BACxB,IAAI,EAAE,EAAE,GAAG,EAAE;yBACd,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;KACH,CAAC;AACJ,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { cffJs2LintPlugin, cffJs2PluginName } from "./cff-js2-lint-plugin.js";
2
+ export { cffJs2LintPluginRules, cffJs2LintRules, type LintRuleSetting, } from "./cff-js2-lint-rules.js";
3
+ export { cffJs2SyntaxRestrictions, cffJs2UnavailableGlobalRuleName, cffJs2UnavailableGlobals, } from "./cff-js2-restriction.js";
4
+ export { cffJs2UnavailableGlobalRule } from "./cff-js2-unavailable-global.rule.js";
5
+ export type { LintIdentifierNode, LintNode, LintPlugin, LintReference, LintRule, LintRuleContext, LintScope, LintVariable, LintVisitor, } from "./lint-plugin.type.js";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config/lint/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC9E,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,KAAK,eAAe,GACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,wBAAwB,EACxB,+BAA+B,EAC/B,wBAAwB,GACzB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,YAAY,EACV,kBAAkB,EAClB,QAAQ,EACR,UAAU,EACV,aAAa,EACb,QAAQ,EACR,eAAe,EACf,SAAS,EACT,YAAY,EACZ,WAAW,GACZ,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { cffJs2LintPlugin, cffJs2PluginName } from "./cff-js2-lint-plugin.js";
2
+ export { cffJs2LintPluginRules, cffJs2LintRules, } from "./cff-js2-lint-rules.js";
3
+ export { cffJs2SyntaxRestrictions, cffJs2UnavailableGlobalRuleName, cffJs2UnavailableGlobals, } from "./cff-js2-restriction.js";
4
+ export { cffJs2UnavailableGlobalRule } from "./cff-js2-unavailable-global.rule.js";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/config/lint/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC9E,OAAO,EACL,qBAAqB,EACrB,eAAe,GAEhB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,wBAAwB,EACxB,+BAA+B,EAC/B,wBAAwB,GACzB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC"}
@@ -0,0 +1,82 @@
1
+ /**
2
+ * The slice of a linter's rule API that these plugins actually touch.
3
+ *
4
+ * ESLint and Oxlint both load the same plugin object, so typing it against
5
+ * either one's published types would tie the plugin to a linter it is meant to
6
+ * outlive. These declarations describe only what the rules here call, which is
7
+ * narrow enough to stay true of both and leaves the plugin with no dependency
8
+ * of its own.
9
+ */
10
+ /**
11
+ * A node in the syntax tree, identified by the type name a selector matches.
12
+ */
13
+ export interface LintNode {
14
+ readonly type: string;
15
+ }
16
+ /**
17
+ * An identifier node, which is the only node kind read by name here.
18
+ */
19
+ export interface LintIdentifierNode extends LintNode {
20
+ readonly name: string;
21
+ }
22
+ /**
23
+ * One place a binding is read or written.
24
+ */
25
+ export interface LintReference {
26
+ readonly identifier: LintIdentifierNode;
27
+ }
28
+ /**
29
+ * A resolved binding together with every reference to it.
30
+ */
31
+ export interface LintVariable {
32
+ readonly references: readonly LintReference[];
33
+ }
34
+ /**
35
+ * A lexical scope, as the linter resolved it.
36
+ *
37
+ * References to a name nothing declares land in `through` rather than in
38
+ * `variables`, so a rule looking for globals has to read both: which of the two
39
+ * a name falls into depends on whether the linter was told that global exists.
40
+ */
41
+ export interface LintScope {
42
+ readonly through: readonly LintReference[];
43
+ readonly variables: readonly LintVariable[];
44
+ }
45
+ /**
46
+ * What a rule is handed for the file it is looking at.
47
+ */
48
+ export interface LintRuleContext {
49
+ readonly sourceCode: {
50
+ getScope(node: LintNode): LintScope;
51
+ };
52
+ report(descriptor: {
53
+ node: LintNode;
54
+ messageId: string;
55
+ data?: Readonly<Record<string, string>>;
56
+ }): void;
57
+ }
58
+ /**
59
+ * The handlers a rule registers, keyed by the selector that triggers them.
60
+ */
61
+ export type LintVisitor = Record<string, (node: never) => void>;
62
+ /**
63
+ * One rule, in the shape both linters expect to load.
64
+ */
65
+ export interface LintRule {
66
+ readonly meta: {
67
+ readonly type: "problem";
68
+ readonly schema: readonly [];
69
+ readonly messages: Readonly<Record<string, string>>;
70
+ };
71
+ create(context: LintRuleContext): LintVisitor;
72
+ }
73
+ /**
74
+ * A plugin, in the shape both linters expect to load.
75
+ */
76
+ export interface LintPlugin {
77
+ readonly meta: {
78
+ readonly name: string;
79
+ };
80
+ readonly rules: Readonly<Record<string, LintRule>>;
81
+ }
82
+ //# sourceMappingURL=lint-plugin.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lint-plugin.type.d.ts","sourceRoot":"","sources":["../../../src/config/lint/lint-plugin.type.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,QAAQ;IAClD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC;CACzC;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,UAAU,EAAE,SAAS,aAAa,EAAE,CAAC;CAC/C;AAED;;;;;;GAMG;AACH,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,OAAO,EAAE,SAAS,aAAa,EAAE,CAAC;IAC3C,QAAQ,CAAC,SAAS,EAAE,SAAS,YAAY,EAAE,CAAC;CAC7C;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,UAAU,EAAE;QACnB,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAC;KACrC,CAAC;IACF,MAAM,CAAC,UAAU,EAAE;QACjB,IAAI,EAAE,QAAQ,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;KACzC,GAAG,IAAI,CAAC;CACV;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,IAAI,CAAC,CAAC;AAEhE;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,IAAI,EAAE;QACb,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;QACzB,QAAQ,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC;QAC7B,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;KACrD,CAAC;IACF,MAAM,CAAC,OAAO,EAAE,eAAe,GAAG,WAAW,CAAC;CAC/C;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACzC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;CACpD"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * The slice of a linter's rule API that these plugins actually touch.
3
+ *
4
+ * ESLint and Oxlint both load the same plugin object, so typing it against
5
+ * either one's published types would tie the plugin to a linter it is meant to
6
+ * outlive. These declarations describe only what the rules here call, which is
7
+ * narrow enough to stay true of both and leaves the plugin with no dependency
8
+ * of its own.
9
+ */
10
+ export {};
11
+ //# sourceMappingURL=lint-plugin.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lint-plugin.type.js","sourceRoot":"","sources":["../../../src/config/lint/lint-plugin.type.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG"}
@@ -0,0 +1,68 @@
1
+ import type { LintPlugin } from "./lint-plugin.type.js";
2
+ /**
3
+ * This repository's own lint restrictions, as a plugin Oxlint can load.
4
+ *
5
+ * Two constraints shape this file, and both are worth knowing before editing
6
+ * it.
7
+ *
8
+ * It is one file rather than the three the CloudFront Functions plugin next
9
+ * door is split across. Oxlint imports a JS plugin through Node, and `.ts` gets
10
+ * there on Node's own type stripping rather than a loader — `tsx` breaks
11
+ * `eslint-plugin-no-secrets` when it is in the path, and `jiti` hands Oxlint a
12
+ * module wrapper instead of the plugin. Type stripping does not rewrite a
13
+ * `./x.js` specifier to `./x.ts`, so a relative *value* import here would not
14
+ * resolve at lint time. Type-only imports are erased before Node sees them,
15
+ * which is why the ones above are fine.
16
+ *
17
+ * The restrictions are named rules rather than a `no-restricted-syntax` block.
18
+ * Oxlint has no equivalent of that rule, but the shape is the better one
19
+ * regardless: a report says which restriction fired instead of quoting a
20
+ * selector, one can be switched off without restating the others, and two
21
+ * configs setting it cannot silently replace each other. That last one is not
22
+ * hypothetical — under ESLint, `@kensio/smartass` setting `no-restricted-syntax`
23
+ * turned this repository's own restrictions off for 265 commits.
24
+ *
25
+ * Only this repository's own restrictions live here. The assertion advice from
26
+ * `@kensio/smartass` used to as well, lifted out of the `no-restricted-syntax`
27
+ * block in the config it published because there was nothing else to load.
28
+ * Since 1.37.0 it publishes a real Oxlint plugin, so `.oxlintrc.json` loads
29
+ * `smartass/prefer-specific-assertions` from the package instead.
30
+ */
31
+ /**
32
+ * One thing this repository will not have written in it.
33
+ */
34
+ export interface RepoSyntaxRestriction {
35
+ readonly selector: string;
36
+ readonly message: string;
37
+ }
38
+ /**
39
+ * The name Oxlint reports these rules under.
40
+ */
41
+ export declare const repoLintPluginName = "yulin";
42
+ /**
43
+ * The restrictions this repository sets on itself.
44
+ */
45
+ export declare const repoSyntaxRestrictions: {
46
+ "assert-defined-guard": {
47
+ selector: string;
48
+ message: string;
49
+ };
50
+ "assert-not-null-guard": {
51
+ selector: string;
52
+ message: string;
53
+ };
54
+ "no-reused-props": {
55
+ selector: string;
56
+ message: string;
57
+ };
58
+ };
59
+ /**
60
+ * The plugin `.oxlintrc.json` names as `yulin`.
61
+ *
62
+ * It is not published. `dist/` carries it because everything under `src/`
63
+ * does, but nothing in `exports` points at it: these are house rules for
64
+ * yulin, not advice for anyone installing yulin.
65
+ */
66
+ export declare const repoLintPlugin: LintPlugin;
67
+ export default repoLintPlugin;
68
+ //# sourceMappingURL=repo-lint-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repo-lint-plugin.d.ts","sourceRoot":"","sources":["../../../src/config/lint/repo-lint-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,UAAU,EAIX,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,UAAU,CAAC;AAE1C;;GAEG;AACH,eAAO,MAAM,sBAAsB;;QAE/B,QAAQ;QAER,OAAO;;;QAIP,QAAQ;QAER,OAAO;;;QAIP,QAAQ;QAER,OAAO;;CAGgD,CAAC;AAqC5D;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,EAAE,UAG5B,CAAC;eAEa,cAAc"}
@@ -0,0 +1,64 @@
1
+ /**
2
+ * The name Oxlint reports these rules under.
3
+ */
4
+ export const repoLintPluginName = "yulin";
5
+ /**
6
+ * The restrictions this repository sets on itself.
7
+ */
8
+ export const repoSyntaxRestrictions = {
9
+ "assert-defined-guard": {
10
+ selector: "IfStatement[test.type='BinaryExpression'][test.operator='===']:matches([test.left.type='Identifier'][test.left.name='undefined'], [test.right.type='Identifier'][test.right.name='undefined']):has(ThrowStatement[argument.type='NewExpression'][argument.callee.name='Error'])",
11
+ message: "Use `assertDefined(value, description)` instead of throwing `Error` from an `undefined` guard.",
12
+ },
13
+ "assert-not-null-guard": {
14
+ selector: "IfStatement[test.type='BinaryExpression'][test.operator='===']:matches([test.left.type='Literal'][test.left.value=null], [test.right.type='Literal'][test.right.value=null]):has(ThrowStatement[argument.type='NewExpression'][argument.callee.name='Error'])",
15
+ message: "Use `assertNotNull(value, description)` instead of throwing `Error` from a `null` guard.",
16
+ },
17
+ "no-reused-props": {
18
+ selector: "MemberExpression[object.type='ThisExpression'][property.type='Identifier'][property.name='props']",
19
+ message: "Do not reuse `this.props`. Destructure constructor props into class members instead.",
20
+ },
21
+ };
22
+ /**
23
+ * The one message id every rule here reports under.
24
+ *
25
+ * Each restriction is its own rule, so a rule never has a second message to
26
+ * tell apart from this one.
27
+ */
28
+ const messageId = "restriction";
29
+ /**
30
+ * Builds the rule that reports one restriction.
31
+ */
32
+ function restrictionRule(restriction) {
33
+ return {
34
+ meta: {
35
+ type: "problem",
36
+ schema: [],
37
+ messages: { [messageId]: restriction.message },
38
+ },
39
+ create: (context) => ({
40
+ [restriction.selector]: (node) => {
41
+ context.report({ node, messageId });
42
+ },
43
+ }),
44
+ };
45
+ }
46
+ function buildRules() {
47
+ return Object.fromEntries(Object.entries(repoSyntaxRestrictions).map(([name, restriction]) => [
48
+ name,
49
+ restrictionRule(restriction),
50
+ ]));
51
+ }
52
+ /**
53
+ * The plugin `.oxlintrc.json` names as `yulin`.
54
+ *
55
+ * It is not published. `dist/` carries it because everything under `src/`
56
+ * does, but nothing in `exports` points at it: these are house rules for
57
+ * yulin, not advice for anyone installing yulin.
58
+ */
59
+ export const repoLintPlugin = {
60
+ meta: { name: repoLintPluginName },
61
+ rules: buildRules(),
62
+ };
63
+ export default repoLintPlugin;
64
+ //# sourceMappingURL=repo-lint-plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repo-lint-plugin.js","sourceRoot":"","sources":["../../../src/config/lint/repo-lint-plugin.ts"],"names":[],"mappings":"AA8CA;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,OAAO,CAAC;AAE1C;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,sBAAsB,EAAE;QACtB,QAAQ,EACN,iRAAiR;QACnR,OAAO,EACL,gGAAgG;KACnG;IACD,uBAAuB,EAAE;QACvB,QAAQ,EACN,+PAA+P;QACjQ,OAAO,EACL,0FAA0F;KAC7F;IACD,iBAAiB,EAAE;QACjB,QAAQ,EACN,mGAAmG;QACrG,OAAO,EACL,sFAAsF;KACzF;CACwD,CAAC;AAE5D;;;;;GAKG;AACH,MAAM,SAAS,GAAG,aAAa,CAAC;AAEhC;;GAEG;AACH,SAAS,eAAe,CAAC,WAAkC;IACzD,OAAO;QACL,IAAI,EAAE;YACJ,IAAI,EAAE,SAAS;YACf,MAAM,EAAE,EAAE;YACV,QAAQ,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,WAAW,CAAC,OAAO,EAAE;SAC/C;QACD,MAAM,EAAE,CAAC,OAAwB,EAAe,EAAE,CAAC,CAAC;YAClD,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAc,EAAQ,EAAE;gBAC/C,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;YACtC,CAAC;SACF,CAAC;KACH,CAAC;AACJ,CAAC;AAED,SAAS,UAAU;IACjB,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,WAAW,CAAC,EAAE,EAAE,CAAC;QAClE,IAAI;QACJ,eAAe,CAAC,WAAW,CAAC;KAC7B,CAAC,CACH,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAe;IACxC,IAAI,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE;IAClC,KAAK,EAAE,UAAU,EAAE;CACpB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { type LintRuleSetting } from "../lint/index.js";
2
+ /**
3
+ * An Oxlint config fragment, in the shape `.oxlintrc.json` is written in.
4
+ */
5
+ export interface OxlintConfig {
6
+ readonly jsPlugins: readonly {
7
+ readonly name: string;
8
+ readonly specifier: string;
9
+ }[];
10
+ readonly overrides: readonly {
11
+ readonly files: readonly string[];
12
+ readonly rules: Readonly<Record<string, LintRuleSetting>>;
13
+ }[];
14
+ }
15
+ /**
16
+ * Oxlint's half of the CloudFront Functions JS2 lint setup.
17
+ *
18
+ * It is an override rather than a top-level rule block because a consumer
19
+ * extends this into the config that lints their whole repository, and JS2's
20
+ * restrictions would be wrong applied anywhere but a `.cff.js` file: a project
21
+ * told not to use arrow functions everywhere would be unusable.
22
+ *
23
+ * The rules are the same ones the ESLint config uses, from the same source.
24
+ */
25
+ export declare const cloudFrontFunctionsJs2Oxlint: OxlintConfig;
26
+ //# sourceMappingURL=cffjs2.oxlint.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cffjs2.oxlint.config.d.ts","sourceRoot":"","sources":["../../../src/config/oxlint/cffjs2.oxlint.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,kBAAkB,CAAC;AAE1B;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,SAAS,EAAE,SAAS;QAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QACtB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;KAC5B,EAAE,CAAC;IACJ,QAAQ,CAAC,SAAS,EAAE,SAAS;QAC3B,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;QAClC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC;KAC3D,EAAE,CAAC;CACL;AAUD;;;;;;;;;GASG;AACH,eAAO,MAAM,4BAA4B,EAAE,YAQ1C,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { cffJs2LintRules, cffJs2PluginName, } from "../lint/index.js";
2
+ /**
3
+ * Where the built plugin sits, relative to the built config that names it.
4
+ *
5
+ * Oxlint resolves a plugin specifier against the config file's own location,
6
+ * so this path is the one inside `dist/`, not the one in the source tree.
7
+ */
8
+ const pluginSpecifier = "../lint/cff-js2-oxlint-plugin.js";
9
+ /**
10
+ * Oxlint's half of the CloudFront Functions JS2 lint setup.
11
+ *
12
+ * It is an override rather than a top-level rule block because a consumer
13
+ * extends this into the config that lints their whole repository, and JS2's
14
+ * restrictions would be wrong applied anywhere but a `.cff.js` file: a project
15
+ * told not to use arrow functions everywhere would be unusable.
16
+ *
17
+ * The rules are the same ones the ESLint config uses, from the same source.
18
+ */
19
+ export const cloudFrontFunctionsJs2Oxlint = {
20
+ jsPlugins: [{ name: cffJs2PluginName, specifier: pluginSpecifier }],
21
+ overrides: [
22
+ {
23
+ files: ["**/*.cff.js"],
24
+ rules: cffJs2LintRules(),
25
+ },
26
+ ],
27
+ };
28
+ //# sourceMappingURL=cffjs2.oxlint.config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cffjs2.oxlint.config.js","sourceRoot":"","sources":["../../../src/config/oxlint/cffjs2.oxlint.config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,gBAAgB,GAEjB,MAAM,kBAAkB,CAAC;AAgB1B;;;;;GAKG;AACH,MAAM,eAAe,GAAG,kCAAkC,CAAC;AAE3D;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAiB;IACxD,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;IACnE,SAAS,EAAE;QACT;YACE,KAAK,EAAE,CAAC,aAAa,CAAC;YACtB,KAAK,EAAE,eAAe,EAAE;SACzB;KACF;CACF,CAAC"}
@@ -0,0 +1,36 @@
1
+ {
2
+ "jsPlugins": [
3
+ {
4
+ "name": "cff-js2",
5
+ "specifier": "../lint/cff-js2-oxlint-plugin.js"
6
+ }
7
+ ],
8
+ "overrides": [
9
+ {
10
+ "files": [
11
+ "**/*.cff.js"
12
+ ],
13
+ "rules": {
14
+ "object-shorthand": "off",
15
+ "no-eval": "error",
16
+ "no-new-func": "error",
17
+ "no-implied-eval": "error",
18
+ "no-unused-vars": [
19
+ "error",
20
+ {
21
+ "varsIgnorePattern": "^handler$"
22
+ }
23
+ ],
24
+ "cff-js2/no-unavailable-global": "error",
25
+ "cff-js2/no-import": "error",
26
+ "cff-js2/only-handler-export": "error",
27
+ "cff-js2/only-built-in-require": "error",
28
+ "cff-js2/no-class": "error",
29
+ "cff-js2/no-generator": "error",
30
+ "cff-js2/no-destructuring": "error",
31
+ "cff-js2/no-spread": "error",
32
+ "cff-js2/no-for-of": "error"
33
+ }
34
+ }
35
+ ]
36
+ }
@@ -0,0 +1,2 @@
1
+ export { cloudFrontFunctionsJs2Oxlint, type OxlintConfig, } from "./cffjs2.oxlint.config.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config/oxlint/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,KAAK,YAAY,GAClB,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { cloudFrontFunctionsJs2Oxlint, } from "./cffjs2.oxlint.config.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/config/oxlint/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,GAE7B,MAAM,2BAA2B,CAAC"}
@@ -28,7 +28,7 @@ export class SimSdkModuleClientInterceptor {
28
28
  interceptModule(moduleExports) {
29
29
  const intercepted = {};
30
30
  for (const [exportName, exportValue] of Object.entries(moduleExports)) {
31
- // eslint-disable-next-line security/detect-object-injection -- copying the module's own export names verbatim.
31
+ // oxlint-disable-next-line security/detect-object-injection -- copying the module's own export names verbatim.
32
32
  intercepted[exportName] = this.interceptExport(exportValue);
33
33
  }
34
34
  return intercepted;