pi-cursor-sdk 0.1.12 → 0.1.14

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 (2608) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +17 -20
  3. package/docs/cursor-model-ux-spec.md +6 -6
  4. package/package.json +2 -5
  5. package/src/bundled-context-windows.ts +5 -2
  6. package/src/cursor-fallback-models.generated.ts +4068 -71
  7. package/node_modules/@bufbuild/protobuf/README.md +0 -43
  8. package/node_modules/@bufbuild/protobuf/dist/cjs/binary-encoding.d.ts +0 -422
  9. package/node_modules/@bufbuild/protobuf/dist/cjs/binary-encoding.js +0 -444
  10. package/node_modules/@bufbuild/protobuf/dist/cjs/binary-format.d.ts +0 -113
  11. package/node_modules/@bufbuild/protobuf/dist/cjs/binary-format.js +0 -15
  12. package/node_modules/@bufbuild/protobuf/dist/cjs/codegen-info.d.ts +0 -33
  13. package/node_modules/@bufbuild/protobuf/dist/cjs/codegen-info.js +0 -69
  14. package/node_modules/@bufbuild/protobuf/dist/cjs/create-descriptor-set.d.ts +0 -36
  15. package/node_modules/@bufbuild/protobuf/dist/cjs/create-descriptor-set.js +0 -910
  16. package/node_modules/@bufbuild/protobuf/dist/cjs/create-registry-from-desc.d.ts +0 -15
  17. package/node_modules/@bufbuild/protobuf/dist/cjs/create-registry-from-desc.js +0 -264
  18. package/node_modules/@bufbuild/protobuf/dist/cjs/create-registry.d.ts +0 -9
  19. package/node_modules/@bufbuild/protobuf/dist/cjs/create-registry.js +0 -94
  20. package/node_modules/@bufbuild/protobuf/dist/cjs/descriptor-set.d.ts +0 -672
  21. package/node_modules/@bufbuild/protobuf/dist/cjs/descriptor-set.js +0 -15
  22. package/node_modules/@bufbuild/protobuf/dist/cjs/enum.d.ts +0 -35
  23. package/node_modules/@bufbuild/protobuf/dist/cjs/enum.js +0 -15
  24. package/node_modules/@bufbuild/protobuf/dist/cjs/extension-accessor.d.ts +0 -35
  25. package/node_modules/@bufbuild/protobuf/dist/cjs/extension-accessor.js +0 -114
  26. package/node_modules/@bufbuild/protobuf/dist/cjs/extension.d.ts +0 -24
  27. package/node_modules/@bufbuild/protobuf/dist/cjs/extension.js +0 -15
  28. package/node_modules/@bufbuild/protobuf/dist/cjs/field-list.d.ts +0 -27
  29. package/node_modules/@bufbuild/protobuf/dist/cjs/field-list.js +0 -15
  30. package/node_modules/@bufbuild/protobuf/dist/cjs/field.d.ts +0 -314
  31. package/node_modules/@bufbuild/protobuf/dist/cjs/field.js +0 -15
  32. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/any_pb.d.ts +0 -157
  33. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/any_pb.js +0 -273
  34. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/api_pb.d.ts +0 -256
  35. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/api_pb.js +0 -316
  36. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/compiler/plugin_pb.d.ts +0 -271
  37. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/compiler/plugin_pb.js +0 -219
  38. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/descriptor_pb.d.ts +0 -2277
  39. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/descriptor_pb.js +0 -2077
  40. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/duration_pb.d.ts +0 -100
  41. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/duration_pb.js +0 -169
  42. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/empty_pb.d.ts +0 -28
  43. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/empty_pb.js +0 -52
  44. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/field_mask_pb.d.ts +0 -227
  45. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/field_mask_pb.js +0 -311
  46. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/source_context_pb.d.ts +0 -29
  47. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/source_context_pb.js +0 -55
  48. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/struct_pb.d.ts +0 -158
  49. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/struct_pb.js +0 -240
  50. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/timestamp_pb.d.ts +0 -132
  51. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/timestamp_pb.js +0 -213
  52. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/type_pb.d.ts +0 -437
  53. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/type_pb.js +0 -562
  54. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/wrappers_pb.d.ts +0 -267
  55. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/wrappers_pb.js +0 -569
  56. package/node_modules/@bufbuild/protobuf/dist/cjs/google/varint.d.ts +0 -70
  57. package/node_modules/@bufbuild/protobuf/dist/cjs/google/varint.js +0 -323
  58. package/node_modules/@bufbuild/protobuf/dist/cjs/index.d.ts +0 -42
  59. package/node_modules/@bufbuild/protobuf/dist/cjs/index.js +0 -84
  60. package/node_modules/@bufbuild/protobuf/dist/cjs/is-message.d.ts +0 -22
  61. package/node_modules/@bufbuild/protobuf/dist/cjs/is-message.js +0 -52
  62. package/node_modules/@bufbuild/protobuf/dist/cjs/json-format.d.ts +0 -111
  63. package/node_modules/@bufbuild/protobuf/dist/cjs/json-format.js +0 -15
  64. package/node_modules/@bufbuild/protobuf/dist/cjs/message-type.d.ts +0 -51
  65. package/node_modules/@bufbuild/protobuf/dist/cjs/message-type.js +0 -15
  66. package/node_modules/@bufbuild/protobuf/dist/cjs/message.d.ts +0 -131
  67. package/node_modules/@bufbuild/protobuf/dist/cjs/message.js +0 -129
  68. package/node_modules/@bufbuild/protobuf/dist/cjs/package.json +0 -1
  69. package/node_modules/@bufbuild/protobuf/dist/cjs/private/assert.d.ts +0 -16
  70. package/node_modules/@bufbuild/protobuf/dist/cjs/private/assert.js +0 -59
  71. package/node_modules/@bufbuild/protobuf/dist/cjs/private/binary-format.d.ts +0 -7
  72. package/node_modules/@bufbuild/protobuf/dist/cjs/private/binary-format.js +0 -431
  73. package/node_modules/@bufbuild/protobuf/dist/cjs/private/enum.d.ts +0 -27
  74. package/node_modules/@bufbuild/protobuf/dist/cjs/private/enum.js +0 -94
  75. package/node_modules/@bufbuild/protobuf/dist/cjs/private/extensions.d.ts +0 -34
  76. package/node_modules/@bufbuild/protobuf/dist/cjs/private/extensions.js +0 -86
  77. package/node_modules/@bufbuild/protobuf/dist/cjs/private/feature-set.d.ts +0 -19
  78. package/node_modules/@bufbuild/protobuf/dist/cjs/private/feature-set.js +0 -120
  79. package/node_modules/@bufbuild/protobuf/dist/cjs/private/field-list.d.ts +0 -18
  80. package/node_modules/@bufbuild/protobuf/dist/cjs/private/field-list.js +0 -76
  81. package/node_modules/@bufbuild/protobuf/dist/cjs/private/field-normalize.d.ts +0 -9
  82. package/node_modules/@bufbuild/protobuf/dist/cjs/private/field-normalize.js +0 -69
  83. package/node_modules/@bufbuild/protobuf/dist/cjs/private/field-wrapper.d.ts +0 -25
  84. package/node_modules/@bufbuild/protobuf/dist/cjs/private/field-wrapper.js +0 -57
  85. package/node_modules/@bufbuild/protobuf/dist/cjs/private/field.d.ts +0 -16
  86. package/node_modules/@bufbuild/protobuf/dist/cjs/private/field.js +0 -45
  87. package/node_modules/@bufbuild/protobuf/dist/cjs/private/json-format.d.ts +0 -2
  88. package/node_modules/@bufbuild/protobuf/dist/cjs/private/json-format.js +0 -626
  89. package/node_modules/@bufbuild/protobuf/dist/cjs/private/message-type.d.ts +0 -18
  90. package/node_modules/@bufbuild/protobuf/dist/cjs/private/message-type.js +0 -50
  91. package/node_modules/@bufbuild/protobuf/dist/cjs/private/names.d.ts +0 -43
  92. package/node_modules/@bufbuild/protobuf/dist/cjs/private/names.js +0 -278
  93. package/node_modules/@bufbuild/protobuf/dist/cjs/private/options-map.d.ts +0 -7
  94. package/node_modules/@bufbuild/protobuf/dist/cjs/private/options-map.js +0 -15
  95. package/node_modules/@bufbuild/protobuf/dist/cjs/private/proto-runtime.d.ts +0 -53
  96. package/node_modules/@bufbuild/protobuf/dist/cjs/private/proto-runtime.js +0 -41
  97. package/node_modules/@bufbuild/protobuf/dist/cjs/private/reflect.d.ts +0 -9
  98. package/node_modules/@bufbuild/protobuf/dist/cjs/private/reflect.js +0 -79
  99. package/node_modules/@bufbuild/protobuf/dist/cjs/private/reify-wkt.d.ts +0 -102
  100. package/node_modules/@bufbuild/protobuf/dist/cjs/private/reify-wkt.js +0 -172
  101. package/node_modules/@bufbuild/protobuf/dist/cjs/private/scalars.d.ts +0 -18
  102. package/node_modules/@bufbuild/protobuf/dist/cjs/private/scalars.js +0 -105
  103. package/node_modules/@bufbuild/protobuf/dist/cjs/private/text-format.d.ts +0 -4
  104. package/node_modules/@bufbuild/protobuf/dist/cjs/private/text-format.js +0 -189
  105. package/node_modules/@bufbuild/protobuf/dist/cjs/private/util-common.d.ts +0 -2
  106. package/node_modules/@bufbuild/protobuf/dist/cjs/private/util-common.js +0 -237
  107. package/node_modules/@bufbuild/protobuf/dist/cjs/private/util.d.ts +0 -38
  108. package/node_modules/@bufbuild/protobuf/dist/cjs/private/util.js +0 -15
  109. package/node_modules/@bufbuild/protobuf/dist/cjs/proto-base64.d.ts +0 -18
  110. package/node_modules/@bufbuild/protobuf/dist/cjs/proto-base64.js +0 -128
  111. package/node_modules/@bufbuild/protobuf/dist/cjs/proto-delimited.d.ts +0 -54
  112. package/node_modules/@bufbuild/protobuf/dist/cjs/proto-delimited.js +0 -155
  113. package/node_modules/@bufbuild/protobuf/dist/cjs/proto-double.d.ts +0 -5
  114. package/node_modules/@bufbuild/protobuf/dist/cjs/proto-double.js +0 -29
  115. package/node_modules/@bufbuild/protobuf/dist/cjs/proto-int64.d.ts +0 -95
  116. package/node_modules/@bufbuild/protobuf/dist/cjs/proto-int64.js +0 -116
  117. package/node_modules/@bufbuild/protobuf/dist/cjs/proto2.d.ts +0 -4
  118. package/node_modules/@bufbuild/protobuf/dist/cjs/proto2.js +0 -53
  119. package/node_modules/@bufbuild/protobuf/dist/cjs/proto3.d.ts +0 -4
  120. package/node_modules/@bufbuild/protobuf/dist/cjs/proto3.js +0 -56
  121. package/node_modules/@bufbuild/protobuf/dist/cjs/scalar.d.ts +0 -53
  122. package/node_modules/@bufbuild/protobuf/dist/cjs/scalar.js +0 -81
  123. package/node_modules/@bufbuild/protobuf/dist/cjs/service-type.d.ts +0 -96
  124. package/node_modules/@bufbuild/protobuf/dist/cjs/service-type.js +0 -53
  125. package/node_modules/@bufbuild/protobuf/dist/cjs/to-plain-message.d.ts +0 -12
  126. package/node_modules/@bufbuild/protobuf/dist/cjs/to-plain-message.js +0 -72
  127. package/node_modules/@bufbuild/protobuf/dist/cjs/type-registry.d.ts +0 -57
  128. package/node_modules/@bufbuild/protobuf/dist/cjs/type-registry.js +0 -15
  129. package/node_modules/@bufbuild/protobuf/dist/esm/binary-encoding.d.ts +0 -422
  130. package/node_modules/@bufbuild/protobuf/dist/esm/binary-encoding.js +0 -439
  131. package/node_modules/@bufbuild/protobuf/dist/esm/binary-format.d.ts +0 -113
  132. package/node_modules/@bufbuild/protobuf/dist/esm/binary-format.js +0 -14
  133. package/node_modules/@bufbuild/protobuf/dist/esm/codegen-info.d.ts +0 -33
  134. package/node_modules/@bufbuild/protobuf/dist/esm/codegen-info.js +0 -67
  135. package/node_modules/@bufbuild/protobuf/dist/esm/create-descriptor-set.d.ts +0 -36
  136. package/node_modules/@bufbuild/protobuf/dist/esm/create-descriptor-set.js +0 -906
  137. package/node_modules/@bufbuild/protobuf/dist/esm/create-registry-from-desc.d.ts +0 -15
  138. package/node_modules/@bufbuild/protobuf/dist/esm/create-registry-from-desc.js +0 -261
  139. package/node_modules/@bufbuild/protobuf/dist/esm/create-registry.d.ts +0 -9
  140. package/node_modules/@bufbuild/protobuf/dist/esm/create-registry.js +0 -90
  141. package/node_modules/@bufbuild/protobuf/dist/esm/descriptor-set.d.ts +0 -672
  142. package/node_modules/@bufbuild/protobuf/dist/esm/descriptor-set.js +0 -14
  143. package/node_modules/@bufbuild/protobuf/dist/esm/enum.d.ts +0 -35
  144. package/node_modules/@bufbuild/protobuf/dist/esm/enum.js +0 -14
  145. package/node_modules/@bufbuild/protobuf/dist/esm/extension-accessor.d.ts +0 -35
  146. package/node_modules/@bufbuild/protobuf/dist/esm/extension-accessor.js +0 -107
  147. package/node_modules/@bufbuild/protobuf/dist/esm/extension.d.ts +0 -24
  148. package/node_modules/@bufbuild/protobuf/dist/esm/extension.js +0 -14
  149. package/node_modules/@bufbuild/protobuf/dist/esm/field-list.d.ts +0 -27
  150. package/node_modules/@bufbuild/protobuf/dist/esm/field-list.js +0 -14
  151. package/node_modules/@bufbuild/protobuf/dist/esm/field.d.ts +0 -314
  152. package/node_modules/@bufbuild/protobuf/dist/esm/field.js +0 -14
  153. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/any_pb.d.ts +0 -157
  154. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/any_pb.js +0 -269
  155. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/api_pb.d.ts +0 -256
  156. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/api_pb.js +0 -310
  157. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/compiler/plugin_pb.d.ts +0 -271
  158. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/compiler/plugin_pb.js +0 -212
  159. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/descriptor_pb.d.ts +0 -2277
  160. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/descriptor_pb.js +0 -2041
  161. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/duration_pb.d.ts +0 -100
  162. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/duration_pb.js +0 -165
  163. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/empty_pb.d.ts +0 -28
  164. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/empty_pb.js +0 -48
  165. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/field_mask_pb.d.ts +0 -227
  166. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/field_mask_pb.js +0 -307
  167. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/source_context_pb.d.ts +0 -29
  168. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/source_context_pb.js +0 -51
  169. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/struct_pb.d.ts +0 -158
  170. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/struct_pb.js +0 -234
  171. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/timestamp_pb.d.ts +0 -132
  172. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/timestamp_pb.js +0 -209
  173. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/type_pb.d.ts +0 -437
  174. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/type_pb.js +0 -554
  175. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/wrappers_pb.d.ts +0 -267
  176. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/wrappers_pb.js +0 -557
  177. package/node_modules/@bufbuild/protobuf/dist/esm/google/varint.d.ts +0 -70
  178. package/node_modules/@bufbuild/protobuf/dist/esm/google/varint.js +0 -313
  179. package/node_modules/@bufbuild/protobuf/dist/esm/index.d.ts +0 -42
  180. package/node_modules/@bufbuild/protobuf/dist/esm/index.js +0 -43
  181. package/node_modules/@bufbuild/protobuf/dist/esm/is-message.d.ts +0 -22
  182. package/node_modules/@bufbuild/protobuf/dist/esm/is-message.js +0 -48
  183. package/node_modules/@bufbuild/protobuf/dist/esm/json-format.d.ts +0 -111
  184. package/node_modules/@bufbuild/protobuf/dist/esm/json-format.js +0 -14
  185. package/node_modules/@bufbuild/protobuf/dist/esm/message-type.d.ts +0 -51
  186. package/node_modules/@bufbuild/protobuf/dist/esm/message-type.js +0 -14
  187. package/node_modules/@bufbuild/protobuf/dist/esm/message.d.ts +0 -131
  188. package/node_modules/@bufbuild/protobuf/dist/esm/message.js +0 -125
  189. package/node_modules/@bufbuild/protobuf/dist/esm/private/assert.d.ts +0 -16
  190. package/node_modules/@bufbuild/protobuf/dist/esm/private/assert.js +0 -52
  191. package/node_modules/@bufbuild/protobuf/dist/esm/private/binary-format.d.ts +0 -7
  192. package/node_modules/@bufbuild/protobuf/dist/esm/private/binary-format.js +0 -427
  193. package/node_modules/@bufbuild/protobuf/dist/esm/private/enum.d.ts +0 -27
  194. package/node_modules/@bufbuild/protobuf/dist/esm/private/enum.js +0 -87
  195. package/node_modules/@bufbuild/protobuf/dist/esm/private/extensions.d.ts +0 -34
  196. package/node_modules/@bufbuild/protobuf/dist/esm/private/extensions.js +0 -81
  197. package/node_modules/@bufbuild/protobuf/dist/esm/private/feature-set.d.ts +0 -19
  198. package/node_modules/@bufbuild/protobuf/dist/esm/private/feature-set.js +0 -116
  199. package/node_modules/@bufbuild/protobuf/dist/esm/private/field-list.d.ts +0 -18
  200. package/node_modules/@bufbuild/protobuf/dist/esm/private/field-list.js +0 -72
  201. package/node_modules/@bufbuild/protobuf/dist/esm/private/field-normalize.d.ts +0 -9
  202. package/node_modules/@bufbuild/protobuf/dist/esm/private/field-normalize.js +0 -65
  203. package/node_modules/@bufbuild/protobuf/dist/esm/private/field-wrapper.d.ts +0 -25
  204. package/node_modules/@bufbuild/protobuf/dist/esm/private/field-wrapper.js +0 -53
  205. package/node_modules/@bufbuild/protobuf/dist/esm/private/field.d.ts +0 -16
  206. package/node_modules/@bufbuild/protobuf/dist/esm/private/field.js +0 -41
  207. package/node_modules/@bufbuild/protobuf/dist/esm/private/json-format.d.ts +0 -2
  208. package/node_modules/@bufbuild/protobuf/dist/esm/private/json-format.js +0 -623
  209. package/node_modules/@bufbuild/protobuf/dist/esm/private/message-type.d.ts +0 -18
  210. package/node_modules/@bufbuild/protobuf/dist/esm/private/message-type.js +0 -46
  211. package/node_modules/@bufbuild/protobuf/dist/esm/private/names.d.ts +0 -43
  212. package/node_modules/@bufbuild/protobuf/dist/esm/private/names.js +0 -269
  213. package/node_modules/@bufbuild/protobuf/dist/esm/private/options-map.d.ts +0 -7
  214. package/node_modules/@bufbuild/protobuf/dist/esm/private/options-map.js +0 -14
  215. package/node_modules/@bufbuild/protobuf/dist/esm/private/proto-runtime.d.ts +0 -53
  216. package/node_modules/@bufbuild/protobuf/dist/esm/private/proto-runtime.js +0 -37
  217. package/node_modules/@bufbuild/protobuf/dist/esm/private/reflect.d.ts +0 -9
  218. package/node_modules/@bufbuild/protobuf/dist/esm/private/reflect.js +0 -74
  219. package/node_modules/@bufbuild/protobuf/dist/esm/private/reify-wkt.d.ts +0 -102
  220. package/node_modules/@bufbuild/protobuf/dist/esm/private/reify-wkt.js +0 -168
  221. package/node_modules/@bufbuild/protobuf/dist/esm/private/scalars.d.ts +0 -18
  222. package/node_modules/@bufbuild/protobuf/dist/esm/private/scalars.js +0 -99
  223. package/node_modules/@bufbuild/protobuf/dist/esm/private/text-format.d.ts +0 -4
  224. package/node_modules/@bufbuild/protobuf/dist/esm/private/text-format.js +0 -184
  225. package/node_modules/@bufbuild/protobuf/dist/esm/private/util-common.d.ts +0 -2
  226. package/node_modules/@bufbuild/protobuf/dist/esm/private/util-common.js +0 -234
  227. package/node_modules/@bufbuild/protobuf/dist/esm/private/util.d.ts +0 -38
  228. package/node_modules/@bufbuild/protobuf/dist/esm/private/util.js +0 -14
  229. package/node_modules/@bufbuild/protobuf/dist/esm/proto-base64.d.ts +0 -18
  230. package/node_modules/@bufbuild/protobuf/dist/esm/proto-base64.js +0 -125
  231. package/node_modules/@bufbuild/protobuf/dist/esm/proto-delimited.d.ts +0 -54
  232. package/node_modules/@bufbuild/protobuf/dist/esm/proto-delimited.js +0 -152
  233. package/node_modules/@bufbuild/protobuf/dist/esm/proto-double.d.ts +0 -5
  234. package/node_modules/@bufbuild/protobuf/dist/esm/proto-double.js +0 -26
  235. package/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.d.ts +0 -95
  236. package/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.js +0 -113
  237. package/node_modules/@bufbuild/protobuf/dist/esm/proto2.d.ts +0 -4
  238. package/node_modules/@bufbuild/protobuf/dist/esm/proto2.js +0 -50
  239. package/node_modules/@bufbuild/protobuf/dist/esm/proto3.d.ts +0 -4
  240. package/node_modules/@bufbuild/protobuf/dist/esm/proto3.js +0 -53
  241. package/node_modules/@bufbuild/protobuf/dist/esm/scalar.d.ts +0 -53
  242. package/node_modules/@bufbuild/protobuf/dist/esm/scalar.js +0 -78
  243. package/node_modules/@bufbuild/protobuf/dist/esm/service-type.d.ts +0 -96
  244. package/node_modules/@bufbuild/protobuf/dist/esm/service-type.js +0 -50
  245. package/node_modules/@bufbuild/protobuf/dist/esm/to-plain-message.d.ts +0 -12
  246. package/node_modules/@bufbuild/protobuf/dist/esm/to-plain-message.js +0 -70
  247. package/node_modules/@bufbuild/protobuf/dist/esm/type-registry.d.ts +0 -57
  248. package/node_modules/@bufbuild/protobuf/dist/esm/type-registry.js +0 -14
  249. package/node_modules/@bufbuild/protobuf/package.json +0 -34
  250. package/node_modules/@connectrpc/connect/README.md +0 -62
  251. package/node_modules/@connectrpc/connect/dist/cjs/any-client.d.ts +0 -22
  252. package/node_modules/@connectrpc/connect/dist/cjs/any-client.js +0 -34
  253. package/node_modules/@connectrpc/connect/dist/cjs/call-options.d.ts +0 -34
  254. package/node_modules/@connectrpc/connect/dist/cjs/call-options.js +0 -15
  255. package/node_modules/@connectrpc/connect/dist/cjs/callback-client.d.ts +0 -31
  256. package/node_modules/@connectrpc/connect/dist/cjs/callback-client.js +0 -116
  257. package/node_modules/@connectrpc/connect/dist/cjs/code.d.ts +0 -75
  258. package/node_modules/@connectrpc/connect/dist/cjs/code.js +0 -92
  259. package/node_modules/@connectrpc/connect/dist/cjs/connect-error.d.ts +0 -90
  260. package/node_modules/@connectrpc/connect/dist/cjs/connect-error.js +0 -134
  261. package/node_modules/@connectrpc/connect/dist/cjs/context-values.d.ts +0 -34
  262. package/node_modules/@connectrpc/connect/dist/cjs/context-values.js +0 -41
  263. package/node_modules/@connectrpc/connect/dist/cjs/cors.d.ts +0 -45
  264. package/node_modules/@connectrpc/connect/dist/cjs/cors.js +0 -82
  265. package/node_modules/@connectrpc/connect/dist/cjs/http-headers.d.ts +0 -36
  266. package/node_modules/@connectrpc/connect/dist/cjs/http-headers.js +0 -68
  267. package/node_modules/@connectrpc/connect/dist/cjs/implementation.d.ts +0 -165
  268. package/node_modules/@connectrpc/connect/dist/cjs/implementation.js +0 -79
  269. package/node_modules/@connectrpc/connect/dist/cjs/index.d.ts +0 -22
  270. package/node_modules/@connectrpc/connect/dist/cjs/index.js +0 -47
  271. package/node_modules/@connectrpc/connect/dist/cjs/interceptor.d.ts +0 -155
  272. package/node_modules/@connectrpc/connect/dist/cjs/interceptor.js +0 -27
  273. package/node_modules/@connectrpc/connect/dist/cjs/method-type.d.ts +0 -43
  274. package/node_modules/@connectrpc/connect/dist/cjs/method-type.js +0 -15
  275. package/node_modules/@connectrpc/connect/dist/cjs/package.json +0 -1
  276. package/node_modules/@connectrpc/connect/dist/cjs/promise-client.d.ts +0 -49
  277. package/node_modules/@connectrpc/connect/dist/cjs/promise-client.js +0 -147
  278. package/node_modules/@connectrpc/connect/dist/cjs/protocol/async-iterable.d.ts +0 -527
  279. package/node_modules/@connectrpc/connect/dist/cjs/protocol/async-iterable.js +0 -959
  280. package/node_modules/@connectrpc/connect/dist/cjs/protocol/compression.d.ts +0 -48
  281. package/node_modules/@connectrpc/connect/dist/cjs/protocol/compression.js +0 -75
  282. package/node_modules/@connectrpc/connect/dist/cjs/protocol/content-type-matcher.d.ts +0 -16
  283. package/node_modules/@connectrpc/connect/dist/cjs/protocol/content-type-matcher.js +0 -43
  284. package/node_modules/@connectrpc/connect/dist/cjs/protocol/create-method-url.d.ts +0 -17
  285. package/node_modules/@connectrpc/connect/dist/cjs/protocol/create-method-url.js +0 -36
  286. package/node_modules/@connectrpc/connect/dist/cjs/protocol/envelope.d.ts +0 -59
  287. package/node_modules/@connectrpc/connect/dist/cjs/protocol/envelope.js +0 -152
  288. package/node_modules/@connectrpc/connect/dist/cjs/protocol/index.d.ts +0 -24
  289. package/node_modules/@connectrpc/connect/dist/cjs/protocol/index.js +0 -93
  290. package/node_modules/@connectrpc/connect/dist/cjs/protocol/invoke-implementation.d.ts +0 -21
  291. package/node_modules/@connectrpc/connect/dist/cjs/protocol/invoke-implementation.js +0 -250
  292. package/node_modules/@connectrpc/connect/dist/cjs/protocol/limit-io.d.ts +0 -24
  293. package/node_modules/@connectrpc/connect/dist/cjs/protocol/limit-io.js +0 -80
  294. package/node_modules/@connectrpc/connect/dist/cjs/protocol/normalize.d.ts +0 -12
  295. package/node_modules/@connectrpc/connect/dist/cjs/protocol/normalize.js +0 -56
  296. package/node_modules/@connectrpc/connect/dist/cjs/protocol/protocol-handler-factory.d.ts +0 -18
  297. package/node_modules/@connectrpc/connect/dist/cjs/protocol/protocol-handler-factory.js +0 -15
  298. package/node_modules/@connectrpc/connect/dist/cjs/protocol/run-call.d.ts +0 -45
  299. package/node_modules/@connectrpc/connect/dist/cjs/protocol/run-call.js +0 -119
  300. package/node_modules/@connectrpc/connect/dist/cjs/protocol/serialization.d.ts +0 -104
  301. package/node_modules/@connectrpc/connect/dist/cjs/protocol/serialization.js +0 -148
  302. package/node_modules/@connectrpc/connect/dist/cjs/protocol/signals.d.ts +0 -36
  303. package/node_modules/@connectrpc/connect/dist/cjs/protocol/signals.js +0 -100
  304. package/node_modules/@connectrpc/connect/dist/cjs/protocol/transport-options.d.ts +0 -98
  305. package/node_modules/@connectrpc/connect/dist/cjs/protocol/transport-options.js +0 -15
  306. package/node_modules/@connectrpc/connect/dist/cjs/protocol/universal-fetch.d.ts +0 -35
  307. package/node_modules/@connectrpc/connect/dist/cjs/protocol/universal-fetch.js +0 -150
  308. package/node_modules/@connectrpc/connect/dist/cjs/protocol/universal-handler-client.d.ts +0 -7
  309. package/node_modules/@connectrpc/connect/dist/cjs/protocol/universal-handler-client.js +0 -90
  310. package/node_modules/@connectrpc/connect/dist/cjs/protocol/universal-handler.d.ts +0 -155
  311. package/node_modules/@connectrpc/connect/dist/cjs/protocol/universal-handler.js +0 -131
  312. package/node_modules/@connectrpc/connect/dist/cjs/protocol/universal.d.ts +0 -102
  313. package/node_modules/@connectrpc/connect/dist/cjs/protocol/universal.js +0 -78
  314. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/code-string.d.ts +0 -16
  315. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/code-string.js +0 -52
  316. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/content-type.d.ts +0 -40
  317. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/content-type.js +0 -71
  318. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/end-stream.d.ts +0 -44
  319. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/end-stream.js +0 -132
  320. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/error-json.d.ts +0 -36
  321. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/error-json.js +0 -163
  322. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/get-request.d.ts +0 -7
  323. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/get-request.js +0 -68
  324. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/handler-factory.d.ts +0 -6
  325. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/handler-factory.js +0 -281
  326. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/headers.d.ts +0 -12
  327. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/headers.js +0 -28
  328. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/http-status.d.ts +0 -15
  329. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/http-status.js +0 -90
  330. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/index.d.ts +0 -16
  331. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/index.js +0 -81
  332. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/parse-timeout.d.ts +0 -13
  333. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/parse-timeout.js +0 -44
  334. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/query-params.d.ts +0 -8
  335. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/query-params.js +0 -24
  336. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/request-header.d.ts +0 -19
  337. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/request-header.js +0 -70
  338. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/trailer-mux.d.ts +0 -19
  339. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/trailer-mux.js +0 -53
  340. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/transport.d.ts +0 -6
  341. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/transport.js +0 -214
  342. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/validate-response.d.ts +0 -30
  343. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/validate-response.js +0 -72
  344. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/version.d.ts +0 -20
  345. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/version.js +0 -58
  346. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/content-type.d.ts +0 -16
  347. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/content-type.js +0 -38
  348. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/gen/status_pb.d.ts +0 -89
  349. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/gen/status_pb.js +0 -120
  350. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/handler-factory.d.ts +0 -6
  351. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/handler-factory.js +0 -122
  352. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/headers.d.ts +0 -12
  353. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/headers.js +0 -28
  354. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/http-status.d.ts +0 -8
  355. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/http-status.js +0 -46
  356. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/index.d.ts +0 -10
  357. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/index.js +0 -61
  358. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/parse-timeout.d.ts +0 -13
  359. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/parse-timeout.js +0 -53
  360. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/request-header.d.ts +0 -13
  361. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/request-header.js +0 -56
  362. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/trailer-status.d.ts +0 -28
  363. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/trailer-status.js +0 -104
  364. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/transport.d.ts +0 -6
  365. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/transport.js +0 -185
  366. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/validate-response.d.ts +0 -33
  367. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/validate-response.js +0 -75
  368. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/validate-trailer.d.ts +0 -13
  369. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/validate-trailer.js +0 -44
  370. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/content-type.d.ts +0 -19
  371. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/content-type.js +0 -41
  372. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/handler-factory.d.ts +0 -6
  373. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/handler-factory.js +0 -128
  374. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/headers.d.ts +0 -20
  375. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/headers.js +0 -44
  376. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/index.d.ts +0 -8
  377. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/index.js +0 -61
  378. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/request-header.d.ts +0 -13
  379. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/request-header.js +0 -59
  380. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/trailer.d.ts +0 -27
  381. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/trailer.js +0 -71
  382. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/transport.d.ts +0 -6
  383. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/transport.js +0 -238
  384. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/validate-response.d.ts +0 -34
  385. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/validate-response.js +0 -73
  386. package/node_modules/@connectrpc/connect/dist/cjs/router-transport.d.ts +0 -13
  387. package/node_modules/@connectrpc/connect/dist/cjs/router-transport.js +0 -32
  388. package/node_modules/@connectrpc/connect/dist/cjs/router.d.ts +0 -88
  389. package/node_modules/@connectrpc/connect/dist/cjs/router.js +0 -83
  390. package/node_modules/@connectrpc/connect/dist/cjs/transport.d.ts +0 -20
  391. package/node_modules/@connectrpc/connect/dist/cjs/transport.js +0 -15
  392. package/node_modules/@connectrpc/connect/dist/esm/any-client.d.ts +0 -22
  393. package/node_modules/@connectrpc/connect/dist/esm/any-client.js +0 -31
  394. package/node_modules/@connectrpc/connect/dist/esm/call-options.d.ts +0 -34
  395. package/node_modules/@connectrpc/connect/dist/esm/call-options.js +0 -14
  396. package/node_modules/@connectrpc/connect/dist/esm/callback-client.d.ts +0 -31
  397. package/node_modules/@connectrpc/connect/dist/esm/callback-client.js +0 -113
  398. package/node_modules/@connectrpc/connect/dist/esm/code.d.ts +0 -75
  399. package/node_modules/@connectrpc/connect/dist/esm/code.js +0 -89
  400. package/node_modules/@connectrpc/connect/dist/esm/connect-error.d.ts +0 -90
  401. package/node_modules/@connectrpc/connect/dist/esm/connect-error.js +0 -130
  402. package/node_modules/@connectrpc/connect/dist/esm/context-values.d.ts +0 -34
  403. package/node_modules/@connectrpc/connect/dist/esm/context-values.js +0 -37
  404. package/node_modules/@connectrpc/connect/dist/esm/cors.d.ts +0 -45
  405. package/node_modules/@connectrpc/connect/dist/esm/cors.js +0 -79
  406. package/node_modules/@connectrpc/connect/dist/esm/http-headers.d.ts +0 -36
  407. package/node_modules/@connectrpc/connect/dist/esm/http-headers.js +0 -63
  408. package/node_modules/@connectrpc/connect/dist/esm/implementation.d.ts +0 -165
  409. package/node_modules/@connectrpc/connect/dist/esm/implementation.js +0 -75
  410. package/node_modules/@connectrpc/connect/dist/esm/index.d.ts +0 -22
  411. package/node_modules/@connectrpc/connect/dist/esm/index.js +0 -27
  412. package/node_modules/@connectrpc/connect/dist/esm/interceptor.d.ts +0 -155
  413. package/node_modules/@connectrpc/connect/dist/esm/interceptor.js +0 -24
  414. package/node_modules/@connectrpc/connect/dist/esm/method-type.d.ts +0 -43
  415. package/node_modules/@connectrpc/connect/dist/esm/method-type.js +0 -14
  416. package/node_modules/@connectrpc/connect/dist/esm/promise-client.d.ts +0 -49
  417. package/node_modules/@connectrpc/connect/dist/esm/promise-client.js +0 -139
  418. package/node_modules/@connectrpc/connect/dist/esm/protocol/async-iterable.d.ts +0 -527
  419. package/node_modules/@connectrpc/connect/dist/esm/protocol/async-iterable.js +0 -937
  420. package/node_modules/@connectrpc/connect/dist/esm/protocol/compression.d.ts +0 -48
  421. package/node_modules/@connectrpc/connect/dist/esm/protocol/compression.js +0 -71
  422. package/node_modules/@connectrpc/connect/dist/esm/protocol/content-type-matcher.d.ts +0 -16
  423. package/node_modules/@connectrpc/connect/dist/esm/protocol/content-type-matcher.js +0 -40
  424. package/node_modules/@connectrpc/connect/dist/esm/protocol/create-method-url.d.ts +0 -17
  425. package/node_modules/@connectrpc/connect/dist/esm/protocol/create-method-url.js +0 -33
  426. package/node_modules/@connectrpc/connect/dist/esm/protocol/envelope.d.ts +0 -59
  427. package/node_modules/@connectrpc/connect/dist/esm/protocol/envelope.js +0 -145
  428. package/node_modules/@connectrpc/connect/dist/esm/protocol/index.d.ts +0 -24
  429. package/node_modules/@connectrpc/connect/dist/esm/protocol/index.js +0 -32
  430. package/node_modules/@connectrpc/connect/dist/esm/protocol/invoke-implementation.d.ts +0 -21
  431. package/node_modules/@connectrpc/connect/dist/esm/protocol/invoke-implementation.js +0 -246
  432. package/node_modules/@connectrpc/connect/dist/esm/protocol/limit-io.d.ts +0 -24
  433. package/node_modules/@connectrpc/connect/dist/esm/protocol/limit-io.js +0 -75
  434. package/node_modules/@connectrpc/connect/dist/esm/protocol/normalize.d.ts +0 -12
  435. package/node_modules/@connectrpc/connect/dist/esm/protocol/normalize.js +0 -53
  436. package/node_modules/@connectrpc/connect/dist/esm/protocol/protocol-handler-factory.d.ts +0 -18
  437. package/node_modules/@connectrpc/connect/dist/esm/protocol/protocol-handler-factory.js +0 -14
  438. package/node_modules/@connectrpc/connect/dist/esm/protocol/run-call.d.ts +0 -45
  439. package/node_modules/@connectrpc/connect/dist/esm/protocol/run-call.js +0 -115
  440. package/node_modules/@connectrpc/connect/dist/esm/protocol/serialization.d.ts +0 -104
  441. package/node_modules/@connectrpc/connect/dist/esm/protocol/serialization.js +0 -140
  442. package/node_modules/@connectrpc/connect/dist/esm/protocol/signals.d.ts +0 -36
  443. package/node_modules/@connectrpc/connect/dist/esm/protocol/signals.js +0 -95
  444. package/node_modules/@connectrpc/connect/dist/esm/protocol/transport-options.d.ts +0 -98
  445. package/node_modules/@connectrpc/connect/dist/esm/protocol/transport-options.js +0 -14
  446. package/node_modules/@connectrpc/connect/dist/esm/protocol/universal-fetch.d.ts +0 -35
  447. package/node_modules/@connectrpc/connect/dist/esm/protocol/universal-fetch.js +0 -142
  448. package/node_modules/@connectrpc/connect/dist/esm/protocol/universal-handler-client.d.ts +0 -7
  449. package/node_modules/@connectrpc/connect/dist/esm/protocol/universal-handler-client.js +0 -87
  450. package/node_modules/@connectrpc/connect/dist/esm/protocol/universal-handler.d.ts +0 -155
  451. package/node_modules/@connectrpc/connect/dist/esm/protocol/universal-handler.js +0 -125
  452. package/node_modules/@connectrpc/connect/dist/esm/protocol/universal.d.ts +0 -102
  453. package/node_modules/@connectrpc/connect/dist/esm/protocol/universal.js +0 -74
  454. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/code-string.d.ts +0 -16
  455. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/code-string.js +0 -48
  456. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/content-type.d.ts +0 -40
  457. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/content-type.js +0 -66
  458. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/end-stream.d.ts +0 -44
  459. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/end-stream.js +0 -126
  460. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/error-json.d.ts +0 -36
  461. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/error-json.js +0 -157
  462. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/get-request.d.ts +0 -7
  463. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/get-request.js +0 -65
  464. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/handler-factory.d.ts +0 -6
  465. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/handler-factory.js +0 -278
  466. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/headers.d.ts +0 -12
  467. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/headers.js +0 -25
  468. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/http-status.d.ts +0 -15
  469. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/http-status.js +0 -86
  470. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/index.d.ts +0 -16
  471. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/index.js +0 -33
  472. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/parse-timeout.d.ts +0 -13
  473. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/parse-timeout.js +0 -41
  474. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/query-params.d.ts +0 -8
  475. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/query-params.js +0 -21
  476. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/request-header.d.ts +0 -19
  477. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/request-header.js +0 -66
  478. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/trailer-mux.d.ts +0 -19
  479. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/trailer-mux.js +0 -49
  480. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/transport.d.ts +0 -6
  481. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/transport.js +0 -211
  482. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/validate-response.d.ts +0 -30
  483. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/validate-response.js +0 -68
  484. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/version.d.ts +0 -20
  485. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/version.js +0 -53
  486. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/content-type.d.ts +0 -16
  487. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/content-type.js +0 -34
  488. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/gen/status_pb.d.ts +0 -89
  489. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/gen/status_pb.js +0 -116
  490. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/handler-factory.d.ts +0 -6
  491. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/handler-factory.js +0 -119
  492. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/headers.d.ts +0 -12
  493. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/headers.js +0 -25
  494. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/http-status.d.ts +0 -8
  495. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/http-status.js +0 -43
  496. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/index.d.ts +0 -10
  497. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/index.js +0 -28
  498. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/parse-timeout.d.ts +0 -13
  499. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/parse-timeout.js +0 -50
  500. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/request-header.d.ts +0 -13
  501. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/request-header.js +0 -52
  502. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/trailer-status.d.ts +0 -28
  503. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/trailer-status.js +0 -99
  504. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/transport.d.ts +0 -6
  505. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/transport.js +0 -182
  506. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/validate-response.d.ts +0 -33
  507. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/validate-response.js +0 -71
  508. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/validate-trailer.d.ts +0 -13
  509. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/validate-trailer.js +0 -41
  510. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/content-type.d.ts +0 -19
  511. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/content-type.js +0 -37
  512. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/handler-factory.d.ts +0 -6
  513. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/handler-factory.js +0 -125
  514. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/headers.d.ts +0 -20
  515. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/headers.js +0 -33
  516. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/index.d.ts +0 -8
  517. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/index.js +0 -26
  518. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/request-header.d.ts +0 -13
  519. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/request-header.js +0 -55
  520. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/trailer.d.ts +0 -27
  521. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/trailer.js +0 -65
  522. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/transport.d.ts +0 -6
  523. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/transport.js +0 -235
  524. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/validate-response.d.ts +0 -34
  525. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/validate-response.js +0 -69
  526. package/node_modules/@connectrpc/connect/dist/esm/router-transport.d.ts +0 -13
  527. package/node_modules/@connectrpc/connect/dist/esm/router-transport.js +0 -29
  528. package/node_modules/@connectrpc/connect/dist/esm/router.d.ts +0 -88
  529. package/node_modules/@connectrpc/connect/dist/esm/router.js +0 -80
  530. package/node_modules/@connectrpc/connect/dist/esm/transport.d.ts +0 -20
  531. package/node_modules/@connectrpc/connect/dist/esm/transport.js +0 -14
  532. package/node_modules/@connectrpc/connect/package.json +0 -75
  533. package/node_modules/@connectrpc/connect/protocol-connect.js +0 -16
  534. package/node_modules/@connectrpc/connect/protocol-grpc-web.js +0 -16
  535. package/node_modules/@connectrpc/connect/protocol-grpc.js +0 -16
  536. package/node_modules/@connectrpc/connect/protocol.js +0 -16
  537. package/node_modules/@connectrpc/connect-node/README.md +0 -141
  538. package/node_modules/@connectrpc/connect-node/dist/cjs/compression.d.ts +0 -15
  539. package/node_modules/@connectrpc/connect-node/dist/cjs/compression.js +0 -89
  540. package/node_modules/@connectrpc/connect-node/dist/cjs/connect-node-adapter.d.ts +0 -42
  541. package/node_modules/@connectrpc/connect-node/dist/cjs/connect-node-adapter.js +0 -61
  542. package/node_modules/@connectrpc/connect-node/dist/cjs/connect-transport.d.ts +0 -100
  543. package/node_modules/@connectrpc/connect-node/dist/cjs/connect-transport.js +0 -25
  544. package/node_modules/@connectrpc/connect-node/dist/cjs/grpc-transport.d.ts +0 -96
  545. package/node_modules/@connectrpc/connect-node/dist/cjs/grpc-transport.js +0 -25
  546. package/node_modules/@connectrpc/connect-node/dist/cjs/grpc-web-transport.d.ts +0 -96
  547. package/node_modules/@connectrpc/connect-node/dist/cjs/grpc-web-transport.js +0 -25
  548. package/node_modules/@connectrpc/connect-node/dist/cjs/http2-session-manager.d.ts +0 -146
  549. package/node_modules/@connectrpc/connect-node/dist/cjs/http2-session-manager.js +0 -536
  550. package/node_modules/@connectrpc/connect-node/dist/cjs/index.d.ts +0 -15
  551. package/node_modules/@connectrpc/connect-node/dist/cjs/index.js +0 -36
  552. package/node_modules/@connectrpc/connect-node/dist/cjs/node-error.d.ts +0 -45
  553. package/node_modules/@connectrpc/connect-node/dist/cjs/node-error.js +0 -154
  554. package/node_modules/@connectrpc/connect-node/dist/cjs/node-headers-polyfill.d.ts +0 -1
  555. package/node_modules/@connectrpc/connect-node/dist/cjs/node-headers-polyfill.js +0 -29
  556. package/node_modules/@connectrpc/connect-node/dist/cjs/node-transport-options.d.ts +0 -89
  557. package/node_modules/@connectrpc/connect-node/dist/cjs/node-transport-options.js +0 -58
  558. package/node_modules/@connectrpc/connect-node/dist/cjs/node-universal-client.d.ts +0 -54
  559. package/node_modules/@connectrpc/connect-node/dist/cjs/node-universal-client.js +0 -326
  560. package/node_modules/@connectrpc/connect-node/dist/cjs/node-universal-handler.d.ts +0 -41
  561. package/node_modules/@connectrpc/connect-node/dist/cjs/node-universal-handler.js +0 -234
  562. package/node_modules/@connectrpc/connect-node/dist/cjs/node-universal-header.d.ts +0 -19
  563. package/node_modules/@connectrpc/connect-node/dist/cjs/node-universal-header.js +0 -97
  564. package/node_modules/@connectrpc/connect-node/dist/cjs/package.json +0 -1
  565. package/node_modules/@connectrpc/connect-node/dist/esm/compression.d.ts +0 -15
  566. package/node_modules/@connectrpc/connect-node/dist/esm/compression.js +0 -86
  567. package/node_modules/@connectrpc/connect-node/dist/esm/connect-node-adapter.d.ts +0 -42
  568. package/node_modules/@connectrpc/connect-node/dist/esm/connect-node-adapter.js +0 -58
  569. package/node_modules/@connectrpc/connect-node/dist/esm/connect-transport.d.ts +0 -100
  570. package/node_modules/@connectrpc/connect-node/dist/esm/connect-transport.js +0 -22
  571. package/node_modules/@connectrpc/connect-node/dist/esm/grpc-transport.d.ts +0 -96
  572. package/node_modules/@connectrpc/connect-node/dist/esm/grpc-transport.js +0 -22
  573. package/node_modules/@connectrpc/connect-node/dist/esm/grpc-web-transport.d.ts +0 -96
  574. package/node_modules/@connectrpc/connect-node/dist/esm/grpc-web-transport.js +0 -22
  575. package/node_modules/@connectrpc/connect-node/dist/esm/http2-session-manager.d.ts +0 -146
  576. package/node_modules/@connectrpc/connect-node/dist/esm/http2-session-manager.js +0 -532
  577. package/node_modules/@connectrpc/connect-node/dist/esm/index.d.ts +0 -15
  578. package/node_modules/@connectrpc/connect-node/dist/esm/index.js +0 -23
  579. package/node_modules/@connectrpc/connect-node/dist/esm/node-error.d.ts +0 -45
  580. package/node_modules/@connectrpc/connect-node/dist/esm/node-error.js +0 -147
  581. package/node_modules/@connectrpc/connect-node/dist/esm/node-headers-polyfill.d.ts +0 -1
  582. package/node_modules/@connectrpc/connect-node/dist/esm/node-headers-polyfill.js +0 -27
  583. package/node_modules/@connectrpc/connect-node/dist/esm/node-transport-options.d.ts +0 -89
  584. package/node_modules/@connectrpc/connect-node/dist/esm/node-transport-options.js +0 -58
  585. package/node_modules/@connectrpc/connect-node/dist/esm/node-universal-client.d.ts +0 -54
  586. package/node_modules/@connectrpc/connect-node/dist/esm/node-universal-client.js +0 -324
  587. package/node_modules/@connectrpc/connect-node/dist/esm/node-universal-handler.d.ts +0 -41
  588. package/node_modules/@connectrpc/connect-node/dist/esm/node-universal-handler.js +0 -230
  589. package/node_modules/@connectrpc/connect-node/dist/esm/node-universal-header.d.ts +0 -19
  590. package/node_modules/@connectrpc/connect-node/dist/esm/node-universal-header.js +0 -93
  591. package/node_modules/@connectrpc/connect-node/package.json +0 -46
  592. package/node_modules/@cursor/sdk/LICENSE.md +0 -3
  593. package/node_modules/@cursor/sdk/README.md +0 -23
  594. package/node_modules/@cursor/sdk/dist/cjs/642.index.js +0 -1
  595. package/node_modules/@cursor/sdk/dist/cjs/agent.d.ts +0 -170
  596. package/node_modules/@cursor/sdk/dist/cjs/agent.d.ts.map +0 -1
  597. package/node_modules/@cursor/sdk/dist/cjs/analytics.d.ts +0 -98
  598. package/node_modules/@cursor/sdk/dist/cjs/analytics.d.ts.map +0 -1
  599. package/node_modules/@cursor/sdk/dist/cjs/artifacts.d.ts +0 -6
  600. package/node_modules/@cursor/sdk/dist/cjs/artifacts.d.ts.map +0 -1
  601. package/node_modules/@cursor/sdk/dist/cjs/cloud-agent.d.ts +0 -47
  602. package/node_modules/@cursor/sdk/dist/cjs/cloud-agent.d.ts.map +0 -1
  603. package/node_modules/@cursor/sdk/dist/cjs/cloud-api-client.d.ts +0 -197
  604. package/node_modules/@cursor/sdk/dist/cjs/cloud-api-client.d.ts.map +0 -1
  605. package/node_modules/@cursor/sdk/dist/cjs/cloud-executor.d.ts +0 -14
  606. package/node_modules/@cursor/sdk/dist/cjs/cloud-executor.d.ts.map +0 -1
  607. package/node_modules/@cursor/sdk/dist/cjs/cloud-mcp-utils.d.ts +0 -4
  608. package/node_modules/@cursor/sdk/dist/cjs/cloud-mcp-utils.d.ts.map +0 -1
  609. package/node_modules/@cursor/sdk/dist/cjs/core-adapter.d.ts +0 -2
  610. package/node_modules/@cursor/sdk/dist/cjs/core-adapter.d.ts.map +0 -1
  611. package/node_modules/@cursor/sdk/dist/cjs/errors.d.ts +0 -135
  612. package/node_modules/@cursor/sdk/dist/cjs/errors.d.ts.map +0 -1
  613. package/node_modules/@cursor/sdk/dist/cjs/executor-common.d.ts +0 -16
  614. package/node_modules/@cursor/sdk/dist/cjs/executor-common.d.ts.map +0 -1
  615. package/node_modules/@cursor/sdk/dist/cjs/executor-types.d.ts +0 -65
  616. package/node_modules/@cursor/sdk/dist/cjs/executor-types.d.ts.map +0 -1
  617. package/node_modules/@cursor/sdk/dist/cjs/index.d.ts +0 -18
  618. package/node_modules/@cursor/sdk/dist/cjs/index.d.ts.map +0 -1
  619. package/node_modules/@cursor/sdk/dist/cjs/index.js +0 -8
  620. package/node_modules/@cursor/sdk/dist/cjs/index.js.LICENSE.txt +0 -285
  621. package/node_modules/@cursor/sdk/dist/cjs/local-executor.d.ts +0 -18
  622. package/node_modules/@cursor/sdk/dist/cjs/local-executor.d.ts.map +0 -1
  623. package/node_modules/@cursor/sdk/dist/cjs/local-model-validation.d.ts +0 -6
  624. package/node_modules/@cursor/sdk/dist/cjs/local-model-validation.d.ts.map +0 -1
  625. package/node_modules/@cursor/sdk/dist/cjs/messages.d.ts +0 -110
  626. package/node_modules/@cursor/sdk/dist/cjs/messages.d.ts.map +0 -1
  627. package/node_modules/@cursor/sdk/dist/cjs/options.d.ts +0 -145
  628. package/node_modules/@cursor/sdk/dist/cjs/options.d.ts.map +0 -1
  629. package/node_modules/@cursor/sdk/dist/cjs/package.json +0 -3
  630. package/node_modules/@cursor/sdk/dist/cjs/platform.d.ts +0 -71
  631. package/node_modules/@cursor/sdk/dist/cjs/platform.d.ts.map +0 -1
  632. package/node_modules/@cursor/sdk/dist/cjs/prefetched-blobs.d.ts +0 -13
  633. package/node_modules/@cursor/sdk/dist/cjs/prefetched-blobs.d.ts.map +0 -1
  634. package/node_modules/@cursor/sdk/dist/cjs/public-api.d.ts +0 -12
  635. package/node_modules/@cursor/sdk/dist/cjs/public-api.d.ts.map +0 -1
  636. package/node_modules/@cursor/sdk/dist/cjs/run-event-tailer.d.ts +0 -33
  637. package/node_modules/@cursor/sdk/dist/cjs/run-event-tailer.d.ts.map +0 -1
  638. package/node_modules/@cursor/sdk/dist/cjs/run-interaction-accumulator.d.ts +0 -33
  639. package/node_modules/@cursor/sdk/dist/cjs/run-interaction-accumulator.d.ts.map +0 -1
  640. package/node_modules/@cursor/sdk/dist/cjs/run.d.ts +0 -44
  641. package/node_modules/@cursor/sdk/dist/cjs/run.d.ts.map +0 -1
  642. package/node_modules/@cursor/sdk/dist/cjs/sdk-statsig.d.ts +0 -10
  643. package/node_modules/@cursor/sdk/dist/cjs/sdk-statsig.d.ts.map +0 -1
  644. package/node_modules/@cursor/sdk/dist/cjs/stubs.d.ts +0 -98
  645. package/node_modules/@cursor/sdk/dist/cjs/stubs.d.ts.map +0 -1
  646. package/node_modules/@cursor/sdk/dist/cjs/subagent-conversion.d.ts +0 -22
  647. package/node_modules/@cursor/sdk/dist/cjs/subagent-conversion.d.ts.map +0 -1
  648. package/node_modules/@cursor/sdk/dist/cjs/tool-call-utils.d.ts +0 -7
  649. package/node_modules/@cursor/sdk/dist/cjs/tool-call-utils.d.ts.map +0 -1
  650. package/node_modules/@cursor/sdk/dist/cjs/types/conversation-types.d.ts +0 -12062
  651. package/node_modules/@cursor/sdk/dist/cjs/types/conversation-types.d.ts.map +0 -1
  652. package/node_modules/@cursor/sdk/dist/cjs/types/delta-types.d.ts +0 -2
  653. package/node_modules/@cursor/sdk/dist/cjs/types/delta-types.d.ts.map +0 -1
  654. package/node_modules/@cursor/sdk/dist/cjs/types/tool-call-types.d.ts +0 -2
  655. package/node_modules/@cursor/sdk/dist/cjs/types/tool-call-types.d.ts.map +0 -1
  656. package/node_modules/@cursor/sdk/dist/cjs/utils/conversation-utils.d.ts +0 -3
  657. package/node_modules/@cursor/sdk/dist/cjs/utils/conversation-utils.d.ts.map +0 -1
  658. package/node_modules/@cursor/sdk/dist/cjs/utils/logger.d.ts +0 -12
  659. package/node_modules/@cursor/sdk/dist/cjs/utils/logger.d.ts.map +0 -1
  660. package/node_modules/@cursor/sdk/dist/cjs/utils/message-schemas.d.ts +0 -2
  661. package/node_modules/@cursor/sdk/dist/cjs/utils/message-schemas.d.ts.map +0 -1
  662. package/node_modules/@cursor/sdk/dist/esm/642.index.js +0 -1
  663. package/node_modules/@cursor/sdk/dist/esm/agent.d.ts +0 -170
  664. package/node_modules/@cursor/sdk/dist/esm/agent.d.ts.map +0 -1
  665. package/node_modules/@cursor/sdk/dist/esm/analytics.d.ts +0 -98
  666. package/node_modules/@cursor/sdk/dist/esm/analytics.d.ts.map +0 -1
  667. package/node_modules/@cursor/sdk/dist/esm/artifacts.d.ts +0 -6
  668. package/node_modules/@cursor/sdk/dist/esm/artifacts.d.ts.map +0 -1
  669. package/node_modules/@cursor/sdk/dist/esm/cloud-agent.d.ts +0 -47
  670. package/node_modules/@cursor/sdk/dist/esm/cloud-agent.d.ts.map +0 -1
  671. package/node_modules/@cursor/sdk/dist/esm/cloud-api-client.d.ts +0 -197
  672. package/node_modules/@cursor/sdk/dist/esm/cloud-api-client.d.ts.map +0 -1
  673. package/node_modules/@cursor/sdk/dist/esm/cloud-executor.d.ts +0 -14
  674. package/node_modules/@cursor/sdk/dist/esm/cloud-executor.d.ts.map +0 -1
  675. package/node_modules/@cursor/sdk/dist/esm/cloud-mcp-utils.d.ts +0 -4
  676. package/node_modules/@cursor/sdk/dist/esm/cloud-mcp-utils.d.ts.map +0 -1
  677. package/node_modules/@cursor/sdk/dist/esm/core-adapter.d.ts +0 -2
  678. package/node_modules/@cursor/sdk/dist/esm/core-adapter.d.ts.map +0 -1
  679. package/node_modules/@cursor/sdk/dist/esm/errors.d.ts +0 -135
  680. package/node_modules/@cursor/sdk/dist/esm/errors.d.ts.map +0 -1
  681. package/node_modules/@cursor/sdk/dist/esm/executor-common.d.ts +0 -16
  682. package/node_modules/@cursor/sdk/dist/esm/executor-common.d.ts.map +0 -1
  683. package/node_modules/@cursor/sdk/dist/esm/executor-types.d.ts +0 -65
  684. package/node_modules/@cursor/sdk/dist/esm/executor-types.d.ts.map +0 -1
  685. package/node_modules/@cursor/sdk/dist/esm/index.d.ts +0 -18
  686. package/node_modules/@cursor/sdk/dist/esm/index.d.ts.map +0 -1
  687. package/node_modules/@cursor/sdk/dist/esm/index.js +0 -8
  688. package/node_modules/@cursor/sdk/dist/esm/index.js.LICENSE.txt +0 -285
  689. package/node_modules/@cursor/sdk/dist/esm/local-executor.d.ts +0 -18
  690. package/node_modules/@cursor/sdk/dist/esm/local-executor.d.ts.map +0 -1
  691. package/node_modules/@cursor/sdk/dist/esm/local-model-validation.d.ts +0 -6
  692. package/node_modules/@cursor/sdk/dist/esm/local-model-validation.d.ts.map +0 -1
  693. package/node_modules/@cursor/sdk/dist/esm/messages.d.ts +0 -110
  694. package/node_modules/@cursor/sdk/dist/esm/messages.d.ts.map +0 -1
  695. package/node_modules/@cursor/sdk/dist/esm/options.d.ts +0 -145
  696. package/node_modules/@cursor/sdk/dist/esm/options.d.ts.map +0 -1
  697. package/node_modules/@cursor/sdk/dist/esm/platform.d.ts +0 -71
  698. package/node_modules/@cursor/sdk/dist/esm/platform.d.ts.map +0 -1
  699. package/node_modules/@cursor/sdk/dist/esm/prefetched-blobs.d.ts +0 -13
  700. package/node_modules/@cursor/sdk/dist/esm/prefetched-blobs.d.ts.map +0 -1
  701. package/node_modules/@cursor/sdk/dist/esm/public-api.d.ts +0 -12
  702. package/node_modules/@cursor/sdk/dist/esm/public-api.d.ts.map +0 -1
  703. package/node_modules/@cursor/sdk/dist/esm/run-event-tailer.d.ts +0 -33
  704. package/node_modules/@cursor/sdk/dist/esm/run-event-tailer.d.ts.map +0 -1
  705. package/node_modules/@cursor/sdk/dist/esm/run-interaction-accumulator.d.ts +0 -33
  706. package/node_modules/@cursor/sdk/dist/esm/run-interaction-accumulator.d.ts.map +0 -1
  707. package/node_modules/@cursor/sdk/dist/esm/run.d.ts +0 -44
  708. package/node_modules/@cursor/sdk/dist/esm/run.d.ts.map +0 -1
  709. package/node_modules/@cursor/sdk/dist/esm/sdk-statsig.d.ts +0 -10
  710. package/node_modules/@cursor/sdk/dist/esm/sdk-statsig.d.ts.map +0 -1
  711. package/node_modules/@cursor/sdk/dist/esm/stubs.d.ts +0 -98
  712. package/node_modules/@cursor/sdk/dist/esm/stubs.d.ts.map +0 -1
  713. package/node_modules/@cursor/sdk/dist/esm/subagent-conversion.d.ts +0 -22
  714. package/node_modules/@cursor/sdk/dist/esm/subagent-conversion.d.ts.map +0 -1
  715. package/node_modules/@cursor/sdk/dist/esm/tool-call-utils.d.ts +0 -7
  716. package/node_modules/@cursor/sdk/dist/esm/tool-call-utils.d.ts.map +0 -1
  717. package/node_modules/@cursor/sdk/dist/esm/types/conversation-types.d.ts +0 -12062
  718. package/node_modules/@cursor/sdk/dist/esm/types/conversation-types.d.ts.map +0 -1
  719. package/node_modules/@cursor/sdk/dist/esm/types/delta-types.d.ts +0 -2
  720. package/node_modules/@cursor/sdk/dist/esm/types/delta-types.d.ts.map +0 -1
  721. package/node_modules/@cursor/sdk/dist/esm/types/tool-call-types.d.ts +0 -2
  722. package/node_modules/@cursor/sdk/dist/esm/types/tool-call-types.d.ts.map +0 -1
  723. package/node_modules/@cursor/sdk/dist/esm/utils/conversation-utils.d.ts +0 -3
  724. package/node_modules/@cursor/sdk/dist/esm/utils/conversation-utils.d.ts.map +0 -1
  725. package/node_modules/@cursor/sdk/dist/esm/utils/logger.d.ts +0 -12
  726. package/node_modules/@cursor/sdk/dist/esm/utils/logger.d.ts.map +0 -1
  727. package/node_modules/@cursor/sdk/dist/esm/utils/message-schemas.d.ts +0 -2
  728. package/node_modules/@cursor/sdk/dist/esm/utils/message-schemas.d.ts.map +0 -1
  729. package/node_modules/@cursor/sdk/package.json +0 -114
  730. package/node_modules/@cursor/sdk-darwin-arm64/README.md +0 -5
  731. package/node_modules/@cursor/sdk-darwin-arm64/bin/cursorsandbox +0 -0
  732. package/node_modules/@cursor/sdk-darwin-arm64/bin/rg +0 -0
  733. package/node_modules/@cursor/sdk-darwin-arm64/package.json +0 -25
  734. package/node_modules/@isaacs/fs-minipass/LICENSE +0 -15
  735. package/node_modules/@isaacs/fs-minipass/README.md +0 -71
  736. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts +0 -118
  737. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts.map +0 -1
  738. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +0 -430
  739. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js.map +0 -1
  740. package/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +0 -3
  741. package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts +0 -118
  742. package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts.map +0 -1
  743. package/node_modules/@isaacs/fs-minipass/dist/esm/index.js +0 -420
  744. package/node_modules/@isaacs/fs-minipass/dist/esm/index.js.map +0 -1
  745. package/node_modules/@isaacs/fs-minipass/dist/esm/package.json +0 -3
  746. package/node_modules/@isaacs/fs-minipass/package.json +0 -72
  747. package/node_modules/@statsig/client-core/package.json +0 -15
  748. package/node_modules/@statsig/client-core/src/$_StatsigGlobal.d.ts +0 -19
  749. package/node_modules/@statsig/client-core/src/$_StatsigGlobal.js +0 -41
  750. package/node_modules/@statsig/client-core/src/CacheKey.d.ts +0 -4
  751. package/node_modules/@statsig/client-core/src/CacheKey.js +0 -28
  752. package/node_modules/@statsig/client-core/src/ClientInterfaces.d.ts +0 -62
  753. package/node_modules/@statsig/client-core/src/ClientInterfaces.js +0 -2
  754. package/node_modules/@statsig/client-core/src/DataAdapterCore.d.ts +0 -29
  755. package/node_modules/@statsig/client-core/src/DataAdapterCore.js +0 -216
  756. package/node_modules/@statsig/client-core/src/Diagnostics.d.ts +0 -67
  757. package/node_modules/@statsig/client-core/src/Diagnostics.js +0 -100
  758. package/node_modules/@statsig/client-core/src/DnsTxtQuery.d.ts +0 -2
  759. package/node_modules/@statsig/client-core/src/DnsTxtQuery.js +0 -63
  760. package/node_modules/@statsig/client-core/src/DownloadConfigSpecsResponse.d.ts +0 -61
  761. package/node_modules/@statsig/client-core/src/DownloadConfigSpecsResponse.js +0 -2
  762. package/node_modules/@statsig/client-core/src/ErrorBoundary.d.ts +0 -17
  763. package/node_modules/@statsig/client-core/src/ErrorBoundary.js +0 -197
  764. package/node_modules/@statsig/client-core/src/EvaluationOptions.d.ts +0 -30
  765. package/node_modules/@statsig/client-core/src/EvaluationOptions.js +0 -2
  766. package/node_modules/@statsig/client-core/src/EvaluationTypes.d.ts +0 -49
  767. package/node_modules/@statsig/client-core/src/EvaluationTypes.js +0 -2
  768. package/node_modules/@statsig/client-core/src/EvaluationTypesV2.d.ts +0 -30
  769. package/node_modules/@statsig/client-core/src/EvaluationTypesV2.js +0 -2
  770. package/node_modules/@statsig/client-core/src/EventBatch.d.ts +0 -8
  771. package/node_modules/@statsig/client-core/src/EventBatch.js +0 -14
  772. package/node_modules/@statsig/client-core/src/EventLogger.d.ts +0 -48
  773. package/node_modules/@statsig/client-core/src/EventLogger.js +0 -349
  774. package/node_modules/@statsig/client-core/src/EventRetryConstants.d.ts +0 -7
  775. package/node_modules/@statsig/client-core/src/EventRetryConstants.js +0 -12
  776. package/node_modules/@statsig/client-core/src/Hashing.d.ts +0 -3
  777. package/node_modules/@statsig/client-core/src/Hashing.js +0 -35
  778. package/node_modules/@statsig/client-core/src/InitializeResponse.d.ts +0 -66
  779. package/node_modules/@statsig/client-core/src/InitializeResponse.js +0 -2
  780. package/node_modules/@statsig/client-core/src/Log.d.ts +0 -15
  781. package/node_modules/@statsig/client-core/src/Log.js +0 -44
  782. package/node_modules/@statsig/client-core/src/MemoKey.d.ts +0 -11
  783. package/node_modules/@statsig/client-core/src/MemoKey.js +0 -37
  784. package/node_modules/@statsig/client-core/src/NetworkConfig.d.ts +0 -26
  785. package/node_modules/@statsig/client-core/src/NetworkConfig.js +0 -23
  786. package/node_modules/@statsig/client-core/src/NetworkCore.d.ts +0 -55
  787. package/node_modules/@statsig/client-core/src/NetworkCore.js +0 -371
  788. package/node_modules/@statsig/client-core/src/NetworkFallbackResolver.d.ts +0 -21
  789. package/node_modules/@statsig/client-core/src/NetworkFallbackResolver.js +0 -198
  790. package/node_modules/@statsig/client-core/src/OverrideAdapter.d.ts +0 -16
  791. package/node_modules/@statsig/client-core/src/OverrideAdapter.js +0 -2
  792. package/node_modules/@statsig/client-core/src/ParamStoreTypes.d.ts +0 -65
  793. package/node_modules/@statsig/client-core/src/ParamStoreTypes.js +0 -2
  794. package/node_modules/@statsig/client-core/src/SDKFlags.d.ts +0 -4
  795. package/node_modules/@statsig/client-core/src/SDKFlags.js +0 -13
  796. package/node_modules/@statsig/client-core/src/SDKType.d.ts +0 -8
  797. package/node_modules/@statsig/client-core/src/SDKType.js +0 -19
  798. package/node_modules/@statsig/client-core/src/SafeJs.d.ts +0 -8
  799. package/node_modules/@statsig/client-core/src/SafeJs.js +0 -68
  800. package/node_modules/@statsig/client-core/src/SessionID.d.ts +0 -20
  801. package/node_modules/@statsig/client-core/src/SessionID.js +0 -106
  802. package/node_modules/@statsig/client-core/src/SizeOf.d.ts +0 -1
  803. package/node_modules/@statsig/client-core/src/SizeOf.js +0 -26
  804. package/node_modules/@statsig/client-core/src/StableID.d.ts +0 -9
  805. package/node_modules/@statsig/client-core/src/StableID.js +0 -90
  806. package/node_modules/@statsig/client-core/src/StatsigClientBase.d.ts +0 -74
  807. package/node_modules/@statsig/client-core/src/StatsigClientBase.js +0 -207
  808. package/node_modules/@statsig/client-core/src/StatsigClientEventEmitter.d.ts +0 -100
  809. package/node_modules/@statsig/client-core/src/StatsigClientEventEmitter.js +0 -6
  810. package/node_modules/@statsig/client-core/src/StatsigDataAdapter.d.ts +0 -131
  811. package/node_modules/@statsig/client-core/src/StatsigDataAdapter.js +0 -4
  812. package/node_modules/@statsig/client-core/src/StatsigEvent.d.ts +0 -28
  813. package/node_modules/@statsig/client-core/src/StatsigEvent.js +0 -98
  814. package/node_modules/@statsig/client-core/src/StatsigMetadata.d.ts +0 -18
  815. package/node_modules/@statsig/client-core/src/StatsigMetadata.js +0 -14
  816. package/node_modules/@statsig/client-core/src/StatsigOptionsCommon.d.ts +0 -180
  817. package/node_modules/@statsig/client-core/src/StatsigOptionsCommon.js +0 -16
  818. package/node_modules/@statsig/client-core/src/StatsigPlugin.d.ts +0 -5
  819. package/node_modules/@statsig/client-core/src/StatsigPlugin.js +0 -2
  820. package/node_modules/@statsig/client-core/src/StatsigTypeFactories.d.ts +0 -8
  821. package/node_modules/@statsig/client-core/src/StatsigTypeFactories.js +0 -57
  822. package/node_modules/@statsig/client-core/src/StatsigTypes.d.ts +0 -43
  823. package/node_modules/@statsig/client-core/src/StatsigTypes.js +0 -2
  824. package/node_modules/@statsig/client-core/src/StatsigUpdateDetails.d.ts +0 -14
  825. package/node_modules/@statsig/client-core/src/StatsigUpdateDetails.js +0 -17
  826. package/node_modules/@statsig/client-core/src/StatsigUser.d.ts +0 -24
  827. package/node_modules/@statsig/client-core/src/StatsigUser.js +0 -25
  828. package/node_modules/@statsig/client-core/src/StorageProvider.d.ts +0 -17
  829. package/node_modules/@statsig/client-core/src/StorageProvider.js +0 -90
  830. package/node_modules/@statsig/client-core/src/TypedJsonParse.d.ts +0 -8
  831. package/node_modules/@statsig/client-core/src/TypedJsonParse.js +0 -27
  832. package/node_modules/@statsig/client-core/src/TypingUtils.d.ts +0 -7
  833. package/node_modules/@statsig/client-core/src/TypingUtils.js +0 -12
  834. package/node_modules/@statsig/client-core/src/UUID.d.ts +0 -1
  835. package/node_modules/@statsig/client-core/src/UUID.js +0 -28
  836. package/node_modules/@statsig/client-core/src/UrlConfiguration.d.ts +0 -12
  837. package/node_modules/@statsig/client-core/src/UrlConfiguration.js +0 -41
  838. package/node_modules/@statsig/client-core/src/VisibilityObserving.d.ts +0 -9
  839. package/node_modules/@statsig/client-core/src/VisibilityObserving.js +0 -39
  840. package/node_modules/@statsig/client-core/src/__tests__/MockOverrideAdapter.d.ts +0 -16
  841. package/node_modules/@statsig/client-core/src/__tests__/MockOverrideAdapter.js +0 -21
  842. package/node_modules/@statsig/client-core/src/index.d.ts +0 -47
  843. package/node_modules/@statsig/client-core/src/index.js +0 -70
  844. package/node_modules/@statsig/js-client/LICENSE +0 -14
  845. package/node_modules/@statsig/js-client/README.md +0 -49
  846. package/node_modules/@statsig/js-client/build/statsig-js-client+session-replay+web-analytics.min.js +0 -2
  847. package/node_modules/@statsig/js-client/build/statsig-js-client+session-replay.min.js +0 -1
  848. package/node_modules/@statsig/js-client/build/statsig-js-client+web-analytics.min.js +0 -2
  849. package/node_modules/@statsig/js-client/build/statsig-js-client.min.js +0 -1
  850. package/node_modules/@statsig/js-client/package.json +0 -18
  851. package/node_modules/@statsig/js-client/src/EvaluationResponseDeltas.d.ts +0 -10
  852. package/node_modules/@statsig/js-client/src/EvaluationResponseDeltas.js +0 -49
  853. package/node_modules/@statsig/js-client/src/EvaluationStore.d.ts +0 -29
  854. package/node_modules/@statsig/js-client/src/EvaluationStore.js +0 -175
  855. package/node_modules/@statsig/js-client/src/InitializeContainer.d.ts +0 -9
  856. package/node_modules/@statsig/js-client/src/InitializeContainer.js +0 -2
  857. package/node_modules/@statsig/js-client/src/Network.d.ts +0 -9
  858. package/node_modules/@statsig/js-client/src/Network.js +0 -74
  859. package/node_modules/@statsig/js-client/src/ParamStoreGetterFactory.d.ts +0 -3
  860. package/node_modules/@statsig/js-client/src/ParamStoreGetterFactory.js +0 -74
  861. package/node_modules/@statsig/js-client/src/StatsigClient.d.ts +0 -244
  862. package/node_modules/@statsig/js-client/src/StatsigClient.js +0 -418
  863. package/node_modules/@statsig/js-client/src/StatsigEvaluationsDataAdapter.d.ts +0 -15
  864. package/node_modules/@statsig/js-client/src/StatsigEvaluationsDataAdapter.js +0 -65
  865. package/node_modules/@statsig/js-client/src/StatsigOptions.d.ts +0 -42
  866. package/node_modules/@statsig/js-client/src/StatsigOptions.js +0 -2
  867. package/node_modules/@statsig/js-client/src/V1InitializeContainer.d.ts +0 -13
  868. package/node_modules/@statsig/js-client/src/V1InitializeContainer.js +0 -35
  869. package/node_modules/@statsig/js-client/src/V2InitializeContainer.d.ts +0 -13
  870. package/node_modules/@statsig/js-client/src/V2InitializeContainer.js +0 -82
  871. package/node_modules/@statsig/js-client/src/index.d.ts +0 -9
  872. package/node_modules/@statsig/js-client/src/index.js +0 -25
  873. package/node_modules/abbrev/LICENSE +0 -46
  874. package/node_modules/abbrev/README.md +0 -23
  875. package/node_modules/abbrev/lib/index.js +0 -53
  876. package/node_modules/abbrev/package.json +0 -41
  877. package/node_modules/base64-js/LICENSE +0 -21
  878. package/node_modules/base64-js/README.md +0 -34
  879. package/node_modules/base64-js/base64js.min.js +0 -1
  880. package/node_modules/base64-js/index.d.ts +0 -3
  881. package/node_modules/base64-js/index.js +0 -150
  882. package/node_modules/base64-js/package.json +0 -47
  883. package/node_modules/bindings/LICENSE.md +0 -22
  884. package/node_modules/bindings/README.md +0 -98
  885. package/node_modules/bindings/bindings.js +0 -221
  886. package/node_modules/bindings/package.json +0 -28
  887. package/node_modules/bl/.travis.yml +0 -17
  888. package/node_modules/bl/BufferList.js +0 -396
  889. package/node_modules/bl/LICENSE.md +0 -13
  890. package/node_modules/bl/README.md +0 -247
  891. package/node_modules/bl/bl.js +0 -84
  892. package/node_modules/bl/package.json +0 -37
  893. package/node_modules/bl/test/convert.js +0 -21
  894. package/node_modules/bl/test/indexOf.js +0 -492
  895. package/node_modules/bl/test/isBufferList.js +0 -32
  896. package/node_modules/bl/test/test.js +0 -869
  897. package/node_modules/buffer/AUTHORS.md +0 -70
  898. package/node_modules/buffer/LICENSE +0 -21
  899. package/node_modules/buffer/README.md +0 -410
  900. package/node_modules/buffer/index.d.ts +0 -186
  901. package/node_modules/buffer/index.js +0 -1817
  902. package/node_modules/buffer/package.json +0 -96
  903. package/node_modules/chownr/LICENSE.md +0 -63
  904. package/node_modules/chownr/README.md +0 -3
  905. package/node_modules/chownr/dist/commonjs/index.d.ts +0 -3
  906. package/node_modules/chownr/dist/commonjs/index.d.ts.map +0 -1
  907. package/node_modules/chownr/dist/commonjs/index.js +0 -93
  908. package/node_modules/chownr/dist/commonjs/index.js.map +0 -1
  909. package/node_modules/chownr/dist/commonjs/package.json +0 -3
  910. package/node_modules/chownr/dist/esm/index.d.ts +0 -3
  911. package/node_modules/chownr/dist/esm/index.d.ts.map +0 -1
  912. package/node_modules/chownr/dist/esm/index.js +0 -85
  913. package/node_modules/chownr/dist/esm/index.js.map +0 -1
  914. package/node_modules/chownr/dist/esm/package.json +0 -3
  915. package/node_modules/chownr/package.json +0 -69
  916. package/node_modules/decompress-response/index.d.ts +0 -22
  917. package/node_modules/decompress-response/index.js +0 -58
  918. package/node_modules/decompress-response/license +0 -9
  919. package/node_modules/decompress-response/package.json +0 -56
  920. package/node_modules/decompress-response/readme.md +0 -48
  921. package/node_modules/deep-extend/CHANGELOG.md +0 -46
  922. package/node_modules/deep-extend/LICENSE +0 -20
  923. package/node_modules/deep-extend/README.md +0 -91
  924. package/node_modules/deep-extend/index.js +0 -1
  925. package/node_modules/deep-extend/lib/deep-extend.js +0 -150
  926. package/node_modules/deep-extend/package.json +0 -62
  927. package/node_modules/detect-libc/LICENSE +0 -201
  928. package/node_modules/detect-libc/README.md +0 -163
  929. package/node_modules/detect-libc/index.d.ts +0 -14
  930. package/node_modules/detect-libc/lib/detect-libc.js +0 -313
  931. package/node_modules/detect-libc/lib/elf.js +0 -39
  932. package/node_modules/detect-libc/lib/filesystem.js +0 -51
  933. package/node_modules/detect-libc/lib/process.js +0 -24
  934. package/node_modules/detect-libc/package.json +0 -44
  935. package/node_modules/end-of-stream/LICENSE +0 -21
  936. package/node_modules/end-of-stream/README.md +0 -54
  937. package/node_modules/end-of-stream/index.js +0 -96
  938. package/node_modules/end-of-stream/package.json +0 -37
  939. package/node_modules/env-paths/index.d.ts +0 -101
  940. package/node_modules/env-paths/index.js +0 -74
  941. package/node_modules/env-paths/license +0 -9
  942. package/node_modules/env-paths/package.json +0 -45
  943. package/node_modules/env-paths/readme.md +0 -115
  944. package/node_modules/expand-template/.travis.yml +0 -6
  945. package/node_modules/expand-template/LICENSE +0 -21
  946. package/node_modules/expand-template/README.md +0 -43
  947. package/node_modules/expand-template/index.js +0 -26
  948. package/node_modules/expand-template/package.json +0 -29
  949. package/node_modules/expand-template/test.js +0 -67
  950. package/node_modules/exponential-backoff/LICENSE +0 -202
  951. package/node_modules/exponential-backoff/README.md +0 -89
  952. package/node_modules/exponential-backoff/dist/backoff.d.ts +0 -9
  953. package/node_modules/exponential-backoff/dist/backoff.js +0 -124
  954. package/node_modules/exponential-backoff/dist/backoff.js.map +0 -1
  955. package/node_modules/exponential-backoff/dist/delay/always/always.delay.d.ts +0 -3
  956. package/node_modules/exponential-backoff/dist/delay/always/always.delay.js +0 -25
  957. package/node_modules/exponential-backoff/dist/delay/always/always.delay.js.map +0 -1
  958. package/node_modules/exponential-backoff/dist/delay/delay.base.d.ts +0 -12
  959. package/node_modules/exponential-backoff/dist/delay/delay.base.js +0 -45
  960. package/node_modules/exponential-backoff/dist/delay/delay.base.js.map +0 -1
  961. package/node_modules/exponential-backoff/dist/delay/delay.factory.d.ts +0 -3
  962. package/node_modules/exponential-backoff/dist/delay/delay.factory.js +0 -17
  963. package/node_modules/exponential-backoff/dist/delay/delay.factory.js.map +0 -1
  964. package/node_modules/exponential-backoff/dist/delay/delay.interface.d.ts +0 -4
  965. package/node_modules/exponential-backoff/dist/delay/delay.interface.js +0 -3
  966. package/node_modules/exponential-backoff/dist/delay/delay.interface.js.map +0 -1
  967. package/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.d.ts +0 -6
  968. package/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js +0 -82
  969. package/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js.map +0 -1
  970. package/node_modules/exponential-backoff/dist/jitter/full/full.jitter.d.ts +0 -1
  971. package/node_modules/exponential-backoff/dist/jitter/full/full.jitter.js +0 -8
  972. package/node_modules/exponential-backoff/dist/jitter/full/full.jitter.js.map +0 -1
  973. package/node_modules/exponential-backoff/dist/jitter/jitter.factory.d.ts +0 -3
  974. package/node_modules/exponential-backoff/dist/jitter/jitter.factory.js +0 -15
  975. package/node_modules/exponential-backoff/dist/jitter/jitter.factory.js.map +0 -1
  976. package/node_modules/exponential-backoff/dist/jitter/no/no.jitter.d.ts +0 -1
  977. package/node_modules/exponential-backoff/dist/jitter/no/no.jitter.js +0 -7
  978. package/node_modules/exponential-backoff/dist/jitter/no/no.jitter.js.map +0 -1
  979. package/node_modules/exponential-backoff/dist/options.d.ts +0 -55
  980. package/node_modules/exponential-backoff/dist/options.js +0 -31
  981. package/node_modules/exponential-backoff/dist/options.js.map +0 -1
  982. package/node_modules/exponential-backoff/package.json +0 -62
  983. package/node_modules/exponential-backoff/src/backoff.spec.ts +0 -194
  984. package/node_modules/exponential-backoff/src/backoff.ts +0 -60
  985. package/node_modules/exponential-backoff/src/delay/always/always.delay.spec.ts +0 -65
  986. package/node_modules/exponential-backoff/src/delay/always/always.delay.ts +0 -3
  987. package/node_modules/exponential-backoff/src/delay/delay.base.ts +0 -34
  988. package/node_modules/exponential-backoff/src/delay/delay.factory.ts +0 -18
  989. package/node_modules/exponential-backoff/src/delay/delay.interface.ts +0 -4
  990. package/node_modules/exponential-backoff/src/delay/skip-first/skip-first.delay.ts +0 -15
  991. package/node_modules/exponential-backoff/src/jitter/full/full.jitter.spec.ts +0 -31
  992. package/node_modules/exponential-backoff/src/jitter/full/full.jitter.ts +0 -4
  993. package/node_modules/exponential-backoff/src/jitter/jitter.factory.ts +0 -16
  994. package/node_modules/exponential-backoff/src/jitter/no/no.jitter.spec.ts +0 -9
  995. package/node_modules/exponential-backoff/src/jitter/no/no.jitter.ts +0 -3
  996. package/node_modules/exponential-backoff/src/options.ts +0 -76
  997. package/node_modules/fdir/LICENSE +0 -7
  998. package/node_modules/fdir/README.md +0 -91
  999. package/node_modules/fdir/dist/index.cjs +0 -588
  1000. package/node_modules/fdir/dist/index.d.cts +0 -155
  1001. package/node_modules/fdir/dist/index.d.mts +0 -155
  1002. package/node_modules/fdir/dist/index.mjs +0 -570
  1003. package/node_modules/fdir/package.json +0 -103
  1004. package/node_modules/file-uri-to-path/.npmignore +0 -1
  1005. package/node_modules/file-uri-to-path/.travis.yml +0 -30
  1006. package/node_modules/file-uri-to-path/History.md +0 -21
  1007. package/node_modules/file-uri-to-path/LICENSE +0 -20
  1008. package/node_modules/file-uri-to-path/README.md +0 -74
  1009. package/node_modules/file-uri-to-path/index.d.ts +0 -2
  1010. package/node_modules/file-uri-to-path/index.js +0 -66
  1011. package/node_modules/file-uri-to-path/package.json +0 -32
  1012. package/node_modules/file-uri-to-path/test/test.js +0 -24
  1013. package/node_modules/file-uri-to-path/test/tests.json +0 -13
  1014. package/node_modules/fs-constants/LICENSE +0 -21
  1015. package/node_modules/fs-constants/README.md +0 -26
  1016. package/node_modules/fs-constants/browser.js +0 -1
  1017. package/node_modules/fs-constants/index.js +0 -1
  1018. package/node_modules/fs-constants/package.json +0 -19
  1019. package/node_modules/github-from-package/.travis.yml +0 -4
  1020. package/node_modules/github-from-package/LICENSE +0 -18
  1021. package/node_modules/github-from-package/example/package.json +0 -8
  1022. package/node_modules/github-from-package/example/url.js +0 -3
  1023. package/node_modules/github-from-package/index.js +0 -17
  1024. package/node_modules/github-from-package/package.json +0 -30
  1025. package/node_modules/github-from-package/readme.markdown +0 -53
  1026. package/node_modules/github-from-package/test/a.json +0 -8
  1027. package/node_modules/github-from-package/test/b.json +0 -5
  1028. package/node_modules/github-from-package/test/c.json +0 -5
  1029. package/node_modules/github-from-package/test/d.json +0 -7
  1030. package/node_modules/github-from-package/test/e.json +0 -5
  1031. package/node_modules/github-from-package/test/url.js +0 -19
  1032. package/node_modules/graceful-fs/LICENSE +0 -15
  1033. package/node_modules/graceful-fs/README.md +0 -143
  1034. package/node_modules/graceful-fs/clone.js +0 -23
  1035. package/node_modules/graceful-fs/graceful-fs.js +0 -448
  1036. package/node_modules/graceful-fs/legacy-streams.js +0 -118
  1037. package/node_modules/graceful-fs/package.json +0 -53
  1038. package/node_modules/graceful-fs/polyfills.js +0 -355
  1039. package/node_modules/ieee754/LICENSE +0 -11
  1040. package/node_modules/ieee754/README.md +0 -51
  1041. package/node_modules/ieee754/index.d.ts +0 -10
  1042. package/node_modules/ieee754/index.js +0 -85
  1043. package/node_modules/ieee754/package.json +0 -52
  1044. package/node_modules/inherits/LICENSE +0 -16
  1045. package/node_modules/inherits/README.md +0 -42
  1046. package/node_modules/inherits/inherits.js +0 -9
  1047. package/node_modules/inherits/inherits_browser.js +0 -27
  1048. package/node_modules/inherits/package.json +0 -29
  1049. package/node_modules/ini/LICENSE +0 -15
  1050. package/node_modules/ini/README.md +0 -102
  1051. package/node_modules/ini/ini.js +0 -206
  1052. package/node_modules/ini/package.json +0 -33
  1053. package/node_modules/isexe/LICENSE.md +0 -55
  1054. package/node_modules/isexe/README.md +0 -80
  1055. package/node_modules/isexe/dist/commonjs/index.d.ts +0 -14
  1056. package/node_modules/isexe/dist/commonjs/index.d.ts.map +0 -1
  1057. package/node_modules/isexe/dist/commonjs/index.js +0 -56
  1058. package/node_modules/isexe/dist/commonjs/index.js.map +0 -1
  1059. package/node_modules/isexe/dist/commonjs/index.min.js +0 -2
  1060. package/node_modules/isexe/dist/commonjs/index.min.js.map +0 -7
  1061. package/node_modules/isexe/dist/commonjs/options.d.ts +0 -32
  1062. package/node_modules/isexe/dist/commonjs/options.d.ts.map +0 -1
  1063. package/node_modules/isexe/dist/commonjs/options.js +0 -3
  1064. package/node_modules/isexe/dist/commonjs/options.js.map +0 -1
  1065. package/node_modules/isexe/dist/commonjs/package.json +0 -3
  1066. package/node_modules/isexe/dist/commonjs/posix.d.ts +0 -18
  1067. package/node_modules/isexe/dist/commonjs/posix.d.ts.map +0 -1
  1068. package/node_modules/isexe/dist/commonjs/posix.js +0 -67
  1069. package/node_modules/isexe/dist/commonjs/posix.js.map +0 -1
  1070. package/node_modules/isexe/dist/commonjs/win32.d.ts +0 -18
  1071. package/node_modules/isexe/dist/commonjs/win32.d.ts.map +0 -1
  1072. package/node_modules/isexe/dist/commonjs/win32.js +0 -63
  1073. package/node_modules/isexe/dist/commonjs/win32.js.map +0 -1
  1074. package/node_modules/isexe/dist/esm/index.d.ts +0 -14
  1075. package/node_modules/isexe/dist/esm/index.d.ts.map +0 -1
  1076. package/node_modules/isexe/dist/esm/index.js +0 -16
  1077. package/node_modules/isexe/dist/esm/index.js.map +0 -1
  1078. package/node_modules/isexe/dist/esm/index.min.js +0 -2
  1079. package/node_modules/isexe/dist/esm/index.min.js.map +0 -7
  1080. package/node_modules/isexe/dist/esm/options.d.ts +0 -32
  1081. package/node_modules/isexe/dist/esm/options.d.ts.map +0 -1
  1082. package/node_modules/isexe/dist/esm/options.js +0 -2
  1083. package/node_modules/isexe/dist/esm/options.js.map +0 -1
  1084. package/node_modules/isexe/dist/esm/package.json +0 -3
  1085. package/node_modules/isexe/dist/esm/posix.d.ts +0 -18
  1086. package/node_modules/isexe/dist/esm/posix.d.ts.map +0 -1
  1087. package/node_modules/isexe/dist/esm/posix.js +0 -62
  1088. package/node_modules/isexe/dist/esm/posix.js.map +0 -1
  1089. package/node_modules/isexe/dist/esm/win32.d.ts +0 -18
  1090. package/node_modules/isexe/dist/esm/win32.d.ts.map +0 -1
  1091. package/node_modules/isexe/dist/esm/win32.js +0 -58
  1092. package/node_modules/isexe/dist/esm/win32.js.map +0 -1
  1093. package/node_modules/isexe/package.json +0 -78
  1094. package/node_modules/mimic-response/index.d.ts +0 -17
  1095. package/node_modules/mimic-response/index.js +0 -77
  1096. package/node_modules/mimic-response/license +0 -9
  1097. package/node_modules/mimic-response/package.json +0 -42
  1098. package/node_modules/mimic-response/readme.md +0 -78
  1099. package/node_modules/minimist/.eslintrc +0 -29
  1100. package/node_modules/minimist/.github/FUNDING.yml +0 -12
  1101. package/node_modules/minimist/.nycrc +0 -14
  1102. package/node_modules/minimist/CHANGELOG.md +0 -298
  1103. package/node_modules/minimist/LICENSE +0 -18
  1104. package/node_modules/minimist/README.md +0 -121
  1105. package/node_modules/minimist/example/parse.js +0 -4
  1106. package/node_modules/minimist/index.js +0 -263
  1107. package/node_modules/minimist/package.json +0 -75
  1108. package/node_modules/minimist/test/all_bool.js +0 -34
  1109. package/node_modules/minimist/test/bool.js +0 -177
  1110. package/node_modules/minimist/test/dash.js +0 -43
  1111. package/node_modules/minimist/test/default_bool.js +0 -37
  1112. package/node_modules/minimist/test/dotted.js +0 -24
  1113. package/node_modules/minimist/test/kv_short.js +0 -32
  1114. package/node_modules/minimist/test/long.js +0 -33
  1115. package/node_modules/minimist/test/num.js +0 -38
  1116. package/node_modules/minimist/test/parse.js +0 -209
  1117. package/node_modules/minimist/test/parse_modified.js +0 -11
  1118. package/node_modules/minimist/test/proto.js +0 -64
  1119. package/node_modules/minimist/test/short.js +0 -69
  1120. package/node_modules/minimist/test/stop_early.js +0 -17
  1121. package/node_modules/minimist/test/unknown.js +0 -104
  1122. package/node_modules/minimist/test/whitespace.js +0 -10
  1123. package/node_modules/minipass/LICENSE.md +0 -55
  1124. package/node_modules/minipass/README.md +0 -825
  1125. package/node_modules/minipass/dist/commonjs/index.d.ts +0 -545
  1126. package/node_modules/minipass/dist/commonjs/index.d.ts.map +0 -1
  1127. package/node_modules/minipass/dist/commonjs/index.js +0 -1038
  1128. package/node_modules/minipass/dist/commonjs/index.js.map +0 -1
  1129. package/node_modules/minipass/dist/commonjs/package.json +0 -3
  1130. package/node_modules/minipass/dist/esm/index.d.ts +0 -545
  1131. package/node_modules/minipass/dist/esm/index.d.ts.map +0 -1
  1132. package/node_modules/minipass/dist/esm/index.js +0 -1020
  1133. package/node_modules/minipass/dist/esm/index.js.map +0 -1
  1134. package/node_modules/minipass/dist/esm/package.json +0 -3
  1135. package/node_modules/minipass/package.json +0 -77
  1136. package/node_modules/minizlib/LICENSE +0 -26
  1137. package/node_modules/minizlib/README.md +0 -64
  1138. package/node_modules/minizlib/dist/commonjs/constants.d.ts +0 -2
  1139. package/node_modules/minizlib/dist/commonjs/constants.d.ts.map +0 -1
  1140. package/node_modules/minizlib/dist/commonjs/constants.js +0 -123
  1141. package/node_modules/minizlib/dist/commonjs/constants.js.map +0 -1
  1142. package/node_modules/minizlib/dist/commonjs/index.d.ts +0 -99
  1143. package/node_modules/minizlib/dist/commonjs/index.d.ts.map +0 -1
  1144. package/node_modules/minizlib/dist/commonjs/index.js +0 -416
  1145. package/node_modules/minizlib/dist/commonjs/index.js.map +0 -1
  1146. package/node_modules/minizlib/dist/commonjs/package.json +0 -3
  1147. package/node_modules/minizlib/dist/esm/constants.d.ts +0 -2
  1148. package/node_modules/minizlib/dist/esm/constants.d.ts.map +0 -1
  1149. package/node_modules/minizlib/dist/esm/constants.js +0 -117
  1150. package/node_modules/minizlib/dist/esm/constants.js.map +0 -1
  1151. package/node_modules/minizlib/dist/esm/index.d.ts +0 -99
  1152. package/node_modules/minizlib/dist/esm/index.d.ts.map +0 -1
  1153. package/node_modules/minizlib/dist/esm/index.js +0 -363
  1154. package/node_modules/minizlib/dist/esm/index.js.map +0 -1
  1155. package/node_modules/minizlib/dist/esm/package.json +0 -3
  1156. package/node_modules/minizlib/package.json +0 -80
  1157. package/node_modules/mkdirp-classic/LICENSE +0 -21
  1158. package/node_modules/mkdirp-classic/README.md +0 -18
  1159. package/node_modules/mkdirp-classic/index.js +0 -98
  1160. package/node_modules/mkdirp-classic/package.json +0 -18
  1161. package/node_modules/napi-build-utils/.github/workflows/run-npm-tests.yml +0 -31
  1162. package/node_modules/napi-build-utils/LICENSE +0 -21
  1163. package/node_modules/napi-build-utils/README.md +0 -52
  1164. package/node_modules/napi-build-utils/index.js +0 -214
  1165. package/node_modules/napi-build-utils/index.md +0 -0
  1166. package/node_modules/napi-build-utils/package.json +0 -42
  1167. package/node_modules/node-abi/LICENSE +0 -21
  1168. package/node_modules/node-abi/README.md +0 -54
  1169. package/node_modules/node-abi/abi_registry.json +0 -439
  1170. package/node_modules/node-abi/index.js +0 -179
  1171. package/node_modules/node-abi/package.json +0 -45
  1172. package/node_modules/node-addon-api/LICENSE.md +0 -9
  1173. package/node_modules/node-addon-api/README.md +0 -95
  1174. package/node_modules/node-addon-api/common.gypi +0 -21
  1175. package/node_modules/node-addon-api/except.gypi +0 -25
  1176. package/node_modules/node-addon-api/index.js +0 -14
  1177. package/node_modules/node-addon-api/napi-inl.deprecated.h +0 -186
  1178. package/node_modules/node-addon-api/napi-inl.h +0 -7165
  1179. package/node_modules/node-addon-api/napi.h +0 -3364
  1180. package/node_modules/node-addon-api/node_addon_api.gyp +0 -42
  1181. package/node_modules/node-addon-api/node_api.gyp +0 -9
  1182. package/node_modules/node-addon-api/noexcept.gypi +0 -26
  1183. package/node_modules/node-addon-api/nothing.c +0 -0
  1184. package/node_modules/node-addon-api/package-support.json +0 -21
  1185. package/node_modules/node-addon-api/package.json +0 -480
  1186. package/node_modules/node-addon-api/tools/README.md +0 -73
  1187. package/node_modules/node-addon-api/tools/check-napi.js +0 -99
  1188. package/node_modules/node-addon-api/tools/clang-format.js +0 -71
  1189. package/node_modules/node-addon-api/tools/conversion.js +0 -301
  1190. package/node_modules/node-gyp/.release-please-manifest.json +0 -3
  1191. package/node_modules/node-gyp/CHANGELOG.md +0 -1221
  1192. package/node_modules/node-gyp/CODE_OF_CONDUCT.md +0 -4
  1193. package/node_modules/node-gyp/CONTRIBUTING.md +0 -44
  1194. package/node_modules/node-gyp/LICENSE +0 -24
  1195. package/node_modules/node-gyp/README.md +0 -290
  1196. package/node_modules/node-gyp/SECURITY.md +0 -2
  1197. package/node_modules/node-gyp/addon.gypi +0 -204
  1198. package/node_modules/node-gyp/bin/node-gyp.js +0 -145
  1199. package/node_modules/node-gyp/eslint.config.js +0 -3
  1200. package/node_modules/node-gyp/gyp/.release-please-manifest.json +0 -3
  1201. package/node_modules/node-gyp/gyp/LICENSE +0 -28
  1202. package/node_modules/node-gyp/gyp/data/ninja/build.ninja +0 -4
  1203. package/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +0 -12
  1204. package/node_modules/node-gyp/gyp/docs/GypVsCMake.md +0 -116
  1205. package/node_modules/node-gyp/gyp/docs/Hacking.md +0 -46
  1206. package/node_modules/node-gyp/gyp/docs/InputFormatReference.md +0 -1083
  1207. package/node_modules/node-gyp/gyp/docs/LanguageSpecification.md +0 -430
  1208. package/node_modules/node-gyp/gyp/docs/README.md +0 -27
  1209. package/node_modules/node-gyp/gyp/docs/Testing.md +0 -450
  1210. package/node_modules/node-gyp/gyp/docs/UserDocumentation.md +0 -965
  1211. package/node_modules/node-gyp/gyp/gyp +0 -8
  1212. package/node_modules/node-gyp/gyp/gyp.bat +0 -5
  1213. package/node_modules/node-gyp/gyp/gyp_main.py +0 -45
  1214. package/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +0 -365
  1215. package/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +0 -206
  1216. package/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +0 -1283
  1217. package/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +0 -1545
  1218. package/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +0 -59
  1219. package/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +0 -152
  1220. package/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +0 -270
  1221. package/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +0 -607
  1222. package/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +0 -706
  1223. package/node_modules/node-gyp/gyp/pylib/gyp/common.py +0 -725
  1224. package/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +0 -186
  1225. package/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +0 -170
  1226. package/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +0 -113
  1227. package/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +0 -55
  1228. package/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
  1229. package/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +0 -805
  1230. package/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +0 -1169
  1231. package/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +0 -1316
  1232. package/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +0 -128
  1233. package/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +0 -104
  1234. package/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +0 -461
  1235. package/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +0 -88
  1236. package/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +0 -55
  1237. package/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +0 -2755
  1238. package/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +0 -3970
  1239. package/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +0 -44
  1240. package/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +0 -2957
  1241. package/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +0 -77
  1242. package/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +0 -1389
  1243. package/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +0 -26
  1244. package/node_modules/node-gyp/gyp/pylib/gyp/input.py +0 -3097
  1245. package/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +0 -99
  1246. package/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +0 -765
  1247. package/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +0 -1255
  1248. package/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +0 -174
  1249. package/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +0 -61
  1250. package/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +0 -371
  1251. package/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +0 -1936
  1252. package/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +0 -54
  1253. package/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +0 -301
  1254. package/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +0 -3180
  1255. package/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +0 -64
  1256. package/node_modules/node-gyp/gyp/pylib/packaging/LICENSE +0 -3
  1257. package/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +0 -177
  1258. package/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.BSD +0 -23
  1259. package/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +0 -15
  1260. package/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +0 -107
  1261. package/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +0 -252
  1262. package/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +0 -83
  1263. package/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +0 -359
  1264. package/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +0 -61
  1265. package/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +0 -192
  1266. package/node_modules/node-gyp/gyp/pylib/packaging/markers.py +0 -251
  1267. package/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +0 -807
  1268. package/node_modules/node-gyp/gyp/pylib/packaging/py.typed +0 -0
  1269. package/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +0 -90
  1270. package/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +0 -1030
  1271. package/node_modules/node-gyp/gyp/pylib/packaging/tags.py +0 -541
  1272. package/node_modules/node-gyp/gyp/pylib/packaging/utils.py +0 -172
  1273. package/node_modules/node-gyp/gyp/pylib/packaging/version.py +0 -563
  1274. package/node_modules/node-gyp/gyp/pyproject.toml +0 -116
  1275. package/node_modules/node-gyp/gyp/release-please-config.json +0 -11
  1276. package/node_modules/node-gyp/gyp/test_gyp.py +0 -260
  1277. package/node_modules/node-gyp/lib/Find-VisualStudio.cs +0 -250
  1278. package/node_modules/node-gyp/lib/build.js +0 -230
  1279. package/node_modules/node-gyp/lib/clean.js +0 -15
  1280. package/node_modules/node-gyp/lib/configure.js +0 -328
  1281. package/node_modules/node-gyp/lib/create-config-gypi.js +0 -153
  1282. package/node_modules/node-gyp/lib/download.js +0 -86
  1283. package/node_modules/node-gyp/lib/find-node-directory.js +0 -63
  1284. package/node_modules/node-gyp/lib/find-python.js +0 -304
  1285. package/node_modules/node-gyp/lib/find-visualstudio.js +0 -606
  1286. package/node_modules/node-gyp/lib/install.js +0 -411
  1287. package/node_modules/node-gyp/lib/list.js +0 -26
  1288. package/node_modules/node-gyp/lib/log.js +0 -168
  1289. package/node_modules/node-gyp/lib/node-gyp.js +0 -199
  1290. package/node_modules/node-gyp/lib/process-release.js +0 -144
  1291. package/node_modules/node-gyp/lib/rebuild.js +0 -12
  1292. package/node_modules/node-gyp/lib/remove.js +0 -43
  1293. package/node_modules/node-gyp/lib/util.js +0 -81
  1294. package/node_modules/node-gyp/macOS_Catalina_acid_test.sh +0 -21
  1295. package/node_modules/node-gyp/package.json +0 -52
  1296. package/node_modules/node-gyp/release-please-config.json +0 -40
  1297. package/node_modules/node-gyp/src/win_delay_load_hook.cc +0 -41
  1298. package/node_modules/nopt/LICENSE +0 -15
  1299. package/node_modules/nopt/README.md +0 -214
  1300. package/node_modules/nopt/bin/nopt.js +0 -29
  1301. package/node_modules/nopt/lib/debug.js +0 -5
  1302. package/node_modules/nopt/lib/nopt-lib.js +0 -514
  1303. package/node_modules/nopt/lib/nopt.js +0 -34
  1304. package/node_modules/nopt/lib/type-defs.js +0 -91
  1305. package/node_modules/nopt/package.json +0 -52
  1306. package/node_modules/once/LICENSE +0 -15
  1307. package/node_modules/once/README.md +0 -79
  1308. package/node_modules/once/once.js +0 -42
  1309. package/node_modules/once/package.json +0 -33
  1310. package/node_modules/picomatch/LICENSE +0 -21
  1311. package/node_modules/picomatch/README.md +0 -749
  1312. package/node_modules/picomatch/index.js +0 -17
  1313. package/node_modules/picomatch/lib/constants.js +0 -184
  1314. package/node_modules/picomatch/lib/parse.js +0 -1386
  1315. package/node_modules/picomatch/lib/picomatch.js +0 -349
  1316. package/node_modules/picomatch/lib/scan.js +0 -391
  1317. package/node_modules/picomatch/lib/utils.js +0 -72
  1318. package/node_modules/picomatch/package.json +0 -82
  1319. package/node_modules/picomatch/posix.js +0 -3
  1320. package/node_modules/prebuild-install/CHANGELOG.md +0 -131
  1321. package/node_modules/prebuild-install/CONTRIBUTING.md +0 -6
  1322. package/node_modules/prebuild-install/LICENSE +0 -21
  1323. package/node_modules/prebuild-install/README.md +0 -163
  1324. package/node_modules/prebuild-install/asset.js +0 -44
  1325. package/node_modules/prebuild-install/bin.js +0 -78
  1326. package/node_modules/prebuild-install/download.js +0 -142
  1327. package/node_modules/prebuild-install/error.js +0 -14
  1328. package/node_modules/prebuild-install/help.txt +0 -16
  1329. package/node_modules/prebuild-install/index.js +0 -1
  1330. package/node_modules/prebuild-install/log.js +0 -33
  1331. package/node_modules/prebuild-install/package.json +0 -67
  1332. package/node_modules/prebuild-install/proxy.js +0 -35
  1333. package/node_modules/prebuild-install/rc.js +0 -64
  1334. package/node_modules/prebuild-install/util.js +0 -143
  1335. package/node_modules/proc-log/LICENSE +0 -15
  1336. package/node_modules/proc-log/README.md +0 -226
  1337. package/node_modules/proc-log/lib/index.js +0 -158
  1338. package/node_modules/proc-log/package.json +0 -46
  1339. package/node_modules/pump/.github/FUNDING.yml +0 -2
  1340. package/node_modules/pump/.travis.yml +0 -5
  1341. package/node_modules/pump/LICENSE +0 -21
  1342. package/node_modules/pump/README.md +0 -74
  1343. package/node_modules/pump/SECURITY.md +0 -5
  1344. package/node_modules/pump/empty.js +0 -1
  1345. package/node_modules/pump/index.js +0 -86
  1346. package/node_modules/pump/package.json +0 -30
  1347. package/node_modules/pump/test-browser.js +0 -66
  1348. package/node_modules/pump/test-node.js +0 -53
  1349. package/node_modules/rc/LICENSE.APACHE2 +0 -15
  1350. package/node_modules/rc/LICENSE.BSD +0 -26
  1351. package/node_modules/rc/LICENSE.MIT +0 -24
  1352. package/node_modules/rc/README.md +0 -227
  1353. package/node_modules/rc/browser.js +0 -7
  1354. package/node_modules/rc/cli.js +0 -4
  1355. package/node_modules/rc/index.js +0 -53
  1356. package/node_modules/rc/lib/utils.js +0 -104
  1357. package/node_modules/rc/package.json +0 -29
  1358. package/node_modules/rc/test/ini.js +0 -16
  1359. package/node_modules/rc/test/nested-env-vars.js +0 -50
  1360. package/node_modules/rc/test/test.js +0 -59
  1361. package/node_modules/readable-stream/CONTRIBUTING.md +0 -38
  1362. package/node_modules/readable-stream/GOVERNANCE.md +0 -136
  1363. package/node_modules/readable-stream/LICENSE +0 -47
  1364. package/node_modules/readable-stream/README.md +0 -106
  1365. package/node_modules/readable-stream/errors-browser.js +0 -127
  1366. package/node_modules/readable-stream/errors.js +0 -116
  1367. package/node_modules/readable-stream/experimentalWarning.js +0 -17
  1368. package/node_modules/readable-stream/lib/_stream_duplex.js +0 -126
  1369. package/node_modules/readable-stream/lib/_stream_passthrough.js +0 -37
  1370. package/node_modules/readable-stream/lib/_stream_readable.js +0 -1027
  1371. package/node_modules/readable-stream/lib/_stream_transform.js +0 -190
  1372. package/node_modules/readable-stream/lib/_stream_writable.js +0 -641
  1373. package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -180
  1374. package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -183
  1375. package/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -96
  1376. package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -86
  1377. package/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
  1378. package/node_modules/readable-stream/lib/internal/streams/from.js +0 -52
  1379. package/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -86
  1380. package/node_modules/readable-stream/lib/internal/streams/state.js +0 -22
  1381. package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
  1382. package/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
  1383. package/node_modules/readable-stream/package.json +0 -68
  1384. package/node_modules/readable-stream/readable-browser.js +0 -9
  1385. package/node_modules/readable-stream/readable.js +0 -16
  1386. package/node_modules/safe-buffer/LICENSE +0 -21
  1387. package/node_modules/safe-buffer/README.md +0 -584
  1388. package/node_modules/safe-buffer/index.d.ts +0 -187
  1389. package/node_modules/safe-buffer/index.js +0 -65
  1390. package/node_modules/safe-buffer/package.json +0 -51
  1391. package/node_modules/semver/LICENSE +0 -15
  1392. package/node_modules/semver/README.md +0 -665
  1393. package/node_modules/semver/bin/semver.js +0 -191
  1394. package/node_modules/semver/classes/comparator.js +0 -143
  1395. package/node_modules/semver/classes/index.js +0 -7
  1396. package/node_modules/semver/classes/range.js +0 -557
  1397. package/node_modules/semver/classes/semver.js +0 -333
  1398. package/node_modules/semver/functions/clean.js +0 -8
  1399. package/node_modules/semver/functions/cmp.js +0 -54
  1400. package/node_modules/semver/functions/coerce.js +0 -62
  1401. package/node_modules/semver/functions/compare-build.js +0 -9
  1402. package/node_modules/semver/functions/compare-loose.js +0 -5
  1403. package/node_modules/semver/functions/compare.js +0 -7
  1404. package/node_modules/semver/functions/diff.js +0 -60
  1405. package/node_modules/semver/functions/eq.js +0 -5
  1406. package/node_modules/semver/functions/gt.js +0 -5
  1407. package/node_modules/semver/functions/gte.js +0 -5
  1408. package/node_modules/semver/functions/inc.js +0 -21
  1409. package/node_modules/semver/functions/lt.js +0 -5
  1410. package/node_modules/semver/functions/lte.js +0 -5
  1411. package/node_modules/semver/functions/major.js +0 -5
  1412. package/node_modules/semver/functions/minor.js +0 -5
  1413. package/node_modules/semver/functions/neq.js +0 -5
  1414. package/node_modules/semver/functions/parse.js +0 -18
  1415. package/node_modules/semver/functions/patch.js +0 -5
  1416. package/node_modules/semver/functions/prerelease.js +0 -8
  1417. package/node_modules/semver/functions/rcompare.js +0 -5
  1418. package/node_modules/semver/functions/rsort.js +0 -5
  1419. package/node_modules/semver/functions/satisfies.js +0 -12
  1420. package/node_modules/semver/functions/sort.js +0 -5
  1421. package/node_modules/semver/functions/valid.js +0 -8
  1422. package/node_modules/semver/index.js +0 -91
  1423. package/node_modules/semver/internal/constants.js +0 -37
  1424. package/node_modules/semver/internal/debug.js +0 -11
  1425. package/node_modules/semver/internal/identifiers.js +0 -29
  1426. package/node_modules/semver/internal/lrucache.js +0 -42
  1427. package/node_modules/semver/internal/parse-options.js +0 -17
  1428. package/node_modules/semver/internal/re.js +0 -223
  1429. package/node_modules/semver/package.json +0 -78
  1430. package/node_modules/semver/preload.js +0 -4
  1431. package/node_modules/semver/range.bnf +0 -16
  1432. package/node_modules/semver/ranges/gtr.js +0 -6
  1433. package/node_modules/semver/ranges/intersects.js +0 -9
  1434. package/node_modules/semver/ranges/ltr.js +0 -6
  1435. package/node_modules/semver/ranges/max-satisfying.js +0 -27
  1436. package/node_modules/semver/ranges/min-satisfying.js +0 -26
  1437. package/node_modules/semver/ranges/min-version.js +0 -63
  1438. package/node_modules/semver/ranges/outside.js +0 -82
  1439. package/node_modules/semver/ranges/simplify.js +0 -49
  1440. package/node_modules/semver/ranges/subset.js +0 -249
  1441. package/node_modules/semver/ranges/to-comparators.js +0 -10
  1442. package/node_modules/semver/ranges/valid.js +0 -13
  1443. package/node_modules/simple-concat/.travis.yml +0 -3
  1444. package/node_modules/simple-concat/LICENSE +0 -20
  1445. package/node_modules/simple-concat/README.md +0 -44
  1446. package/node_modules/simple-concat/index.js +0 -15
  1447. package/node_modules/simple-concat/package.json +0 -47
  1448. package/node_modules/simple-concat/test/basic.js +0 -41
  1449. package/node_modules/simple-get/.github/dependabot.yml +0 -15
  1450. package/node_modules/simple-get/.github/workflows/ci.yml +0 -23
  1451. package/node_modules/simple-get/LICENSE +0 -20
  1452. package/node_modules/simple-get/README.md +0 -333
  1453. package/node_modules/simple-get/index.js +0 -108
  1454. package/node_modules/simple-get/package.json +0 -67
  1455. package/node_modules/sqlite3/LICENSE +0 -25
  1456. package/node_modules/sqlite3/README.md +0 -253
  1457. package/node_modules/sqlite3/binding.gyp +0 -58
  1458. package/node_modules/sqlite3/build/Release/node_sqlite3.node +0 -0
  1459. package/node_modules/sqlite3/deps/common-sqlite.gypi +0 -60
  1460. package/node_modules/sqlite3/deps/extract.js +0 -19
  1461. package/node_modules/sqlite3/deps/sqlite-autoconf-3520000.tar.gz +0 -0
  1462. package/node_modules/sqlite3/deps/sqlite3.gyp +0 -121
  1463. package/node_modules/sqlite3/lib/sqlite3-binding.js +0 -1
  1464. package/node_modules/sqlite3/lib/sqlite3.d.ts +0 -205
  1465. package/node_modules/sqlite3/lib/sqlite3.js +0 -207
  1466. package/node_modules/sqlite3/lib/trace.js +0 -38
  1467. package/node_modules/sqlite3/package.json +0 -92
  1468. package/node_modules/sqlite3/src/async.h +0 -76
  1469. package/node_modules/sqlite3/src/backup.cc +0 -418
  1470. package/node_modules/sqlite3/src/backup.h +0 -209
  1471. package/node_modules/sqlite3/src/database.cc +0 -751
  1472. package/node_modules/sqlite3/src/database.h +0 -188
  1473. package/node_modules/sqlite3/src/gcc-preinclude.h +0 -31
  1474. package/node_modules/sqlite3/src/macros.h +0 -207
  1475. package/node_modules/sqlite3/src/node_sqlite3.cc +0 -128
  1476. package/node_modules/sqlite3/src/statement.cc +0 -939
  1477. package/node_modules/sqlite3/src/statement.h +0 -244
  1478. package/node_modules/sqlite3/src/threading.h +0 -10
  1479. package/node_modules/string_decoder/LICENSE +0 -48
  1480. package/node_modules/string_decoder/README.md +0 -47
  1481. package/node_modules/string_decoder/lib/string_decoder.js +0 -296
  1482. package/node_modules/string_decoder/package.json +0 -34
  1483. package/node_modules/strip-json-comments/index.js +0 -70
  1484. package/node_modules/strip-json-comments/license +0 -21
  1485. package/node_modules/strip-json-comments/package.json +0 -42
  1486. package/node_modules/strip-json-comments/readme.md +0 -64
  1487. package/node_modules/tar/LICENSE.md +0 -55
  1488. package/node_modules/tar/README.md +0 -1224
  1489. package/node_modules/tar/dist/commonjs/create.d.ts +0 -3
  1490. package/node_modules/tar/dist/commonjs/create.d.ts.map +0 -1
  1491. package/node_modules/tar/dist/commonjs/create.js +0 -82
  1492. package/node_modules/tar/dist/commonjs/create.js.map +0 -1
  1493. package/node_modules/tar/dist/commonjs/cwd-error.d.ts +0 -8
  1494. package/node_modules/tar/dist/commonjs/cwd-error.d.ts.map +0 -1
  1495. package/node_modules/tar/dist/commonjs/cwd-error.js +0 -18
  1496. package/node_modules/tar/dist/commonjs/cwd-error.js.map +0 -1
  1497. package/node_modules/tar/dist/commonjs/extract.d.ts +0 -3
  1498. package/node_modules/tar/dist/commonjs/extract.d.ts.map +0 -1
  1499. package/node_modules/tar/dist/commonjs/extract.js +0 -88
  1500. package/node_modules/tar/dist/commonjs/extract.js.map +0 -1
  1501. package/node_modules/tar/dist/commonjs/get-write-flag.d.ts +0 -2
  1502. package/node_modules/tar/dist/commonjs/get-write-flag.d.ts.map +0 -1
  1503. package/node_modules/tar/dist/commonjs/get-write-flag.js +0 -32
  1504. package/node_modules/tar/dist/commonjs/get-write-flag.js.map +0 -1
  1505. package/node_modules/tar/dist/commonjs/header.d.ts +0 -53
  1506. package/node_modules/tar/dist/commonjs/header.d.ts.map +0 -1
  1507. package/node_modules/tar/dist/commonjs/header.js +0 -312
  1508. package/node_modules/tar/dist/commonjs/header.js.map +0 -1
  1509. package/node_modules/tar/dist/commonjs/index.d.ts +0 -20
  1510. package/node_modules/tar/dist/commonjs/index.d.ts.map +0 -1
  1511. package/node_modules/tar/dist/commonjs/index.js +0 -64
  1512. package/node_modules/tar/dist/commonjs/index.js.map +0 -1
  1513. package/node_modules/tar/dist/commonjs/index.min.js +0 -4
  1514. package/node_modules/tar/dist/commonjs/index.min.js.map +0 -7
  1515. package/node_modules/tar/dist/commonjs/large-numbers.d.ts +0 -3
  1516. package/node_modules/tar/dist/commonjs/large-numbers.d.ts.map +0 -1
  1517. package/node_modules/tar/dist/commonjs/large-numbers.js +0 -99
  1518. package/node_modules/tar/dist/commonjs/large-numbers.js.map +0 -1
  1519. package/node_modules/tar/dist/commonjs/list.d.ts +0 -7
  1520. package/node_modules/tar/dist/commonjs/list.d.ts.map +0 -1
  1521. package/node_modules/tar/dist/commonjs/list.js +0 -145
  1522. package/node_modules/tar/dist/commonjs/list.js.map +0 -1
  1523. package/node_modules/tar/dist/commonjs/make-command.d.ts +0 -49
  1524. package/node_modules/tar/dist/commonjs/make-command.d.ts.map +0 -1
  1525. package/node_modules/tar/dist/commonjs/make-command.js +0 -52
  1526. package/node_modules/tar/dist/commonjs/make-command.js.map +0 -1
  1527. package/node_modules/tar/dist/commonjs/mkdir.d.ts +0 -25
  1528. package/node_modules/tar/dist/commonjs/mkdir.d.ts.map +0 -1
  1529. package/node_modules/tar/dist/commonjs/mkdir.js +0 -187
  1530. package/node_modules/tar/dist/commonjs/mkdir.js.map +0 -1
  1531. package/node_modules/tar/dist/commonjs/mode-fix.d.ts +0 -2
  1532. package/node_modules/tar/dist/commonjs/mode-fix.d.ts.map +0 -1
  1533. package/node_modules/tar/dist/commonjs/mode-fix.js +0 -29
  1534. package/node_modules/tar/dist/commonjs/mode-fix.js.map +0 -1
  1535. package/node_modules/tar/dist/commonjs/normalize-unicode.d.ts +0 -2
  1536. package/node_modules/tar/dist/commonjs/normalize-unicode.d.ts.map +0 -1
  1537. package/node_modules/tar/dist/commonjs/normalize-unicode.js +0 -38
  1538. package/node_modules/tar/dist/commonjs/normalize-unicode.js.map +0 -1
  1539. package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts +0 -2
  1540. package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts.map +0 -1
  1541. package/node_modules/tar/dist/commonjs/normalize-windows-path.js +0 -12
  1542. package/node_modules/tar/dist/commonjs/normalize-windows-path.js.map +0 -1
  1543. package/node_modules/tar/dist/commonjs/options.d.ts +0 -596
  1544. package/node_modules/tar/dist/commonjs/options.d.ts.map +0 -1
  1545. package/node_modules/tar/dist/commonjs/options.js +0 -66
  1546. package/node_modules/tar/dist/commonjs/options.js.map +0 -1
  1547. package/node_modules/tar/dist/commonjs/pack.d.ts +0 -105
  1548. package/node_modules/tar/dist/commonjs/pack.d.ts.map +0 -1
  1549. package/node_modules/tar/dist/commonjs/pack.js +0 -545
  1550. package/node_modules/tar/dist/commonjs/pack.js.map +0 -1
  1551. package/node_modules/tar/dist/commonjs/package.json +0 -3
  1552. package/node_modules/tar/dist/commonjs/parse.d.ts +0 -85
  1553. package/node_modules/tar/dist/commonjs/parse.d.ts.map +0 -1
  1554. package/node_modules/tar/dist/commonjs/parse.js +0 -610
  1555. package/node_modules/tar/dist/commonjs/parse.js.map +0 -1
  1556. package/node_modules/tar/dist/commonjs/path-reservations.d.ts +0 -11
  1557. package/node_modules/tar/dist/commonjs/path-reservations.d.ts.map +0 -1
  1558. package/node_modules/tar/dist/commonjs/path-reservations.js +0 -170
  1559. package/node_modules/tar/dist/commonjs/path-reservations.js.map +0 -1
  1560. package/node_modules/tar/dist/commonjs/pax.d.ts +0 -26
  1561. package/node_modules/tar/dist/commonjs/pax.d.ts.map +0 -1
  1562. package/node_modules/tar/dist/commonjs/pax.js +0 -158
  1563. package/node_modules/tar/dist/commonjs/pax.js.map +0 -1
  1564. package/node_modules/tar/dist/commonjs/process-umask.d.ts +0 -2
  1565. package/node_modules/tar/dist/commonjs/process-umask.d.ts.map +0 -1
  1566. package/node_modules/tar/dist/commonjs/process-umask.js +0 -7
  1567. package/node_modules/tar/dist/commonjs/process-umask.js.map +0 -1
  1568. package/node_modules/tar/dist/commonjs/read-entry.d.ts +0 -36
  1569. package/node_modules/tar/dist/commonjs/read-entry.d.ts.map +0 -1
  1570. package/node_modules/tar/dist/commonjs/read-entry.js +0 -136
  1571. package/node_modules/tar/dist/commonjs/read-entry.js.map +0 -1
  1572. package/node_modules/tar/dist/commonjs/replace.d.ts +0 -2
  1573. package/node_modules/tar/dist/commonjs/replace.d.ts.map +0 -1
  1574. package/node_modules/tar/dist/commonjs/replace.js +0 -227
  1575. package/node_modules/tar/dist/commonjs/replace.js.map +0 -1
  1576. package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts +0 -2
  1577. package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts.map +0 -1
  1578. package/node_modules/tar/dist/commonjs/strip-absolute-path.js +0 -29
  1579. package/node_modules/tar/dist/commonjs/strip-absolute-path.js.map +0 -1
  1580. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts +0 -2
  1581. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts.map +0 -1
  1582. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +0 -18
  1583. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js.map +0 -1
  1584. package/node_modules/tar/dist/commonjs/symlink-error.d.ts +0 -9
  1585. package/node_modules/tar/dist/commonjs/symlink-error.d.ts.map +0 -1
  1586. package/node_modules/tar/dist/commonjs/symlink-error.js +0 -19
  1587. package/node_modules/tar/dist/commonjs/symlink-error.js.map +0 -1
  1588. package/node_modules/tar/dist/commonjs/types.d.ts +0 -7
  1589. package/node_modules/tar/dist/commonjs/types.d.ts.map +0 -1
  1590. package/node_modules/tar/dist/commonjs/types.js +0 -50
  1591. package/node_modules/tar/dist/commonjs/types.js.map +0 -1
  1592. package/node_modules/tar/dist/commonjs/unpack.d.ts +0 -101
  1593. package/node_modules/tar/dist/commonjs/unpack.d.ts.map +0 -1
  1594. package/node_modules/tar/dist/commonjs/unpack.js +0 -932
  1595. package/node_modules/tar/dist/commonjs/unpack.js.map +0 -1
  1596. package/node_modules/tar/dist/commonjs/update.d.ts +0 -2
  1597. package/node_modules/tar/dist/commonjs/update.d.ts.map +0 -1
  1598. package/node_modules/tar/dist/commonjs/update.js +0 -33
  1599. package/node_modules/tar/dist/commonjs/update.js.map +0 -1
  1600. package/node_modules/tar/dist/commonjs/warn-method.d.ts +0 -24
  1601. package/node_modules/tar/dist/commonjs/warn-method.d.ts.map +0 -1
  1602. package/node_modules/tar/dist/commonjs/warn-method.js +0 -31
  1603. package/node_modules/tar/dist/commonjs/warn-method.js.map +0 -1
  1604. package/node_modules/tar/dist/commonjs/winchars.d.ts +0 -3
  1605. package/node_modules/tar/dist/commonjs/winchars.d.ts.map +0 -1
  1606. package/node_modules/tar/dist/commonjs/winchars.js +0 -14
  1607. package/node_modules/tar/dist/commonjs/winchars.js.map +0 -1
  1608. package/node_modules/tar/dist/commonjs/write-entry.d.ts +0 -129
  1609. package/node_modules/tar/dist/commonjs/write-entry.d.ts.map +0 -1
  1610. package/node_modules/tar/dist/commonjs/write-entry.js +0 -698
  1611. package/node_modules/tar/dist/commonjs/write-entry.js.map +0 -1
  1612. package/node_modules/tar/dist/esm/create.d.ts +0 -3
  1613. package/node_modules/tar/dist/esm/create.d.ts.map +0 -1
  1614. package/node_modules/tar/dist/esm/create.js +0 -76
  1615. package/node_modules/tar/dist/esm/create.js.map +0 -1
  1616. package/node_modules/tar/dist/esm/cwd-error.d.ts +0 -8
  1617. package/node_modules/tar/dist/esm/cwd-error.d.ts.map +0 -1
  1618. package/node_modules/tar/dist/esm/cwd-error.js +0 -14
  1619. package/node_modules/tar/dist/esm/cwd-error.js.map +0 -1
  1620. package/node_modules/tar/dist/esm/extract.d.ts +0 -3
  1621. package/node_modules/tar/dist/esm/extract.d.ts.map +0 -1
  1622. package/node_modules/tar/dist/esm/extract.js +0 -49
  1623. package/node_modules/tar/dist/esm/extract.js.map +0 -1
  1624. package/node_modules/tar/dist/esm/get-write-flag.d.ts +0 -2
  1625. package/node_modules/tar/dist/esm/get-write-flag.d.ts.map +0 -1
  1626. package/node_modules/tar/dist/esm/get-write-flag.js +0 -26
  1627. package/node_modules/tar/dist/esm/get-write-flag.js.map +0 -1
  1628. package/node_modules/tar/dist/esm/header.d.ts +0 -53
  1629. package/node_modules/tar/dist/esm/header.d.ts.map +0 -1
  1630. package/node_modules/tar/dist/esm/header.js +0 -275
  1631. package/node_modules/tar/dist/esm/header.js.map +0 -1
  1632. package/node_modules/tar/dist/esm/index.d.ts +0 -20
  1633. package/node_modules/tar/dist/esm/index.d.ts.map +0 -1
  1634. package/node_modules/tar/dist/esm/index.js +0 -20
  1635. package/node_modules/tar/dist/esm/index.js.map +0 -1
  1636. package/node_modules/tar/dist/esm/index.min.js +0 -4
  1637. package/node_modules/tar/dist/esm/index.min.js.map +0 -7
  1638. package/node_modules/tar/dist/esm/large-numbers.d.ts +0 -3
  1639. package/node_modules/tar/dist/esm/large-numbers.d.ts.map +0 -1
  1640. package/node_modules/tar/dist/esm/large-numbers.js +0 -94
  1641. package/node_modules/tar/dist/esm/large-numbers.js.map +0 -1
  1642. package/node_modules/tar/dist/esm/list.d.ts +0 -7
  1643. package/node_modules/tar/dist/esm/list.d.ts.map +0 -1
  1644. package/node_modules/tar/dist/esm/list.js +0 -105
  1645. package/node_modules/tar/dist/esm/list.js.map +0 -1
  1646. package/node_modules/tar/dist/esm/make-command.d.ts +0 -49
  1647. package/node_modules/tar/dist/esm/make-command.d.ts.map +0 -1
  1648. package/node_modules/tar/dist/esm/make-command.js +0 -48
  1649. package/node_modules/tar/dist/esm/make-command.js.map +0 -1
  1650. package/node_modules/tar/dist/esm/mkdir.d.ts +0 -25
  1651. package/node_modules/tar/dist/esm/mkdir.d.ts.map +0 -1
  1652. package/node_modules/tar/dist/esm/mkdir.js +0 -179
  1653. package/node_modules/tar/dist/esm/mkdir.js.map +0 -1
  1654. package/node_modules/tar/dist/esm/mode-fix.d.ts +0 -2
  1655. package/node_modules/tar/dist/esm/mode-fix.d.ts.map +0 -1
  1656. package/node_modules/tar/dist/esm/mode-fix.js +0 -25
  1657. package/node_modules/tar/dist/esm/mode-fix.js.map +0 -1
  1658. package/node_modules/tar/dist/esm/normalize-unicode.d.ts +0 -2
  1659. package/node_modules/tar/dist/esm/normalize-unicode.d.ts.map +0 -1
  1660. package/node_modules/tar/dist/esm/normalize-unicode.js +0 -34
  1661. package/node_modules/tar/dist/esm/normalize-unicode.js.map +0 -1
  1662. package/node_modules/tar/dist/esm/normalize-windows-path.d.ts +0 -2
  1663. package/node_modules/tar/dist/esm/normalize-windows-path.d.ts.map +0 -1
  1664. package/node_modules/tar/dist/esm/normalize-windows-path.js +0 -9
  1665. package/node_modules/tar/dist/esm/normalize-windows-path.js.map +0 -1
  1666. package/node_modules/tar/dist/esm/options.d.ts +0 -596
  1667. package/node_modules/tar/dist/esm/options.d.ts.map +0 -1
  1668. package/node_modules/tar/dist/esm/options.js +0 -54
  1669. package/node_modules/tar/dist/esm/options.js.map +0 -1
  1670. package/node_modules/tar/dist/esm/pack.d.ts +0 -105
  1671. package/node_modules/tar/dist/esm/pack.d.ts.map +0 -1
  1672. package/node_modules/tar/dist/esm/pack.js +0 -503
  1673. package/node_modules/tar/dist/esm/pack.js.map +0 -1
  1674. package/node_modules/tar/dist/esm/package.json +0 -3
  1675. package/node_modules/tar/dist/esm/parse.d.ts +0 -85
  1676. package/node_modules/tar/dist/esm/parse.d.ts.map +0 -1
  1677. package/node_modules/tar/dist/esm/parse.js +0 -606
  1678. package/node_modules/tar/dist/esm/parse.js.map +0 -1
  1679. package/node_modules/tar/dist/esm/path-reservations.d.ts +0 -11
  1680. package/node_modules/tar/dist/esm/path-reservations.d.ts.map +0 -1
  1681. package/node_modules/tar/dist/esm/path-reservations.js +0 -166
  1682. package/node_modules/tar/dist/esm/path-reservations.js.map +0 -1
  1683. package/node_modules/tar/dist/esm/pax.d.ts +0 -26
  1684. package/node_modules/tar/dist/esm/pax.d.ts.map +0 -1
  1685. package/node_modules/tar/dist/esm/pax.js +0 -154
  1686. package/node_modules/tar/dist/esm/pax.js.map +0 -1
  1687. package/node_modules/tar/dist/esm/process-umask.d.ts +0 -2
  1688. package/node_modules/tar/dist/esm/process-umask.d.ts.map +0 -1
  1689. package/node_modules/tar/dist/esm/process-umask.js +0 -3
  1690. package/node_modules/tar/dist/esm/process-umask.js.map +0 -1
  1691. package/node_modules/tar/dist/esm/read-entry.d.ts +0 -36
  1692. package/node_modules/tar/dist/esm/read-entry.d.ts.map +0 -1
  1693. package/node_modules/tar/dist/esm/read-entry.js +0 -132
  1694. package/node_modules/tar/dist/esm/read-entry.js.map +0 -1
  1695. package/node_modules/tar/dist/esm/replace.d.ts +0 -2
  1696. package/node_modules/tar/dist/esm/replace.d.ts.map +0 -1
  1697. package/node_modules/tar/dist/esm/replace.js +0 -221
  1698. package/node_modules/tar/dist/esm/replace.js.map +0 -1
  1699. package/node_modules/tar/dist/esm/strip-absolute-path.d.ts +0 -2
  1700. package/node_modules/tar/dist/esm/strip-absolute-path.d.ts.map +0 -1
  1701. package/node_modules/tar/dist/esm/strip-absolute-path.js +0 -25
  1702. package/node_modules/tar/dist/esm/strip-absolute-path.js.map +0 -1
  1703. package/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts +0 -2
  1704. package/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts.map +0 -1
  1705. package/node_modules/tar/dist/esm/strip-trailing-slashes.js +0 -14
  1706. package/node_modules/tar/dist/esm/strip-trailing-slashes.js.map +0 -1
  1707. package/node_modules/tar/dist/esm/symlink-error.d.ts +0 -9
  1708. package/node_modules/tar/dist/esm/symlink-error.d.ts.map +0 -1
  1709. package/node_modules/tar/dist/esm/symlink-error.js +0 -15
  1710. package/node_modules/tar/dist/esm/symlink-error.js.map +0 -1
  1711. package/node_modules/tar/dist/esm/types.d.ts +0 -7
  1712. package/node_modules/tar/dist/esm/types.d.ts.map +0 -1
  1713. package/node_modules/tar/dist/esm/types.js +0 -45
  1714. package/node_modules/tar/dist/esm/types.js.map +0 -1
  1715. package/node_modules/tar/dist/esm/unpack.d.ts +0 -101
  1716. package/node_modules/tar/dist/esm/unpack.d.ts.map +0 -1
  1717. package/node_modules/tar/dist/esm/unpack.js +0 -891
  1718. package/node_modules/tar/dist/esm/unpack.js.map +0 -1
  1719. package/node_modules/tar/dist/esm/update.d.ts +0 -2
  1720. package/node_modules/tar/dist/esm/update.d.ts.map +0 -1
  1721. package/node_modules/tar/dist/esm/update.js +0 -30
  1722. package/node_modules/tar/dist/esm/update.js.map +0 -1
  1723. package/node_modules/tar/dist/esm/warn-method.d.ts +0 -24
  1724. package/node_modules/tar/dist/esm/warn-method.d.ts.map +0 -1
  1725. package/node_modules/tar/dist/esm/warn-method.js +0 -27
  1726. package/node_modules/tar/dist/esm/warn-method.js.map +0 -1
  1727. package/node_modules/tar/dist/esm/winchars.d.ts +0 -3
  1728. package/node_modules/tar/dist/esm/winchars.d.ts.map +0 -1
  1729. package/node_modules/tar/dist/esm/winchars.js +0 -9
  1730. package/node_modules/tar/dist/esm/winchars.js.map +0 -1
  1731. package/node_modules/tar/dist/esm/write-entry.d.ts +0 -129
  1732. package/node_modules/tar/dist/esm/write-entry.d.ts.map +0 -1
  1733. package/node_modules/tar/dist/esm/write-entry.js +0 -656
  1734. package/node_modules/tar/dist/esm/write-entry.js.map +0 -1
  1735. package/node_modules/tar/package.json +0 -297
  1736. package/node_modules/tar-fs/.travis.yml +0 -6
  1737. package/node_modules/tar-fs/LICENSE +0 -21
  1738. package/node_modules/tar-fs/README.md +0 -165
  1739. package/node_modules/tar-fs/index.js +0 -363
  1740. package/node_modules/tar-fs/node_modules/chownr/LICENSE +0 -15
  1741. package/node_modules/tar-fs/node_modules/chownr/README.md +0 -3
  1742. package/node_modules/tar-fs/node_modules/chownr/chownr.js +0 -167
  1743. package/node_modules/tar-fs/node_modules/chownr/package.json +0 -29
  1744. package/node_modules/tar-fs/package.json +0 -41
  1745. package/node_modules/tar-fs/test/fixtures/a/hello.txt +0 -1
  1746. package/node_modules/tar-fs/test/fixtures/b/a/test.txt +0 -1
  1747. package/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
  1748. package/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
  1749. package/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
  1750. package/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
  1751. package/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
  1752. package/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
  1753. package/node_modules/tar-fs/test/fixtures/e/file +0 -0
  1754. package/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
  1755. package/node_modules/tar-fs/test/index.js +0 -346
  1756. package/node_modules/tar-stream/LICENSE +0 -21
  1757. package/node_modules/tar-stream/README.md +0 -168
  1758. package/node_modules/tar-stream/extract.js +0 -257
  1759. package/node_modules/tar-stream/headers.js +0 -295
  1760. package/node_modules/tar-stream/index.js +0 -2
  1761. package/node_modules/tar-stream/pack.js +0 -255
  1762. package/node_modules/tar-stream/package.json +0 -58
  1763. package/node_modules/tar-stream/sandbox.js +0 -11
  1764. package/node_modules/tinyglobby/LICENSE +0 -21
  1765. package/node_modules/tinyglobby/README.md +0 -25
  1766. package/node_modules/tinyglobby/dist/index.cjs +0 -334
  1767. package/node_modules/tinyglobby/dist/index.d.cts +0 -148
  1768. package/node_modules/tinyglobby/dist/index.d.mts +0 -148
  1769. package/node_modules/tinyglobby/dist/index.mjs +0 -306
  1770. package/node_modules/tinyglobby/package.json +0 -73
  1771. package/node_modules/tunnel-agent/LICENSE +0 -55
  1772. package/node_modules/tunnel-agent/README.md +0 -4
  1773. package/node_modules/tunnel-agent/index.js +0 -244
  1774. package/node_modules/tunnel-agent/package.json +0 -22
  1775. package/node_modules/undici/LICENSE +0 -21
  1776. package/node_modules/undici/README.md +0 -741
  1777. package/node_modules/undici/docs/docs/api/Agent.md +0 -84
  1778. package/node_modules/undici/docs/docs/api/BalancedPool.md +0 -99
  1779. package/node_modules/undici/docs/docs/api/CacheStorage.md +0 -30
  1780. package/node_modules/undici/docs/docs/api/CacheStore.md +0 -164
  1781. package/node_modules/undici/docs/docs/api/Client.md +0 -285
  1782. package/node_modules/undici/docs/docs/api/ClientStats.md +0 -27
  1783. package/node_modules/undici/docs/docs/api/Connector.md +0 -115
  1784. package/node_modules/undici/docs/docs/api/ContentType.md +0 -57
  1785. package/node_modules/undici/docs/docs/api/Cookies.md +0 -101
  1786. package/node_modules/undici/docs/docs/api/Debug.md +0 -62
  1787. package/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +0 -315
  1788. package/node_modules/undici/docs/docs/api/Dispatcher.md +0 -1392
  1789. package/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +0 -159
  1790. package/node_modules/undici/docs/docs/api/Errors.md +0 -49
  1791. package/node_modules/undici/docs/docs/api/EventSource.md +0 -45
  1792. package/node_modules/undici/docs/docs/api/Fetch.md +0 -60
  1793. package/node_modules/undici/docs/docs/api/GlobalInstallation.md +0 -139
  1794. package/node_modules/undici/docs/docs/api/H2CClient.md +0 -263
  1795. package/node_modules/undici/docs/docs/api/MockAgent.md +0 -603
  1796. package/node_modules/undici/docs/docs/api/MockCallHistory.md +0 -197
  1797. package/node_modules/undici/docs/docs/api/MockCallHistoryLog.md +0 -43
  1798. package/node_modules/undici/docs/docs/api/MockClient.md +0 -81
  1799. package/node_modules/undici/docs/docs/api/MockErrors.md +0 -12
  1800. package/node_modules/undici/docs/docs/api/MockPool.md +0 -555
  1801. package/node_modules/undici/docs/docs/api/Pool.md +0 -84
  1802. package/node_modules/undici/docs/docs/api/PoolStats.md +0 -35
  1803. package/node_modules/undici/docs/docs/api/ProxyAgent.md +0 -229
  1804. package/node_modules/undici/docs/docs/api/RedirectHandler.md +0 -93
  1805. package/node_modules/undici/docs/docs/api/RetryAgent.md +0 -50
  1806. package/node_modules/undici/docs/docs/api/RetryHandler.md +0 -118
  1807. package/node_modules/undici/docs/docs/api/RoundRobinPool.md +0 -145
  1808. package/node_modules/undici/docs/docs/api/SnapshotAgent.md +0 -616
  1809. package/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +0 -274
  1810. package/node_modules/undici/docs/docs/api/Util.md +0 -25
  1811. package/node_modules/undici/docs/docs/api/WebSocket.md +0 -141
  1812. package/node_modules/undici/docs/docs/api/api-lifecycle.md +0 -91
  1813. package/node_modules/undici/docs/docs/best-practices/client-certificate.md +0 -64
  1814. package/node_modules/undici/docs/docs/best-practices/crawling.md +0 -58
  1815. package/node_modules/undici/docs/docs/best-practices/mocking-request.md +0 -190
  1816. package/node_modules/undici/docs/docs/best-practices/proxy.md +0 -127
  1817. package/node_modules/undici/docs/docs/best-practices/undici-vs-builtin-fetch.md +0 -224
  1818. package/node_modules/undici/docs/docs/best-practices/writing-tests.md +0 -63
  1819. package/node_modules/undici/index-fetch.js +0 -65
  1820. package/node_modules/undici/index.d.ts +0 -3
  1821. package/node_modules/undici/index.js +0 -234
  1822. package/node_modules/undici/lib/api/abort-signal.js +0 -59
  1823. package/node_modules/undici/lib/api/api-connect.js +0 -110
  1824. package/node_modules/undici/lib/api/api-pipeline.js +0 -252
  1825. package/node_modules/undici/lib/api/api-request.js +0 -214
  1826. package/node_modules/undici/lib/api/api-stream.js +0 -209
  1827. package/node_modules/undici/lib/api/api-upgrade.js +0 -111
  1828. package/node_modules/undici/lib/api/index.js +0 -7
  1829. package/node_modules/undici/lib/api/readable.js +0 -580
  1830. package/node_modules/undici/lib/cache/memory-cache-store.js +0 -234
  1831. package/node_modules/undici/lib/cache/sqlite-cache-store.js +0 -461
  1832. package/node_modules/undici/lib/core/connect.js +0 -137
  1833. package/node_modules/undici/lib/core/constants.js +0 -143
  1834. package/node_modules/undici/lib/core/diagnostics.js +0 -227
  1835. package/node_modules/undici/lib/core/errors.js +0 -477
  1836. package/node_modules/undici/lib/core/request.js +0 -438
  1837. package/node_modules/undici/lib/core/socks5-client.js +0 -407
  1838. package/node_modules/undici/lib/core/socks5-utils.js +0 -203
  1839. package/node_modules/undici/lib/core/symbols.js +0 -75
  1840. package/node_modules/undici/lib/core/tree.js +0 -160
  1841. package/node_modules/undici/lib/core/util.js +0 -992
  1842. package/node_modules/undici/lib/dispatcher/agent.js +0 -158
  1843. package/node_modules/undici/lib/dispatcher/balanced-pool.js +0 -219
  1844. package/node_modules/undici/lib/dispatcher/client-h1.js +0 -1610
  1845. package/node_modules/undici/lib/dispatcher/client-h2.js +0 -995
  1846. package/node_modules/undici/lib/dispatcher/client.js +0 -659
  1847. package/node_modules/undici/lib/dispatcher/dispatcher-base.js +0 -165
  1848. package/node_modules/undici/lib/dispatcher/dispatcher.js +0 -48
  1849. package/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +0 -146
  1850. package/node_modules/undici/lib/dispatcher/fixed-queue.js +0 -135
  1851. package/node_modules/undici/lib/dispatcher/h2c-client.js +0 -51
  1852. package/node_modules/undici/lib/dispatcher/pool-base.js +0 -214
  1853. package/node_modules/undici/lib/dispatcher/pool.js +0 -118
  1854. package/node_modules/undici/lib/dispatcher/proxy-agent.js +0 -318
  1855. package/node_modules/undici/lib/dispatcher/retry-agent.js +0 -35
  1856. package/node_modules/undici/lib/dispatcher/round-robin-pool.js +0 -137
  1857. package/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +0 -249
  1858. package/node_modules/undici/lib/encoding/index.js +0 -33
  1859. package/node_modules/undici/lib/global.js +0 -50
  1860. package/node_modules/undici/lib/handler/cache-handler.js +0 -578
  1861. package/node_modules/undici/lib/handler/cache-revalidation-handler.js +0 -124
  1862. package/node_modules/undici/lib/handler/decorator-handler.js +0 -67
  1863. package/node_modules/undici/lib/handler/deduplication-handler.js +0 -460
  1864. package/node_modules/undici/lib/handler/redirect-handler.js +0 -238
  1865. package/node_modules/undici/lib/handler/retry-handler.js +0 -394
  1866. package/node_modules/undici/lib/handler/unwrap-handler.js +0 -100
  1867. package/node_modules/undici/lib/handler/wrap-handler.js +0 -105
  1868. package/node_modules/undici/lib/interceptor/cache.js +0 -495
  1869. package/node_modules/undici/lib/interceptor/decompress.js +0 -259
  1870. package/node_modules/undici/lib/interceptor/deduplicate.js +0 -117
  1871. package/node_modules/undici/lib/interceptor/dns.js +0 -571
  1872. package/node_modules/undici/lib/interceptor/dump.js +0 -112
  1873. package/node_modules/undici/lib/interceptor/redirect.js +0 -21
  1874. package/node_modules/undici/lib/interceptor/response-error.js +0 -95
  1875. package/node_modules/undici/lib/interceptor/retry.js +0 -19
  1876. package/node_modules/undici/lib/llhttp/.gitkeep +0 -0
  1877. package/node_modules/undici/lib/llhttp/constants.d.ts +0 -195
  1878. package/node_modules/undici/lib/llhttp/constants.js +0 -531
  1879. package/node_modules/undici/lib/llhttp/llhttp-wasm.js +0 -15
  1880. package/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +0 -15
  1881. package/node_modules/undici/lib/llhttp/utils.d.ts +0 -2
  1882. package/node_modules/undici/lib/llhttp/utils.js +0 -12
  1883. package/node_modules/undici/lib/mock/mock-agent.js +0 -232
  1884. package/node_modules/undici/lib/mock/mock-call-history.js +0 -248
  1885. package/node_modules/undici/lib/mock/mock-client.js +0 -68
  1886. package/node_modules/undici/lib/mock/mock-errors.js +0 -29
  1887. package/node_modules/undici/lib/mock/mock-interceptor.js +0 -209
  1888. package/node_modules/undici/lib/mock/mock-pool.js +0 -68
  1889. package/node_modules/undici/lib/mock/mock-symbols.js +0 -32
  1890. package/node_modules/undici/lib/mock/mock-utils.js +0 -486
  1891. package/node_modules/undici/lib/mock/pending-interceptors-formatter.js +0 -43
  1892. package/node_modules/undici/lib/mock/snapshot-agent.js +0 -353
  1893. package/node_modules/undici/lib/mock/snapshot-recorder.js +0 -588
  1894. package/node_modules/undici/lib/mock/snapshot-utils.js +0 -158
  1895. package/node_modules/undici/lib/util/cache.js +0 -407
  1896. package/node_modules/undici/lib/util/date.js +0 -653
  1897. package/node_modules/undici/lib/util/promise.js +0 -28
  1898. package/node_modules/undici/lib/util/runtime-features.js +0 -124
  1899. package/node_modules/undici/lib/util/stats.js +0 -32
  1900. package/node_modules/undici/lib/util/timers.js +0 -425
  1901. package/node_modules/undici/lib/web/cache/cache.js +0 -864
  1902. package/node_modules/undici/lib/web/cache/cachestorage.js +0 -152
  1903. package/node_modules/undici/lib/web/cache/util.js +0 -45
  1904. package/node_modules/undici/lib/web/cookies/constants.js +0 -12
  1905. package/node_modules/undici/lib/web/cookies/index.js +0 -199
  1906. package/node_modules/undici/lib/web/cookies/parse.js +0 -322
  1907. package/node_modules/undici/lib/web/cookies/util.js +0 -282
  1908. package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +0 -399
  1909. package/node_modules/undici/lib/web/eventsource/eventsource.js +0 -501
  1910. package/node_modules/undici/lib/web/eventsource/util.js +0 -29
  1911. package/node_modules/undici/lib/web/fetch/LICENSE +0 -21
  1912. package/node_modules/undici/lib/web/fetch/body.js +0 -509
  1913. package/node_modules/undici/lib/web/fetch/constants.js +0 -131
  1914. package/node_modules/undici/lib/web/fetch/data-url.js +0 -596
  1915. package/node_modules/undici/lib/web/fetch/formdata-parser.js +0 -575
  1916. package/node_modules/undici/lib/web/fetch/formdata.js +0 -259
  1917. package/node_modules/undici/lib/web/fetch/global.js +0 -40
  1918. package/node_modules/undici/lib/web/fetch/headers.js +0 -719
  1919. package/node_modules/undici/lib/web/fetch/index.js +0 -2410
  1920. package/node_modules/undici/lib/web/fetch/request.js +0 -1115
  1921. package/node_modules/undici/lib/web/fetch/response.js +0 -641
  1922. package/node_modules/undici/lib/web/fetch/util.js +0 -1522
  1923. package/node_modules/undici/lib/web/infra/index.js +0 -229
  1924. package/node_modules/undici/lib/web/subresource-integrity/Readme.md +0 -9
  1925. package/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +0 -307
  1926. package/node_modules/undici/lib/web/webidl/index.js +0 -1006
  1927. package/node_modules/undici/lib/web/websocket/connection.js +0 -329
  1928. package/node_modules/undici/lib/web/websocket/constants.js +0 -126
  1929. package/node_modules/undici/lib/web/websocket/events.js +0 -331
  1930. package/node_modules/undici/lib/web/websocket/frame.js +0 -133
  1931. package/node_modules/undici/lib/web/websocket/permessage-deflate.js +0 -118
  1932. package/node_modules/undici/lib/web/websocket/receiver.js +0 -450
  1933. package/node_modules/undici/lib/web/websocket/sender.js +0 -109
  1934. package/node_modules/undici/lib/web/websocket/stream/websocketerror.js +0 -104
  1935. package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +0 -497
  1936. package/node_modules/undici/lib/web/websocket/util.js +0 -347
  1937. package/node_modules/undici/lib/web/websocket/websocket.js +0 -751
  1938. package/node_modules/undici/package.json +0 -152
  1939. package/node_modules/undici/scripts/strip-comments.js +0 -10
  1940. package/node_modules/undici/types/README.md +0 -6
  1941. package/node_modules/undici/types/agent.d.ts +0 -32
  1942. package/node_modules/undici/types/api.d.ts +0 -43
  1943. package/node_modules/undici/types/balanced-pool.d.ts +0 -30
  1944. package/node_modules/undici/types/cache-interceptor.d.ts +0 -179
  1945. package/node_modules/undici/types/cache.d.ts +0 -36
  1946. package/node_modules/undici/types/client-stats.d.ts +0 -15
  1947. package/node_modules/undici/types/client.d.ts +0 -123
  1948. package/node_modules/undici/types/connector.d.ts +0 -36
  1949. package/node_modules/undici/types/content-type.d.ts +0 -21
  1950. package/node_modules/undici/types/cookies.d.ts +0 -30
  1951. package/node_modules/undici/types/diagnostics-channel.d.ts +0 -74
  1952. package/node_modules/undici/types/dispatcher.d.ts +0 -273
  1953. package/node_modules/undici/types/env-http-proxy-agent.d.ts +0 -22
  1954. package/node_modules/undici/types/errors.d.ts +0 -177
  1955. package/node_modules/undici/types/eventsource.d.ts +0 -66
  1956. package/node_modules/undici/types/fetch.d.ts +0 -231
  1957. package/node_modules/undici/types/formdata.d.ts +0 -114
  1958. package/node_modules/undici/types/global-dispatcher.d.ts +0 -9
  1959. package/node_modules/undici/types/global-origin.d.ts +0 -7
  1960. package/node_modules/undici/types/h2c-client.d.ts +0 -73
  1961. package/node_modules/undici/types/handlers.d.ts +0 -14
  1962. package/node_modules/undici/types/header.d.ts +0 -160
  1963. package/node_modules/undici/types/index.d.ts +0 -91
  1964. package/node_modules/undici/types/interceptors.d.ts +0 -80
  1965. package/node_modules/undici/types/mock-agent.d.ts +0 -68
  1966. package/node_modules/undici/types/mock-call-history.d.ts +0 -111
  1967. package/node_modules/undici/types/mock-client.d.ts +0 -27
  1968. package/node_modules/undici/types/mock-errors.d.ts +0 -12
  1969. package/node_modules/undici/types/mock-interceptor.d.ts +0 -94
  1970. package/node_modules/undici/types/mock-pool.d.ts +0 -27
  1971. package/node_modules/undici/types/patch.d.ts +0 -29
  1972. package/node_modules/undici/types/pool-stats.d.ts +0 -19
  1973. package/node_modules/undici/types/pool.d.ts +0 -41
  1974. package/node_modules/undici/types/proxy-agent.d.ts +0 -29
  1975. package/node_modules/undici/types/readable.d.ts +0 -68
  1976. package/node_modules/undici/types/retry-agent.d.ts +0 -8
  1977. package/node_modules/undici/types/retry-handler.d.ts +0 -125
  1978. package/node_modules/undici/types/round-robin-pool.d.ts +0 -41
  1979. package/node_modules/undici/types/snapshot-agent.d.ts +0 -109
  1980. package/node_modules/undici/types/socks5-proxy-agent.d.ts +0 -25
  1981. package/node_modules/undici/types/util.d.ts +0 -18
  1982. package/node_modules/undici/types/utility.d.ts +0 -7
  1983. package/node_modules/undici/types/webidl.d.ts +0 -347
  1984. package/node_modules/undici/types/websocket.d.ts +0 -188
  1985. package/node_modules/util-deprecate/History.md +0 -16
  1986. package/node_modules/util-deprecate/LICENSE +0 -24
  1987. package/node_modules/util-deprecate/README.md +0 -53
  1988. package/node_modules/util-deprecate/browser.js +0 -67
  1989. package/node_modules/util-deprecate/node.js +0 -6
  1990. package/node_modules/util-deprecate/package.json +0 -27
  1991. package/node_modules/which/LICENSE +0 -15
  1992. package/node_modules/which/README.md +0 -51
  1993. package/node_modules/which/bin/which.js +0 -52
  1994. package/node_modules/which/lib/index.js +0 -111
  1995. package/node_modules/which/package.json +0 -52
  1996. package/node_modules/wrappy/LICENSE +0 -15
  1997. package/node_modules/wrappy/README.md +0 -36
  1998. package/node_modules/wrappy/package.json +0 -29
  1999. package/node_modules/wrappy/wrappy.js +0 -33
  2000. package/node_modules/yallist/LICENSE.md +0 -63
  2001. package/node_modules/yallist/README.md +0 -205
  2002. package/node_modules/yallist/dist/commonjs/index.d.ts +0 -39
  2003. package/node_modules/yallist/dist/commonjs/index.d.ts.map +0 -1
  2004. package/node_modules/yallist/dist/commonjs/index.js +0 -384
  2005. package/node_modules/yallist/dist/commonjs/index.js.map +0 -1
  2006. package/node_modules/yallist/dist/commonjs/package.json +0 -3
  2007. package/node_modules/yallist/dist/esm/index.d.ts +0 -39
  2008. package/node_modules/yallist/dist/esm/index.d.ts.map +0 -1
  2009. package/node_modules/yallist/dist/esm/index.js +0 -379
  2010. package/node_modules/yallist/dist/esm/index.js.map +0 -1
  2011. package/node_modules/yallist/dist/esm/package.json +0 -3
  2012. package/node_modules/yallist/package.json +0 -68
  2013. package/node_modules/zod/LICENSE +0 -21
  2014. package/node_modules/zod/README.md +0 -208
  2015. package/node_modules/zod/index.cjs +0 -33
  2016. package/node_modules/zod/index.d.cts +0 -4
  2017. package/node_modules/zod/index.d.ts +0 -4
  2018. package/node_modules/zod/index.js +0 -4
  2019. package/node_modules/zod/package.json +0 -118
  2020. package/node_modules/zod/src/index.ts +0 -4
  2021. package/node_modules/zod/src/v3/ZodError.ts +0 -330
  2022. package/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
  2023. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
  2024. package/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
  2025. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
  2026. package/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
  2027. package/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
  2028. package/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
  2029. package/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
  2030. package/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
  2031. package/node_modules/zod/src/v3/errors.ts +0 -13
  2032. package/node_modules/zod/src/v3/external.ts +0 -6
  2033. package/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
  2034. package/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
  2035. package/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
  2036. package/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
  2037. package/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
  2038. package/node_modules/zod/src/v3/helpers/util.ts +0 -224
  2039. package/node_modules/zod/src/v3/index.ts +0 -4
  2040. package/node_modules/zod/src/v3/locales/en.ts +0 -124
  2041. package/node_modules/zod/src/v3/standard-schema.ts +0 -113
  2042. package/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
  2043. package/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
  2044. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
  2045. package/node_modules/zod/src/v3/tests/array.test.ts +0 -71
  2046. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
  2047. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
  2048. package/node_modules/zod/src/v3/tests/base.test.ts +0 -29
  2049. package/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
  2050. package/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
  2051. package/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
  2052. package/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
  2053. package/node_modules/zod/src/v3/tests/complex.test.ts +0 -56
  2054. package/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
  2055. package/node_modules/zod/src/v3/tests/date.test.ts +0 -32
  2056. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
  2057. package/node_modules/zod/src/v3/tests/default.test.ts +0 -112
  2058. package/node_modules/zod/src/v3/tests/description.test.ts +0 -33
  2059. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
  2060. package/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
  2061. package/node_modules/zod/src/v3/tests/error.test.ts +0 -551
  2062. package/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
  2063. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
  2064. package/node_modules/zod/src/v3/tests/function.test.ts +0 -257
  2065. package/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
  2066. package/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
  2067. package/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
  2068. package/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
  2069. package/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
  2070. package/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
  2071. package/node_modules/zod/src/v3/tests/map.test.ts +0 -110
  2072. package/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
  2073. package/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
  2074. package/node_modules/zod/src/v3/tests/nan.test.ts +0 -21
  2075. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
  2076. package/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
  2077. package/node_modules/zod/src/v3/tests/number.test.ts +0 -176
  2078. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
  2079. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
  2080. package/node_modules/zod/src/v3/tests/object.test.ts +0 -434
  2081. package/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
  2082. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
  2083. package/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
  2084. package/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
  2085. package/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
  2086. package/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
  2087. package/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
  2088. package/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
  2089. package/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
  2090. package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
  2091. package/node_modules/zod/src/v3/tests/record.test.ts +0 -171
  2092. package/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
  2093. package/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
  2094. package/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
  2095. package/node_modules/zod/src/v3/tests/set.test.ts +0 -142
  2096. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
  2097. package/node_modules/zod/src/v3/tests/string.test.ts +0 -916
  2098. package/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
  2099. package/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
  2100. package/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
  2101. package/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
  2102. package/node_modules/zod/src/v3/tests/void.test.ts +0 -15
  2103. package/node_modules/zod/src/v3/types.ts +0 -5136
  2104. package/node_modules/zod/src/v4/classic/checks.ts +0 -30
  2105. package/node_modules/zod/src/v4/classic/coerce.ts +0 -27
  2106. package/node_modules/zod/src/v4/classic/compat.ts +0 -66
  2107. package/node_modules/zod/src/v4/classic/errors.ts +0 -75
  2108. package/node_modules/zod/src/v4/classic/external.ts +0 -50
  2109. package/node_modules/zod/src/v4/classic/index.ts +0 -5
  2110. package/node_modules/zod/src/v4/classic/iso.ts +0 -90
  2111. package/node_modules/zod/src/v4/classic/parse.ts +0 -33
  2112. package/node_modules/zod/src/v4/classic/schemas.ts +0 -2054
  2113. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
  2114. package/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
  2115. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -210
  2116. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
  2117. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
  2118. package/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
  2119. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
  2120. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -63
  2121. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -252
  2122. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
  2123. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
  2124. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -352
  2125. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
  2126. package/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -31
  2127. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -296
  2128. package/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -313
  2129. package/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
  2130. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -619
  2131. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
  2132. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -527
  2133. package/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
  2134. package/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -91
  2135. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -175
  2136. package/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -268
  2137. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
  2138. package/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -829
  2139. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -34
  2140. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -171
  2141. package/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -108
  2142. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
  2143. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -92
  2144. package/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -196
  2145. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
  2146. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
  2147. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -86
  2148. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
  2149. package/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -247
  2150. package/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -563
  2151. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -123
  2152. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -147
  2153. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -127
  2154. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -81
  2155. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -37
  2156. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -298
  2157. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
  2158. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
  2159. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
  2160. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
  2161. package/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -342
  2162. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -356
  2163. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -532
  2164. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -204
  2165. package/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -179
  2166. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -57
  2167. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -109
  2168. package/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -881
  2169. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -66
  2170. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -758
  2171. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -2314
  2172. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -250
  2173. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -163
  2174. package/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -94
  2175. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
  2176. package/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
  2177. package/node_modules/zod/src/v4/core/api.ts +0 -1594
  2178. package/node_modules/zod/src/v4/core/checks.ts +0 -1283
  2179. package/node_modules/zod/src/v4/core/config.ts +0 -15
  2180. package/node_modules/zod/src/v4/core/core.ts +0 -134
  2181. package/node_modules/zod/src/v4/core/doc.ts +0 -44
  2182. package/node_modules/zod/src/v4/core/errors.ts +0 -424
  2183. package/node_modules/zod/src/v4/core/function.ts +0 -176
  2184. package/node_modules/zod/src/v4/core/index.ts +0 -15
  2185. package/node_modules/zod/src/v4/core/json-schema.ts +0 -143
  2186. package/node_modules/zod/src/v4/core/parse.ts +0 -94
  2187. package/node_modules/zod/src/v4/core/regexes.ts +0 -135
  2188. package/node_modules/zod/src/v4/core/registries.ts +0 -96
  2189. package/node_modules/zod/src/v4/core/schemas.ts +0 -3842
  2190. package/node_modules/zod/src/v4/core/standard-schema.ts +0 -64
  2191. package/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
  2192. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
  2193. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
  2194. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
  2195. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
  2196. package/node_modules/zod/src/v4/core/to-json-schema.ts +0 -977
  2197. package/node_modules/zod/src/v4/core/util.ts +0 -775
  2198. package/node_modules/zod/src/v4/core/versions.ts +0 -5
  2199. package/node_modules/zod/src/v4/core/zsf.ts +0 -323
  2200. package/node_modules/zod/src/v4/index.ts +0 -4
  2201. package/node_modules/zod/src/v4/locales/ar.ts +0 -125
  2202. package/node_modules/zod/src/v4/locales/az.ts +0 -121
  2203. package/node_modules/zod/src/v4/locales/be.ts +0 -184
  2204. package/node_modules/zod/src/v4/locales/ca.ts +0 -127
  2205. package/node_modules/zod/src/v4/locales/cs.ts +0 -142
  2206. package/node_modules/zod/src/v4/locales/de.ts +0 -124
  2207. package/node_modules/zod/src/v4/locales/en.ts +0 -127
  2208. package/node_modules/zod/src/v4/locales/eo.ts +0 -125
  2209. package/node_modules/zod/src/v4/locales/es.ts +0 -125
  2210. package/node_modules/zod/src/v4/locales/fa.ts +0 -134
  2211. package/node_modules/zod/src/v4/locales/fi.ts +0 -131
  2212. package/node_modules/zod/src/v4/locales/fr-CA.ts +0 -126
  2213. package/node_modules/zod/src/v4/locales/fr.ts +0 -124
  2214. package/node_modules/zod/src/v4/locales/he.ts +0 -125
  2215. package/node_modules/zod/src/v4/locales/hu.ts +0 -126
  2216. package/node_modules/zod/src/v4/locales/id.ts +0 -125
  2217. package/node_modules/zod/src/v4/locales/index.ts +0 -39
  2218. package/node_modules/zod/src/v4/locales/it.ts +0 -125
  2219. package/node_modules/zod/src/v4/locales/ja.ts +0 -122
  2220. package/node_modules/zod/src/v4/locales/kh.ts +0 -126
  2221. package/node_modules/zod/src/v4/locales/ko.ts +0 -131
  2222. package/node_modules/zod/src/v4/locales/mk.ts +0 -127
  2223. package/node_modules/zod/src/v4/locales/ms.ts +0 -124
  2224. package/node_modules/zod/src/v4/locales/nl.ts +0 -126
  2225. package/node_modules/zod/src/v4/locales/no.ts +0 -124
  2226. package/node_modules/zod/src/v4/locales/ota.ts +0 -125
  2227. package/node_modules/zod/src/v4/locales/pl.ts +0 -126
  2228. package/node_modules/zod/src/v4/locales/ps.ts +0 -133
  2229. package/node_modules/zod/src/v4/locales/pt.ts +0 -123
  2230. package/node_modules/zod/src/v4/locales/ru.ts +0 -184
  2231. package/node_modules/zod/src/v4/locales/sl.ts +0 -126
  2232. package/node_modules/zod/src/v4/locales/sv.ts +0 -127
  2233. package/node_modules/zod/src/v4/locales/ta.ts +0 -125
  2234. package/node_modules/zod/src/v4/locales/th.ts +0 -126
  2235. package/node_modules/zod/src/v4/locales/tr.ts +0 -121
  2236. package/node_modules/zod/src/v4/locales/ua.ts +0 -126
  2237. package/node_modules/zod/src/v4/locales/ur.ts +0 -126
  2238. package/node_modules/zod/src/v4/locales/vi.ts +0 -125
  2239. package/node_modules/zod/src/v4/locales/zh-CN.ts +0 -123
  2240. package/node_modules/zod/src/v4/locales/zh-TW.ts +0 -125
  2241. package/node_modules/zod/src/v4/mini/checks.ts +0 -32
  2242. package/node_modules/zod/src/v4/mini/coerce.ts +0 -22
  2243. package/node_modules/zod/src/v4/mini/external.ts +0 -40
  2244. package/node_modules/zod/src/v4/mini/index.ts +0 -3
  2245. package/node_modules/zod/src/v4/mini/iso.ts +0 -62
  2246. package/node_modules/zod/src/v4/mini/parse.ts +0 -1
  2247. package/node_modules/zod/src/v4/mini/schemas.ts +0 -1579
  2248. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
  2249. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -51
  2250. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
  2251. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
  2252. package/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
  2253. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -43
  2254. package/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -871
  2255. package/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
  2256. package/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -185
  2257. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
  2258. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -275
  2259. package/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -299
  2260. package/node_modules/zod/src/v4-mini/index.ts +0 -1
  2261. package/node_modules/zod/v3/ZodError.cjs +0 -138
  2262. package/node_modules/zod/v3/ZodError.d.cts +0 -164
  2263. package/node_modules/zod/v3/ZodError.d.ts +0 -164
  2264. package/node_modules/zod/v3/ZodError.js +0 -133
  2265. package/node_modules/zod/v3/errors.cjs +0 -17
  2266. package/node_modules/zod/v3/errors.d.cts +0 -5
  2267. package/node_modules/zod/v3/errors.d.ts +0 -5
  2268. package/node_modules/zod/v3/errors.js +0 -9
  2269. package/node_modules/zod/v3/external.cjs +0 -22
  2270. package/node_modules/zod/v3/external.d.cts +0 -6
  2271. package/node_modules/zod/v3/external.d.ts +0 -6
  2272. package/node_modules/zod/v3/external.js +0 -6
  2273. package/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
  2274. package/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
  2275. package/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
  2276. package/node_modules/zod/v3/helpers/enumUtil.js +0 -1
  2277. package/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
  2278. package/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
  2279. package/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
  2280. package/node_modules/zod/v3/helpers/errorUtil.js +0 -6
  2281. package/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
  2282. package/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
  2283. package/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
  2284. package/node_modules/zod/v3/helpers/parseUtil.js +0 -109
  2285. package/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
  2286. package/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
  2287. package/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
  2288. package/node_modules/zod/v3/helpers/partialUtil.js +0 -1
  2289. package/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
  2290. package/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
  2291. package/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
  2292. package/node_modules/zod/v3/helpers/typeAliases.js +0 -1
  2293. package/node_modules/zod/v3/helpers/util.cjs +0 -137
  2294. package/node_modules/zod/v3/helpers/util.d.cts +0 -85
  2295. package/node_modules/zod/v3/helpers/util.d.ts +0 -85
  2296. package/node_modules/zod/v3/helpers/util.js +0 -133
  2297. package/node_modules/zod/v3/index.cjs +0 -33
  2298. package/node_modules/zod/v3/index.d.cts +0 -4
  2299. package/node_modules/zod/v3/index.d.ts +0 -4
  2300. package/node_modules/zod/v3/index.js +0 -4
  2301. package/node_modules/zod/v3/locales/en.cjs +0 -111
  2302. package/node_modules/zod/v3/locales/en.d.cts +0 -3
  2303. package/node_modules/zod/v3/locales/en.d.ts +0 -3
  2304. package/node_modules/zod/v3/locales/en.js +0 -109
  2305. package/node_modules/zod/v3/standard-schema.cjs +0 -2
  2306. package/node_modules/zod/v3/standard-schema.d.cts +0 -102
  2307. package/node_modules/zod/v3/standard-schema.d.ts +0 -102
  2308. package/node_modules/zod/v3/standard-schema.js +0 -1
  2309. package/node_modules/zod/v3/types.cjs +0 -3775
  2310. package/node_modules/zod/v3/types.d.cts +0 -1031
  2311. package/node_modules/zod/v3/types.d.ts +0 -1031
  2312. package/node_modules/zod/v3/types.js +0 -3693
  2313. package/node_modules/zod/v4/classic/checks.cjs +0 -32
  2314. package/node_modules/zod/v4/classic/checks.d.cts +0 -1
  2315. package/node_modules/zod/v4/classic/checks.d.ts +0 -1
  2316. package/node_modules/zod/v4/classic/checks.js +0 -1
  2317. package/node_modules/zod/v4/classic/coerce.cjs +0 -47
  2318. package/node_modules/zod/v4/classic/coerce.d.cts +0 -17
  2319. package/node_modules/zod/v4/classic/coerce.d.ts +0 -17
  2320. package/node_modules/zod/v4/classic/coerce.js +0 -17
  2321. package/node_modules/zod/v4/classic/compat.cjs +0 -57
  2322. package/node_modules/zod/v4/classic/compat.d.cts +0 -46
  2323. package/node_modules/zod/v4/classic/compat.d.ts +0 -46
  2324. package/node_modules/zod/v4/classic/compat.js +0 -27
  2325. package/node_modules/zod/v4/classic/errors.cjs +0 -67
  2326. package/node_modules/zod/v4/classic/errors.d.cts +0 -30
  2327. package/node_modules/zod/v4/classic/errors.d.ts +0 -30
  2328. package/node_modules/zod/v4/classic/errors.js +0 -41
  2329. package/node_modules/zod/v4/classic/external.cjs +0 -70
  2330. package/node_modules/zod/v4/classic/external.d.cts +0 -13
  2331. package/node_modules/zod/v4/classic/external.d.ts +0 -13
  2332. package/node_modules/zod/v4/classic/external.js +0 -18
  2333. package/node_modules/zod/v4/classic/index.cjs +0 -33
  2334. package/node_modules/zod/v4/classic/index.d.cts +0 -4
  2335. package/node_modules/zod/v4/classic/index.d.ts +0 -4
  2336. package/node_modules/zod/v4/classic/index.js +0 -4
  2337. package/node_modules/zod/v4/classic/iso.cjs +0 -60
  2338. package/node_modules/zod/v4/classic/iso.d.cts +0 -22
  2339. package/node_modules/zod/v4/classic/iso.d.ts +0 -22
  2340. package/node_modules/zod/v4/classic/iso.js +0 -30
  2341. package/node_modules/zod/v4/classic/parse.cjs +0 -32
  2342. package/node_modules/zod/v4/classic/parse.d.cts +0 -23
  2343. package/node_modules/zod/v4/classic/parse.d.ts +0 -23
  2344. package/node_modules/zod/v4/classic/parse.js +0 -6
  2345. package/node_modules/zod/v4/classic/schemas.cjs +0 -1109
  2346. package/node_modules/zod/v4/classic/schemas.d.cts +0 -630
  2347. package/node_modules/zod/v4/classic/schemas.d.ts +0 -630
  2348. package/node_modules/zod/v4/classic/schemas.js +0 -1006
  2349. package/node_modules/zod/v4/core/api.cjs +0 -1039
  2350. package/node_modules/zod/v4/core/api.d.cts +0 -284
  2351. package/node_modules/zod/v4/core/api.d.ts +0 -284
  2352. package/node_modules/zod/v4/core/api.js +0 -906
  2353. package/node_modules/zod/v4/core/checks.cjs +0 -591
  2354. package/node_modules/zod/v4/core/checks.d.cts +0 -278
  2355. package/node_modules/zod/v4/core/checks.d.ts +0 -278
  2356. package/node_modules/zod/v4/core/checks.js +0 -565
  2357. package/node_modules/zod/v4/core/core.cjs +0 -67
  2358. package/node_modules/zod/v4/core/core.d.cts +0 -49
  2359. package/node_modules/zod/v4/core/core.d.ts +0 -49
  2360. package/node_modules/zod/v4/core/core.js +0 -61
  2361. package/node_modules/zod/v4/core/doc.cjs +0 -39
  2362. package/node_modules/zod/v4/core/doc.d.cts +0 -14
  2363. package/node_modules/zod/v4/core/doc.d.ts +0 -14
  2364. package/node_modules/zod/v4/core/doc.js +0 -35
  2365. package/node_modules/zod/v4/core/errors.cjs +0 -226
  2366. package/node_modules/zod/v4/core/errors.d.cts +0 -208
  2367. package/node_modules/zod/v4/core/errors.d.ts +0 -208
  2368. package/node_modules/zod/v4/core/errors.js +0 -195
  2369. package/node_modules/zod/v4/core/function.cjs +0 -102
  2370. package/node_modules/zod/v4/core/function.d.cts +0 -52
  2371. package/node_modules/zod/v4/core/function.d.ts +0 -52
  2372. package/node_modules/zod/v4/core/function.js +0 -75
  2373. package/node_modules/zod/v4/core/index.cjs +0 -44
  2374. package/node_modules/zod/v4/core/index.d.cts +0 -15
  2375. package/node_modules/zod/v4/core/index.d.ts +0 -15
  2376. package/node_modules/zod/v4/core/index.js +0 -15
  2377. package/node_modules/zod/v4/core/json-schema.cjs +0 -2
  2378. package/node_modules/zod/v4/core/json-schema.d.cts +0 -87
  2379. package/node_modules/zod/v4/core/json-schema.d.ts +0 -87
  2380. package/node_modules/zod/v4/core/json-schema.js +0 -1
  2381. package/node_modules/zod/v4/core/parse.cjs +0 -87
  2382. package/node_modules/zod/v4/core/parse.d.cts +0 -25
  2383. package/node_modules/zod/v4/core/parse.d.ts +0 -25
  2384. package/node_modules/zod/v4/core/parse.js +0 -57
  2385. package/node_modules/zod/v4/core/regexes.cjs +0 -103
  2386. package/node_modules/zod/v4/core/regexes.d.cts +0 -62
  2387. package/node_modules/zod/v4/core/regexes.d.ts +0 -62
  2388. package/node_modules/zod/v4/core/regexes.js +0 -95
  2389. package/node_modules/zod/v4/core/registries.cjs +0 -56
  2390. package/node_modules/zod/v4/core/registries.d.cts +0 -35
  2391. package/node_modules/zod/v4/core/registries.d.ts +0 -35
  2392. package/node_modules/zod/v4/core/registries.js +0 -51
  2393. package/node_modules/zod/v4/core/schemas.cjs +0 -1748
  2394. package/node_modules/zod/v4/core/schemas.d.cts +0 -1041
  2395. package/node_modules/zod/v4/core/schemas.d.ts +0 -1041
  2396. package/node_modules/zod/v4/core/schemas.js +0 -1717
  2397. package/node_modules/zod/v4/core/standard-schema.cjs +0 -2
  2398. package/node_modules/zod/v4/core/standard-schema.d.cts +0 -55
  2399. package/node_modules/zod/v4/core/standard-schema.d.ts +0 -55
  2400. package/node_modules/zod/v4/core/standard-schema.js +0 -1
  2401. package/node_modules/zod/v4/core/to-json-schema.cjs +0 -854
  2402. package/node_modules/zod/v4/core/to-json-schema.d.cts +0 -88
  2403. package/node_modules/zod/v4/core/to-json-schema.d.ts +0 -88
  2404. package/node_modules/zod/v4/core/to-json-schema.js +0 -849
  2405. package/node_modules/zod/v4/core/util.cjs +0 -539
  2406. package/node_modules/zod/v4/core/util.d.cts +0 -183
  2407. package/node_modules/zod/v4/core/util.d.ts +0 -183
  2408. package/node_modules/zod/v4/core/util.js +0 -493
  2409. package/node_modules/zod/v4/core/versions.cjs +0 -8
  2410. package/node_modules/zod/v4/core/versions.d.cts +0 -5
  2411. package/node_modules/zod/v4/core/versions.d.ts +0 -5
  2412. package/node_modules/zod/v4/core/versions.js +0 -5
  2413. package/node_modules/zod/v4/index.cjs +0 -22
  2414. package/node_modules/zod/v4/index.d.cts +0 -3
  2415. package/node_modules/zod/v4/index.d.ts +0 -3
  2416. package/node_modules/zod/v4/index.js +0 -3
  2417. package/node_modules/zod/v4/locales/ar.cjs +0 -142
  2418. package/node_modules/zod/v4/locales/ar.d.cts +0 -4
  2419. package/node_modules/zod/v4/locales/ar.d.ts +0 -4
  2420. package/node_modules/zod/v4/locales/ar.js +0 -116
  2421. package/node_modules/zod/v4/locales/az.cjs +0 -141
  2422. package/node_modules/zod/v4/locales/az.d.cts +0 -4
  2423. package/node_modules/zod/v4/locales/az.d.ts +0 -4
  2424. package/node_modules/zod/v4/locales/az.js +0 -115
  2425. package/node_modules/zod/v4/locales/be.cjs +0 -190
  2426. package/node_modules/zod/v4/locales/be.d.cts +0 -4
  2427. package/node_modules/zod/v4/locales/be.d.ts +0 -4
  2428. package/node_modules/zod/v4/locales/be.js +0 -164
  2429. package/node_modules/zod/v4/locales/ca.cjs +0 -144
  2430. package/node_modules/zod/v4/locales/ca.d.cts +0 -4
  2431. package/node_modules/zod/v4/locales/ca.d.ts +0 -4
  2432. package/node_modules/zod/v4/locales/ca.js +0 -118
  2433. package/node_modules/zod/v4/locales/cs.cjs +0 -161
  2434. package/node_modules/zod/v4/locales/cs.d.cts +0 -4
  2435. package/node_modules/zod/v4/locales/cs.d.ts +0 -4
  2436. package/node_modules/zod/v4/locales/cs.js +0 -135
  2437. package/node_modules/zod/v4/locales/de.cjs +0 -142
  2438. package/node_modules/zod/v4/locales/de.d.cts +0 -4
  2439. package/node_modules/zod/v4/locales/de.d.ts +0 -4
  2440. package/node_modules/zod/v4/locales/de.js +0 -116
  2441. package/node_modules/zod/v4/locales/en.cjs +0 -145
  2442. package/node_modules/zod/v4/locales/en.d.cts +0 -5
  2443. package/node_modules/zod/v4/locales/en.d.ts +0 -5
  2444. package/node_modules/zod/v4/locales/en.js +0 -117
  2445. package/node_modules/zod/v4/locales/eo.cjs +0 -144
  2446. package/node_modules/zod/v4/locales/eo.d.cts +0 -5
  2447. package/node_modules/zod/v4/locales/eo.d.ts +0 -5
  2448. package/node_modules/zod/v4/locales/eo.js +0 -116
  2449. package/node_modules/zod/v4/locales/es.cjs +0 -143
  2450. package/node_modules/zod/v4/locales/es.d.cts +0 -4
  2451. package/node_modules/zod/v4/locales/es.d.ts +0 -4
  2452. package/node_modules/zod/v4/locales/es.js +0 -117
  2453. package/node_modules/zod/v4/locales/fa.cjs +0 -148
  2454. package/node_modules/zod/v4/locales/fa.d.cts +0 -4
  2455. package/node_modules/zod/v4/locales/fa.d.ts +0 -4
  2456. package/node_modules/zod/v4/locales/fa.js +0 -122
  2457. package/node_modules/zod/v4/locales/fi.cjs +0 -148
  2458. package/node_modules/zod/v4/locales/fi.d.cts +0 -4
  2459. package/node_modules/zod/v4/locales/fi.d.ts +0 -4
  2460. package/node_modules/zod/v4/locales/fi.js +0 -122
  2461. package/node_modules/zod/v4/locales/fr-CA.cjs +0 -143
  2462. package/node_modules/zod/v4/locales/fr-CA.d.cts +0 -4
  2463. package/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
  2464. package/node_modules/zod/v4/locales/fr-CA.js +0 -117
  2465. package/node_modules/zod/v4/locales/fr.cjs +0 -142
  2466. package/node_modules/zod/v4/locales/fr.d.cts +0 -4
  2467. package/node_modules/zod/v4/locales/fr.d.ts +0 -4
  2468. package/node_modules/zod/v4/locales/fr.js +0 -116
  2469. package/node_modules/zod/v4/locales/he.cjs +0 -143
  2470. package/node_modules/zod/v4/locales/he.d.cts +0 -4
  2471. package/node_modules/zod/v4/locales/he.d.ts +0 -4
  2472. package/node_modules/zod/v4/locales/he.js +0 -117
  2473. package/node_modules/zod/v4/locales/hu.cjs +0 -143
  2474. package/node_modules/zod/v4/locales/hu.d.cts +0 -4
  2475. package/node_modules/zod/v4/locales/hu.d.ts +0 -4
  2476. package/node_modules/zod/v4/locales/hu.js +0 -117
  2477. package/node_modules/zod/v4/locales/id.cjs +0 -142
  2478. package/node_modules/zod/v4/locales/id.d.cts +0 -4
  2479. package/node_modules/zod/v4/locales/id.d.ts +0 -4
  2480. package/node_modules/zod/v4/locales/id.js +0 -116
  2481. package/node_modules/zod/v4/locales/index.cjs +0 -84
  2482. package/node_modules/zod/v4/locales/index.d.cts +0 -39
  2483. package/node_modules/zod/v4/locales/index.d.ts +0 -39
  2484. package/node_modules/zod/v4/locales/index.js +0 -39
  2485. package/node_modules/zod/v4/locales/it.cjs +0 -143
  2486. package/node_modules/zod/v4/locales/it.d.cts +0 -4
  2487. package/node_modules/zod/v4/locales/it.d.ts +0 -4
  2488. package/node_modules/zod/v4/locales/it.js +0 -117
  2489. package/node_modules/zod/v4/locales/ja.cjs +0 -141
  2490. package/node_modules/zod/v4/locales/ja.d.cts +0 -4
  2491. package/node_modules/zod/v4/locales/ja.d.ts +0 -4
  2492. package/node_modules/zod/v4/locales/ja.js +0 -115
  2493. package/node_modules/zod/v4/locales/kh.cjs +0 -143
  2494. package/node_modules/zod/v4/locales/kh.d.cts +0 -4
  2495. package/node_modules/zod/v4/locales/kh.d.ts +0 -4
  2496. package/node_modules/zod/v4/locales/kh.js +0 -117
  2497. package/node_modules/zod/v4/locales/ko.cjs +0 -147
  2498. package/node_modules/zod/v4/locales/ko.d.cts +0 -4
  2499. package/node_modules/zod/v4/locales/ko.d.ts +0 -4
  2500. package/node_modules/zod/v4/locales/ko.js +0 -121
  2501. package/node_modules/zod/v4/locales/mk.cjs +0 -144
  2502. package/node_modules/zod/v4/locales/mk.d.cts +0 -4
  2503. package/node_modules/zod/v4/locales/mk.d.ts +0 -4
  2504. package/node_modules/zod/v4/locales/mk.js +0 -118
  2505. package/node_modules/zod/v4/locales/ms.cjs +0 -142
  2506. package/node_modules/zod/v4/locales/ms.d.cts +0 -4
  2507. package/node_modules/zod/v4/locales/ms.d.ts +0 -4
  2508. package/node_modules/zod/v4/locales/ms.js +0 -116
  2509. package/node_modules/zod/v4/locales/nl.cjs +0 -143
  2510. package/node_modules/zod/v4/locales/nl.d.cts +0 -4
  2511. package/node_modules/zod/v4/locales/nl.d.ts +0 -4
  2512. package/node_modules/zod/v4/locales/nl.js +0 -117
  2513. package/node_modules/zod/v4/locales/no.cjs +0 -142
  2514. package/node_modules/zod/v4/locales/no.d.cts +0 -4
  2515. package/node_modules/zod/v4/locales/no.d.ts +0 -4
  2516. package/node_modules/zod/v4/locales/no.js +0 -116
  2517. package/node_modules/zod/v4/locales/ota.cjs +0 -143
  2518. package/node_modules/zod/v4/locales/ota.d.cts +0 -4
  2519. package/node_modules/zod/v4/locales/ota.d.ts +0 -4
  2520. package/node_modules/zod/v4/locales/ota.js +0 -117
  2521. package/node_modules/zod/v4/locales/pl.cjs +0 -143
  2522. package/node_modules/zod/v4/locales/pl.d.cts +0 -4
  2523. package/node_modules/zod/v4/locales/pl.d.ts +0 -4
  2524. package/node_modules/zod/v4/locales/pl.js +0 -117
  2525. package/node_modules/zod/v4/locales/ps.cjs +0 -148
  2526. package/node_modules/zod/v4/locales/ps.d.cts +0 -4
  2527. package/node_modules/zod/v4/locales/ps.d.ts +0 -4
  2528. package/node_modules/zod/v4/locales/ps.js +0 -122
  2529. package/node_modules/zod/v4/locales/pt.cjs +0 -142
  2530. package/node_modules/zod/v4/locales/pt.d.cts +0 -4
  2531. package/node_modules/zod/v4/locales/pt.d.ts +0 -4
  2532. package/node_modules/zod/v4/locales/pt.js +0 -116
  2533. package/node_modules/zod/v4/locales/ru.cjs +0 -190
  2534. package/node_modules/zod/v4/locales/ru.d.cts +0 -4
  2535. package/node_modules/zod/v4/locales/ru.d.ts +0 -4
  2536. package/node_modules/zod/v4/locales/ru.js +0 -164
  2537. package/node_modules/zod/v4/locales/sl.cjs +0 -143
  2538. package/node_modules/zod/v4/locales/sl.d.cts +0 -4
  2539. package/node_modules/zod/v4/locales/sl.d.ts +0 -4
  2540. package/node_modules/zod/v4/locales/sl.js +0 -117
  2541. package/node_modules/zod/v4/locales/sv.cjs +0 -144
  2542. package/node_modules/zod/v4/locales/sv.d.cts +0 -4
  2543. package/node_modules/zod/v4/locales/sv.d.ts +0 -4
  2544. package/node_modules/zod/v4/locales/sv.js +0 -118
  2545. package/node_modules/zod/v4/locales/ta.cjs +0 -143
  2546. package/node_modules/zod/v4/locales/ta.d.cts +0 -4
  2547. package/node_modules/zod/v4/locales/ta.d.ts +0 -4
  2548. package/node_modules/zod/v4/locales/ta.js +0 -117
  2549. package/node_modules/zod/v4/locales/th.cjs +0 -143
  2550. package/node_modules/zod/v4/locales/th.d.cts +0 -4
  2551. package/node_modules/zod/v4/locales/th.d.ts +0 -4
  2552. package/node_modules/zod/v4/locales/th.js +0 -117
  2553. package/node_modules/zod/v4/locales/tr.cjs +0 -143
  2554. package/node_modules/zod/v4/locales/tr.d.cts +0 -5
  2555. package/node_modules/zod/v4/locales/tr.d.ts +0 -5
  2556. package/node_modules/zod/v4/locales/tr.js +0 -115
  2557. package/node_modules/zod/v4/locales/ua.cjs +0 -143
  2558. package/node_modules/zod/v4/locales/ua.d.cts +0 -4
  2559. package/node_modules/zod/v4/locales/ua.d.ts +0 -4
  2560. package/node_modules/zod/v4/locales/ua.js +0 -117
  2561. package/node_modules/zod/v4/locales/ur.cjs +0 -143
  2562. package/node_modules/zod/v4/locales/ur.d.cts +0 -4
  2563. package/node_modules/zod/v4/locales/ur.d.ts +0 -4
  2564. package/node_modules/zod/v4/locales/ur.js +0 -117
  2565. package/node_modules/zod/v4/locales/vi.cjs +0 -142
  2566. package/node_modules/zod/v4/locales/vi.d.cts +0 -4
  2567. package/node_modules/zod/v4/locales/vi.d.ts +0 -4
  2568. package/node_modules/zod/v4/locales/vi.js +0 -116
  2569. package/node_modules/zod/v4/locales/zh-CN.cjs +0 -142
  2570. package/node_modules/zod/v4/locales/zh-CN.d.cts +0 -4
  2571. package/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
  2572. package/node_modules/zod/v4/locales/zh-CN.js +0 -116
  2573. package/node_modules/zod/v4/locales/zh-TW.cjs +0 -143
  2574. package/node_modules/zod/v4/locales/zh-TW.d.cts +0 -4
  2575. package/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
  2576. package/node_modules/zod/v4/locales/zh-TW.js +0 -117
  2577. package/node_modules/zod/v4/mini/checks.cjs +0 -34
  2578. package/node_modules/zod/v4/mini/checks.d.cts +0 -1
  2579. package/node_modules/zod/v4/mini/checks.d.ts +0 -1
  2580. package/node_modules/zod/v4/mini/checks.js +0 -1
  2581. package/node_modules/zod/v4/mini/coerce.cjs +0 -47
  2582. package/node_modules/zod/v4/mini/coerce.d.cts +0 -7
  2583. package/node_modules/zod/v4/mini/coerce.d.ts +0 -7
  2584. package/node_modules/zod/v4/mini/coerce.js +0 -17
  2585. package/node_modules/zod/v4/mini/external.cjs +0 -62
  2586. package/node_modules/zod/v4/mini/external.d.cts +0 -11
  2587. package/node_modules/zod/v4/mini/external.d.ts +0 -11
  2588. package/node_modules/zod/v4/mini/external.js +0 -13
  2589. package/node_modules/zod/v4/mini/index.cjs +0 -32
  2590. package/node_modules/zod/v4/mini/index.d.cts +0 -3
  2591. package/node_modules/zod/v4/mini/index.d.ts +0 -3
  2592. package/node_modules/zod/v4/mini/index.js +0 -3
  2593. package/node_modules/zod/v4/mini/iso.cjs +0 -60
  2594. package/node_modules/zod/v4/mini/iso.d.cts +0 -22
  2595. package/node_modules/zod/v4/mini/iso.d.ts +0 -22
  2596. package/node_modules/zod/v4/mini/iso.js +0 -30
  2597. package/node_modules/zod/v4/mini/parse.cjs +0 -8
  2598. package/node_modules/zod/v4/mini/parse.d.cts +0 -1
  2599. package/node_modules/zod/v4/mini/parse.d.ts +0 -1
  2600. package/node_modules/zod/v4/mini/parse.js +0 -1
  2601. package/node_modules/zod/v4/mini/schemas.cjs +0 -839
  2602. package/node_modules/zod/v4/mini/schemas.d.cts +0 -356
  2603. package/node_modules/zod/v4/mini/schemas.d.ts +0 -356
  2604. package/node_modules/zod/v4/mini/schemas.js +0 -732
  2605. package/node_modules/zod/v4-mini/index.cjs +0 -17
  2606. package/node_modules/zod/v4-mini/index.d.cts +0 -1
  2607. package/node_modules/zod/v4-mini/index.d.ts +0 -1
  2608. package/node_modules/zod/v4-mini/index.js +0 -1
@@ -1,3364 +0,0 @@
1
- #ifndef SRC_NAPI_H_
2
- #define SRC_NAPI_H_
3
-
4
- #ifndef NAPI_HAS_THREADS
5
- #if !defined(__wasm__) || (defined(__EMSCRIPTEN_PTHREADS__) || \
6
- (defined(__wasi__) && defined(_REENTRANT)))
7
- #define NAPI_HAS_THREADS 1
8
- #else
9
- #define NAPI_HAS_THREADS 0
10
- #endif
11
- #endif
12
-
13
- #include <node_api.h>
14
- #include <functional>
15
- #include <initializer_list>
16
- #include <memory>
17
- #if NAPI_HAS_THREADS
18
- #include <mutex>
19
- #endif // NAPI_HAS_THREADS
20
- #include <chrono>
21
- #include <string>
22
- #include <vector>
23
-
24
- // VS2015 RTM has bugs with constexpr, so require min of VS2015 Update 3 (known
25
- // good version)
26
- #if !defined(_MSC_VER) || _MSC_FULL_VER >= 190024210
27
- #define NAPI_HAS_CONSTEXPR 1
28
- #endif
29
-
30
- // VS2013 does not support char16_t literal strings, so we'll work around it
31
- // using wchar_t strings and casting them. This is safe as long as the character
32
- // sizes are the same.
33
- #if defined(_MSC_VER) && _MSC_VER <= 1800
34
- static_assert(sizeof(char16_t) == sizeof(wchar_t),
35
- "Size mismatch between char16_t and wchar_t");
36
- #define NAPI_WIDE_TEXT(x) reinterpret_cast<char16_t*>(L##x)
37
- #else
38
- #define NAPI_WIDE_TEXT(x) u##x
39
- #endif
40
-
41
- // Backwards-compatibility to handle the rename of this macro definition, in
42
- // case they are used within userland code.
43
- #ifdef NAPI_CPP_EXCEPTIONS
44
- #define NODE_ADDON_API_CPP_EXCEPTIONS
45
- #endif
46
- #if defined(NODE_ADDON_API_CPP_EXCEPTIONS) && !defined(NAPI_CPP_EXCEPTIONS)
47
- #define NAPI_CPP_EXCEPTIONS
48
- #endif
49
- #ifdef NAPI_DISABLE_CPP_EXCEPTIONS
50
- #define NODE_ADDON_API_DISABLE_CPP_EXCEPTIONS
51
- #endif
52
- #if defined(NODE_ADDON_API_DISABLE_CPP_EXCEPTIONS) && \
53
- !defined(NAPI_DISABLE_CPP_EXCEPTIONS)
54
- #define NAPI_DISABLE_CPP_EXCEPTIONS
55
- #endif
56
-
57
- // If C++ exceptions are not explicitly enabled or disabled, enable them
58
- // if exceptions were enabled in the compiler settings.
59
- #if !defined(NODE_ADDON_API_CPP_EXCEPTIONS) && \
60
- !defined(NODE_ADDON_API_DISABLE_CPP_EXCEPTIONS)
61
- #if defined(_CPPUNWIND) || defined(__EXCEPTIONS)
62
- #define NODE_ADDON_API_CPP_EXCEPTIONS
63
- #else
64
- #error Exception support not detected. \
65
- Define either NODE_ADDON_API_CPP_EXCEPTIONS or NODE_ADDON_API_DISABLE_CPP_EXCEPTIONS.
66
- #endif
67
- #endif
68
-
69
- // If C++ NODE_ADDON_API_CPP_EXCEPTIONS are enabled, NODE_ADDON_API_ENABLE_MAYBE
70
- // should not be set
71
- #if defined(NODE_ADDON_API_CPP_EXCEPTIONS) && \
72
- defined(NODE_ADDON_API_ENABLE_MAYBE)
73
- #error NODE_ADDON_API_ENABLE_MAYBE should not be set when \
74
- NODE_ADDON_API_CPP_EXCEPTIONS is defined.
75
- #endif
76
-
77
- #ifdef _NOEXCEPT
78
- #define NAPI_NOEXCEPT _NOEXCEPT
79
- #else
80
- #define NAPI_NOEXCEPT noexcept
81
- #endif
82
-
83
- #ifdef NODE_ADDON_API_CPP_EXCEPTIONS
84
-
85
- // When C++ exceptions are enabled, Errors are thrown directly. There is no need
86
- // to return anything after the throw statements. The variadic parameter is an
87
- // optional return value that is ignored.
88
- // We need _VOID versions of the macros to avoid warnings resulting from
89
- // leaving the NAPI_THROW_* `...` argument empty.
90
-
91
- #define NAPI_THROW(e, ...) throw e
92
- #define NAPI_THROW_VOID(e) throw e
93
-
94
- #define NAPI_THROW_IF_FAILED(env, status, ...) \
95
- if ((status) != napi_ok) throw Napi::Error::New(env);
96
-
97
- #define NAPI_THROW_IF_FAILED_VOID(env, status) \
98
- if ((status) != napi_ok) throw Napi::Error::New(env);
99
-
100
- #else // NODE_ADDON_API_CPP_EXCEPTIONS
101
-
102
- // When C++ exceptions are disabled, Errors are thrown as JavaScript exceptions,
103
- // which are pending until the callback returns to JS. The variadic parameter
104
- // is an optional return value; usually it is an empty result.
105
- // We need _VOID versions of the macros to avoid warnings resulting from
106
- // leaving the NAPI_THROW_* `...` argument empty.
107
-
108
- #define NAPI_THROW(e, ...) \
109
- do { \
110
- (e).ThrowAsJavaScriptException(); \
111
- return __VA_ARGS__; \
112
- } while (0)
113
-
114
- #define NAPI_THROW_VOID(e) \
115
- do { \
116
- (e).ThrowAsJavaScriptException(); \
117
- return; \
118
- } while (0)
119
-
120
- #define NAPI_THROW_IF_FAILED(env, status, ...) \
121
- if ((status) != napi_ok) { \
122
- Napi::Error::New(env).ThrowAsJavaScriptException(); \
123
- return __VA_ARGS__; \
124
- }
125
-
126
- #define NAPI_THROW_IF_FAILED_VOID(env, status) \
127
- if ((status) != napi_ok) { \
128
- Napi::Error::New(env).ThrowAsJavaScriptException(); \
129
- return; \
130
- }
131
-
132
- #endif // NODE_ADDON_API_CPP_EXCEPTIONS
133
-
134
- #ifdef NODE_ADDON_API_ENABLE_MAYBE
135
- #define NAPI_MAYBE_THROW_IF_FAILED(env, status, type) \
136
- NAPI_THROW_IF_FAILED(env, status, Napi::Nothing<type>())
137
-
138
- #define NAPI_RETURN_OR_THROW_IF_FAILED(env, status, result, type) \
139
- NAPI_MAYBE_THROW_IF_FAILED(env, status, type); \
140
- return Napi::Just<type>(result);
141
- #else
142
- #define NAPI_MAYBE_THROW_IF_FAILED(env, status, type) \
143
- NAPI_THROW_IF_FAILED(env, status, type())
144
-
145
- #define NAPI_RETURN_OR_THROW_IF_FAILED(env, status, result, type) \
146
- NAPI_MAYBE_THROW_IF_FAILED(env, status, type); \
147
- return result;
148
- #endif
149
-
150
- #define NAPI_DISALLOW_ASSIGN(CLASS) void operator=(const CLASS&) = delete;
151
- #define NAPI_DISALLOW_COPY(CLASS) CLASS(const CLASS&) = delete;
152
-
153
- #define NAPI_DISALLOW_ASSIGN_COPY(CLASS) \
154
- NAPI_DISALLOW_ASSIGN(CLASS) \
155
- NAPI_DISALLOW_COPY(CLASS)
156
-
157
- #define NAPI_CHECK(condition, location, message) \
158
- do { \
159
- if (!(condition)) { \
160
- Napi::Error::Fatal((location), (message)); \
161
- } \
162
- } while (0)
163
-
164
- // Internal check helper. Be careful that the formatted message length should be
165
- // max 255 size and null terminated.
166
- #define NAPI_INTERNAL_CHECK(expr, location, ...) \
167
- do { \
168
- if (!(expr)) { \
169
- std::string msg = Napi::details::StringFormat(__VA_ARGS__); \
170
- Napi::Error::Fatal(location, msg.c_str()); \
171
- } \
172
- } while (0)
173
-
174
- #define NAPI_INTERNAL_CHECK_EQ(actual, expected, value_format, location) \
175
- do { \
176
- auto actual_value = (actual); \
177
- NAPI_INTERNAL_CHECK(actual_value == (expected), \
178
- location, \
179
- "Expected " #actual " to be equal to " #expected \
180
- ", but got " value_format ".", \
181
- actual_value); \
182
- } while (0)
183
-
184
- #define NAPI_FATAL_IF_FAILED(status, location, message) \
185
- NAPI_CHECK((status) == napi_ok, location, message)
186
-
187
- ////////////////////////////////////////////////////////////////////////////////
188
- /// Node-API C++ Wrapper Classes
189
- ///
190
- /// These classes wrap the "Node-API" ABI-stable C APIs for Node.js, providing a
191
- /// C++ object model and C++ exception-handling semantics with low overhead.
192
- /// The wrappers are all header-only so that they do not affect the ABI.
193
- ////////////////////////////////////////////////////////////////////////////////
194
- namespace Napi {
195
-
196
- #ifdef NAPI_CPP_CUSTOM_NAMESPACE
197
- // NAPI_CPP_CUSTOM_NAMESPACE can be #define'd per-addon to avoid symbol
198
- // conflicts between different instances of node-addon-api
199
-
200
- // First dummy definition of the namespace to make sure that Napi::(name) still
201
- // refers to the right things inside this file.
202
- namespace NAPI_CPP_CUSTOM_NAMESPACE {}
203
- using namespace NAPI_CPP_CUSTOM_NAMESPACE;
204
-
205
- namespace NAPI_CPP_CUSTOM_NAMESPACE {
206
- #endif
207
-
208
- // Forward declarations
209
- class Env;
210
- class Value;
211
- class Boolean;
212
- class Number;
213
- #if NAPI_VERSION > 5
214
- class BigInt;
215
- #endif // NAPI_VERSION > 5
216
- #if (NAPI_VERSION > 4)
217
- class Date;
218
- #endif
219
- class String;
220
- class Object;
221
- class Array;
222
- class ArrayBuffer;
223
- class Function;
224
- class Error;
225
- class PropertyDescriptor;
226
- class CallbackInfo;
227
- class TypedArray;
228
- template <typename T>
229
- class TypedArrayOf;
230
-
231
- using Int8Array =
232
- TypedArrayOf<int8_t>; ///< Typed-array of signed 8-bit integers
233
- using Uint8Array =
234
- TypedArrayOf<uint8_t>; ///< Typed-array of unsigned 8-bit integers
235
- using Int16Array =
236
- TypedArrayOf<int16_t>; ///< Typed-array of signed 16-bit integers
237
- using Uint16Array =
238
- TypedArrayOf<uint16_t>; ///< Typed-array of unsigned 16-bit integers
239
- using Int32Array =
240
- TypedArrayOf<int32_t>; ///< Typed-array of signed 32-bit integers
241
- using Uint32Array =
242
- TypedArrayOf<uint32_t>; ///< Typed-array of unsigned 32-bit integers
243
- using Float32Array =
244
- TypedArrayOf<float>; ///< Typed-array of 32-bit floating-point values
245
- using Float64Array =
246
- TypedArrayOf<double>; ///< Typed-array of 64-bit floating-point values
247
- #if NAPI_VERSION > 5
248
- using BigInt64Array =
249
- TypedArrayOf<int64_t>; ///< Typed array of signed 64-bit integers
250
- using BigUint64Array =
251
- TypedArrayOf<uint64_t>; ///< Typed array of unsigned 64-bit integers
252
- #endif // NAPI_VERSION > 5
253
-
254
- /// Defines the signature of a Node-API C++ module's registration callback
255
- /// (init) function.
256
- using ModuleRegisterCallback = Object (*)(Env env, Object exports);
257
-
258
- class MemoryManagement;
259
-
260
- /// A simple Maybe type, representing an object which may or may not have a
261
- /// value.
262
- ///
263
- /// If an API method returns a Maybe<>, the API method can potentially fail
264
- /// either because an exception is thrown, or because an exception is pending,
265
- /// e.g. because a previous API call threw an exception that hasn't been
266
- /// caught yet. In that case, a "Nothing" value is returned.
267
- template <class T>
268
- class Maybe {
269
- public:
270
- bool IsNothing() const;
271
- bool IsJust() const;
272
-
273
- /// Short-hand for Unwrap(), which doesn't return a value. Could be used
274
- /// where the actual value of the Maybe is not needed like Object::Set.
275
- /// If this Maybe is nothing (empty), node-addon-api will crash the
276
- /// process.
277
- void Check() const;
278
-
279
- /// Return the value of type T contained in the Maybe. If this Maybe is
280
- /// nothing (empty), node-addon-api will crash the process.
281
- T Unwrap() const;
282
-
283
- /// Return the value of type T contained in the Maybe, or using a default
284
- /// value if this Maybe is nothing (empty).
285
- T UnwrapOr(const T& default_value) const;
286
-
287
- /// Converts this Maybe to a value of type T in the out. If this Maybe is
288
- /// nothing (empty), `false` is returned and `out` is left untouched.
289
- bool UnwrapTo(T* out) const;
290
-
291
- bool operator==(const Maybe& other) const;
292
- bool operator!=(const Maybe& other) const;
293
-
294
- private:
295
- Maybe();
296
- explicit Maybe(const T& t);
297
-
298
- bool _has_value;
299
- T _value;
300
-
301
- template <class U>
302
- friend Maybe<U> Nothing();
303
- template <class U>
304
- friend Maybe<U> Just(const U& u);
305
- };
306
-
307
- template <class T>
308
- inline Maybe<T> Nothing();
309
-
310
- template <class T>
311
- inline Maybe<T> Just(const T& t);
312
-
313
- #if defined(NODE_ADDON_API_ENABLE_MAYBE)
314
- template <typename T>
315
- using MaybeOrValue = Maybe<T>;
316
- #else
317
- template <typename T>
318
- using MaybeOrValue = T;
319
- #endif
320
-
321
- #ifdef NODE_API_EXPERIMENTAL_HAS_POST_FINALIZER
322
- using node_addon_api_basic_env = node_api_nogc_env;
323
- using node_addon_api_basic_finalize = node_api_nogc_finalize;
324
- #else
325
- using node_addon_api_basic_env = napi_env;
326
- using node_addon_api_basic_finalize = napi_finalize;
327
- #endif
328
-
329
- /// Environment for Node-API values and operations.
330
- ///
331
- /// All Node-API values and operations must be associated with an environment.
332
- /// An environment instance is always provided to callback functions; that
333
- /// environment must then be used for any creation of Node-API values or other
334
- /// Node-API operations within the callback. (Many methods infer the
335
- /// environment from the `this` instance that the method is called on.)
336
- ///
337
- /// Multiple environments may co-exist in a single process or a thread.
338
- ///
339
- /// In the V8 JavaScript engine, a Node-API environment approximately
340
- /// corresponds to an Isolate.
341
- class BasicEnv {
342
- private:
343
- node_addon_api_basic_env _env;
344
- #if NAPI_VERSION > 5
345
- template <typename T>
346
- static void DefaultFini(Env, T* data);
347
- template <typename DataType, typename HintType>
348
- static void DefaultFiniWithHint(Env, DataType* data, HintType* hint);
349
- #endif // NAPI_VERSION > 5
350
- public:
351
- BasicEnv(node_addon_api_basic_env env);
352
-
353
- operator node_addon_api_basic_env() const;
354
-
355
- // Without these operator overloads, the error:
356
- //
357
- // Use of overloaded operator '==' is ambiguous (with operand types
358
- // 'Napi::Env' and 'Napi::Env')
359
- //
360
- // ... occurs when comparing foo.Env() == bar.Env() or foo.Env() == nullptr
361
- bool operator==(const BasicEnv& other) const {
362
- return _env == other._env;
363
- }
364
- bool operator==(std::nullptr_t /*other*/) const {
365
- return _env == nullptr;
366
- }
367
-
368
- #if NAPI_VERSION > 2
369
- template <typename Hook, typename Arg = void>
370
- class CleanupHook;
371
-
372
- template <typename Hook>
373
- CleanupHook<Hook> AddCleanupHook(Hook hook);
374
-
375
- template <typename Hook, typename Arg>
376
- CleanupHook<Hook, Arg> AddCleanupHook(Hook hook, Arg* arg);
377
- #endif // NAPI_VERSION > 2
378
-
379
- #if NAPI_VERSION > 5
380
- template <typename T>
381
- T* GetInstanceData() const;
382
-
383
- template <typename T>
384
- using Finalizer = void (*)(Env, T*);
385
- template <typename T, Finalizer<T> fini = BasicEnv::DefaultFini<T>>
386
- void SetInstanceData(T* data) const;
387
-
388
- template <typename DataType, typename HintType>
389
- using FinalizerWithHint = void (*)(Env, DataType*, HintType*);
390
- template <typename DataType,
391
- typename HintType,
392
- FinalizerWithHint<DataType, HintType> fini =
393
- BasicEnv::DefaultFiniWithHint<DataType, HintType>>
394
- void SetInstanceData(DataType* data, HintType* hint) const;
395
- #endif // NAPI_VERSION > 5
396
-
397
- #if NAPI_VERSION > 2
398
- template <typename Hook, typename Arg>
399
- class CleanupHook {
400
- public:
401
- CleanupHook();
402
- CleanupHook(BasicEnv env, Hook hook, Arg* arg);
403
- CleanupHook(BasicEnv env, Hook hook);
404
- bool Remove(BasicEnv env);
405
- bool IsEmpty() const;
406
-
407
- private:
408
- static inline void Wrapper(void* data) NAPI_NOEXCEPT;
409
- static inline void WrapperWithArg(void* data) NAPI_NOEXCEPT;
410
-
411
- void (*wrapper)(void* arg);
412
- struct CleanupData {
413
- Hook hook;
414
- Arg* arg;
415
- } * data;
416
- };
417
- #endif // NAPI_VERSION > 2
418
-
419
- #if NAPI_VERSION > 8
420
- const char* GetModuleFileName() const;
421
- #endif // NAPI_VERSION > 8
422
-
423
- #ifdef NODE_API_EXPERIMENTAL_HAS_POST_FINALIZER
424
- template <typename FinalizerType>
425
- inline void PostFinalizer(FinalizerType finalizeCallback) const;
426
-
427
- template <typename FinalizerType, typename T>
428
- inline void PostFinalizer(FinalizerType finalizeCallback, T* data) const;
429
-
430
- template <typename FinalizerType, typename T, typename Hint>
431
- inline void PostFinalizer(FinalizerType finalizeCallback,
432
- T* data,
433
- Hint* finalizeHint) const;
434
- #endif // NODE_API_EXPERIMENTAL_HAS_POST_FINALIZER
435
-
436
- friend class Env;
437
- };
438
-
439
- class Env : public BasicEnv {
440
- public:
441
- Env(napi_env env);
442
-
443
- operator napi_env() const;
444
-
445
- Object Global() const;
446
- Value Undefined() const;
447
- Value Null() const;
448
-
449
- bool IsExceptionPending() const;
450
- Error GetAndClearPendingException() const;
451
-
452
- MaybeOrValue<Value> RunScript(const char* utf8script) const;
453
- MaybeOrValue<Value> RunScript(const std::string& utf8script) const;
454
- MaybeOrValue<Value> RunScript(String script) const;
455
- };
456
-
457
- /// A JavaScript value of unknown type.
458
- ///
459
- /// For type-specific operations, convert to one of the Value subclasses using a
460
- /// `To*` or `As()` method. The `To*` methods do type coercion; the `As()`
461
- /// method does not.
462
- ///
463
- /// Napi::Value value = ...
464
- /// if (!value.IsString()) throw Napi::TypeError::New(env, "Invalid
465
- /// arg..."); Napi::String str = value.As<Napi::String>(); // Cast to a
466
- /// string value
467
- ///
468
- /// Napi::Value anotherValue = ...
469
- /// bool isTruthy = anotherValue.ToBoolean(); // Coerce to a boolean value
470
- class Value {
471
- public:
472
- Value(); ///< Creates a new _empty_ Value instance.
473
- Value(napi_env env,
474
- napi_value value); ///< Wraps a Node-API value primitive.
475
-
476
- /// Creates a JS value from a C++ primitive.
477
- ///
478
- /// `value` may be any of:
479
- /// - bool
480
- /// - Any integer type
481
- /// - Any floating point type
482
- /// - const char* (encoded using UTF-8, null-terminated)
483
- /// - const char16_t* (encoded using UTF-16-LE, null-terminated)
484
- /// - std::string (encoded using UTF-8)
485
- /// - std::u16string
486
- /// - napi::Value
487
- /// - napi_value
488
- template <typename T>
489
- static Value From(napi_env env, const T& value);
490
-
491
- static void CheckCast(napi_env env, napi_value value);
492
-
493
- /// Converts to a Node-API value primitive.
494
- ///
495
- /// If the instance is _empty_, this returns `nullptr`.
496
- operator napi_value() const;
497
-
498
- /// Tests if this value strictly equals another value.
499
- bool operator==(const Value& other) const;
500
-
501
- /// Tests if this value does not strictly equal another value.
502
- bool operator!=(const Value& other) const;
503
-
504
- /// Tests if this value strictly equals another value.
505
- bool StrictEquals(const Value& other) const;
506
-
507
- /// Gets the environment the value is associated with.
508
- Napi::Env Env() const;
509
-
510
- /// Checks if the value is empty (uninitialized).
511
- ///
512
- /// An empty value is invalid, and most attempts to perform an operation on an
513
- /// empty value will result in an exception. Note an empty value is distinct
514
- /// from JavaScript `null` or `undefined`, which are valid values.
515
- ///
516
- /// When C++ exceptions are disabled at compile time, a method with a `Value`
517
- /// return type may return an empty value to indicate a pending exception. So
518
- /// when not using C++ exceptions, callers should check whether the value is
519
- /// empty before attempting to use it.
520
- bool IsEmpty() const;
521
-
522
- napi_valuetype Type() const; ///< Gets the type of the value.
523
-
524
- bool IsUndefined()
525
- const; ///< Tests if a value is an undefined JavaScript value.
526
- bool IsNull() const; ///< Tests if a value is a null JavaScript value.
527
- bool IsBoolean() const; ///< Tests if a value is a JavaScript boolean.
528
- bool IsNumber() const; ///< Tests if a value is a JavaScript number.
529
- #if NAPI_VERSION > 5
530
- bool IsBigInt() const; ///< Tests if a value is a JavaScript bigint.
531
- #endif // NAPI_VERSION > 5
532
- #if (NAPI_VERSION > 4)
533
- bool IsDate() const; ///< Tests if a value is a JavaScript date.
534
- #endif
535
- bool IsString() const; ///< Tests if a value is a JavaScript string.
536
- bool IsSymbol() const; ///< Tests if a value is a JavaScript symbol.
537
- bool IsArray() const; ///< Tests if a value is a JavaScript array.
538
- bool IsArrayBuffer()
539
- const; ///< Tests if a value is a JavaScript array buffer.
540
- bool IsTypedArray() const; ///< Tests if a value is a JavaScript typed array.
541
- bool IsObject() const; ///< Tests if a value is a JavaScript object.
542
- bool IsFunction() const; ///< Tests if a value is a JavaScript function.
543
- bool IsPromise() const; ///< Tests if a value is a JavaScript promise.
544
- bool IsDataView() const; ///< Tests if a value is a JavaScript data view.
545
- bool IsBuffer() const; ///< Tests if a value is a Node buffer.
546
- bool IsExternal() const; ///< Tests if a value is a pointer to external data.
547
- #ifdef NODE_API_EXPERIMENTAL_HAS_SHAREDARRAYBUFFER
548
- bool IsSharedArrayBuffer() const;
549
- #endif
550
-
551
- /// Casts to another type of `Napi::Value`, when the actual type is known or
552
- /// assumed.
553
- ///
554
- /// This conversion does NOT coerce the type. Calling any methods
555
- /// inappropriate for the actual value type will throw `Napi::Error`.
556
- ///
557
- /// If `NODE_ADDON_API_ENABLE_TYPE_CHECK_ON_AS` is defined, this method
558
- /// asserts that the actual type is the expected type.
559
- template <typename T>
560
- T As() const;
561
-
562
- // Unsafe Value::As(), should be avoided.
563
- template <typename T>
564
- T UnsafeAs() const;
565
-
566
- MaybeOrValue<Boolean> ToBoolean()
567
- const; ///< Coerces a value to a JavaScript boolean.
568
- MaybeOrValue<Number> ToNumber()
569
- const; ///< Coerces a value to a JavaScript number.
570
- MaybeOrValue<String> ToString()
571
- const; ///< Coerces a value to a JavaScript string.
572
- MaybeOrValue<Object> ToObject()
573
- const; ///< Coerces a value to a JavaScript object.
574
-
575
- protected:
576
- /// !cond INTERNAL
577
- napi_env _env;
578
- napi_value _value;
579
- /// !endcond
580
- };
581
-
582
- /// A JavaScript boolean value.
583
- class Boolean : public Value {
584
- public:
585
- static Boolean New(napi_env env, ///< Node-API environment
586
- bool value ///< Boolean value
587
- );
588
-
589
- static void CheckCast(napi_env env, napi_value value);
590
-
591
- Boolean(); ///< Creates a new _empty_ Boolean instance.
592
- Boolean(napi_env env,
593
- napi_value value); ///< Wraps a Node-API value primitive.
594
-
595
- operator bool() const; ///< Converts a Boolean value to a boolean primitive.
596
- bool Value() const; ///< Converts a Boolean value to a boolean primitive.
597
- };
598
-
599
- /// A JavaScript number value.
600
- class Number : public Value {
601
- public:
602
- static Number New(napi_env env, ///< Node-API environment
603
- double value ///< Number value
604
- );
605
-
606
- static void CheckCast(napi_env env, napi_value value);
607
-
608
- Number(); ///< Creates a new _empty_ Number instance.
609
- Number(napi_env env,
610
- napi_value value); ///< Wraps a Node-API value primitive.
611
-
612
- operator int32_t()
613
- const; ///< Converts a Number value to a 32-bit signed integer value.
614
- operator uint32_t()
615
- const; ///< Converts a Number value to a 32-bit unsigned integer value.
616
- operator int64_t()
617
- const; ///< Converts a Number value to a 64-bit signed integer value.
618
- operator float()
619
- const; ///< Converts a Number value to a 32-bit floating-point value.
620
- operator double()
621
- const; ///< Converts a Number value to a 64-bit floating-point value.
622
-
623
- int32_t Int32Value()
624
- const; ///< Converts a Number value to a 32-bit signed integer value.
625
- uint32_t Uint32Value()
626
- const; ///< Converts a Number value to a 32-bit unsigned integer value.
627
- int64_t Int64Value()
628
- const; ///< Converts a Number value to a 64-bit signed integer value.
629
- float FloatValue()
630
- const; ///< Converts a Number value to a 32-bit floating-point value.
631
- double DoubleValue()
632
- const; ///< Converts a Number value to a 64-bit floating-point value.
633
- };
634
-
635
- #if NAPI_VERSION > 5
636
- /// A JavaScript bigint value.
637
- class BigInt : public Value {
638
- public:
639
- static BigInt New(napi_env env, ///< Node-API environment
640
- int64_t value ///< Number value
641
- );
642
- static BigInt New(napi_env env, ///< Node-API environment
643
- uint64_t value ///< Number value
644
- );
645
-
646
- /// Creates a new BigInt object using a specified sign bit and a
647
- /// specified list of digits/words.
648
- /// The resulting number is calculated as:
649
- /// (-1)^sign_bit * (words[0] * (2^64)^0 + words[1] * (2^64)^1 + ...)
650
- static BigInt New(napi_env env, ///< Node-API environment
651
- int sign_bit, ///< Sign bit. 1 if negative.
652
- size_t word_count, ///< Number of words in array
653
- const uint64_t* words ///< Array of words
654
- );
655
-
656
- static void CheckCast(napi_env env, napi_value value);
657
-
658
- BigInt(); ///< Creates a new _empty_ BigInt instance.
659
- BigInt(napi_env env,
660
- napi_value value); ///< Wraps a Node-API value primitive.
661
-
662
- int64_t Int64Value(bool* lossless)
663
- const; ///< Converts a BigInt value to a 64-bit signed integer value.
664
- uint64_t Uint64Value(bool* lossless)
665
- const; ///< Converts a BigInt value to a 64-bit unsigned integer value.
666
-
667
- size_t WordCount() const; ///< The number of 64-bit words needed to store
668
- ///< the result of ToWords().
669
-
670
- /// Writes the contents of this BigInt to a specified memory location.
671
- /// `sign_bit` must be provided and will be set to 1 if this BigInt is
672
- /// negative.
673
- /// `*word_count` has to be initialized to the length of the `words` array.
674
- /// Upon return, it will be set to the actual number of words that would
675
- /// be needed to store this BigInt (i.e. the return value of `WordCount()`).
676
- void ToWords(int* sign_bit, size_t* word_count, uint64_t* words);
677
- };
678
- #endif // NAPI_VERSION > 5
679
-
680
- #if (NAPI_VERSION > 4)
681
- /// A JavaScript date value.
682
- class Date : public Value {
683
- public:
684
- /// Creates a new Date value from a double primitive.
685
- static Date New(napi_env env, ///< Node-API environment
686
- double value ///< Number value
687
- );
688
-
689
- /// Creates a new Date value from a std::chrono::system_clock::time_point.
690
- static Date New(
691
- napi_env env, ///< Node-API environment
692
- std::chrono::system_clock::time_point time_point ///< Time point value
693
- );
694
-
695
- static void CheckCast(napi_env env, napi_value value);
696
-
697
- Date(); ///< Creates a new _empty_ Date instance.
698
- Date(napi_env env, napi_value value); ///< Wraps a Node-API value primitive.
699
- operator double() const; ///< Converts a Date value to double primitive
700
-
701
- double ValueOf() const; ///< Converts a Date value to a double primitive.
702
- };
703
- #endif
704
-
705
- /// A JavaScript string or symbol value (that can be used as a property name).
706
- class Name : public Value {
707
- public:
708
- static void CheckCast(napi_env env, napi_value value);
709
-
710
- Name(); ///< Creates a new _empty_ Name instance.
711
- Name(napi_env env,
712
- napi_value value); ///< Wraps a Node-API value primitive.
713
- };
714
-
715
- /// A JavaScript string value.
716
- class String : public Name {
717
- public:
718
- /// Creates a new String value from a UTF-8 encoded C++ string.
719
- static String New(napi_env env, ///< Node-API environment
720
- const std::string& value ///< UTF-8 encoded C++ string
721
- );
722
-
723
- /// Creates a new String value from a UTF-16 encoded C++ string.
724
- static String New(napi_env env, ///< Node-API environment
725
- const std::u16string& value ///< UTF-16 encoded C++ string
726
- );
727
-
728
- /// Creates a new String value from a UTF-8 encoded C string.
729
- static String New(
730
- napi_env env, ///< Node-API environment
731
- const char* value ///< UTF-8 encoded null-terminated C string
732
- );
733
-
734
- /// Creates a new String value from a UTF-16 encoded C string.
735
- static String New(
736
- napi_env env, ///< Node-API environment
737
- const char16_t* value ///< UTF-16 encoded null-terminated C string
738
- );
739
-
740
- /// Creates a new String value from a UTF-8 encoded C string with specified
741
- /// length.
742
- static String New(napi_env env, ///< Node-API environment
743
- const char* value, ///< UTF-8 encoded C string (not
744
- ///< necessarily null-terminated)
745
- size_t length ///< length of the string in bytes
746
- );
747
-
748
- /// Creates a new String value from a UTF-16 encoded C string with specified
749
- /// length.
750
- static String New(
751
- napi_env env, ///< Node-API environment
752
- const char16_t* value, ///< UTF-16 encoded C string (not necessarily
753
- ///< null-terminated)
754
- size_t length ///< Length of the string in 2-byte code units
755
- );
756
-
757
- /// Creates a new String based on the original object's type.
758
- ///
759
- /// `value` may be any of:
760
- /// - const char* (encoded using UTF-8, null-terminated)
761
- /// - const char16_t* (encoded using UTF-16-LE, null-terminated)
762
- /// - std::string (encoded using UTF-8)
763
- /// - std::u16string
764
- template <typename T>
765
- static String From(napi_env env, const T& value);
766
-
767
- static void CheckCast(napi_env env, napi_value value);
768
-
769
- String(); ///< Creates a new _empty_ String instance.
770
- String(napi_env env,
771
- napi_value value); ///< Wraps a Node-API value primitive.
772
-
773
- operator std::string()
774
- const; ///< Converts a String value to a UTF-8 encoded C++ string.
775
- operator std::u16string()
776
- const; ///< Converts a String value to a UTF-16 encoded C++ string.
777
- std::string Utf8Value()
778
- const; ///< Converts a String value to a UTF-8 encoded C++ string.
779
- std::u16string Utf16Value()
780
- const; ///< Converts a String value to a UTF-16 encoded C++ string.
781
- };
782
-
783
- /// A JavaScript symbol value.
784
- class Symbol : public Name {
785
- public:
786
- /// Creates a new Symbol value with an optional description.
787
- static Symbol New(
788
- napi_env env, ///< Node-API environment
789
- const char* description =
790
- nullptr ///< Optional UTF-8 encoded null-terminated C string
791
- /// describing the symbol
792
- );
793
-
794
- /// Creates a new Symbol value with a description.
795
- static Symbol New(
796
- napi_env env, ///< Node-API environment
797
- const std::string&
798
- description ///< UTF-8 encoded C++ string describing the symbol
799
- );
800
-
801
- /// Creates a new Symbol value with a description.
802
- static Symbol New(napi_env env, ///< Node-API environment
803
- String description ///< String value describing the symbol
804
- );
805
-
806
- /// Creates a new Symbol value with a description.
807
- static Symbol New(
808
- napi_env env, ///< Node-API environment
809
- napi_value description ///< String value describing the symbol
810
- );
811
-
812
- /// Get a public Symbol (e.g. Symbol.iterator).
813
- static MaybeOrValue<Symbol> WellKnown(napi_env, const std::string& name);
814
-
815
- // Create a symbol in the global registry, UTF-8 Encoded cpp string
816
- static MaybeOrValue<Symbol> For(napi_env env, const std::string& description);
817
-
818
- // Create a symbol in the global registry, C style string (null terminated)
819
- static MaybeOrValue<Symbol> For(napi_env env, const char* description);
820
-
821
- // Create a symbol in the global registry, String value describing the symbol
822
- static MaybeOrValue<Symbol> For(napi_env env, String description);
823
-
824
- // Create a symbol in the global registry, napi_value describing the symbol
825
- static MaybeOrValue<Symbol> For(napi_env env, napi_value description);
826
-
827
- static void CheckCast(napi_env env, napi_value value);
828
-
829
- Symbol(); ///< Creates a new _empty_ Symbol instance.
830
- Symbol(napi_env env,
831
- napi_value value); ///< Wraps a Node-API value primitive.
832
- };
833
-
834
- class TypeTaggable : public Value {
835
- public:
836
- #if NAPI_VERSION >= 8
837
- void TypeTag(const napi_type_tag* type_tag) const;
838
- bool CheckTypeTag(const napi_type_tag* type_tag) const;
839
- #endif // NAPI_VERSION >= 8
840
- protected:
841
- TypeTaggable();
842
- TypeTaggable(napi_env env, napi_value value);
843
- };
844
-
845
- /// A JavaScript object value.
846
- class Object : public TypeTaggable {
847
- public:
848
- /// Enables property and element assignments using indexing syntax.
849
- ///
850
- /// This is a convenient helper to get and set object properties. As
851
- /// getting and setting object properties may throw with JavaScript
852
- /// exceptions, it is notable that these operations may fail.
853
- /// When NODE_ADDON_API_ENABLE_MAYBE is defined, the process will abort
854
- /// on JavaScript exceptions.
855
- ///
856
- /// Example:
857
- ///
858
- /// Napi::Value propertyValue = object1['A'];
859
- /// object2['A'] = propertyValue;
860
- /// Napi::Value elementValue = array[0];
861
- /// array[1] = elementValue;
862
- template <typename Key>
863
- class PropertyLValue {
864
- public:
865
- /// Converts an L-value to a value.
866
- operator Value() const;
867
-
868
- /// Assigns a value to the property. The type of value can be
869
- /// anything supported by `Object::Set`.
870
- template <typename ValueType>
871
- PropertyLValue& operator=(ValueType value);
872
-
873
- /// Converts an L-value to a value. For convenience.
874
- Value AsValue() const;
875
-
876
- private:
877
- PropertyLValue() = delete;
878
- PropertyLValue(Object object, Key key);
879
- napi_env _env;
880
- napi_value _object;
881
- Key _key;
882
-
883
- friend class Napi::Object;
884
- };
885
-
886
- /// Creates a new Object value.
887
- static Object New(napi_env env ///< Node-API environment
888
- );
889
-
890
- static void CheckCast(napi_env env, napi_value value);
891
-
892
- Object(); ///< Creates a new _empty_ Object instance.
893
- Object(napi_env env,
894
- napi_value value); ///< Wraps a Node-API value primitive.
895
-
896
- /// Gets or sets a named property.
897
- PropertyLValue<std::string> operator[](
898
- const char* utf8name ///< UTF-8 encoded null-terminated property name
899
- );
900
-
901
- /// Gets or sets a named property.
902
- PropertyLValue<std::string> operator[](
903
- const std::string& utf8name ///< UTF-8 encoded property name
904
- );
905
-
906
- /// Gets or sets an indexed property or array element.
907
- PropertyLValue<uint32_t> operator[](
908
- uint32_t index /// Property / element index
909
- );
910
-
911
- /// Gets or sets an indexed property or array element.
912
- PropertyLValue<Value> operator[](Value index /// Property / element index
913
- ) const;
914
-
915
- /// Gets a named property.
916
- MaybeOrValue<Value> operator[](
917
- const char* utf8name ///< UTF-8 encoded null-terminated property name
918
- ) const;
919
-
920
- /// Gets a named property.
921
- MaybeOrValue<Value> operator[](
922
- const std::string& utf8name ///< UTF-8 encoded property name
923
- ) const;
924
-
925
- /// Gets an indexed property or array element.
926
- MaybeOrValue<Value> operator[](uint32_t index ///< Property / element index
927
- ) const;
928
-
929
- /// Checks whether a property is present.
930
- MaybeOrValue<bool> Has(napi_value key ///< Property key primitive
931
- ) const;
932
-
933
- /// Checks whether a property is present.
934
- MaybeOrValue<bool> Has(Value key ///< Property key
935
- ) const;
936
-
937
- /// Checks whether a named property is present.
938
- MaybeOrValue<bool> Has(
939
- const char* utf8name ///< UTF-8 encoded null-terminated property name
940
- ) const;
941
-
942
- /// Checks whether a named property is present.
943
- MaybeOrValue<bool> Has(
944
- const std::string& utf8name ///< UTF-8 encoded property name
945
- ) const;
946
-
947
- /// Checks whether a own property is present.
948
- MaybeOrValue<bool> HasOwnProperty(napi_value key ///< Property key primitive
949
- ) const;
950
-
951
- /// Checks whether a own property is present.
952
- MaybeOrValue<bool> HasOwnProperty(Value key ///< Property key
953
- ) const;
954
-
955
- /// Checks whether a own property is present.
956
- MaybeOrValue<bool> HasOwnProperty(
957
- const char* utf8name ///< UTF-8 encoded null-terminated property name
958
- ) const;
959
-
960
- /// Checks whether a own property is present.
961
- MaybeOrValue<bool> HasOwnProperty(
962
- const std::string& utf8name ///< UTF-8 encoded property name
963
- ) const;
964
-
965
- /// Gets a property.
966
- MaybeOrValue<Value> Get(napi_value key ///< Property key primitive
967
- ) const;
968
-
969
- /// Gets a property.
970
- MaybeOrValue<Value> Get(Value key ///< Property key
971
- ) const;
972
-
973
- /// Gets a named property.
974
- MaybeOrValue<Value> Get(
975
- const char* utf8name ///< UTF-8 encoded null-terminated property name
976
- ) const;
977
-
978
- /// Gets a named property.
979
- MaybeOrValue<Value> Get(
980
- const std::string& utf8name ///< UTF-8 encoded property name
981
- ) const;
982
-
983
- /// Sets a property.
984
- template <typename ValueType>
985
- MaybeOrValue<bool> Set(napi_value key, ///< Property key primitive
986
- const ValueType& value ///< Property value primitive
987
- ) const;
988
-
989
- /// Sets a property.
990
- template <typename ValueType>
991
- MaybeOrValue<bool> Set(Value key, ///< Property key
992
- const ValueType& value ///< Property value
993
- ) const;
994
-
995
- /// Sets a named property.
996
- template <typename ValueType>
997
- MaybeOrValue<bool> Set(
998
- const char* utf8name, ///< UTF-8 encoded null-terminated property name
999
- const ValueType& value) const;
1000
-
1001
- /// Sets a named property.
1002
- template <typename ValueType>
1003
- MaybeOrValue<bool> Set(
1004
- const std::string& utf8name, ///< UTF-8 encoded property name
1005
- const ValueType& value ///< Property value primitive
1006
- ) const;
1007
-
1008
- /// Delete property.
1009
- MaybeOrValue<bool> Delete(napi_value key ///< Property key primitive
1010
- ) const;
1011
-
1012
- /// Delete property.
1013
- MaybeOrValue<bool> Delete(Value key ///< Property key
1014
- ) const;
1015
-
1016
- /// Delete property.
1017
- MaybeOrValue<bool> Delete(
1018
- const char* utf8name ///< UTF-8 encoded null-terminated property name
1019
- ) const;
1020
-
1021
- /// Delete property.
1022
- MaybeOrValue<bool> Delete(
1023
- const std::string& utf8name ///< UTF-8 encoded property name
1024
- ) const;
1025
-
1026
- /// Checks whether an indexed property is present.
1027
- MaybeOrValue<bool> Has(uint32_t index ///< Property / element index
1028
- ) const;
1029
-
1030
- /// Gets an indexed property or array element.
1031
- MaybeOrValue<Value> Get(uint32_t index ///< Property / element index
1032
- ) const;
1033
-
1034
- /// Sets an indexed property or array element.
1035
- template <typename ValueType>
1036
- MaybeOrValue<bool> Set(uint32_t index, ///< Property / element index
1037
- const ValueType& value ///< Property value primitive
1038
- ) const;
1039
-
1040
- /// Deletes an indexed property or array element.
1041
- MaybeOrValue<bool> Delete(uint32_t index ///< Property / element index
1042
- ) const;
1043
-
1044
- /// This operation can fail in case of Proxy.[[OwnPropertyKeys]] and
1045
- /// Proxy.[[GetOwnProperty]] calling into JavaScript. See:
1046
- /// -
1047
- /// https://tc39.es/ecma262/#sec-proxy-object-internal-methods-and-internal-slots-ownpropertykeys
1048
- /// -
1049
- /// https://tc39.es/ecma262/#sec-proxy-object-internal-methods-and-internal-slots-getownproperty-p
1050
- MaybeOrValue<Array> GetPropertyNames() const; ///< Get all property names
1051
-
1052
- /// Defines a property on the object.
1053
- ///
1054
- /// This operation can fail in case of Proxy.[[DefineOwnProperty]] calling
1055
- /// into JavaScript. See
1056
- /// https://tc39.es/ecma262/#sec-proxy-object-internal-methods-and-internal-slots-defineownproperty-p-desc
1057
- MaybeOrValue<bool> DefineProperty(
1058
- const PropertyDescriptor&
1059
- property ///< Descriptor for the property to be defined
1060
- ) const;
1061
-
1062
- /// Defines properties on the object.
1063
- ///
1064
- /// This operation can fail in case of Proxy.[[DefineOwnProperty]] calling
1065
- /// into JavaScript. See
1066
- /// https://tc39.es/ecma262/#sec-proxy-object-internal-methods-and-internal-slots-defineownproperty-p-desc
1067
- MaybeOrValue<bool> DefineProperties(
1068
- const std::initializer_list<PropertyDescriptor>& properties
1069
- ///< List of descriptors for the properties to be defined
1070
- ) const;
1071
-
1072
- /// Defines properties on the object.
1073
- ///
1074
- /// This operation can fail in case of Proxy.[[DefineOwnProperty]] calling
1075
- /// into JavaScript. See
1076
- /// https://tc39.es/ecma262/#sec-proxy-object-internal-methods-and-internal-slots-defineownproperty-p-desc
1077
- MaybeOrValue<bool> DefineProperties(
1078
- const std::vector<PropertyDescriptor>& properties
1079
- ///< Vector of descriptors for the properties to be defined
1080
- ) const;
1081
-
1082
- /// Checks if an object is an instance created by a constructor function.
1083
- ///
1084
- /// This is equivalent to the JavaScript `instanceof` operator.
1085
- ///
1086
- /// This operation can fail in case of Proxy.[[GetPrototypeOf]] calling into
1087
- /// JavaScript.
1088
- /// See
1089
- /// https://tc39.es/ecma262/#sec-proxy-object-internal-methods-and-internal-slots-getprototypeof
1090
- MaybeOrValue<bool> InstanceOf(
1091
- const Function& constructor ///< Constructor function
1092
- ) const;
1093
-
1094
- template <typename Finalizer, typename T>
1095
- inline void AddFinalizer(Finalizer finalizeCallback, T* data) const;
1096
-
1097
- template <typename Finalizer, typename T, typename Hint>
1098
- inline void AddFinalizer(Finalizer finalizeCallback,
1099
- T* data,
1100
- Hint* finalizeHint) const;
1101
-
1102
- #ifdef NODE_ADDON_API_CPP_EXCEPTIONS
1103
- class const_iterator;
1104
-
1105
- inline const_iterator begin() const;
1106
-
1107
- inline const_iterator end() const;
1108
-
1109
- class iterator;
1110
-
1111
- inline iterator begin();
1112
-
1113
- inline iterator end();
1114
- #endif // NODE_ADDON_API_CPP_EXCEPTIONS
1115
-
1116
- #if NAPI_VERSION >= 8
1117
- /// This operation can fail in case of Proxy.[[GetPrototypeOf]] calling into
1118
- /// JavaScript.
1119
- /// See
1120
- /// https://tc39.es/ecma262/#sec-proxy-object-internal-methods-and-internal-slots-getprototypeof
1121
- MaybeOrValue<bool> Freeze() const;
1122
- /// This operation can fail in case of Proxy.[[GetPrototypeOf]] calling into
1123
- /// JavaScript.
1124
- /// See
1125
- /// https://tc39.es/ecma262/#sec-proxy-object-internal-methods-and-internal-slots-getprototypeof
1126
- MaybeOrValue<bool> Seal() const;
1127
- #endif // NAPI_VERSION >= 8
1128
-
1129
- MaybeOrValue<Object> GetPrototype() const;
1130
-
1131
- #ifdef NODE_API_EXPERIMENTAL_HAS_SET_PROTOTYPE
1132
- MaybeOrValue<bool> SetPrototype(const Object& value) const;
1133
- #endif
1134
- };
1135
-
1136
- template <typename T>
1137
- class External : public TypeTaggable {
1138
- public:
1139
- static External New(napi_env env, T* data);
1140
-
1141
- // Finalizer must implement `void operator()(Env env, T* data)`.
1142
- template <typename Finalizer>
1143
- static External New(napi_env env, T* data, Finalizer finalizeCallback);
1144
- // Finalizer must implement `void operator()(Env env, T* data, Hint* hint)`.
1145
- template <typename Finalizer, typename Hint>
1146
- static External New(napi_env env,
1147
- T* data,
1148
- Finalizer finalizeCallback,
1149
- Hint* finalizeHint);
1150
-
1151
- static void CheckCast(napi_env env, napi_value value);
1152
-
1153
- External();
1154
- External(napi_env env, napi_value value);
1155
-
1156
- T* Data() const;
1157
- };
1158
-
1159
- class Array : public Object {
1160
- public:
1161
- static Array New(napi_env env);
1162
- static Array New(napi_env env, size_t length);
1163
-
1164
- static void CheckCast(napi_env env, napi_value value);
1165
-
1166
- Array();
1167
- Array(napi_env env, napi_value value);
1168
-
1169
- uint32_t Length() const;
1170
- };
1171
-
1172
- #ifdef NODE_ADDON_API_CPP_EXCEPTIONS
1173
- class Object::const_iterator {
1174
- private:
1175
- enum class Type { BEGIN, END };
1176
-
1177
- inline const_iterator(const Object* object, const Type type);
1178
-
1179
- public:
1180
- inline const_iterator& operator++();
1181
-
1182
- inline bool operator==(const const_iterator& other) const;
1183
-
1184
- inline bool operator!=(const const_iterator& other) const;
1185
-
1186
- inline const std::pair<Value, Object::PropertyLValue<Value>> operator*()
1187
- const;
1188
-
1189
- private:
1190
- const Napi::Object* _object;
1191
- Array _keys;
1192
- uint32_t _index;
1193
-
1194
- friend class Object;
1195
- };
1196
-
1197
- class Object::iterator {
1198
- private:
1199
- enum class Type { BEGIN, END };
1200
-
1201
- inline iterator(Object* object, const Type type);
1202
-
1203
- public:
1204
- inline iterator& operator++();
1205
-
1206
- inline bool operator==(const iterator& other) const;
1207
-
1208
- inline bool operator!=(const iterator& other) const;
1209
-
1210
- inline std::pair<Value, Object::PropertyLValue<Value>> operator*();
1211
-
1212
- private:
1213
- Napi::Object* _object;
1214
- Array _keys;
1215
- uint32_t _index;
1216
-
1217
- friend class Object;
1218
- };
1219
- #endif // NODE_ADDON_API_CPP_EXCEPTIONS
1220
-
1221
- #ifdef NODE_API_EXPERIMENTAL_HAS_SHAREDARRAYBUFFER
1222
- class SharedArrayBuffer : public Object {
1223
- public:
1224
- SharedArrayBuffer();
1225
- SharedArrayBuffer(napi_env env, napi_value value);
1226
-
1227
- static SharedArrayBuffer New(napi_env env, size_t byteLength);
1228
-
1229
- static void CheckCast(napi_env env, napi_value value);
1230
-
1231
- void* Data();
1232
- size_t ByteLength();
1233
- };
1234
- #endif
1235
-
1236
- /// A JavaScript array buffer value.
1237
- class ArrayBuffer : public Object {
1238
- public:
1239
- /// Creates a new ArrayBuffer instance over a new automatically-allocated
1240
- /// buffer.
1241
- static ArrayBuffer New(
1242
- napi_env env, ///< Node-API environment
1243
- size_t byteLength ///< Length of the buffer to be allocated, in bytes
1244
- );
1245
-
1246
- #ifndef NODE_API_NO_EXTERNAL_BUFFERS_ALLOWED
1247
- /// Creates a new ArrayBuffer instance, using an external buffer with
1248
- /// specified byte length.
1249
- static ArrayBuffer New(
1250
- napi_env env, ///< Node-API environment
1251
- void* externalData, ///< Pointer to the external buffer to be used by
1252
- ///< the array
1253
- size_t byteLength ///< Length of the external buffer to be used by the
1254
- ///< array, in bytes
1255
- );
1256
-
1257
- /// Creates a new ArrayBuffer instance, using an external buffer with
1258
- /// specified byte length.
1259
- template <typename Finalizer>
1260
- static ArrayBuffer New(
1261
- napi_env env, ///< Node-API environment
1262
- void* externalData, ///< Pointer to the external buffer to be used by
1263
- ///< the array
1264
- size_t byteLength, ///< Length of the external buffer to be used by the
1265
- ///< array,
1266
- /// in bytes
1267
- Finalizer finalizeCallback ///< Function to be called when the array
1268
- ///< buffer is destroyed;
1269
- /// must implement `void operator()(Env env,
1270
- /// void* externalData)`
1271
- );
1272
-
1273
- /// Creates a new ArrayBuffer instance, using an external buffer with
1274
- /// specified byte length.
1275
- template <typename Finalizer, typename Hint>
1276
- static ArrayBuffer New(
1277
- napi_env env, ///< Node-API environment
1278
- void* externalData, ///< Pointer to the external buffer to be used by
1279
- ///< the array
1280
- size_t byteLength, ///< Length of the external buffer to be used by the
1281
- ///< array,
1282
- /// in bytes
1283
- Finalizer finalizeCallback, ///< Function to be called when the array
1284
- ///< buffer is destroyed;
1285
- /// must implement `void operator()(Env
1286
- /// env, void* externalData, Hint* hint)`
1287
- Hint* finalizeHint ///< Hint (second parameter) to be passed to the
1288
- ///< finalize callback
1289
- );
1290
- #endif // NODE_API_NO_EXTERNAL_BUFFERS_ALLOWED
1291
-
1292
- static void CheckCast(napi_env env, napi_value value);
1293
-
1294
- ArrayBuffer(); ///< Creates a new _empty_ ArrayBuffer instance.
1295
- ArrayBuffer(napi_env env,
1296
- napi_value value); ///< Wraps a Node-API value primitive.
1297
-
1298
- void* Data(); ///< Gets a pointer to the data buffer.
1299
- size_t ByteLength(); ///< Gets the length of the array buffer in bytes.
1300
-
1301
- #if NAPI_VERSION >= 7
1302
- bool IsDetached() const;
1303
- void Detach();
1304
- #endif // NAPI_VERSION >= 7
1305
- };
1306
-
1307
- /// A JavaScript typed-array value with unknown array type.
1308
- ///
1309
- /// For type-specific operations, cast to a `TypedArrayOf<T>` instance using the
1310
- /// `As()` method:
1311
- ///
1312
- /// Napi::TypedArray array = ...
1313
- /// if (t.TypedArrayType() == napi_int32_array) {
1314
- /// Napi::Int32Array int32Array = t.As<Napi::Int32Array>();
1315
- /// }
1316
- class TypedArray : public Object {
1317
- public:
1318
- static void CheckCast(napi_env env, napi_value value);
1319
-
1320
- TypedArray(); ///< Creates a new _empty_ TypedArray instance.
1321
- TypedArray(napi_env env,
1322
- napi_value value); ///< Wraps a Node-API value primitive.
1323
-
1324
- napi_typedarray_type TypedArrayType()
1325
- const; ///< Gets the type of this typed-array.
1326
- Napi::ArrayBuffer ArrayBuffer() const; ///< Gets the backing array buffer.
1327
-
1328
- uint8_t ElementSize()
1329
- const; ///< Gets the size in bytes of one element in the array.
1330
- size_t ElementLength() const; ///< Gets the number of elements in the array.
1331
- size_t ByteOffset()
1332
- const; ///< Gets the offset into the buffer where the array starts.
1333
- size_t ByteLength() const; ///< Gets the length of the array in bytes.
1334
-
1335
- protected:
1336
- /// !cond INTERNAL
1337
- napi_typedarray_type _type;
1338
- size_t _length;
1339
-
1340
- TypedArray(napi_env env,
1341
- napi_value value,
1342
- napi_typedarray_type type,
1343
- size_t length);
1344
-
1345
- template <typename T>
1346
- static
1347
- #if defined(NAPI_HAS_CONSTEXPR)
1348
- constexpr
1349
- #endif
1350
- napi_typedarray_type
1351
- TypedArrayTypeForPrimitiveType() {
1352
- return std::is_same<T, int8_t>::value ? napi_int8_array
1353
- : std::is_same<T, uint8_t>::value ? napi_uint8_array
1354
- : std::is_same<T, int16_t>::value ? napi_int16_array
1355
- : std::is_same<T, uint16_t>::value ? napi_uint16_array
1356
- : std::is_same<T, int32_t>::value ? napi_int32_array
1357
- : std::is_same<T, uint32_t>::value ? napi_uint32_array
1358
- : std::is_same<T, float>::value ? napi_float32_array
1359
- : std::is_same<T, double>::value ? napi_float64_array
1360
- #if NAPI_VERSION > 5
1361
- : std::is_same<T, int64_t>::value ? napi_bigint64_array
1362
- : std::is_same<T, uint64_t>::value ? napi_biguint64_array
1363
- #endif // NAPI_VERSION > 5
1364
- : napi_int8_array;
1365
- }
1366
- /// !endcond
1367
- };
1368
-
1369
- /// A JavaScript typed-array value with known array type.
1370
- ///
1371
- /// Note while it is possible to create and access Uint8 "clamped" arrays using
1372
- /// this class, the _clamping_ behavior is only applied in JavaScript.
1373
- template <typename T>
1374
- class TypedArrayOf : public TypedArray {
1375
- public:
1376
- /// Creates a new TypedArray instance over a new automatically-allocated array
1377
- /// buffer.
1378
- ///
1379
- /// The array type parameter can normally be omitted (because it is inferred
1380
- /// from the template parameter T), except when creating a "clamped" array:
1381
- ///
1382
- /// Uint8Array::New(env, length, napi_uint8_clamped_array)
1383
- static TypedArrayOf New(
1384
- napi_env env, ///< Node-API environment
1385
- size_t elementLength, ///< Length of the created array, as a number of
1386
- ///< elements
1387
- #if defined(NAPI_HAS_CONSTEXPR)
1388
- napi_typedarray_type type =
1389
- TypedArray::TypedArrayTypeForPrimitiveType<T>()
1390
- #else
1391
- napi_typedarray_type type
1392
- #endif
1393
- ///< Type of array, if different from the default array type for the
1394
- ///< template parameter T.
1395
- );
1396
-
1397
- /// Creates a new TypedArray instance over a provided array buffer.
1398
- ///
1399
- /// The array type parameter can normally be omitted (because it is inferred
1400
- /// from the template parameter T), except when creating a "clamped" array:
1401
- ///
1402
- /// Uint8Array::New(env, length, buffer, 0, napi_uint8_clamped_array)
1403
- static TypedArrayOf New(
1404
- napi_env env, ///< Node-API environment
1405
- size_t elementLength, ///< Length of the created array, as a number of
1406
- ///< elements
1407
- Napi::ArrayBuffer arrayBuffer, ///< Backing array buffer instance to use
1408
- size_t bufferOffset, ///< Offset into the array buffer where the
1409
- ///< typed-array starts
1410
- #if defined(NAPI_HAS_CONSTEXPR)
1411
- napi_typedarray_type type =
1412
- TypedArray::TypedArrayTypeForPrimitiveType<T>()
1413
- #else
1414
- napi_typedarray_type type
1415
- #endif
1416
- ///< Type of array, if different from the default array type for the
1417
- ///< template parameter T.
1418
- );
1419
-
1420
- static void CheckCast(napi_env env, napi_value value);
1421
-
1422
- TypedArrayOf(); ///< Creates a new _empty_ TypedArrayOf instance.
1423
- TypedArrayOf(napi_env env,
1424
- napi_value value); ///< Wraps a Node-API value primitive.
1425
-
1426
- T& operator[](size_t index); ///< Gets or sets an element in the array.
1427
- const T& operator[](size_t index) const; ///< Gets an element in the array.
1428
-
1429
- /// Gets a pointer to the array's backing buffer.
1430
- ///
1431
- /// This is not necessarily the same as the `ArrayBuffer::Data()` pointer,
1432
- /// because the typed-array may have a non-zero `ByteOffset()` into the
1433
- /// `ArrayBuffer`.
1434
- T* Data();
1435
-
1436
- /// Gets a pointer to the array's backing buffer.
1437
- ///
1438
- /// This is not necessarily the same as the `ArrayBuffer::Data()` pointer,
1439
- /// because the typed-array may have a non-zero `ByteOffset()` into the
1440
- /// `ArrayBuffer`.
1441
- const T* Data() const;
1442
-
1443
- private:
1444
- T* _data;
1445
-
1446
- TypedArrayOf(napi_env env,
1447
- napi_value value,
1448
- napi_typedarray_type type,
1449
- size_t length,
1450
- T* data);
1451
- };
1452
-
1453
- /// The DataView provides a low-level interface for reading/writing multiple
1454
- /// number types in an ArrayBuffer irrespective of the platform's endianness.
1455
- class DataView : public Object {
1456
- public:
1457
- static DataView New(napi_env env, Napi::ArrayBuffer arrayBuffer);
1458
- static DataView New(napi_env env,
1459
- Napi::ArrayBuffer arrayBuffer,
1460
- size_t byteOffset);
1461
- static DataView New(napi_env env,
1462
- Napi::ArrayBuffer arrayBuffer,
1463
- size_t byteOffset,
1464
- size_t byteLength);
1465
-
1466
- #ifdef NODE_API_EXPERIMENTAL_HAS_SHAREDARRAYBUFFER
1467
- static DataView New(napi_env env, Napi::SharedArrayBuffer arrayBuffer);
1468
- static DataView New(napi_env env,
1469
- Napi::SharedArrayBuffer arrayBuffer,
1470
- size_t byteOffset);
1471
- static DataView New(napi_env env,
1472
- Napi::SharedArrayBuffer arrayBuffer,
1473
- size_t byteOffset,
1474
- size_t byteLength);
1475
- #endif
1476
-
1477
- static void CheckCast(napi_env env, napi_value value);
1478
-
1479
- DataView(); ///< Creates a new _empty_ DataView instance.
1480
- DataView(napi_env env,
1481
- napi_value value); ///< Wraps a Node-API value primitive.
1482
-
1483
- // Gets the backing `ArrayBuffer`.
1484
- //
1485
- // If this `DataView` is not backed by an `ArrayBuffer`, this method will
1486
- // terminate the process with a fatal error when using
1487
- // `NODE_ADDON_API_ENABLE_TYPE_CHECK_ON_AS` or exhibit undefined behavior
1488
- // otherwise. Use `Buffer()` instead to get the backing buffer without
1489
- // assuming its type.
1490
- Napi::ArrayBuffer ArrayBuffer() const;
1491
-
1492
- // Gets the backing buffer (an `ArrayBuffer` or `SharedArrayBuffer`).
1493
- //
1494
- // Use `IsArrayBuffer()` or `IsSharedArrayBuffer()` to check the type of the
1495
- // backing buffer prior to casting with `As<T>()`.
1496
- Napi::Value Buffer() const;
1497
- size_t ByteOffset()
1498
- const; ///< Gets the offset into the buffer where the array starts.
1499
- size_t ByteLength() const; ///< Gets the length of the array in bytes.
1500
-
1501
- void* Data() const;
1502
-
1503
- float GetFloat32(size_t byteOffset) const;
1504
- double GetFloat64(size_t byteOffset) const;
1505
- int8_t GetInt8(size_t byteOffset) const;
1506
- int16_t GetInt16(size_t byteOffset) const;
1507
- int32_t GetInt32(size_t byteOffset) const;
1508
- uint8_t GetUint8(size_t byteOffset) const;
1509
- uint16_t GetUint16(size_t byteOffset) const;
1510
- uint32_t GetUint32(size_t byteOffset) const;
1511
-
1512
- void SetFloat32(size_t byteOffset, float value) const;
1513
- void SetFloat64(size_t byteOffset, double value) const;
1514
- void SetInt8(size_t byteOffset, int8_t value) const;
1515
- void SetInt16(size_t byteOffset, int16_t value) const;
1516
- void SetInt32(size_t byteOffset, int32_t value) const;
1517
- void SetUint8(size_t byteOffset, uint8_t value) const;
1518
- void SetUint16(size_t byteOffset, uint16_t value) const;
1519
- void SetUint32(size_t byteOffset, uint32_t value) const;
1520
-
1521
- private:
1522
- template <typename T>
1523
- T ReadData(size_t byteOffset) const;
1524
-
1525
- template <typename T>
1526
- void WriteData(size_t byteOffset, T value) const;
1527
-
1528
- void* _data{};
1529
- size_t _length{};
1530
- };
1531
-
1532
- class Function : public Object {
1533
- public:
1534
- using VoidCallback = void (*)(const CallbackInfo& info);
1535
- using Callback = Value (*)(const CallbackInfo& info);
1536
-
1537
- template <VoidCallback cb>
1538
- static Function New(napi_env env,
1539
- const char* utf8name = nullptr,
1540
- void* data = nullptr);
1541
-
1542
- template <Callback cb>
1543
- static Function New(napi_env env,
1544
- const char* utf8name = nullptr,
1545
- void* data = nullptr);
1546
-
1547
- template <VoidCallback cb>
1548
- static Function New(napi_env env,
1549
- const std::string& utf8name,
1550
- void* data = nullptr);
1551
-
1552
- template <Callback cb>
1553
- static Function New(napi_env env,
1554
- const std::string& utf8name,
1555
- void* data = nullptr);
1556
-
1557
- /// Callable must implement operator() accepting a const CallbackInfo&
1558
- /// and return either void or Value.
1559
- template <typename Callable>
1560
- static Function New(napi_env env,
1561
- Callable cb,
1562
- const char* utf8name = nullptr,
1563
- void* data = nullptr);
1564
- /// Callable must implement operator() accepting a const CallbackInfo&
1565
- /// and return either void or Value.
1566
- template <typename Callable>
1567
- static Function New(napi_env env,
1568
- Callable cb,
1569
- const std::string& utf8name,
1570
- void* data = nullptr);
1571
-
1572
- static void CheckCast(napi_env env, napi_value value);
1573
-
1574
- Function();
1575
- Function(napi_env env, napi_value value);
1576
-
1577
- MaybeOrValue<Value> operator()(
1578
- const std::initializer_list<napi_value>& args) const;
1579
-
1580
- MaybeOrValue<Value> Call(const std::initializer_list<napi_value>& args) const;
1581
- MaybeOrValue<Value> Call(const std::vector<napi_value>& args) const;
1582
- MaybeOrValue<Value> Call(const std::vector<Value>& args) const;
1583
- MaybeOrValue<Value> Call(size_t argc, const napi_value* args) const;
1584
- MaybeOrValue<Value> Call(napi_value recv,
1585
- const std::initializer_list<napi_value>& args) const;
1586
- MaybeOrValue<Value> Call(napi_value recv,
1587
- const std::vector<napi_value>& args) const;
1588
- MaybeOrValue<Value> Call(napi_value recv,
1589
- const std::vector<Value>& args) const;
1590
- MaybeOrValue<Value> Call(napi_value recv,
1591
- size_t argc,
1592
- const napi_value* args) const;
1593
-
1594
- MaybeOrValue<Value> MakeCallback(
1595
- napi_value recv,
1596
- const std::initializer_list<napi_value>& args,
1597
- napi_async_context context = nullptr) const;
1598
- MaybeOrValue<Value> MakeCallback(napi_value recv,
1599
- const std::vector<napi_value>& args,
1600
- napi_async_context context = nullptr) const;
1601
- MaybeOrValue<Value> MakeCallback(napi_value recv,
1602
- size_t argc,
1603
- const napi_value* args,
1604
- napi_async_context context = nullptr) const;
1605
-
1606
- MaybeOrValue<Object> New(const std::initializer_list<napi_value>& args) const;
1607
- MaybeOrValue<Object> New(const std::vector<napi_value>& args) const;
1608
- MaybeOrValue<Object> New(size_t argc, const napi_value* args) const;
1609
- };
1610
-
1611
- class Promise : public Object {
1612
- public:
1613
- class Deferred {
1614
- public:
1615
- static Deferred New(napi_env env);
1616
- Deferred(napi_env env);
1617
-
1618
- Napi::Promise Promise() const;
1619
- Napi::Env Env() const;
1620
-
1621
- void Resolve(napi_value value) const;
1622
- void Reject(napi_value value) const;
1623
-
1624
- private:
1625
- napi_env _env;
1626
- napi_deferred _deferred;
1627
- napi_value _promise;
1628
- };
1629
-
1630
- static void CheckCast(napi_env env, napi_value value);
1631
-
1632
- Promise();
1633
- Promise(napi_env env, napi_value value);
1634
-
1635
- MaybeOrValue<Promise> Then(napi_value onFulfilled) const;
1636
- MaybeOrValue<Promise> Then(napi_value onFulfilled,
1637
- napi_value onRejected) const;
1638
- MaybeOrValue<Promise> Catch(napi_value onRejected) const;
1639
-
1640
- MaybeOrValue<Promise> Then(const Function& onFulfilled) const;
1641
- MaybeOrValue<Promise> Then(const Function& onFulfilled,
1642
- const Function& onRejected) const;
1643
- MaybeOrValue<Promise> Catch(const Function& onRejected) const;
1644
- };
1645
-
1646
- template <typename T>
1647
- class Buffer : public Uint8Array {
1648
- public:
1649
- static Buffer<T> New(napi_env env, size_t length);
1650
- #ifndef NODE_API_NO_EXTERNAL_BUFFERS_ALLOWED
1651
- static Buffer<T> New(napi_env env, T* data, size_t length);
1652
-
1653
- // Finalizer must implement `void operator()(Env env, T* data)`.
1654
- template <typename Finalizer>
1655
- static Buffer<T> New(napi_env env,
1656
- T* data,
1657
- size_t length,
1658
- Finalizer finalizeCallback);
1659
- // Finalizer must implement `void operator()(Env env, T* data, Hint* hint)`.
1660
- template <typename Finalizer, typename Hint>
1661
- static Buffer<T> New(napi_env env,
1662
- T* data,
1663
- size_t length,
1664
- Finalizer finalizeCallback,
1665
- Hint* finalizeHint);
1666
- #endif // NODE_API_NO_EXTERNAL_BUFFERS_ALLOWED
1667
-
1668
- static Buffer<T> NewOrCopy(napi_env env, T* data, size_t length);
1669
- // Finalizer must implement `void operator()(Env env, T* data)`.
1670
- template <typename Finalizer>
1671
- static Buffer<T> NewOrCopy(napi_env env,
1672
- T* data,
1673
- size_t length,
1674
- Finalizer finalizeCallback);
1675
- // Finalizer must implement `void operator()(Env env, T* data, Hint* hint)`.
1676
- template <typename Finalizer, typename Hint>
1677
- static Buffer<T> NewOrCopy(napi_env env,
1678
- T* data,
1679
- size_t length,
1680
- Finalizer finalizeCallback,
1681
- Hint* finalizeHint);
1682
-
1683
- static Buffer<T> Copy(napi_env env, const T* data, size_t length);
1684
-
1685
- static void CheckCast(napi_env env, napi_value value);
1686
-
1687
- Buffer();
1688
- Buffer(napi_env env, napi_value value);
1689
- size_t Length() const;
1690
- T* Data() const;
1691
-
1692
- private:
1693
- };
1694
-
1695
- /// Holds a counted reference to a value; initially a weak reference unless
1696
- /// otherwise specified, may be changed to/from a strong reference by adjusting
1697
- /// the refcount.
1698
- ///
1699
- /// The referenced value is not immediately destroyed when the reference count
1700
- /// is zero; it is merely then eligible for garbage-collection if there are no
1701
- /// other references to the value.
1702
- template <typename T>
1703
- class Reference {
1704
- public:
1705
- static Reference<T> New(const T& value, uint32_t initialRefcount = 0);
1706
-
1707
- Reference();
1708
- Reference(napi_env env, napi_ref ref);
1709
- ~Reference();
1710
-
1711
- // A reference can be moved but cannot be copied.
1712
- Reference(Reference<T>&& other);
1713
- Reference<T>& operator=(Reference<T>&& other);
1714
- NAPI_DISALLOW_ASSIGN(Reference<T>)
1715
-
1716
- operator napi_ref() const;
1717
- bool operator==(const Reference<T>& other) const;
1718
- bool operator!=(const Reference<T>& other) const;
1719
-
1720
- Napi::Env Env() const;
1721
- bool IsEmpty() const;
1722
-
1723
- // Note when getting the value of a Reference it is usually correct to do so
1724
- // within a HandleScope so that the value handle gets cleaned up efficiently.
1725
- T Value() const;
1726
-
1727
- uint32_t Ref() const;
1728
- uint32_t Unref() const;
1729
- void Reset();
1730
- void Reset(const T& value, uint32_t refcount = 0);
1731
-
1732
- // Call this on a reference that is declared as static data, to prevent its
1733
- // destructor from running at program shutdown time, which would attempt to
1734
- // reset the reference when the environment is no longer valid. Avoid using
1735
- // this if at all possible. If you do need to use static data, MAKE SURE to
1736
- // warn your users that your addon is NOT threadsafe.
1737
- void SuppressDestruct();
1738
-
1739
- protected:
1740
- Reference(const Reference<T>&);
1741
-
1742
- /// !cond INTERNAL
1743
- napi_env _env;
1744
- napi_ref _ref;
1745
- /// !endcond
1746
-
1747
- private:
1748
- bool _suppressDestruct;
1749
- };
1750
-
1751
- class ObjectReference : public Reference<Object> {
1752
- public:
1753
- ObjectReference();
1754
- ObjectReference(napi_env env, napi_ref ref);
1755
-
1756
- // A reference can be moved but cannot be copied.
1757
- ObjectReference(Reference<Object>&& other);
1758
- ObjectReference& operator=(Reference<Object>&& other);
1759
- ObjectReference(ObjectReference&& other);
1760
- ObjectReference& operator=(ObjectReference&& other);
1761
- NAPI_DISALLOW_ASSIGN(ObjectReference)
1762
-
1763
- MaybeOrValue<Napi::Value> Get(const char* utf8name) const;
1764
- MaybeOrValue<Napi::Value> Get(const std::string& utf8name) const;
1765
- MaybeOrValue<bool> Set(const char* utf8name, napi_value value) const;
1766
- MaybeOrValue<bool> Set(const char* utf8name, Napi::Value value) const;
1767
- MaybeOrValue<bool> Set(const char* utf8name, const char* utf8value) const;
1768
- MaybeOrValue<bool> Set(const char* utf8name, bool boolValue) const;
1769
- MaybeOrValue<bool> Set(const char* utf8name, double numberValue) const;
1770
- MaybeOrValue<bool> Set(const std::string& utf8name, napi_value value) const;
1771
- MaybeOrValue<bool> Set(const std::string& utf8name, Napi::Value value) const;
1772
- MaybeOrValue<bool> Set(const std::string& utf8name,
1773
- const std::string& utf8value) const;
1774
- MaybeOrValue<bool> Set(const std::string& utf8name, bool boolValue) const;
1775
- MaybeOrValue<bool> Set(const std::string& utf8name, double numberValue) const;
1776
-
1777
- MaybeOrValue<Napi::Value> Get(uint32_t index) const;
1778
- MaybeOrValue<bool> Set(uint32_t index, const napi_value value) const;
1779
- MaybeOrValue<bool> Set(uint32_t index, const Napi::Value value) const;
1780
- MaybeOrValue<bool> Set(uint32_t index, const char* utf8value) const;
1781
- MaybeOrValue<bool> Set(uint32_t index, const std::string& utf8value) const;
1782
- MaybeOrValue<bool> Set(uint32_t index, bool boolValue) const;
1783
- MaybeOrValue<bool> Set(uint32_t index, double numberValue) const;
1784
-
1785
- protected:
1786
- ObjectReference(const ObjectReference&);
1787
- };
1788
-
1789
- class FunctionReference : public Reference<Function> {
1790
- public:
1791
- FunctionReference();
1792
- FunctionReference(napi_env env, napi_ref ref);
1793
-
1794
- // A reference can be moved but cannot be copied.
1795
- FunctionReference(Reference<Function>&& other);
1796
- FunctionReference& operator=(Reference<Function>&& other);
1797
- FunctionReference(FunctionReference&& other);
1798
- FunctionReference& operator=(FunctionReference&& other);
1799
- NAPI_DISALLOW_ASSIGN_COPY(FunctionReference)
1800
-
1801
- MaybeOrValue<Napi::Value> operator()(
1802
- const std::initializer_list<napi_value>& args) const;
1803
-
1804
- MaybeOrValue<Napi::Value> Call(
1805
- const std::initializer_list<napi_value>& args) const;
1806
- MaybeOrValue<Napi::Value> Call(const std::vector<napi_value>& args) const;
1807
- MaybeOrValue<Napi::Value> Call(
1808
- napi_value recv, const std::initializer_list<napi_value>& args) const;
1809
- MaybeOrValue<Napi::Value> Call(napi_value recv,
1810
- const std::vector<napi_value>& args) const;
1811
- MaybeOrValue<Napi::Value> Call(napi_value recv,
1812
- size_t argc,
1813
- const napi_value* args) const;
1814
-
1815
- MaybeOrValue<Napi::Value> MakeCallback(
1816
- napi_value recv,
1817
- const std::initializer_list<napi_value>& args,
1818
- napi_async_context context = nullptr) const;
1819
- MaybeOrValue<Napi::Value> MakeCallback(
1820
- napi_value recv,
1821
- const std::vector<napi_value>& args,
1822
- napi_async_context context = nullptr) const;
1823
- MaybeOrValue<Napi::Value> MakeCallback(
1824
- napi_value recv,
1825
- size_t argc,
1826
- const napi_value* args,
1827
- napi_async_context context = nullptr) const;
1828
-
1829
- MaybeOrValue<Object> New(const std::initializer_list<napi_value>& args) const;
1830
- MaybeOrValue<Object> New(const std::vector<napi_value>& args) const;
1831
- };
1832
-
1833
- // Shortcuts to creating a new reference with inferred type and refcount = 0.
1834
- template <typename T>
1835
- Reference<T> Weak(T value);
1836
- ObjectReference Weak(Object value);
1837
- FunctionReference Weak(Function value);
1838
-
1839
- // Shortcuts to creating a new reference with inferred type and refcount = 1.
1840
- template <typename T>
1841
- Reference<T> Persistent(T value);
1842
- ObjectReference Persistent(Object value);
1843
- FunctionReference Persistent(Function value);
1844
-
1845
- /// A persistent reference to a JavaScript error object. Use of this class
1846
- /// depends somewhat on whether C++ exceptions are enabled at compile time.
1847
- ///
1848
- /// ### Handling Errors With C++ Exceptions
1849
- ///
1850
- /// If C++ exceptions are enabled, then the `Error` class extends
1851
- /// `std::exception` and enables integrated error-handling for C++ exceptions
1852
- /// and JavaScript exceptions.
1853
- ///
1854
- /// If a Node-API call fails without executing any JavaScript code (for
1855
- /// example due to an invalid argument), then the Node-API wrapper
1856
- /// automatically converts and throws the error as a C++ exception of type
1857
- /// `Napi::Error`. Or if a JavaScript function called by C++ code via Node-API
1858
- /// throws a JavaScript exception, then the Node-API wrapper automatically
1859
- /// converts and throws it as a C++ exception of type `Napi::Error`.
1860
- ///
1861
- /// If a C++ exception of type `Napi::Error` escapes from a Node-API C++
1862
- /// callback, then the Node-API wrapper automatically converts and throws it
1863
- /// as a JavaScript exception. Therefore, catching a C++ exception of type
1864
- /// `Napi::Error` prevents a JavaScript exception from being thrown.
1865
- ///
1866
- /// #### Example 1A - Throwing a C++ exception:
1867
- ///
1868
- /// Napi::Env env = ...
1869
- /// throw Napi::Error::New(env, "Example exception");
1870
- ///
1871
- /// Following C++ statements will not be executed. The exception will bubble
1872
- /// up as a C++ exception of type `Napi::Error`, until it is either caught
1873
- /// while still in C++, or else automatically propagated as a JavaScript
1874
- /// exception when the callback returns to JavaScript.
1875
- ///
1876
- /// #### Example 2A - Propagating a Node-API C++ exception:
1877
- ///
1878
- /// Napi::Function jsFunctionThatThrows = someObj.As<Napi::Function>();
1879
- /// Napi::Value result = jsFunctionThatThrows({ arg1, arg2 });
1880
- ///
1881
- /// Following C++ statements will not be executed. The exception will bubble
1882
- /// up as a C++ exception of type `Napi::Error`, until it is either caught
1883
- /// while still in C++, or else automatically propagated as a JavaScript
1884
- /// exception when the callback returns to JavaScript.
1885
- ///
1886
- /// #### Example 3A - Handling a Node-API C++ exception:
1887
- ///
1888
- /// Napi::Function jsFunctionThatThrows = someObj.As<Napi::Function>();
1889
- /// Napi::Value result;
1890
- /// try {
1891
- /// result = jsFunctionThatThrows({ arg1, arg2 });
1892
- /// } catch (const Napi::Error& e) {
1893
- /// cerr << "Caught JavaScript exception: " + e.what();
1894
- /// }
1895
- ///
1896
- /// Since the exception was caught here, it will not be propagated as a
1897
- /// JavaScript exception.
1898
- ///
1899
- /// ### Handling Errors Without C++ Exceptions
1900
- ///
1901
- /// If C++ exceptions are disabled (by defining
1902
- /// `NODE_ADDON_API_DISABLE_CPP_EXCEPTIONS`) then this class does not extend
1903
- /// `std::exception`, and APIs in the `Napi` namespace do not throw C++
1904
- /// exceptions when they fail. Instead, they raise _pending_ JavaScript
1905
- /// exceptions and return _empty_ `Value`s. Calling code should check
1906
- /// `Value::IsEmpty()` before attempting to use a returned value, and may use
1907
- /// methods on the `Env` class to check for, get, and clear a pending JavaScript
1908
- /// exception. If the pending exception is not cleared, it will be thrown when
1909
- /// the native callback returns to JavaScript.
1910
- ///
1911
- /// #### Example 1B - Throwing a JS exception
1912
- ///
1913
- /// Napi::Env env = ...
1914
- /// Napi::Error::New(env, "Example
1915
- /// exception").ThrowAsJavaScriptException(); return;
1916
- ///
1917
- /// After throwing a JS exception, the code should generally return
1918
- /// immediately from the native callback, after performing any necessary
1919
- /// cleanup.
1920
- ///
1921
- /// #### Example 2B - Propagating a Node-API JS exception:
1922
- ///
1923
- /// Napi::Function jsFunctionThatThrows = someObj.As<Napi::Function>();
1924
- /// Napi::Value result = jsFunctionThatThrows({ arg1, arg2 });
1925
- /// if (result.IsEmpty()) return;
1926
- ///
1927
- /// An empty value result from a Node-API call indicates an error occurred,
1928
- /// and a JavaScript exception is pending. To let the exception propagate, the
1929
- /// code should generally return immediately from the native callback, after
1930
- /// performing any necessary cleanup.
1931
- ///
1932
- /// #### Example 3B - Handling a Node-API JS exception:
1933
- ///
1934
- /// Napi::Function jsFunctionThatThrows = someObj.As<Napi::Function>();
1935
- /// Napi::Value result = jsFunctionThatThrows({ arg1, arg2 });
1936
- /// if (result.IsEmpty()) {
1937
- /// Napi::Error e = env.GetAndClearPendingException();
1938
- /// cerr << "Caught JavaScript exception: " + e.Message();
1939
- /// }
1940
- ///
1941
- /// Since the exception was cleared here, it will not be propagated as a
1942
- /// JavaScript exception after the native callback returns.
1943
- class Error : public ObjectReference
1944
- #ifdef NODE_ADDON_API_CPP_EXCEPTIONS
1945
- ,
1946
- public std::exception
1947
- #endif // NODE_ADDON_API_CPP_EXCEPTIONS
1948
- {
1949
- public:
1950
- static Error New(napi_env env);
1951
- static Error New(napi_env env, const char* message);
1952
- static Error New(napi_env env, const std::string& message);
1953
-
1954
- static NAPI_NO_RETURN void Fatal(const char* location, const char* message);
1955
-
1956
- Error();
1957
- Error(napi_env env, napi_value value);
1958
-
1959
- // An error can be moved or copied.
1960
- Error(Error&& other);
1961
- Error& operator=(Error&& other);
1962
- Error(const Error&);
1963
- Error& operator=(const Error&);
1964
-
1965
- const std::string& Message() const NAPI_NOEXCEPT;
1966
- void ThrowAsJavaScriptException() const;
1967
-
1968
- Object Value() const;
1969
-
1970
- #ifdef NODE_ADDON_API_CPP_EXCEPTIONS
1971
- const char* what() const NAPI_NOEXCEPT override;
1972
- #endif // NODE_ADDON_API_CPP_EXCEPTIONS
1973
-
1974
- protected:
1975
- /// !cond INTERNAL
1976
- using create_error_fn = napi_status (*)(napi_env envb,
1977
- napi_value code,
1978
- napi_value msg,
1979
- napi_value* result);
1980
-
1981
- template <typename TError>
1982
- static TError New(napi_env env,
1983
- const char* message,
1984
- size_t length,
1985
- create_error_fn create_error);
1986
- /// !endcond
1987
-
1988
- private:
1989
- static inline const char* ERROR_WRAP_VALUE() NAPI_NOEXCEPT;
1990
- mutable std::string _message;
1991
- };
1992
-
1993
- class TypeError : public Error {
1994
- public:
1995
- static TypeError New(napi_env env, const char* message);
1996
- static TypeError New(napi_env env, const std::string& message);
1997
-
1998
- TypeError();
1999
- TypeError(napi_env env, napi_value value);
2000
- };
2001
-
2002
- class RangeError : public Error {
2003
- public:
2004
- static RangeError New(napi_env env, const char* message);
2005
- static RangeError New(napi_env env, const std::string& message);
2006
-
2007
- RangeError();
2008
- RangeError(napi_env env, napi_value value);
2009
- };
2010
-
2011
- #if NAPI_VERSION > 8
2012
- class SyntaxError : public Error {
2013
- public:
2014
- static SyntaxError New(napi_env env, const char* message);
2015
- static SyntaxError New(napi_env env, const std::string& message);
2016
-
2017
- SyntaxError();
2018
- SyntaxError(napi_env env, napi_value value);
2019
- };
2020
- #endif // NAPI_VERSION > 8
2021
-
2022
- class CallbackInfo {
2023
- public:
2024
- CallbackInfo(napi_env env, napi_callback_info info);
2025
- ~CallbackInfo();
2026
-
2027
- // Disallow copying to prevent multiple free of _dynamicArgs
2028
- NAPI_DISALLOW_ASSIGN_COPY(CallbackInfo)
2029
-
2030
- Napi::Env Env() const;
2031
- Value NewTarget() const;
2032
- bool IsConstructCall() const;
2033
- size_t Length() const;
2034
- const Value operator[](size_t index) const;
2035
- Value This() const;
2036
- void* Data() const;
2037
- void SetData(void* data);
2038
- explicit operator napi_callback_info() const;
2039
-
2040
- private:
2041
- const size_t _staticArgCount = 6;
2042
- napi_env _env;
2043
- napi_callback_info _info;
2044
- napi_value _this;
2045
- size_t _argc;
2046
- napi_value* _argv;
2047
- napi_value _staticArgs[6]{};
2048
- napi_value* _dynamicArgs;
2049
- void* _data;
2050
- };
2051
-
2052
- class PropertyDescriptor {
2053
- public:
2054
- using GetterCallback = Napi::Value (*)(const Napi::CallbackInfo& info);
2055
- using SetterCallback = void (*)(const Napi::CallbackInfo& info);
2056
-
2057
- #ifndef NODE_ADDON_API_DISABLE_DEPRECATED
2058
- template <typename Getter>
2059
- static PropertyDescriptor Accessor(
2060
- const char* utf8name,
2061
- Getter getter,
2062
- napi_property_attributes attributes = napi_default,
2063
- void* data = nullptr);
2064
- template <typename Getter>
2065
- static PropertyDescriptor Accessor(
2066
- const std::string& utf8name,
2067
- Getter getter,
2068
- napi_property_attributes attributes = napi_default,
2069
- void* data = nullptr);
2070
- template <typename Getter>
2071
- static PropertyDescriptor Accessor(
2072
- napi_value name,
2073
- Getter getter,
2074
- napi_property_attributes attributes = napi_default,
2075
- void* data = nullptr);
2076
- template <typename Getter>
2077
- static PropertyDescriptor Accessor(
2078
- Name name,
2079
- Getter getter,
2080
- napi_property_attributes attributes = napi_default,
2081
- void* data = nullptr);
2082
- template <typename Getter, typename Setter>
2083
- static PropertyDescriptor Accessor(
2084
- const char* utf8name,
2085
- Getter getter,
2086
- Setter setter,
2087
- napi_property_attributes attributes = napi_default,
2088
- void* data = nullptr);
2089
- template <typename Getter, typename Setter>
2090
- static PropertyDescriptor Accessor(
2091
- const std::string& utf8name,
2092
- Getter getter,
2093
- Setter setter,
2094
- napi_property_attributes attributes = napi_default,
2095
- void* data = nullptr);
2096
- template <typename Getter, typename Setter>
2097
- static PropertyDescriptor Accessor(
2098
- napi_value name,
2099
- Getter getter,
2100
- Setter setter,
2101
- napi_property_attributes attributes = napi_default,
2102
- void* data = nullptr);
2103
- template <typename Getter, typename Setter>
2104
- static PropertyDescriptor Accessor(
2105
- Name name,
2106
- Getter getter,
2107
- Setter setter,
2108
- napi_property_attributes attributes = napi_default,
2109
- void* data = nullptr);
2110
- template <typename Callable>
2111
- static PropertyDescriptor Function(
2112
- const char* utf8name,
2113
- Callable cb,
2114
- napi_property_attributes attributes = napi_default,
2115
- void* data = nullptr);
2116
- template <typename Callable>
2117
- static PropertyDescriptor Function(
2118
- const std::string& utf8name,
2119
- Callable cb,
2120
- napi_property_attributes attributes = napi_default,
2121
- void* data = nullptr);
2122
- template <typename Callable>
2123
- static PropertyDescriptor Function(
2124
- napi_value name,
2125
- Callable cb,
2126
- napi_property_attributes attributes = napi_default,
2127
- void* data = nullptr);
2128
- template <typename Callable>
2129
- static PropertyDescriptor Function(
2130
- Name name,
2131
- Callable cb,
2132
- napi_property_attributes attributes = napi_default,
2133
- void* data = nullptr);
2134
- #endif // !NODE_ADDON_API_DISABLE_DEPRECATED
2135
-
2136
- template <GetterCallback Getter>
2137
- static PropertyDescriptor Accessor(
2138
- const char* utf8name,
2139
- napi_property_attributes attributes = napi_default,
2140
- void* data = nullptr);
2141
-
2142
- template <GetterCallback Getter>
2143
- static PropertyDescriptor Accessor(
2144
- const std::string& utf8name,
2145
- napi_property_attributes attributes = napi_default,
2146
- void* data = nullptr);
2147
-
2148
- template <GetterCallback Getter>
2149
- static PropertyDescriptor Accessor(
2150
- Name name,
2151
- napi_property_attributes attributes = napi_default,
2152
- void* data = nullptr);
2153
-
2154
- template <GetterCallback Getter, SetterCallback Setter>
2155
- static PropertyDescriptor Accessor(
2156
- const char* utf8name,
2157
- napi_property_attributes attributes = napi_default,
2158
- void* data = nullptr);
2159
-
2160
- template <GetterCallback Getter, SetterCallback Setter>
2161
- static PropertyDescriptor Accessor(
2162
- const std::string& utf8name,
2163
- napi_property_attributes attributes = napi_default,
2164
- void* data = nullptr);
2165
-
2166
- template <GetterCallback Getter, SetterCallback Setter>
2167
- static PropertyDescriptor Accessor(
2168
- Name name,
2169
- napi_property_attributes attributes = napi_default,
2170
- void* data = nullptr);
2171
-
2172
- template <typename Getter>
2173
- static PropertyDescriptor Accessor(
2174
- Napi::Env env,
2175
- Napi::Object object,
2176
- const char* utf8name,
2177
- Getter getter,
2178
- napi_property_attributes attributes = napi_default,
2179
- void* data = nullptr);
2180
- template <typename Getter>
2181
- static PropertyDescriptor Accessor(
2182
- Napi::Env env,
2183
- Napi::Object object,
2184
- const std::string& utf8name,
2185
- Getter getter,
2186
- napi_property_attributes attributes = napi_default,
2187
- void* data = nullptr);
2188
- template <typename Getter>
2189
- static PropertyDescriptor Accessor(
2190
- Napi::Env env,
2191
- Napi::Object object,
2192
- Name name,
2193
- Getter getter,
2194
- napi_property_attributes attributes = napi_default,
2195
- void* data = nullptr);
2196
- template <typename Getter, typename Setter>
2197
- static PropertyDescriptor Accessor(
2198
- Napi::Env env,
2199
- Napi::Object object,
2200
- const char* utf8name,
2201
- Getter getter,
2202
- Setter setter,
2203
- napi_property_attributes attributes = napi_default,
2204
- void* data = nullptr);
2205
- template <typename Getter, typename Setter>
2206
- static PropertyDescriptor Accessor(
2207
- Napi::Env env,
2208
- Napi::Object object,
2209
- const std::string& utf8name,
2210
- Getter getter,
2211
- Setter setter,
2212
- napi_property_attributes attributes = napi_default,
2213
- void* data = nullptr);
2214
- template <typename Getter, typename Setter>
2215
- static PropertyDescriptor Accessor(
2216
- Napi::Env env,
2217
- Napi::Object object,
2218
- Name name,
2219
- Getter getter,
2220
- Setter setter,
2221
- napi_property_attributes attributes = napi_default,
2222
- void* data = nullptr);
2223
- template <typename Callable>
2224
- static PropertyDescriptor Function(
2225
- Napi::Env env,
2226
- Napi::Object object,
2227
- const char* utf8name,
2228
- Callable cb,
2229
- napi_property_attributes attributes = napi_default,
2230
- void* data = nullptr);
2231
- template <typename Callable>
2232
- static PropertyDescriptor Function(
2233
- Napi::Env env,
2234
- Napi::Object object,
2235
- const std::string& utf8name,
2236
- Callable cb,
2237
- napi_property_attributes attributes = napi_default,
2238
- void* data = nullptr);
2239
- template <typename Callable>
2240
- static PropertyDescriptor Function(
2241
- Napi::Env env,
2242
- Napi::Object object,
2243
- Name name,
2244
- Callable cb,
2245
- napi_property_attributes attributes = napi_default,
2246
- void* data = nullptr);
2247
- static PropertyDescriptor Value(
2248
- const char* utf8name,
2249
- napi_value value,
2250
- napi_property_attributes attributes = napi_default);
2251
- static PropertyDescriptor Value(
2252
- const std::string& utf8name,
2253
- napi_value value,
2254
- napi_property_attributes attributes = napi_default);
2255
- static PropertyDescriptor Value(
2256
- napi_value name,
2257
- napi_value value,
2258
- napi_property_attributes attributes = napi_default);
2259
- static PropertyDescriptor Value(
2260
- Name name,
2261
- Napi::Value value,
2262
- napi_property_attributes attributes = napi_default);
2263
-
2264
- PropertyDescriptor(napi_property_descriptor desc);
2265
-
2266
- operator napi_property_descriptor&();
2267
- operator const napi_property_descriptor&() const;
2268
-
2269
- private:
2270
- napi_property_descriptor _desc;
2271
- };
2272
-
2273
- /// Property descriptor for use with `ObjectWrap::DefineClass()`.
2274
- ///
2275
- /// This is different from the standalone `PropertyDescriptor` because it is
2276
- /// specific to each `ObjectWrap<T>` subclass. This prevents using descriptors
2277
- /// from a different class when defining a new class (preventing the callbacks
2278
- /// from having incorrect `this` pointers).
2279
- template <typename T>
2280
- class ClassPropertyDescriptor {
2281
- public:
2282
- ClassPropertyDescriptor(napi_property_descriptor desc) : _desc(desc) {}
2283
-
2284
- operator napi_property_descriptor&() { return _desc; }
2285
- operator const napi_property_descriptor&() const { return _desc; }
2286
-
2287
- private:
2288
- napi_property_descriptor _desc;
2289
- };
2290
-
2291
- template <typename T, typename TCallback>
2292
- struct MethodCallbackData {
2293
- TCallback callback;
2294
- void* data;
2295
- };
2296
-
2297
- template <typename T, typename TGetterCallback, typename TSetterCallback>
2298
- struct AccessorCallbackData {
2299
- TGetterCallback getterCallback;
2300
- TSetterCallback setterCallback;
2301
- void* data;
2302
- };
2303
-
2304
- template <typename T>
2305
- class InstanceWrap {
2306
- public:
2307
- using InstanceVoidMethodCallback = void (T::*)(const CallbackInfo& info);
2308
- using InstanceMethodCallback = Napi::Value (T::*)(const CallbackInfo& info);
2309
- using InstanceGetterCallback = Napi::Value (T::*)(const CallbackInfo& info);
2310
- using InstanceSetterCallback = void (T::*)(const CallbackInfo& info,
2311
- const Napi::Value& value);
2312
-
2313
- using PropertyDescriptor = ClassPropertyDescriptor<T>;
2314
-
2315
- static PropertyDescriptor InstanceMethod(
2316
- const char* utf8name,
2317
- InstanceVoidMethodCallback method,
2318
- napi_property_attributes attributes = napi_default,
2319
- void* data = nullptr);
2320
- static PropertyDescriptor InstanceMethod(
2321
- const char* utf8name,
2322
- InstanceMethodCallback method,
2323
- napi_property_attributes attributes = napi_default,
2324
- void* data = nullptr);
2325
- static PropertyDescriptor InstanceMethod(
2326
- Symbol name,
2327
- InstanceVoidMethodCallback method,
2328
- napi_property_attributes attributes = napi_default,
2329
- void* data = nullptr);
2330
- static PropertyDescriptor InstanceMethod(
2331
- Symbol name,
2332
- InstanceMethodCallback method,
2333
- napi_property_attributes attributes = napi_default,
2334
- void* data = nullptr);
2335
- template <InstanceVoidMethodCallback method>
2336
- static PropertyDescriptor InstanceMethod(
2337
- const char* utf8name,
2338
- napi_property_attributes attributes = napi_default,
2339
- void* data = nullptr);
2340
- template <InstanceMethodCallback method>
2341
- static PropertyDescriptor InstanceMethod(
2342
- const char* utf8name,
2343
- napi_property_attributes attributes = napi_default,
2344
- void* data = nullptr);
2345
- template <InstanceVoidMethodCallback method>
2346
- static PropertyDescriptor InstanceMethod(
2347
- Symbol name,
2348
- napi_property_attributes attributes = napi_default,
2349
- void* data = nullptr);
2350
- template <InstanceMethodCallback method>
2351
- static PropertyDescriptor InstanceMethod(
2352
- Symbol name,
2353
- napi_property_attributes attributes = napi_default,
2354
- void* data = nullptr);
2355
- static PropertyDescriptor InstanceAccessor(
2356
- const char* utf8name,
2357
- InstanceGetterCallback getter,
2358
- InstanceSetterCallback setter,
2359
- napi_property_attributes attributes = napi_default,
2360
- void* data = nullptr);
2361
- static PropertyDescriptor InstanceAccessor(
2362
- Symbol name,
2363
- InstanceGetterCallback getter,
2364
- InstanceSetterCallback setter,
2365
- napi_property_attributes attributes = napi_default,
2366
- void* data = nullptr);
2367
- template <InstanceGetterCallback getter,
2368
- InstanceSetterCallback setter = nullptr>
2369
- static PropertyDescriptor InstanceAccessor(
2370
- const char* utf8name,
2371
- napi_property_attributes attributes = napi_default,
2372
- void* data = nullptr);
2373
- template <InstanceGetterCallback getter,
2374
- InstanceSetterCallback setter = nullptr>
2375
- static PropertyDescriptor InstanceAccessor(
2376
- Symbol name,
2377
- napi_property_attributes attributes = napi_default,
2378
- void* data = nullptr);
2379
- static PropertyDescriptor InstanceValue(
2380
- const char* utf8name,
2381
- Napi::Value value,
2382
- napi_property_attributes attributes = napi_default);
2383
- static PropertyDescriptor InstanceValue(
2384
- Symbol name,
2385
- Napi::Value value,
2386
- napi_property_attributes attributes = napi_default);
2387
-
2388
- protected:
2389
- static void AttachPropData(napi_env env,
2390
- napi_value value,
2391
- const napi_property_descriptor* prop);
2392
-
2393
- private:
2394
- using This = InstanceWrap<T>;
2395
-
2396
- using InstanceVoidMethodCallbackData =
2397
- MethodCallbackData<T, InstanceVoidMethodCallback>;
2398
- using InstanceMethodCallbackData =
2399
- MethodCallbackData<T, InstanceMethodCallback>;
2400
- using InstanceAccessorCallbackData =
2401
- AccessorCallbackData<T, InstanceGetterCallback, InstanceSetterCallback>;
2402
-
2403
- static napi_value InstanceVoidMethodCallbackWrapper(napi_env env,
2404
- napi_callback_info info);
2405
- static napi_value InstanceMethodCallbackWrapper(napi_env env,
2406
- napi_callback_info info);
2407
- static napi_value InstanceGetterCallbackWrapper(napi_env env,
2408
- napi_callback_info info);
2409
- static napi_value InstanceSetterCallbackWrapper(napi_env env,
2410
- napi_callback_info info);
2411
-
2412
- template <InstanceSetterCallback method>
2413
- static napi_value WrappedMethod(napi_env env,
2414
- napi_callback_info info) NAPI_NOEXCEPT;
2415
-
2416
- template <InstanceSetterCallback setter>
2417
- struct SetterTag {};
2418
-
2419
- template <InstanceSetterCallback setter>
2420
- static napi_callback WrapSetter(SetterTag<setter>) NAPI_NOEXCEPT {
2421
- return &This::WrappedMethod<setter>;
2422
- }
2423
- static napi_callback WrapSetter(SetterTag<nullptr>) NAPI_NOEXCEPT {
2424
- return nullptr;
2425
- }
2426
- };
2427
-
2428
- /// Base class to be extended by C++ classes exposed to JavaScript; each C++
2429
- /// class instance gets "wrapped" by a JavaScript object that is managed by this
2430
- /// class.
2431
- ///
2432
- /// At initialization time, the `DefineClass()` method must be used to
2433
- /// hook up the accessor and method callbacks. It takes a list of
2434
- /// property descriptors, which can be constructed via the various
2435
- /// static methods on the base class.
2436
- ///
2437
- /// #### Example:
2438
- ///
2439
- /// class Example: public Napi::ObjectWrap<Example> {
2440
- /// public:
2441
- /// static void Initialize(Napi::Env& env, Napi::Object& target) {
2442
- /// Napi::Function constructor = DefineClass(env, "Example", {
2443
- /// InstanceAccessor<&Example::GetSomething,
2444
- /// &Example::SetSomething>("value"),
2445
- /// InstanceMethod<&Example::DoSomething>("doSomething"),
2446
- /// });
2447
- /// target.Set("Example", constructor);
2448
- /// }
2449
- ///
2450
- /// Example(const Napi::CallbackInfo& info); // Constructor
2451
- /// Napi::Value GetSomething(const Napi::CallbackInfo& info);
2452
- /// void SetSomething(const Napi::CallbackInfo& info, const Napi::Value&
2453
- /// value); Napi::Value DoSomething(const Napi::CallbackInfo& info);
2454
- /// }
2455
- template <typename T>
2456
- class ObjectWrap : public InstanceWrap<T>, public Reference<Object> {
2457
- public:
2458
- ObjectWrap(const CallbackInfo& callbackInfo);
2459
- virtual ~ObjectWrap();
2460
-
2461
- static T* Unwrap(Object wrapper);
2462
-
2463
- // Methods exposed to JavaScript must conform to one of these callback
2464
- // signatures.
2465
- using StaticVoidMethodCallback = void (*)(const CallbackInfo& info);
2466
- using StaticMethodCallback = Napi::Value (*)(const CallbackInfo& info);
2467
- using StaticGetterCallback = Napi::Value (*)(const CallbackInfo& info);
2468
- using StaticSetterCallback = void (*)(const CallbackInfo& info,
2469
- const Napi::Value& value);
2470
-
2471
- using PropertyDescriptor = ClassPropertyDescriptor<T>;
2472
-
2473
- static Function DefineClass(
2474
- Napi::Env env,
2475
- const char* utf8name,
2476
- const std::initializer_list<PropertyDescriptor>& properties,
2477
- void* data = nullptr);
2478
- static Function DefineClass(Napi::Env env,
2479
- const char* utf8name,
2480
- const std::vector<PropertyDescriptor>& properties,
2481
- void* data = nullptr);
2482
- static PropertyDescriptor StaticMethod(
2483
- const char* utf8name,
2484
- StaticVoidMethodCallback method,
2485
- napi_property_attributes attributes = napi_default,
2486
- void* data = nullptr);
2487
- static PropertyDescriptor StaticMethod(
2488
- const char* utf8name,
2489
- StaticMethodCallback method,
2490
- napi_property_attributes attributes = napi_default,
2491
- void* data = nullptr);
2492
- static PropertyDescriptor StaticMethod(
2493
- Symbol name,
2494
- StaticVoidMethodCallback method,
2495
- napi_property_attributes attributes = napi_default,
2496
- void* data = nullptr);
2497
- static PropertyDescriptor StaticMethod(
2498
- Symbol name,
2499
- StaticMethodCallback method,
2500
- napi_property_attributes attributes = napi_default,
2501
- void* data = nullptr);
2502
- template <StaticVoidMethodCallback method>
2503
- static PropertyDescriptor StaticMethod(
2504
- const char* utf8name,
2505
- napi_property_attributes attributes = napi_default,
2506
- void* data = nullptr);
2507
- template <StaticVoidMethodCallback method>
2508
- static PropertyDescriptor StaticMethod(
2509
- Symbol name,
2510
- napi_property_attributes attributes = napi_default,
2511
- void* data = nullptr);
2512
- template <StaticMethodCallback method>
2513
- static PropertyDescriptor StaticMethod(
2514
- const char* utf8name,
2515
- napi_property_attributes attributes = napi_default,
2516
- void* data = nullptr);
2517
- template <StaticMethodCallback method>
2518
- static PropertyDescriptor StaticMethod(
2519
- Symbol name,
2520
- napi_property_attributes attributes = napi_default,
2521
- void* data = nullptr);
2522
- static PropertyDescriptor StaticAccessor(
2523
- const char* utf8name,
2524
- StaticGetterCallback getter,
2525
- StaticSetterCallback setter,
2526
- napi_property_attributes attributes = napi_default,
2527
- void* data = nullptr);
2528
- static PropertyDescriptor StaticAccessor(
2529
- Symbol name,
2530
- StaticGetterCallback getter,
2531
- StaticSetterCallback setter,
2532
- napi_property_attributes attributes = napi_default,
2533
- void* data = nullptr);
2534
- template <StaticGetterCallback getter, StaticSetterCallback setter = nullptr>
2535
- static PropertyDescriptor StaticAccessor(
2536
- const char* utf8name,
2537
- napi_property_attributes attributes = napi_default,
2538
- void* data = nullptr);
2539
- template <StaticGetterCallback getter, StaticSetterCallback setter = nullptr>
2540
- static PropertyDescriptor StaticAccessor(
2541
- Symbol name,
2542
- napi_property_attributes attributes = napi_default,
2543
- void* data = nullptr);
2544
- static PropertyDescriptor StaticValue(
2545
- const char* utf8name,
2546
- Napi::Value value,
2547
- napi_property_attributes attributes = napi_default);
2548
- static PropertyDescriptor StaticValue(
2549
- Symbol name,
2550
- Napi::Value value,
2551
- napi_property_attributes attributes = napi_default);
2552
- static Napi::Value OnCalledAsFunction(const Napi::CallbackInfo& callbackInfo);
2553
- virtual void Finalize(Napi::Env env);
2554
- virtual void Finalize(BasicEnv env);
2555
-
2556
- private:
2557
- using This = ObjectWrap<T>;
2558
-
2559
- static napi_value ConstructorCallbackWrapper(napi_env env,
2560
- napi_callback_info info);
2561
- static napi_value StaticVoidMethodCallbackWrapper(napi_env env,
2562
- napi_callback_info info);
2563
- static napi_value StaticMethodCallbackWrapper(napi_env env,
2564
- napi_callback_info info);
2565
- static napi_value StaticGetterCallbackWrapper(napi_env env,
2566
- napi_callback_info info);
2567
- static napi_value StaticSetterCallbackWrapper(napi_env env,
2568
- napi_callback_info info);
2569
- static void FinalizeCallback(node_addon_api_basic_env env,
2570
- void* data,
2571
- void* hint);
2572
-
2573
- static void PostFinalizeCallback(napi_env env, void* data, void* hint);
2574
-
2575
- static Function DefineClass(Napi::Env env,
2576
- const char* utf8name,
2577
- const size_t props_count,
2578
- const napi_property_descriptor* props,
2579
- void* data = nullptr);
2580
-
2581
- using StaticVoidMethodCallbackData =
2582
- MethodCallbackData<T, StaticVoidMethodCallback>;
2583
- using StaticMethodCallbackData = MethodCallbackData<T, StaticMethodCallback>;
2584
-
2585
- using StaticAccessorCallbackData =
2586
- AccessorCallbackData<T, StaticGetterCallback, StaticSetterCallback>;
2587
-
2588
- template <StaticSetterCallback method>
2589
- static napi_value WrappedMethod(napi_env env,
2590
- napi_callback_info info) NAPI_NOEXCEPT;
2591
-
2592
- template <StaticSetterCallback setter>
2593
- struct StaticSetterTag {};
2594
-
2595
- template <StaticSetterCallback setter>
2596
- static napi_callback WrapStaticSetter(StaticSetterTag<setter>) NAPI_NOEXCEPT {
2597
- return &This::WrappedMethod<setter>;
2598
- }
2599
- static napi_callback WrapStaticSetter(StaticSetterTag<nullptr>)
2600
- NAPI_NOEXCEPT {
2601
- return nullptr;
2602
- }
2603
-
2604
- bool _construction_failed = true;
2605
- bool _finalized = false;
2606
- };
2607
-
2608
- class HandleScope {
2609
- public:
2610
- HandleScope(napi_env env, napi_handle_scope scope);
2611
- explicit HandleScope(Napi::Env env);
2612
- ~HandleScope();
2613
-
2614
- // Disallow copying to prevent double close of napi_handle_scope
2615
- NAPI_DISALLOW_ASSIGN_COPY(HandleScope)
2616
-
2617
- operator napi_handle_scope() const;
2618
-
2619
- Napi::Env Env() const;
2620
-
2621
- private:
2622
- napi_env _env;
2623
- napi_handle_scope _scope;
2624
- };
2625
-
2626
- class EscapableHandleScope {
2627
- public:
2628
- EscapableHandleScope(napi_env env, napi_escapable_handle_scope scope);
2629
- explicit EscapableHandleScope(Napi::Env env);
2630
- ~EscapableHandleScope();
2631
-
2632
- // Disallow copying to prevent double close of napi_escapable_handle_scope
2633
- NAPI_DISALLOW_ASSIGN_COPY(EscapableHandleScope)
2634
-
2635
- operator napi_escapable_handle_scope() const;
2636
-
2637
- Napi::Env Env() const;
2638
- Value Escape(napi_value escapee);
2639
-
2640
- private:
2641
- napi_env _env;
2642
- napi_escapable_handle_scope _scope;
2643
- };
2644
-
2645
- #if (NAPI_VERSION > 2)
2646
- class CallbackScope {
2647
- public:
2648
- CallbackScope(napi_env env, napi_callback_scope scope);
2649
- CallbackScope(napi_env env, napi_async_context context);
2650
- virtual ~CallbackScope();
2651
-
2652
- // Disallow copying to prevent double close of napi_callback_scope
2653
- NAPI_DISALLOW_ASSIGN_COPY(CallbackScope)
2654
-
2655
- operator napi_callback_scope() const;
2656
-
2657
- Napi::Env Env() const;
2658
-
2659
- private:
2660
- napi_env _env;
2661
- napi_callback_scope _scope;
2662
- };
2663
- #endif
2664
-
2665
- class AsyncContext {
2666
- public:
2667
- explicit AsyncContext(napi_env env, const char* resource_name);
2668
- explicit AsyncContext(napi_env env,
2669
- const char* resource_name,
2670
- const Object& resource);
2671
- virtual ~AsyncContext();
2672
-
2673
- AsyncContext(AsyncContext&& other);
2674
- AsyncContext& operator=(AsyncContext&& other);
2675
- NAPI_DISALLOW_ASSIGN_COPY(AsyncContext)
2676
-
2677
- operator napi_async_context() const;
2678
-
2679
- Napi::Env Env() const;
2680
-
2681
- private:
2682
- napi_env _env;
2683
- napi_async_context _context;
2684
- };
2685
-
2686
- #if NAPI_HAS_THREADS
2687
- class AsyncWorker {
2688
- public:
2689
- virtual ~AsyncWorker();
2690
-
2691
- NAPI_DISALLOW_ASSIGN_COPY(AsyncWorker)
2692
-
2693
- operator napi_async_work() const;
2694
-
2695
- Napi::Env Env() const;
2696
-
2697
- void Queue();
2698
- void Cancel();
2699
- void SuppressDestruct();
2700
-
2701
- ObjectReference& Receiver();
2702
- FunctionReference& Callback();
2703
-
2704
- virtual void OnExecute(Napi::Env env);
2705
- virtual void OnWorkComplete(Napi::Env env, napi_status status);
2706
-
2707
- protected:
2708
- explicit AsyncWorker(const Function& callback);
2709
- explicit AsyncWorker(const Function& callback, const char* resource_name);
2710
- explicit AsyncWorker(const Function& callback,
2711
- const char* resource_name,
2712
- const Object& resource);
2713
- explicit AsyncWorker(const Object& receiver, const Function& callback);
2714
- explicit AsyncWorker(const Object& receiver,
2715
- const Function& callback,
2716
- const char* resource_name);
2717
- explicit AsyncWorker(const Object& receiver,
2718
- const Function& callback,
2719
- const char* resource_name,
2720
- const Object& resource);
2721
-
2722
- explicit AsyncWorker(Napi::Env env);
2723
- explicit AsyncWorker(Napi::Env env, const char* resource_name);
2724
- explicit AsyncWorker(Napi::Env env,
2725
- const char* resource_name,
2726
- const Object& resource);
2727
-
2728
- virtual void Execute() = 0;
2729
- virtual void OnOK();
2730
- virtual void OnError(const Error& e);
2731
- virtual void Destroy();
2732
- virtual std::vector<napi_value> GetResult(Napi::Env env);
2733
-
2734
- void SetError(const std::string& error);
2735
-
2736
- private:
2737
- static inline void OnAsyncWorkExecute(napi_env env, void* asyncworker);
2738
- static inline void OnAsyncWorkComplete(napi_env env,
2739
- napi_status status,
2740
- void* asyncworker);
2741
-
2742
- napi_env _env;
2743
- napi_async_work _work;
2744
- ObjectReference _receiver;
2745
- FunctionReference _callback;
2746
- std::string _error;
2747
- bool _suppress_destruct;
2748
- };
2749
- #endif // NAPI_HAS_THREADS
2750
-
2751
- #if (NAPI_VERSION > 3 && NAPI_HAS_THREADS)
2752
- class ThreadSafeFunction {
2753
- public:
2754
- // This API may only be called from the main thread.
2755
- template <typename ResourceString>
2756
- static ThreadSafeFunction New(napi_env env,
2757
- const Function& callback,
2758
- ResourceString resourceName,
2759
- size_t maxQueueSize,
2760
- size_t initialThreadCount);
2761
-
2762
- // This API may only be called from the main thread.
2763
- template <typename ResourceString, typename ContextType>
2764
- static ThreadSafeFunction New(napi_env env,
2765
- const Function& callback,
2766
- ResourceString resourceName,
2767
- size_t maxQueueSize,
2768
- size_t initialThreadCount,
2769
- ContextType* context);
2770
-
2771
- // This API may only be called from the main thread.
2772
- template <typename ResourceString, typename Finalizer>
2773
- static ThreadSafeFunction New(napi_env env,
2774
- const Function& callback,
2775
- ResourceString resourceName,
2776
- size_t maxQueueSize,
2777
- size_t initialThreadCount,
2778
- Finalizer finalizeCallback);
2779
-
2780
- // This API may only be called from the main thread.
2781
- template <typename ResourceString,
2782
- typename Finalizer,
2783
- typename FinalizerDataType>
2784
- static ThreadSafeFunction New(napi_env env,
2785
- const Function& callback,
2786
- ResourceString resourceName,
2787
- size_t maxQueueSize,
2788
- size_t initialThreadCount,
2789
- Finalizer finalizeCallback,
2790
- FinalizerDataType* data);
2791
-
2792
- // This API may only be called from the main thread.
2793
- template <typename ResourceString, typename ContextType, typename Finalizer>
2794
- static ThreadSafeFunction New(napi_env env,
2795
- const Function& callback,
2796
- ResourceString resourceName,
2797
- size_t maxQueueSize,
2798
- size_t initialThreadCount,
2799
- ContextType* context,
2800
- Finalizer finalizeCallback);
2801
-
2802
- // This API may only be called from the main thread.
2803
- template <typename ResourceString,
2804
- typename ContextType,
2805
- typename Finalizer,
2806
- typename FinalizerDataType>
2807
- static ThreadSafeFunction New(napi_env env,
2808
- const Function& callback,
2809
- ResourceString resourceName,
2810
- size_t maxQueueSize,
2811
- size_t initialThreadCount,
2812
- ContextType* context,
2813
- Finalizer finalizeCallback,
2814
- FinalizerDataType* data);
2815
-
2816
- // This API may only be called from the main thread.
2817
- template <typename ResourceString>
2818
- static ThreadSafeFunction New(napi_env env,
2819
- const Function& callback,
2820
- const Object& resource,
2821
- ResourceString resourceName,
2822
- size_t maxQueueSize,
2823
- size_t initialThreadCount);
2824
-
2825
- // This API may only be called from the main thread.
2826
- template <typename ResourceString, typename ContextType>
2827
- static ThreadSafeFunction New(napi_env env,
2828
- const Function& callback,
2829
- const Object& resource,
2830
- ResourceString resourceName,
2831
- size_t maxQueueSize,
2832
- size_t initialThreadCount,
2833
- ContextType* context);
2834
-
2835
- // This API may only be called from the main thread.
2836
- template <typename ResourceString, typename Finalizer>
2837
- static ThreadSafeFunction New(napi_env env,
2838
- const Function& callback,
2839
- const Object& resource,
2840
- ResourceString resourceName,
2841
- size_t maxQueueSize,
2842
- size_t initialThreadCount,
2843
- Finalizer finalizeCallback);
2844
-
2845
- // This API may only be called from the main thread.
2846
- template <typename ResourceString,
2847
- typename Finalizer,
2848
- typename FinalizerDataType>
2849
- static ThreadSafeFunction New(napi_env env,
2850
- const Function& callback,
2851
- const Object& resource,
2852
- ResourceString resourceName,
2853
- size_t maxQueueSize,
2854
- size_t initialThreadCount,
2855
- Finalizer finalizeCallback,
2856
- FinalizerDataType* data);
2857
-
2858
- // This API may only be called from the main thread.
2859
- template <typename ResourceString, typename ContextType, typename Finalizer>
2860
- static ThreadSafeFunction New(napi_env env,
2861
- const Function& callback,
2862
- const Object& resource,
2863
- ResourceString resourceName,
2864
- size_t maxQueueSize,
2865
- size_t initialThreadCount,
2866
- ContextType* context,
2867
- Finalizer finalizeCallback);
2868
-
2869
- // This API may only be called from the main thread.
2870
- template <typename ResourceString,
2871
- typename ContextType,
2872
- typename Finalizer,
2873
- typename FinalizerDataType>
2874
- static ThreadSafeFunction New(napi_env env,
2875
- const Function& callback,
2876
- const Object& resource,
2877
- ResourceString resourceName,
2878
- size_t maxQueueSize,
2879
- size_t initialThreadCount,
2880
- ContextType* context,
2881
- Finalizer finalizeCallback,
2882
- FinalizerDataType* data);
2883
-
2884
- ThreadSafeFunction();
2885
- ThreadSafeFunction(napi_threadsafe_function tsFunctionValue);
2886
-
2887
- operator napi_threadsafe_function() const;
2888
-
2889
- // This API may be called from any thread.
2890
- napi_status BlockingCall() const;
2891
-
2892
- // This API may be called from any thread.
2893
- template <typename Callback>
2894
- napi_status BlockingCall(Callback callback) const;
2895
-
2896
- // This API may be called from any thread.
2897
- template <typename DataType, typename Callback>
2898
- napi_status BlockingCall(DataType* data, Callback callback) const;
2899
-
2900
- // This API may be called from any thread.
2901
- napi_status NonBlockingCall() const;
2902
-
2903
- // This API may be called from any thread.
2904
- template <typename Callback>
2905
- napi_status NonBlockingCall(Callback callback) const;
2906
-
2907
- // This API may be called from any thread.
2908
- template <typename DataType, typename Callback>
2909
- napi_status NonBlockingCall(DataType* data, Callback callback) const;
2910
-
2911
- // This API may only be called from the main thread.
2912
- void Ref(napi_env env) const;
2913
-
2914
- // This API may only be called from the main thread.
2915
- void Unref(napi_env env) const;
2916
-
2917
- // This API may be called from any thread.
2918
- napi_status Acquire() const;
2919
-
2920
- // This API may be called from any thread.
2921
- napi_status Release() const;
2922
-
2923
- // This API may be called from any thread.
2924
- napi_status Abort() const;
2925
-
2926
- struct ConvertibleContext {
2927
- template <class T>
2928
- operator T*() {
2929
- return static_cast<T*>(context);
2930
- }
2931
- void* context;
2932
- };
2933
-
2934
- // This API may be called from any thread.
2935
- ConvertibleContext GetContext() const;
2936
-
2937
- private:
2938
- using CallbackWrapper = std::function<void(Napi::Env, Napi::Function)>;
2939
-
2940
- template <typename ResourceString,
2941
- typename ContextType,
2942
- typename Finalizer,
2943
- typename FinalizerDataType>
2944
- static ThreadSafeFunction New(napi_env env,
2945
- const Function& callback,
2946
- const Object& resource,
2947
- ResourceString resourceName,
2948
- size_t maxQueueSize,
2949
- size_t initialThreadCount,
2950
- ContextType* context,
2951
- Finalizer finalizeCallback,
2952
- FinalizerDataType* data,
2953
- napi_finalize wrapper);
2954
-
2955
- napi_status CallInternal(CallbackWrapper* callbackWrapper,
2956
- napi_threadsafe_function_call_mode mode) const;
2957
-
2958
- static void CallJS(napi_env env,
2959
- napi_value jsCallback,
2960
- void* context,
2961
- void* data);
2962
-
2963
- napi_threadsafe_function _tsfn;
2964
- };
2965
-
2966
- // A TypedThreadSafeFunction by default has no context (nullptr) and can
2967
- // accept any type (void) to its CallJs.
2968
- template <typename ContextType = std::nullptr_t,
2969
- typename DataType = void,
2970
- void (*CallJs)(Napi::Env, Napi::Function, ContextType*, DataType*) =
2971
- nullptr>
2972
- class TypedThreadSafeFunction {
2973
- public:
2974
- // This API may only be called from the main thread.
2975
- // Helper function that returns nullptr if running Node-API 5+, otherwise a
2976
- // non-empty, no-op Function. This provides the ability to specify at
2977
- // compile-time a callback parameter to `New` that safely does no action
2978
- // when targeting _any_ Node-API version.
2979
- #if NAPI_VERSION > 4
2980
- static std::nullptr_t EmptyFunctionFactory(Napi::Env env);
2981
- #else
2982
- static Napi::Function EmptyFunctionFactory(Napi::Env env);
2983
- #endif
2984
- static Napi::Function FunctionOrEmpty(Napi::Env env,
2985
- Napi::Function& callback);
2986
-
2987
- #if NAPI_VERSION > 4
2988
- // This API may only be called from the main thread.
2989
- // Creates a new threadsafe function with:
2990
- // Callback [missing] Resource [missing] Finalizer [missing]
2991
- template <typename ResourceString>
2992
- static TypedThreadSafeFunction<ContextType, DataType, CallJs> New(
2993
- napi_env env,
2994
- ResourceString resourceName,
2995
- size_t maxQueueSize,
2996
- size_t initialThreadCount,
2997
- ContextType* context = nullptr);
2998
-
2999
- // This API may only be called from the main thread.
3000
- // Creates a new threadsafe function with:
3001
- // Callback [missing] Resource [passed] Finalizer [missing]
3002
- template <typename ResourceString>
3003
- static TypedThreadSafeFunction<ContextType, DataType, CallJs> New(
3004
- napi_env env,
3005
- const Object& resource,
3006
- ResourceString resourceName,
3007
- size_t maxQueueSize,
3008
- size_t initialThreadCount,
3009
- ContextType* context = nullptr);
3010
-
3011
- // This API may only be called from the main thread.
3012
- // Creates a new threadsafe function with:
3013
- // Callback [missing] Resource [missing] Finalizer [passed]
3014
- template <typename ResourceString,
3015
- typename Finalizer,
3016
- typename FinalizerDataType = void>
3017
- static TypedThreadSafeFunction<ContextType, DataType, CallJs> New(
3018
- napi_env env,
3019
- ResourceString resourceName,
3020
- size_t maxQueueSize,
3021
- size_t initialThreadCount,
3022
- ContextType* context,
3023
- Finalizer finalizeCallback,
3024
- FinalizerDataType* data = nullptr);
3025
-
3026
- // This API may only be called from the main thread.
3027
- // Creates a new threadsafe function with:
3028
- // Callback [missing] Resource [passed] Finalizer [passed]
3029
- template <typename ResourceString,
3030
- typename Finalizer,
3031
- typename FinalizerDataType = void>
3032
- static TypedThreadSafeFunction<ContextType, DataType, CallJs> New(
3033
- napi_env env,
3034
- const Object& resource,
3035
- ResourceString resourceName,
3036
- size_t maxQueueSize,
3037
- size_t initialThreadCount,
3038
- ContextType* context,
3039
- Finalizer finalizeCallback,
3040
- FinalizerDataType* data = nullptr);
3041
- #endif
3042
-
3043
- // This API may only be called from the main thread.
3044
- // Creates a new threadsafe function with:
3045
- // Callback [passed] Resource [missing] Finalizer [missing]
3046
- template <typename ResourceString>
3047
- static TypedThreadSafeFunction<ContextType, DataType, CallJs> New(
3048
- napi_env env,
3049
- const Function& callback,
3050
- ResourceString resourceName,
3051
- size_t maxQueueSize,
3052
- size_t initialThreadCount,
3053
- ContextType* context = nullptr);
3054
-
3055
- // This API may only be called from the main thread.
3056
- // Creates a new threadsafe function with:
3057
- // Callback [passed] Resource [passed] Finalizer [missing]
3058
- template <typename ResourceString>
3059
- static TypedThreadSafeFunction<ContextType, DataType, CallJs> New(
3060
- napi_env env,
3061
- const Function& callback,
3062
- const Object& resource,
3063
- ResourceString resourceName,
3064
- size_t maxQueueSize,
3065
- size_t initialThreadCount,
3066
- ContextType* context = nullptr);
3067
-
3068
- // This API may only be called from the main thread.
3069
- // Creates a new threadsafe function with:
3070
- // Callback [passed] Resource [missing] Finalizer [passed]
3071
- template <typename ResourceString,
3072
- typename Finalizer,
3073
- typename FinalizerDataType = void>
3074
- static TypedThreadSafeFunction<ContextType, DataType, CallJs> New(
3075
- napi_env env,
3076
- const Function& callback,
3077
- ResourceString resourceName,
3078
- size_t maxQueueSize,
3079
- size_t initialThreadCount,
3080
- ContextType* context,
3081
- Finalizer finalizeCallback,
3082
- FinalizerDataType* data = nullptr);
3083
-
3084
- // This API may only be called from the main thread.
3085
- // Creates a new threadsafe function with:
3086
- // Callback [passed] Resource [passed] Finalizer [passed]
3087
- template <typename CallbackType,
3088
- typename ResourceString,
3089
- typename Finalizer,
3090
- typename FinalizerDataType>
3091
- static TypedThreadSafeFunction<ContextType, DataType, CallJs> New(
3092
- napi_env env,
3093
- CallbackType callback,
3094
- const Object& resource,
3095
- ResourceString resourceName,
3096
- size_t maxQueueSize,
3097
- size_t initialThreadCount,
3098
- ContextType* context,
3099
- Finalizer finalizeCallback,
3100
- FinalizerDataType* data = nullptr);
3101
-
3102
- TypedThreadSafeFunction();
3103
- TypedThreadSafeFunction(napi_threadsafe_function tsFunctionValue);
3104
-
3105
- operator napi_threadsafe_function() const;
3106
-
3107
- // This API may be called from any thread.
3108
- napi_status BlockingCall(DataType* data = nullptr) const;
3109
-
3110
- // This API may be called from any thread.
3111
- napi_status NonBlockingCall(DataType* data = nullptr) const;
3112
-
3113
- // This API may only be called from the main thread.
3114
- void Ref(napi_env env) const;
3115
-
3116
- // This API may only be called from the main thread.
3117
- void Unref(napi_env env) const;
3118
-
3119
- // This API may be called from any thread.
3120
- napi_status Acquire() const;
3121
-
3122
- // This API may be called from any thread.
3123
- napi_status Release() const;
3124
-
3125
- // This API may be called from any thread.
3126
- napi_status Abort() const;
3127
-
3128
- // This API may be called from any thread.
3129
- ContextType* GetContext() const;
3130
-
3131
- private:
3132
- template <typename ResourceString,
3133
- typename Finalizer,
3134
- typename FinalizerDataType>
3135
- static TypedThreadSafeFunction<ContextType, DataType, CallJs> New(
3136
- napi_env env,
3137
- const Function& callback,
3138
- const Object& resource,
3139
- ResourceString resourceName,
3140
- size_t maxQueueSize,
3141
- size_t initialThreadCount,
3142
- ContextType* context,
3143
- Finalizer finalizeCallback,
3144
- FinalizerDataType* data,
3145
- napi_finalize wrapper);
3146
-
3147
- static void CallJsInternal(napi_env env,
3148
- napi_value jsCallback,
3149
- void* context,
3150
- void* data);
3151
-
3152
- protected:
3153
- napi_threadsafe_function _tsfn;
3154
- };
3155
- template <typename DataType>
3156
- class AsyncProgressWorkerBase : public AsyncWorker {
3157
- public:
3158
- virtual void OnWorkProgress(DataType* data) = 0;
3159
- class ThreadSafeData {
3160
- public:
3161
- ThreadSafeData(AsyncProgressWorkerBase* asyncprogressworker, DataType* data)
3162
- : _asyncprogressworker(asyncprogressworker), _data(data) {}
3163
-
3164
- AsyncProgressWorkerBase* asyncprogressworker() {
3165
- return _asyncprogressworker;
3166
- }
3167
- DataType* data() { return _data; }
3168
-
3169
- private:
3170
- AsyncProgressWorkerBase* _asyncprogressworker;
3171
- DataType* _data;
3172
- };
3173
- void OnWorkComplete(Napi::Env env, napi_status status) override;
3174
-
3175
- protected:
3176
- explicit AsyncProgressWorkerBase(const Object& receiver,
3177
- const Function& callback,
3178
- const char* resource_name,
3179
- const Object& resource,
3180
- size_t queue_size = 1);
3181
- virtual ~AsyncProgressWorkerBase();
3182
-
3183
- // Optional callback of Napi::ThreadSafeFunction only available after
3184
- // NAPI_VERSION 4. Refs: https://github.com/nodejs/node/pull/27791
3185
- #if NAPI_VERSION > 4
3186
- explicit AsyncProgressWorkerBase(Napi::Env env,
3187
- const char* resource_name,
3188
- const Object& resource,
3189
- size_t queue_size = 1);
3190
- #endif
3191
-
3192
- static inline void OnAsyncWorkProgress(Napi::Env env,
3193
- Napi::Function jsCallback,
3194
- void* data);
3195
-
3196
- napi_status NonBlockingCall(DataType* data);
3197
-
3198
- private:
3199
- ThreadSafeFunction _tsfn;
3200
- bool _work_completed = false;
3201
- napi_status _complete_status;
3202
- static inline void OnThreadSafeFunctionFinalize(
3203
- Napi::Env env, void* data, AsyncProgressWorkerBase* context);
3204
- };
3205
-
3206
- template <class T>
3207
- class AsyncProgressWorker : public AsyncProgressWorkerBase<void> {
3208
- public:
3209
- virtual ~AsyncProgressWorker();
3210
-
3211
- class ExecutionProgress {
3212
- friend class AsyncProgressWorker;
3213
-
3214
- public:
3215
- void Signal() const;
3216
- void Send(const T* data, size_t count) const;
3217
-
3218
- private:
3219
- explicit ExecutionProgress(AsyncProgressWorker* worker) : _worker(worker) {}
3220
- AsyncProgressWorker* const _worker;
3221
- };
3222
-
3223
- void OnWorkProgress(void*) override;
3224
-
3225
- protected:
3226
- explicit AsyncProgressWorker(const Function& callback);
3227
- explicit AsyncProgressWorker(const Function& callback,
3228
- const char* resource_name);
3229
- explicit AsyncProgressWorker(const Function& callback,
3230
- const char* resource_name,
3231
- const Object& resource);
3232
- explicit AsyncProgressWorker(const Object& receiver,
3233
- const Function& callback);
3234
- explicit AsyncProgressWorker(const Object& receiver,
3235
- const Function& callback,
3236
- const char* resource_name);
3237
- explicit AsyncProgressWorker(const Object& receiver,
3238
- const Function& callback,
3239
- const char* resource_name,
3240
- const Object& resource);
3241
-
3242
- // Optional callback of Napi::ThreadSafeFunction only available after
3243
- // NAPI_VERSION 4. Refs: https://github.com/nodejs/node/pull/27791
3244
- #if NAPI_VERSION > 4
3245
- explicit AsyncProgressWorker(Napi::Env env);
3246
- explicit AsyncProgressWorker(Napi::Env env, const char* resource_name);
3247
- explicit AsyncProgressWorker(Napi::Env env,
3248
- const char* resource_name,
3249
- const Object& resource);
3250
- #endif
3251
- virtual void Execute(const ExecutionProgress& progress) = 0;
3252
- virtual void OnProgress(const T* data, size_t count) = 0;
3253
-
3254
- private:
3255
- void Execute() override;
3256
- void Signal();
3257
- void SendProgress_(const T* data, size_t count);
3258
-
3259
- std::mutex _mutex;
3260
- T* _asyncdata;
3261
- size_t _asyncsize;
3262
- bool _signaled;
3263
- };
3264
-
3265
- template <class T>
3266
- class AsyncProgressQueueWorker
3267
- : public AsyncProgressWorkerBase<std::pair<T*, size_t>> {
3268
- public:
3269
- virtual ~AsyncProgressQueueWorker(){};
3270
-
3271
- class ExecutionProgress {
3272
- friend class AsyncProgressQueueWorker;
3273
-
3274
- public:
3275
- void Signal() const;
3276
- void Send(const T* data, size_t count) const;
3277
-
3278
- private:
3279
- explicit ExecutionProgress(AsyncProgressQueueWorker* worker)
3280
- : _worker(worker) {}
3281
- AsyncProgressQueueWorker* const _worker;
3282
- };
3283
-
3284
- void OnWorkComplete(Napi::Env env, napi_status status) override;
3285
- void OnWorkProgress(std::pair<T*, size_t>*) override;
3286
-
3287
- protected:
3288
- explicit AsyncProgressQueueWorker(const Function& callback);
3289
- explicit AsyncProgressQueueWorker(const Function& callback,
3290
- const char* resource_name);
3291
- explicit AsyncProgressQueueWorker(const Function& callback,
3292
- const char* resource_name,
3293
- const Object& resource);
3294
- explicit AsyncProgressQueueWorker(const Object& receiver,
3295
- const Function& callback);
3296
- explicit AsyncProgressQueueWorker(const Object& receiver,
3297
- const Function& callback,
3298
- const char* resource_name);
3299
- explicit AsyncProgressQueueWorker(const Object& receiver,
3300
- const Function& callback,
3301
- const char* resource_name,
3302
- const Object& resource);
3303
-
3304
- // Optional callback of Napi::ThreadSafeFunction only available after
3305
- // NAPI_VERSION 4. Refs: https://github.com/nodejs/node/pull/27791
3306
- #if NAPI_VERSION > 4
3307
- explicit AsyncProgressQueueWorker(Napi::Env env);
3308
- explicit AsyncProgressQueueWorker(Napi::Env env, const char* resource_name);
3309
- explicit AsyncProgressQueueWorker(Napi::Env env,
3310
- const char* resource_name,
3311
- const Object& resource);
3312
- #endif
3313
- virtual void Execute(const ExecutionProgress& progress) = 0;
3314
- virtual void OnProgress(const T* data, size_t count) = 0;
3315
-
3316
- private:
3317
- void Execute() override;
3318
- void Signal() const;
3319
- void SendProgress_(const T* data, size_t count);
3320
- };
3321
- #endif // NAPI_VERSION > 3 && NAPI_HAS_THREADS
3322
-
3323
- // Memory management.
3324
- class MemoryManagement {
3325
- public:
3326
- static int64_t AdjustExternalMemory(BasicEnv env, int64_t change_in_bytes);
3327
- };
3328
-
3329
- // Version management
3330
- class VersionManagement {
3331
- public:
3332
- static uint32_t GetNapiVersion(BasicEnv env);
3333
- static const napi_node_version* GetNodeVersion(BasicEnv env);
3334
- };
3335
-
3336
- #if NAPI_VERSION > 5
3337
- template <typename T>
3338
- class Addon : public InstanceWrap<T> {
3339
- public:
3340
- static inline Object Init(Env env, Object exports);
3341
- static T* Unwrap(Object wrapper);
3342
-
3343
- protected:
3344
- using AddonProp = ClassPropertyDescriptor<T>;
3345
- void DefineAddon(Object exports,
3346
- const std::initializer_list<AddonProp>& props);
3347
- Napi::Object DefineProperties(Object object,
3348
- const std::initializer_list<AddonProp>& props);
3349
-
3350
- private:
3351
- Object entry_point_;
3352
- };
3353
- #endif // NAPI_VERSION > 5
3354
-
3355
- #ifdef NAPI_CPP_CUSTOM_NAMESPACE
3356
- } // namespace NAPI_CPP_CUSTOM_NAMESPACE
3357
- #endif
3358
-
3359
- } // namespace Napi
3360
-
3361
- // Inline implementations of all the above class methods are included here.
3362
- #include "napi-inl.h"
3363
-
3364
- #endif // SRC_NAPI_H_