pi-cursor-sdk 0.1.12 → 0.1.13

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 (2604) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/package.json +2 -5
  3. package/node_modules/@bufbuild/protobuf/README.md +0 -43
  4. package/node_modules/@bufbuild/protobuf/dist/cjs/binary-encoding.d.ts +0 -422
  5. package/node_modules/@bufbuild/protobuf/dist/cjs/binary-encoding.js +0 -444
  6. package/node_modules/@bufbuild/protobuf/dist/cjs/binary-format.d.ts +0 -113
  7. package/node_modules/@bufbuild/protobuf/dist/cjs/binary-format.js +0 -15
  8. package/node_modules/@bufbuild/protobuf/dist/cjs/codegen-info.d.ts +0 -33
  9. package/node_modules/@bufbuild/protobuf/dist/cjs/codegen-info.js +0 -69
  10. package/node_modules/@bufbuild/protobuf/dist/cjs/create-descriptor-set.d.ts +0 -36
  11. package/node_modules/@bufbuild/protobuf/dist/cjs/create-descriptor-set.js +0 -910
  12. package/node_modules/@bufbuild/protobuf/dist/cjs/create-registry-from-desc.d.ts +0 -15
  13. package/node_modules/@bufbuild/protobuf/dist/cjs/create-registry-from-desc.js +0 -264
  14. package/node_modules/@bufbuild/protobuf/dist/cjs/create-registry.d.ts +0 -9
  15. package/node_modules/@bufbuild/protobuf/dist/cjs/create-registry.js +0 -94
  16. package/node_modules/@bufbuild/protobuf/dist/cjs/descriptor-set.d.ts +0 -672
  17. package/node_modules/@bufbuild/protobuf/dist/cjs/descriptor-set.js +0 -15
  18. package/node_modules/@bufbuild/protobuf/dist/cjs/enum.d.ts +0 -35
  19. package/node_modules/@bufbuild/protobuf/dist/cjs/enum.js +0 -15
  20. package/node_modules/@bufbuild/protobuf/dist/cjs/extension-accessor.d.ts +0 -35
  21. package/node_modules/@bufbuild/protobuf/dist/cjs/extension-accessor.js +0 -114
  22. package/node_modules/@bufbuild/protobuf/dist/cjs/extension.d.ts +0 -24
  23. package/node_modules/@bufbuild/protobuf/dist/cjs/extension.js +0 -15
  24. package/node_modules/@bufbuild/protobuf/dist/cjs/field-list.d.ts +0 -27
  25. package/node_modules/@bufbuild/protobuf/dist/cjs/field-list.js +0 -15
  26. package/node_modules/@bufbuild/protobuf/dist/cjs/field.d.ts +0 -314
  27. package/node_modules/@bufbuild/protobuf/dist/cjs/field.js +0 -15
  28. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/any_pb.d.ts +0 -157
  29. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/any_pb.js +0 -273
  30. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/api_pb.d.ts +0 -256
  31. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/api_pb.js +0 -316
  32. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/compiler/plugin_pb.d.ts +0 -271
  33. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/compiler/plugin_pb.js +0 -219
  34. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/descriptor_pb.d.ts +0 -2277
  35. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/descriptor_pb.js +0 -2077
  36. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/duration_pb.d.ts +0 -100
  37. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/duration_pb.js +0 -169
  38. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/empty_pb.d.ts +0 -28
  39. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/empty_pb.js +0 -52
  40. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/field_mask_pb.d.ts +0 -227
  41. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/field_mask_pb.js +0 -311
  42. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/source_context_pb.d.ts +0 -29
  43. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/source_context_pb.js +0 -55
  44. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/struct_pb.d.ts +0 -158
  45. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/struct_pb.js +0 -240
  46. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/timestamp_pb.d.ts +0 -132
  47. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/timestamp_pb.js +0 -213
  48. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/type_pb.d.ts +0 -437
  49. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/type_pb.js +0 -562
  50. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/wrappers_pb.d.ts +0 -267
  51. package/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/wrappers_pb.js +0 -569
  52. package/node_modules/@bufbuild/protobuf/dist/cjs/google/varint.d.ts +0 -70
  53. package/node_modules/@bufbuild/protobuf/dist/cjs/google/varint.js +0 -323
  54. package/node_modules/@bufbuild/protobuf/dist/cjs/index.d.ts +0 -42
  55. package/node_modules/@bufbuild/protobuf/dist/cjs/index.js +0 -84
  56. package/node_modules/@bufbuild/protobuf/dist/cjs/is-message.d.ts +0 -22
  57. package/node_modules/@bufbuild/protobuf/dist/cjs/is-message.js +0 -52
  58. package/node_modules/@bufbuild/protobuf/dist/cjs/json-format.d.ts +0 -111
  59. package/node_modules/@bufbuild/protobuf/dist/cjs/json-format.js +0 -15
  60. package/node_modules/@bufbuild/protobuf/dist/cjs/message-type.d.ts +0 -51
  61. package/node_modules/@bufbuild/protobuf/dist/cjs/message-type.js +0 -15
  62. package/node_modules/@bufbuild/protobuf/dist/cjs/message.d.ts +0 -131
  63. package/node_modules/@bufbuild/protobuf/dist/cjs/message.js +0 -129
  64. package/node_modules/@bufbuild/protobuf/dist/cjs/package.json +0 -1
  65. package/node_modules/@bufbuild/protobuf/dist/cjs/private/assert.d.ts +0 -16
  66. package/node_modules/@bufbuild/protobuf/dist/cjs/private/assert.js +0 -59
  67. package/node_modules/@bufbuild/protobuf/dist/cjs/private/binary-format.d.ts +0 -7
  68. package/node_modules/@bufbuild/protobuf/dist/cjs/private/binary-format.js +0 -431
  69. package/node_modules/@bufbuild/protobuf/dist/cjs/private/enum.d.ts +0 -27
  70. package/node_modules/@bufbuild/protobuf/dist/cjs/private/enum.js +0 -94
  71. package/node_modules/@bufbuild/protobuf/dist/cjs/private/extensions.d.ts +0 -34
  72. package/node_modules/@bufbuild/protobuf/dist/cjs/private/extensions.js +0 -86
  73. package/node_modules/@bufbuild/protobuf/dist/cjs/private/feature-set.d.ts +0 -19
  74. package/node_modules/@bufbuild/protobuf/dist/cjs/private/feature-set.js +0 -120
  75. package/node_modules/@bufbuild/protobuf/dist/cjs/private/field-list.d.ts +0 -18
  76. package/node_modules/@bufbuild/protobuf/dist/cjs/private/field-list.js +0 -76
  77. package/node_modules/@bufbuild/protobuf/dist/cjs/private/field-normalize.d.ts +0 -9
  78. package/node_modules/@bufbuild/protobuf/dist/cjs/private/field-normalize.js +0 -69
  79. package/node_modules/@bufbuild/protobuf/dist/cjs/private/field-wrapper.d.ts +0 -25
  80. package/node_modules/@bufbuild/protobuf/dist/cjs/private/field-wrapper.js +0 -57
  81. package/node_modules/@bufbuild/protobuf/dist/cjs/private/field.d.ts +0 -16
  82. package/node_modules/@bufbuild/protobuf/dist/cjs/private/field.js +0 -45
  83. package/node_modules/@bufbuild/protobuf/dist/cjs/private/json-format.d.ts +0 -2
  84. package/node_modules/@bufbuild/protobuf/dist/cjs/private/json-format.js +0 -626
  85. package/node_modules/@bufbuild/protobuf/dist/cjs/private/message-type.d.ts +0 -18
  86. package/node_modules/@bufbuild/protobuf/dist/cjs/private/message-type.js +0 -50
  87. package/node_modules/@bufbuild/protobuf/dist/cjs/private/names.d.ts +0 -43
  88. package/node_modules/@bufbuild/protobuf/dist/cjs/private/names.js +0 -278
  89. package/node_modules/@bufbuild/protobuf/dist/cjs/private/options-map.d.ts +0 -7
  90. package/node_modules/@bufbuild/protobuf/dist/cjs/private/options-map.js +0 -15
  91. package/node_modules/@bufbuild/protobuf/dist/cjs/private/proto-runtime.d.ts +0 -53
  92. package/node_modules/@bufbuild/protobuf/dist/cjs/private/proto-runtime.js +0 -41
  93. package/node_modules/@bufbuild/protobuf/dist/cjs/private/reflect.d.ts +0 -9
  94. package/node_modules/@bufbuild/protobuf/dist/cjs/private/reflect.js +0 -79
  95. package/node_modules/@bufbuild/protobuf/dist/cjs/private/reify-wkt.d.ts +0 -102
  96. package/node_modules/@bufbuild/protobuf/dist/cjs/private/reify-wkt.js +0 -172
  97. package/node_modules/@bufbuild/protobuf/dist/cjs/private/scalars.d.ts +0 -18
  98. package/node_modules/@bufbuild/protobuf/dist/cjs/private/scalars.js +0 -105
  99. package/node_modules/@bufbuild/protobuf/dist/cjs/private/text-format.d.ts +0 -4
  100. package/node_modules/@bufbuild/protobuf/dist/cjs/private/text-format.js +0 -189
  101. package/node_modules/@bufbuild/protobuf/dist/cjs/private/util-common.d.ts +0 -2
  102. package/node_modules/@bufbuild/protobuf/dist/cjs/private/util-common.js +0 -237
  103. package/node_modules/@bufbuild/protobuf/dist/cjs/private/util.d.ts +0 -38
  104. package/node_modules/@bufbuild/protobuf/dist/cjs/private/util.js +0 -15
  105. package/node_modules/@bufbuild/protobuf/dist/cjs/proto-base64.d.ts +0 -18
  106. package/node_modules/@bufbuild/protobuf/dist/cjs/proto-base64.js +0 -128
  107. package/node_modules/@bufbuild/protobuf/dist/cjs/proto-delimited.d.ts +0 -54
  108. package/node_modules/@bufbuild/protobuf/dist/cjs/proto-delimited.js +0 -155
  109. package/node_modules/@bufbuild/protobuf/dist/cjs/proto-double.d.ts +0 -5
  110. package/node_modules/@bufbuild/protobuf/dist/cjs/proto-double.js +0 -29
  111. package/node_modules/@bufbuild/protobuf/dist/cjs/proto-int64.d.ts +0 -95
  112. package/node_modules/@bufbuild/protobuf/dist/cjs/proto-int64.js +0 -116
  113. package/node_modules/@bufbuild/protobuf/dist/cjs/proto2.d.ts +0 -4
  114. package/node_modules/@bufbuild/protobuf/dist/cjs/proto2.js +0 -53
  115. package/node_modules/@bufbuild/protobuf/dist/cjs/proto3.d.ts +0 -4
  116. package/node_modules/@bufbuild/protobuf/dist/cjs/proto3.js +0 -56
  117. package/node_modules/@bufbuild/protobuf/dist/cjs/scalar.d.ts +0 -53
  118. package/node_modules/@bufbuild/protobuf/dist/cjs/scalar.js +0 -81
  119. package/node_modules/@bufbuild/protobuf/dist/cjs/service-type.d.ts +0 -96
  120. package/node_modules/@bufbuild/protobuf/dist/cjs/service-type.js +0 -53
  121. package/node_modules/@bufbuild/protobuf/dist/cjs/to-plain-message.d.ts +0 -12
  122. package/node_modules/@bufbuild/protobuf/dist/cjs/to-plain-message.js +0 -72
  123. package/node_modules/@bufbuild/protobuf/dist/cjs/type-registry.d.ts +0 -57
  124. package/node_modules/@bufbuild/protobuf/dist/cjs/type-registry.js +0 -15
  125. package/node_modules/@bufbuild/protobuf/dist/esm/binary-encoding.d.ts +0 -422
  126. package/node_modules/@bufbuild/protobuf/dist/esm/binary-encoding.js +0 -439
  127. package/node_modules/@bufbuild/protobuf/dist/esm/binary-format.d.ts +0 -113
  128. package/node_modules/@bufbuild/protobuf/dist/esm/binary-format.js +0 -14
  129. package/node_modules/@bufbuild/protobuf/dist/esm/codegen-info.d.ts +0 -33
  130. package/node_modules/@bufbuild/protobuf/dist/esm/codegen-info.js +0 -67
  131. package/node_modules/@bufbuild/protobuf/dist/esm/create-descriptor-set.d.ts +0 -36
  132. package/node_modules/@bufbuild/protobuf/dist/esm/create-descriptor-set.js +0 -906
  133. package/node_modules/@bufbuild/protobuf/dist/esm/create-registry-from-desc.d.ts +0 -15
  134. package/node_modules/@bufbuild/protobuf/dist/esm/create-registry-from-desc.js +0 -261
  135. package/node_modules/@bufbuild/protobuf/dist/esm/create-registry.d.ts +0 -9
  136. package/node_modules/@bufbuild/protobuf/dist/esm/create-registry.js +0 -90
  137. package/node_modules/@bufbuild/protobuf/dist/esm/descriptor-set.d.ts +0 -672
  138. package/node_modules/@bufbuild/protobuf/dist/esm/descriptor-set.js +0 -14
  139. package/node_modules/@bufbuild/protobuf/dist/esm/enum.d.ts +0 -35
  140. package/node_modules/@bufbuild/protobuf/dist/esm/enum.js +0 -14
  141. package/node_modules/@bufbuild/protobuf/dist/esm/extension-accessor.d.ts +0 -35
  142. package/node_modules/@bufbuild/protobuf/dist/esm/extension-accessor.js +0 -107
  143. package/node_modules/@bufbuild/protobuf/dist/esm/extension.d.ts +0 -24
  144. package/node_modules/@bufbuild/protobuf/dist/esm/extension.js +0 -14
  145. package/node_modules/@bufbuild/protobuf/dist/esm/field-list.d.ts +0 -27
  146. package/node_modules/@bufbuild/protobuf/dist/esm/field-list.js +0 -14
  147. package/node_modules/@bufbuild/protobuf/dist/esm/field.d.ts +0 -314
  148. package/node_modules/@bufbuild/protobuf/dist/esm/field.js +0 -14
  149. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/any_pb.d.ts +0 -157
  150. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/any_pb.js +0 -269
  151. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/api_pb.d.ts +0 -256
  152. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/api_pb.js +0 -310
  153. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/compiler/plugin_pb.d.ts +0 -271
  154. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/compiler/plugin_pb.js +0 -212
  155. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/descriptor_pb.d.ts +0 -2277
  156. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/descriptor_pb.js +0 -2041
  157. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/duration_pb.d.ts +0 -100
  158. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/duration_pb.js +0 -165
  159. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/empty_pb.d.ts +0 -28
  160. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/empty_pb.js +0 -48
  161. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/field_mask_pb.d.ts +0 -227
  162. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/field_mask_pb.js +0 -307
  163. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/source_context_pb.d.ts +0 -29
  164. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/source_context_pb.js +0 -51
  165. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/struct_pb.d.ts +0 -158
  166. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/struct_pb.js +0 -234
  167. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/timestamp_pb.d.ts +0 -132
  168. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/timestamp_pb.js +0 -209
  169. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/type_pb.d.ts +0 -437
  170. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/type_pb.js +0 -554
  171. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/wrappers_pb.d.ts +0 -267
  172. package/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/wrappers_pb.js +0 -557
  173. package/node_modules/@bufbuild/protobuf/dist/esm/google/varint.d.ts +0 -70
  174. package/node_modules/@bufbuild/protobuf/dist/esm/google/varint.js +0 -313
  175. package/node_modules/@bufbuild/protobuf/dist/esm/index.d.ts +0 -42
  176. package/node_modules/@bufbuild/protobuf/dist/esm/index.js +0 -43
  177. package/node_modules/@bufbuild/protobuf/dist/esm/is-message.d.ts +0 -22
  178. package/node_modules/@bufbuild/protobuf/dist/esm/is-message.js +0 -48
  179. package/node_modules/@bufbuild/protobuf/dist/esm/json-format.d.ts +0 -111
  180. package/node_modules/@bufbuild/protobuf/dist/esm/json-format.js +0 -14
  181. package/node_modules/@bufbuild/protobuf/dist/esm/message-type.d.ts +0 -51
  182. package/node_modules/@bufbuild/protobuf/dist/esm/message-type.js +0 -14
  183. package/node_modules/@bufbuild/protobuf/dist/esm/message.d.ts +0 -131
  184. package/node_modules/@bufbuild/protobuf/dist/esm/message.js +0 -125
  185. package/node_modules/@bufbuild/protobuf/dist/esm/private/assert.d.ts +0 -16
  186. package/node_modules/@bufbuild/protobuf/dist/esm/private/assert.js +0 -52
  187. package/node_modules/@bufbuild/protobuf/dist/esm/private/binary-format.d.ts +0 -7
  188. package/node_modules/@bufbuild/protobuf/dist/esm/private/binary-format.js +0 -427
  189. package/node_modules/@bufbuild/protobuf/dist/esm/private/enum.d.ts +0 -27
  190. package/node_modules/@bufbuild/protobuf/dist/esm/private/enum.js +0 -87
  191. package/node_modules/@bufbuild/protobuf/dist/esm/private/extensions.d.ts +0 -34
  192. package/node_modules/@bufbuild/protobuf/dist/esm/private/extensions.js +0 -81
  193. package/node_modules/@bufbuild/protobuf/dist/esm/private/feature-set.d.ts +0 -19
  194. package/node_modules/@bufbuild/protobuf/dist/esm/private/feature-set.js +0 -116
  195. package/node_modules/@bufbuild/protobuf/dist/esm/private/field-list.d.ts +0 -18
  196. package/node_modules/@bufbuild/protobuf/dist/esm/private/field-list.js +0 -72
  197. package/node_modules/@bufbuild/protobuf/dist/esm/private/field-normalize.d.ts +0 -9
  198. package/node_modules/@bufbuild/protobuf/dist/esm/private/field-normalize.js +0 -65
  199. package/node_modules/@bufbuild/protobuf/dist/esm/private/field-wrapper.d.ts +0 -25
  200. package/node_modules/@bufbuild/protobuf/dist/esm/private/field-wrapper.js +0 -53
  201. package/node_modules/@bufbuild/protobuf/dist/esm/private/field.d.ts +0 -16
  202. package/node_modules/@bufbuild/protobuf/dist/esm/private/field.js +0 -41
  203. package/node_modules/@bufbuild/protobuf/dist/esm/private/json-format.d.ts +0 -2
  204. package/node_modules/@bufbuild/protobuf/dist/esm/private/json-format.js +0 -623
  205. package/node_modules/@bufbuild/protobuf/dist/esm/private/message-type.d.ts +0 -18
  206. package/node_modules/@bufbuild/protobuf/dist/esm/private/message-type.js +0 -46
  207. package/node_modules/@bufbuild/protobuf/dist/esm/private/names.d.ts +0 -43
  208. package/node_modules/@bufbuild/protobuf/dist/esm/private/names.js +0 -269
  209. package/node_modules/@bufbuild/protobuf/dist/esm/private/options-map.d.ts +0 -7
  210. package/node_modules/@bufbuild/protobuf/dist/esm/private/options-map.js +0 -14
  211. package/node_modules/@bufbuild/protobuf/dist/esm/private/proto-runtime.d.ts +0 -53
  212. package/node_modules/@bufbuild/protobuf/dist/esm/private/proto-runtime.js +0 -37
  213. package/node_modules/@bufbuild/protobuf/dist/esm/private/reflect.d.ts +0 -9
  214. package/node_modules/@bufbuild/protobuf/dist/esm/private/reflect.js +0 -74
  215. package/node_modules/@bufbuild/protobuf/dist/esm/private/reify-wkt.d.ts +0 -102
  216. package/node_modules/@bufbuild/protobuf/dist/esm/private/reify-wkt.js +0 -168
  217. package/node_modules/@bufbuild/protobuf/dist/esm/private/scalars.d.ts +0 -18
  218. package/node_modules/@bufbuild/protobuf/dist/esm/private/scalars.js +0 -99
  219. package/node_modules/@bufbuild/protobuf/dist/esm/private/text-format.d.ts +0 -4
  220. package/node_modules/@bufbuild/protobuf/dist/esm/private/text-format.js +0 -184
  221. package/node_modules/@bufbuild/protobuf/dist/esm/private/util-common.d.ts +0 -2
  222. package/node_modules/@bufbuild/protobuf/dist/esm/private/util-common.js +0 -234
  223. package/node_modules/@bufbuild/protobuf/dist/esm/private/util.d.ts +0 -38
  224. package/node_modules/@bufbuild/protobuf/dist/esm/private/util.js +0 -14
  225. package/node_modules/@bufbuild/protobuf/dist/esm/proto-base64.d.ts +0 -18
  226. package/node_modules/@bufbuild/protobuf/dist/esm/proto-base64.js +0 -125
  227. package/node_modules/@bufbuild/protobuf/dist/esm/proto-delimited.d.ts +0 -54
  228. package/node_modules/@bufbuild/protobuf/dist/esm/proto-delimited.js +0 -152
  229. package/node_modules/@bufbuild/protobuf/dist/esm/proto-double.d.ts +0 -5
  230. package/node_modules/@bufbuild/protobuf/dist/esm/proto-double.js +0 -26
  231. package/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.d.ts +0 -95
  232. package/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.js +0 -113
  233. package/node_modules/@bufbuild/protobuf/dist/esm/proto2.d.ts +0 -4
  234. package/node_modules/@bufbuild/protobuf/dist/esm/proto2.js +0 -50
  235. package/node_modules/@bufbuild/protobuf/dist/esm/proto3.d.ts +0 -4
  236. package/node_modules/@bufbuild/protobuf/dist/esm/proto3.js +0 -53
  237. package/node_modules/@bufbuild/protobuf/dist/esm/scalar.d.ts +0 -53
  238. package/node_modules/@bufbuild/protobuf/dist/esm/scalar.js +0 -78
  239. package/node_modules/@bufbuild/protobuf/dist/esm/service-type.d.ts +0 -96
  240. package/node_modules/@bufbuild/protobuf/dist/esm/service-type.js +0 -50
  241. package/node_modules/@bufbuild/protobuf/dist/esm/to-plain-message.d.ts +0 -12
  242. package/node_modules/@bufbuild/protobuf/dist/esm/to-plain-message.js +0 -70
  243. package/node_modules/@bufbuild/protobuf/dist/esm/type-registry.d.ts +0 -57
  244. package/node_modules/@bufbuild/protobuf/dist/esm/type-registry.js +0 -14
  245. package/node_modules/@bufbuild/protobuf/package.json +0 -34
  246. package/node_modules/@connectrpc/connect/README.md +0 -62
  247. package/node_modules/@connectrpc/connect/dist/cjs/any-client.d.ts +0 -22
  248. package/node_modules/@connectrpc/connect/dist/cjs/any-client.js +0 -34
  249. package/node_modules/@connectrpc/connect/dist/cjs/call-options.d.ts +0 -34
  250. package/node_modules/@connectrpc/connect/dist/cjs/call-options.js +0 -15
  251. package/node_modules/@connectrpc/connect/dist/cjs/callback-client.d.ts +0 -31
  252. package/node_modules/@connectrpc/connect/dist/cjs/callback-client.js +0 -116
  253. package/node_modules/@connectrpc/connect/dist/cjs/code.d.ts +0 -75
  254. package/node_modules/@connectrpc/connect/dist/cjs/code.js +0 -92
  255. package/node_modules/@connectrpc/connect/dist/cjs/connect-error.d.ts +0 -90
  256. package/node_modules/@connectrpc/connect/dist/cjs/connect-error.js +0 -134
  257. package/node_modules/@connectrpc/connect/dist/cjs/context-values.d.ts +0 -34
  258. package/node_modules/@connectrpc/connect/dist/cjs/context-values.js +0 -41
  259. package/node_modules/@connectrpc/connect/dist/cjs/cors.d.ts +0 -45
  260. package/node_modules/@connectrpc/connect/dist/cjs/cors.js +0 -82
  261. package/node_modules/@connectrpc/connect/dist/cjs/http-headers.d.ts +0 -36
  262. package/node_modules/@connectrpc/connect/dist/cjs/http-headers.js +0 -68
  263. package/node_modules/@connectrpc/connect/dist/cjs/implementation.d.ts +0 -165
  264. package/node_modules/@connectrpc/connect/dist/cjs/implementation.js +0 -79
  265. package/node_modules/@connectrpc/connect/dist/cjs/index.d.ts +0 -22
  266. package/node_modules/@connectrpc/connect/dist/cjs/index.js +0 -47
  267. package/node_modules/@connectrpc/connect/dist/cjs/interceptor.d.ts +0 -155
  268. package/node_modules/@connectrpc/connect/dist/cjs/interceptor.js +0 -27
  269. package/node_modules/@connectrpc/connect/dist/cjs/method-type.d.ts +0 -43
  270. package/node_modules/@connectrpc/connect/dist/cjs/method-type.js +0 -15
  271. package/node_modules/@connectrpc/connect/dist/cjs/package.json +0 -1
  272. package/node_modules/@connectrpc/connect/dist/cjs/promise-client.d.ts +0 -49
  273. package/node_modules/@connectrpc/connect/dist/cjs/promise-client.js +0 -147
  274. package/node_modules/@connectrpc/connect/dist/cjs/protocol/async-iterable.d.ts +0 -527
  275. package/node_modules/@connectrpc/connect/dist/cjs/protocol/async-iterable.js +0 -959
  276. package/node_modules/@connectrpc/connect/dist/cjs/protocol/compression.d.ts +0 -48
  277. package/node_modules/@connectrpc/connect/dist/cjs/protocol/compression.js +0 -75
  278. package/node_modules/@connectrpc/connect/dist/cjs/protocol/content-type-matcher.d.ts +0 -16
  279. package/node_modules/@connectrpc/connect/dist/cjs/protocol/content-type-matcher.js +0 -43
  280. package/node_modules/@connectrpc/connect/dist/cjs/protocol/create-method-url.d.ts +0 -17
  281. package/node_modules/@connectrpc/connect/dist/cjs/protocol/create-method-url.js +0 -36
  282. package/node_modules/@connectrpc/connect/dist/cjs/protocol/envelope.d.ts +0 -59
  283. package/node_modules/@connectrpc/connect/dist/cjs/protocol/envelope.js +0 -152
  284. package/node_modules/@connectrpc/connect/dist/cjs/protocol/index.d.ts +0 -24
  285. package/node_modules/@connectrpc/connect/dist/cjs/protocol/index.js +0 -93
  286. package/node_modules/@connectrpc/connect/dist/cjs/protocol/invoke-implementation.d.ts +0 -21
  287. package/node_modules/@connectrpc/connect/dist/cjs/protocol/invoke-implementation.js +0 -250
  288. package/node_modules/@connectrpc/connect/dist/cjs/protocol/limit-io.d.ts +0 -24
  289. package/node_modules/@connectrpc/connect/dist/cjs/protocol/limit-io.js +0 -80
  290. package/node_modules/@connectrpc/connect/dist/cjs/protocol/normalize.d.ts +0 -12
  291. package/node_modules/@connectrpc/connect/dist/cjs/protocol/normalize.js +0 -56
  292. package/node_modules/@connectrpc/connect/dist/cjs/protocol/protocol-handler-factory.d.ts +0 -18
  293. package/node_modules/@connectrpc/connect/dist/cjs/protocol/protocol-handler-factory.js +0 -15
  294. package/node_modules/@connectrpc/connect/dist/cjs/protocol/run-call.d.ts +0 -45
  295. package/node_modules/@connectrpc/connect/dist/cjs/protocol/run-call.js +0 -119
  296. package/node_modules/@connectrpc/connect/dist/cjs/protocol/serialization.d.ts +0 -104
  297. package/node_modules/@connectrpc/connect/dist/cjs/protocol/serialization.js +0 -148
  298. package/node_modules/@connectrpc/connect/dist/cjs/protocol/signals.d.ts +0 -36
  299. package/node_modules/@connectrpc/connect/dist/cjs/protocol/signals.js +0 -100
  300. package/node_modules/@connectrpc/connect/dist/cjs/protocol/transport-options.d.ts +0 -98
  301. package/node_modules/@connectrpc/connect/dist/cjs/protocol/transport-options.js +0 -15
  302. package/node_modules/@connectrpc/connect/dist/cjs/protocol/universal-fetch.d.ts +0 -35
  303. package/node_modules/@connectrpc/connect/dist/cjs/protocol/universal-fetch.js +0 -150
  304. package/node_modules/@connectrpc/connect/dist/cjs/protocol/universal-handler-client.d.ts +0 -7
  305. package/node_modules/@connectrpc/connect/dist/cjs/protocol/universal-handler-client.js +0 -90
  306. package/node_modules/@connectrpc/connect/dist/cjs/protocol/universal-handler.d.ts +0 -155
  307. package/node_modules/@connectrpc/connect/dist/cjs/protocol/universal-handler.js +0 -131
  308. package/node_modules/@connectrpc/connect/dist/cjs/protocol/universal.d.ts +0 -102
  309. package/node_modules/@connectrpc/connect/dist/cjs/protocol/universal.js +0 -78
  310. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/code-string.d.ts +0 -16
  311. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/code-string.js +0 -52
  312. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/content-type.d.ts +0 -40
  313. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/content-type.js +0 -71
  314. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/end-stream.d.ts +0 -44
  315. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/end-stream.js +0 -132
  316. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/error-json.d.ts +0 -36
  317. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/error-json.js +0 -163
  318. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/get-request.d.ts +0 -7
  319. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/get-request.js +0 -68
  320. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/handler-factory.d.ts +0 -6
  321. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/handler-factory.js +0 -281
  322. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/headers.d.ts +0 -12
  323. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/headers.js +0 -28
  324. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/http-status.d.ts +0 -15
  325. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/http-status.js +0 -90
  326. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/index.d.ts +0 -16
  327. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/index.js +0 -81
  328. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/parse-timeout.d.ts +0 -13
  329. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/parse-timeout.js +0 -44
  330. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/query-params.d.ts +0 -8
  331. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/query-params.js +0 -24
  332. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/request-header.d.ts +0 -19
  333. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/request-header.js +0 -70
  334. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/trailer-mux.d.ts +0 -19
  335. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/trailer-mux.js +0 -53
  336. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/transport.d.ts +0 -6
  337. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/transport.js +0 -214
  338. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/validate-response.d.ts +0 -30
  339. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/validate-response.js +0 -72
  340. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/version.d.ts +0 -20
  341. package/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/version.js +0 -58
  342. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/content-type.d.ts +0 -16
  343. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/content-type.js +0 -38
  344. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/gen/status_pb.d.ts +0 -89
  345. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/gen/status_pb.js +0 -120
  346. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/handler-factory.d.ts +0 -6
  347. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/handler-factory.js +0 -122
  348. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/headers.d.ts +0 -12
  349. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/headers.js +0 -28
  350. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/http-status.d.ts +0 -8
  351. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/http-status.js +0 -46
  352. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/index.d.ts +0 -10
  353. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/index.js +0 -61
  354. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/parse-timeout.d.ts +0 -13
  355. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/parse-timeout.js +0 -53
  356. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/request-header.d.ts +0 -13
  357. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/request-header.js +0 -56
  358. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/trailer-status.d.ts +0 -28
  359. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/trailer-status.js +0 -104
  360. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/transport.d.ts +0 -6
  361. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/transport.js +0 -185
  362. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/validate-response.d.ts +0 -33
  363. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/validate-response.js +0 -75
  364. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/validate-trailer.d.ts +0 -13
  365. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/validate-trailer.js +0 -44
  366. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/content-type.d.ts +0 -19
  367. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/content-type.js +0 -41
  368. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/handler-factory.d.ts +0 -6
  369. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/handler-factory.js +0 -128
  370. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/headers.d.ts +0 -20
  371. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/headers.js +0 -44
  372. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/index.d.ts +0 -8
  373. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/index.js +0 -61
  374. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/request-header.d.ts +0 -13
  375. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/request-header.js +0 -59
  376. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/trailer.d.ts +0 -27
  377. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/trailer.js +0 -71
  378. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/transport.d.ts +0 -6
  379. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/transport.js +0 -238
  380. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/validate-response.d.ts +0 -34
  381. package/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/validate-response.js +0 -73
  382. package/node_modules/@connectrpc/connect/dist/cjs/router-transport.d.ts +0 -13
  383. package/node_modules/@connectrpc/connect/dist/cjs/router-transport.js +0 -32
  384. package/node_modules/@connectrpc/connect/dist/cjs/router.d.ts +0 -88
  385. package/node_modules/@connectrpc/connect/dist/cjs/router.js +0 -83
  386. package/node_modules/@connectrpc/connect/dist/cjs/transport.d.ts +0 -20
  387. package/node_modules/@connectrpc/connect/dist/cjs/transport.js +0 -15
  388. package/node_modules/@connectrpc/connect/dist/esm/any-client.d.ts +0 -22
  389. package/node_modules/@connectrpc/connect/dist/esm/any-client.js +0 -31
  390. package/node_modules/@connectrpc/connect/dist/esm/call-options.d.ts +0 -34
  391. package/node_modules/@connectrpc/connect/dist/esm/call-options.js +0 -14
  392. package/node_modules/@connectrpc/connect/dist/esm/callback-client.d.ts +0 -31
  393. package/node_modules/@connectrpc/connect/dist/esm/callback-client.js +0 -113
  394. package/node_modules/@connectrpc/connect/dist/esm/code.d.ts +0 -75
  395. package/node_modules/@connectrpc/connect/dist/esm/code.js +0 -89
  396. package/node_modules/@connectrpc/connect/dist/esm/connect-error.d.ts +0 -90
  397. package/node_modules/@connectrpc/connect/dist/esm/connect-error.js +0 -130
  398. package/node_modules/@connectrpc/connect/dist/esm/context-values.d.ts +0 -34
  399. package/node_modules/@connectrpc/connect/dist/esm/context-values.js +0 -37
  400. package/node_modules/@connectrpc/connect/dist/esm/cors.d.ts +0 -45
  401. package/node_modules/@connectrpc/connect/dist/esm/cors.js +0 -79
  402. package/node_modules/@connectrpc/connect/dist/esm/http-headers.d.ts +0 -36
  403. package/node_modules/@connectrpc/connect/dist/esm/http-headers.js +0 -63
  404. package/node_modules/@connectrpc/connect/dist/esm/implementation.d.ts +0 -165
  405. package/node_modules/@connectrpc/connect/dist/esm/implementation.js +0 -75
  406. package/node_modules/@connectrpc/connect/dist/esm/index.d.ts +0 -22
  407. package/node_modules/@connectrpc/connect/dist/esm/index.js +0 -27
  408. package/node_modules/@connectrpc/connect/dist/esm/interceptor.d.ts +0 -155
  409. package/node_modules/@connectrpc/connect/dist/esm/interceptor.js +0 -24
  410. package/node_modules/@connectrpc/connect/dist/esm/method-type.d.ts +0 -43
  411. package/node_modules/@connectrpc/connect/dist/esm/method-type.js +0 -14
  412. package/node_modules/@connectrpc/connect/dist/esm/promise-client.d.ts +0 -49
  413. package/node_modules/@connectrpc/connect/dist/esm/promise-client.js +0 -139
  414. package/node_modules/@connectrpc/connect/dist/esm/protocol/async-iterable.d.ts +0 -527
  415. package/node_modules/@connectrpc/connect/dist/esm/protocol/async-iterable.js +0 -937
  416. package/node_modules/@connectrpc/connect/dist/esm/protocol/compression.d.ts +0 -48
  417. package/node_modules/@connectrpc/connect/dist/esm/protocol/compression.js +0 -71
  418. package/node_modules/@connectrpc/connect/dist/esm/protocol/content-type-matcher.d.ts +0 -16
  419. package/node_modules/@connectrpc/connect/dist/esm/protocol/content-type-matcher.js +0 -40
  420. package/node_modules/@connectrpc/connect/dist/esm/protocol/create-method-url.d.ts +0 -17
  421. package/node_modules/@connectrpc/connect/dist/esm/protocol/create-method-url.js +0 -33
  422. package/node_modules/@connectrpc/connect/dist/esm/protocol/envelope.d.ts +0 -59
  423. package/node_modules/@connectrpc/connect/dist/esm/protocol/envelope.js +0 -145
  424. package/node_modules/@connectrpc/connect/dist/esm/protocol/index.d.ts +0 -24
  425. package/node_modules/@connectrpc/connect/dist/esm/protocol/index.js +0 -32
  426. package/node_modules/@connectrpc/connect/dist/esm/protocol/invoke-implementation.d.ts +0 -21
  427. package/node_modules/@connectrpc/connect/dist/esm/protocol/invoke-implementation.js +0 -246
  428. package/node_modules/@connectrpc/connect/dist/esm/protocol/limit-io.d.ts +0 -24
  429. package/node_modules/@connectrpc/connect/dist/esm/protocol/limit-io.js +0 -75
  430. package/node_modules/@connectrpc/connect/dist/esm/protocol/normalize.d.ts +0 -12
  431. package/node_modules/@connectrpc/connect/dist/esm/protocol/normalize.js +0 -53
  432. package/node_modules/@connectrpc/connect/dist/esm/protocol/protocol-handler-factory.d.ts +0 -18
  433. package/node_modules/@connectrpc/connect/dist/esm/protocol/protocol-handler-factory.js +0 -14
  434. package/node_modules/@connectrpc/connect/dist/esm/protocol/run-call.d.ts +0 -45
  435. package/node_modules/@connectrpc/connect/dist/esm/protocol/run-call.js +0 -115
  436. package/node_modules/@connectrpc/connect/dist/esm/protocol/serialization.d.ts +0 -104
  437. package/node_modules/@connectrpc/connect/dist/esm/protocol/serialization.js +0 -140
  438. package/node_modules/@connectrpc/connect/dist/esm/protocol/signals.d.ts +0 -36
  439. package/node_modules/@connectrpc/connect/dist/esm/protocol/signals.js +0 -95
  440. package/node_modules/@connectrpc/connect/dist/esm/protocol/transport-options.d.ts +0 -98
  441. package/node_modules/@connectrpc/connect/dist/esm/protocol/transport-options.js +0 -14
  442. package/node_modules/@connectrpc/connect/dist/esm/protocol/universal-fetch.d.ts +0 -35
  443. package/node_modules/@connectrpc/connect/dist/esm/protocol/universal-fetch.js +0 -142
  444. package/node_modules/@connectrpc/connect/dist/esm/protocol/universal-handler-client.d.ts +0 -7
  445. package/node_modules/@connectrpc/connect/dist/esm/protocol/universal-handler-client.js +0 -87
  446. package/node_modules/@connectrpc/connect/dist/esm/protocol/universal-handler.d.ts +0 -155
  447. package/node_modules/@connectrpc/connect/dist/esm/protocol/universal-handler.js +0 -125
  448. package/node_modules/@connectrpc/connect/dist/esm/protocol/universal.d.ts +0 -102
  449. package/node_modules/@connectrpc/connect/dist/esm/protocol/universal.js +0 -74
  450. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/code-string.d.ts +0 -16
  451. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/code-string.js +0 -48
  452. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/content-type.d.ts +0 -40
  453. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/content-type.js +0 -66
  454. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/end-stream.d.ts +0 -44
  455. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/end-stream.js +0 -126
  456. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/error-json.d.ts +0 -36
  457. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/error-json.js +0 -157
  458. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/get-request.d.ts +0 -7
  459. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/get-request.js +0 -65
  460. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/handler-factory.d.ts +0 -6
  461. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/handler-factory.js +0 -278
  462. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/headers.d.ts +0 -12
  463. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/headers.js +0 -25
  464. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/http-status.d.ts +0 -15
  465. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/http-status.js +0 -86
  466. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/index.d.ts +0 -16
  467. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/index.js +0 -33
  468. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/parse-timeout.d.ts +0 -13
  469. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/parse-timeout.js +0 -41
  470. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/query-params.d.ts +0 -8
  471. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/query-params.js +0 -21
  472. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/request-header.d.ts +0 -19
  473. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/request-header.js +0 -66
  474. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/trailer-mux.d.ts +0 -19
  475. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/trailer-mux.js +0 -49
  476. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/transport.d.ts +0 -6
  477. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/transport.js +0 -211
  478. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/validate-response.d.ts +0 -30
  479. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/validate-response.js +0 -68
  480. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/version.d.ts +0 -20
  481. package/node_modules/@connectrpc/connect/dist/esm/protocol-connect/version.js +0 -53
  482. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/content-type.d.ts +0 -16
  483. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/content-type.js +0 -34
  484. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/gen/status_pb.d.ts +0 -89
  485. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/gen/status_pb.js +0 -116
  486. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/handler-factory.d.ts +0 -6
  487. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/handler-factory.js +0 -119
  488. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/headers.d.ts +0 -12
  489. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/headers.js +0 -25
  490. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/http-status.d.ts +0 -8
  491. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/http-status.js +0 -43
  492. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/index.d.ts +0 -10
  493. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/index.js +0 -28
  494. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/parse-timeout.d.ts +0 -13
  495. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/parse-timeout.js +0 -50
  496. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/request-header.d.ts +0 -13
  497. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/request-header.js +0 -52
  498. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/trailer-status.d.ts +0 -28
  499. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/trailer-status.js +0 -99
  500. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/transport.d.ts +0 -6
  501. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/transport.js +0 -182
  502. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/validate-response.d.ts +0 -33
  503. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/validate-response.js +0 -71
  504. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/validate-trailer.d.ts +0 -13
  505. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/validate-trailer.js +0 -41
  506. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/content-type.d.ts +0 -19
  507. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/content-type.js +0 -37
  508. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/handler-factory.d.ts +0 -6
  509. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/handler-factory.js +0 -125
  510. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/headers.d.ts +0 -20
  511. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/headers.js +0 -33
  512. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/index.d.ts +0 -8
  513. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/index.js +0 -26
  514. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/request-header.d.ts +0 -13
  515. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/request-header.js +0 -55
  516. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/trailer.d.ts +0 -27
  517. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/trailer.js +0 -65
  518. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/transport.d.ts +0 -6
  519. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/transport.js +0 -235
  520. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/validate-response.d.ts +0 -34
  521. package/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/validate-response.js +0 -69
  522. package/node_modules/@connectrpc/connect/dist/esm/router-transport.d.ts +0 -13
  523. package/node_modules/@connectrpc/connect/dist/esm/router-transport.js +0 -29
  524. package/node_modules/@connectrpc/connect/dist/esm/router.d.ts +0 -88
  525. package/node_modules/@connectrpc/connect/dist/esm/router.js +0 -80
  526. package/node_modules/@connectrpc/connect/dist/esm/transport.d.ts +0 -20
  527. package/node_modules/@connectrpc/connect/dist/esm/transport.js +0 -14
  528. package/node_modules/@connectrpc/connect/package.json +0 -75
  529. package/node_modules/@connectrpc/connect/protocol-connect.js +0 -16
  530. package/node_modules/@connectrpc/connect/protocol-grpc-web.js +0 -16
  531. package/node_modules/@connectrpc/connect/protocol-grpc.js +0 -16
  532. package/node_modules/@connectrpc/connect/protocol.js +0 -16
  533. package/node_modules/@connectrpc/connect-node/README.md +0 -141
  534. package/node_modules/@connectrpc/connect-node/dist/cjs/compression.d.ts +0 -15
  535. package/node_modules/@connectrpc/connect-node/dist/cjs/compression.js +0 -89
  536. package/node_modules/@connectrpc/connect-node/dist/cjs/connect-node-adapter.d.ts +0 -42
  537. package/node_modules/@connectrpc/connect-node/dist/cjs/connect-node-adapter.js +0 -61
  538. package/node_modules/@connectrpc/connect-node/dist/cjs/connect-transport.d.ts +0 -100
  539. package/node_modules/@connectrpc/connect-node/dist/cjs/connect-transport.js +0 -25
  540. package/node_modules/@connectrpc/connect-node/dist/cjs/grpc-transport.d.ts +0 -96
  541. package/node_modules/@connectrpc/connect-node/dist/cjs/grpc-transport.js +0 -25
  542. package/node_modules/@connectrpc/connect-node/dist/cjs/grpc-web-transport.d.ts +0 -96
  543. package/node_modules/@connectrpc/connect-node/dist/cjs/grpc-web-transport.js +0 -25
  544. package/node_modules/@connectrpc/connect-node/dist/cjs/http2-session-manager.d.ts +0 -146
  545. package/node_modules/@connectrpc/connect-node/dist/cjs/http2-session-manager.js +0 -536
  546. package/node_modules/@connectrpc/connect-node/dist/cjs/index.d.ts +0 -15
  547. package/node_modules/@connectrpc/connect-node/dist/cjs/index.js +0 -36
  548. package/node_modules/@connectrpc/connect-node/dist/cjs/node-error.d.ts +0 -45
  549. package/node_modules/@connectrpc/connect-node/dist/cjs/node-error.js +0 -154
  550. package/node_modules/@connectrpc/connect-node/dist/cjs/node-headers-polyfill.d.ts +0 -1
  551. package/node_modules/@connectrpc/connect-node/dist/cjs/node-headers-polyfill.js +0 -29
  552. package/node_modules/@connectrpc/connect-node/dist/cjs/node-transport-options.d.ts +0 -89
  553. package/node_modules/@connectrpc/connect-node/dist/cjs/node-transport-options.js +0 -58
  554. package/node_modules/@connectrpc/connect-node/dist/cjs/node-universal-client.d.ts +0 -54
  555. package/node_modules/@connectrpc/connect-node/dist/cjs/node-universal-client.js +0 -326
  556. package/node_modules/@connectrpc/connect-node/dist/cjs/node-universal-handler.d.ts +0 -41
  557. package/node_modules/@connectrpc/connect-node/dist/cjs/node-universal-handler.js +0 -234
  558. package/node_modules/@connectrpc/connect-node/dist/cjs/node-universal-header.d.ts +0 -19
  559. package/node_modules/@connectrpc/connect-node/dist/cjs/node-universal-header.js +0 -97
  560. package/node_modules/@connectrpc/connect-node/dist/cjs/package.json +0 -1
  561. package/node_modules/@connectrpc/connect-node/dist/esm/compression.d.ts +0 -15
  562. package/node_modules/@connectrpc/connect-node/dist/esm/compression.js +0 -86
  563. package/node_modules/@connectrpc/connect-node/dist/esm/connect-node-adapter.d.ts +0 -42
  564. package/node_modules/@connectrpc/connect-node/dist/esm/connect-node-adapter.js +0 -58
  565. package/node_modules/@connectrpc/connect-node/dist/esm/connect-transport.d.ts +0 -100
  566. package/node_modules/@connectrpc/connect-node/dist/esm/connect-transport.js +0 -22
  567. package/node_modules/@connectrpc/connect-node/dist/esm/grpc-transport.d.ts +0 -96
  568. package/node_modules/@connectrpc/connect-node/dist/esm/grpc-transport.js +0 -22
  569. package/node_modules/@connectrpc/connect-node/dist/esm/grpc-web-transport.d.ts +0 -96
  570. package/node_modules/@connectrpc/connect-node/dist/esm/grpc-web-transport.js +0 -22
  571. package/node_modules/@connectrpc/connect-node/dist/esm/http2-session-manager.d.ts +0 -146
  572. package/node_modules/@connectrpc/connect-node/dist/esm/http2-session-manager.js +0 -532
  573. package/node_modules/@connectrpc/connect-node/dist/esm/index.d.ts +0 -15
  574. package/node_modules/@connectrpc/connect-node/dist/esm/index.js +0 -23
  575. package/node_modules/@connectrpc/connect-node/dist/esm/node-error.d.ts +0 -45
  576. package/node_modules/@connectrpc/connect-node/dist/esm/node-error.js +0 -147
  577. package/node_modules/@connectrpc/connect-node/dist/esm/node-headers-polyfill.d.ts +0 -1
  578. package/node_modules/@connectrpc/connect-node/dist/esm/node-headers-polyfill.js +0 -27
  579. package/node_modules/@connectrpc/connect-node/dist/esm/node-transport-options.d.ts +0 -89
  580. package/node_modules/@connectrpc/connect-node/dist/esm/node-transport-options.js +0 -58
  581. package/node_modules/@connectrpc/connect-node/dist/esm/node-universal-client.d.ts +0 -54
  582. package/node_modules/@connectrpc/connect-node/dist/esm/node-universal-client.js +0 -324
  583. package/node_modules/@connectrpc/connect-node/dist/esm/node-universal-handler.d.ts +0 -41
  584. package/node_modules/@connectrpc/connect-node/dist/esm/node-universal-handler.js +0 -230
  585. package/node_modules/@connectrpc/connect-node/dist/esm/node-universal-header.d.ts +0 -19
  586. package/node_modules/@connectrpc/connect-node/dist/esm/node-universal-header.js +0 -93
  587. package/node_modules/@connectrpc/connect-node/package.json +0 -46
  588. package/node_modules/@cursor/sdk/LICENSE.md +0 -3
  589. package/node_modules/@cursor/sdk/README.md +0 -23
  590. package/node_modules/@cursor/sdk/dist/cjs/642.index.js +0 -1
  591. package/node_modules/@cursor/sdk/dist/cjs/agent.d.ts +0 -170
  592. package/node_modules/@cursor/sdk/dist/cjs/agent.d.ts.map +0 -1
  593. package/node_modules/@cursor/sdk/dist/cjs/analytics.d.ts +0 -98
  594. package/node_modules/@cursor/sdk/dist/cjs/analytics.d.ts.map +0 -1
  595. package/node_modules/@cursor/sdk/dist/cjs/artifacts.d.ts +0 -6
  596. package/node_modules/@cursor/sdk/dist/cjs/artifacts.d.ts.map +0 -1
  597. package/node_modules/@cursor/sdk/dist/cjs/cloud-agent.d.ts +0 -47
  598. package/node_modules/@cursor/sdk/dist/cjs/cloud-agent.d.ts.map +0 -1
  599. package/node_modules/@cursor/sdk/dist/cjs/cloud-api-client.d.ts +0 -197
  600. package/node_modules/@cursor/sdk/dist/cjs/cloud-api-client.d.ts.map +0 -1
  601. package/node_modules/@cursor/sdk/dist/cjs/cloud-executor.d.ts +0 -14
  602. package/node_modules/@cursor/sdk/dist/cjs/cloud-executor.d.ts.map +0 -1
  603. package/node_modules/@cursor/sdk/dist/cjs/cloud-mcp-utils.d.ts +0 -4
  604. package/node_modules/@cursor/sdk/dist/cjs/cloud-mcp-utils.d.ts.map +0 -1
  605. package/node_modules/@cursor/sdk/dist/cjs/core-adapter.d.ts +0 -2
  606. package/node_modules/@cursor/sdk/dist/cjs/core-adapter.d.ts.map +0 -1
  607. package/node_modules/@cursor/sdk/dist/cjs/errors.d.ts +0 -135
  608. package/node_modules/@cursor/sdk/dist/cjs/errors.d.ts.map +0 -1
  609. package/node_modules/@cursor/sdk/dist/cjs/executor-common.d.ts +0 -16
  610. package/node_modules/@cursor/sdk/dist/cjs/executor-common.d.ts.map +0 -1
  611. package/node_modules/@cursor/sdk/dist/cjs/executor-types.d.ts +0 -65
  612. package/node_modules/@cursor/sdk/dist/cjs/executor-types.d.ts.map +0 -1
  613. package/node_modules/@cursor/sdk/dist/cjs/index.d.ts +0 -18
  614. package/node_modules/@cursor/sdk/dist/cjs/index.d.ts.map +0 -1
  615. package/node_modules/@cursor/sdk/dist/cjs/index.js +0 -8
  616. package/node_modules/@cursor/sdk/dist/cjs/index.js.LICENSE.txt +0 -285
  617. package/node_modules/@cursor/sdk/dist/cjs/local-executor.d.ts +0 -18
  618. package/node_modules/@cursor/sdk/dist/cjs/local-executor.d.ts.map +0 -1
  619. package/node_modules/@cursor/sdk/dist/cjs/local-model-validation.d.ts +0 -6
  620. package/node_modules/@cursor/sdk/dist/cjs/local-model-validation.d.ts.map +0 -1
  621. package/node_modules/@cursor/sdk/dist/cjs/messages.d.ts +0 -110
  622. package/node_modules/@cursor/sdk/dist/cjs/messages.d.ts.map +0 -1
  623. package/node_modules/@cursor/sdk/dist/cjs/options.d.ts +0 -145
  624. package/node_modules/@cursor/sdk/dist/cjs/options.d.ts.map +0 -1
  625. package/node_modules/@cursor/sdk/dist/cjs/package.json +0 -3
  626. package/node_modules/@cursor/sdk/dist/cjs/platform.d.ts +0 -71
  627. package/node_modules/@cursor/sdk/dist/cjs/platform.d.ts.map +0 -1
  628. package/node_modules/@cursor/sdk/dist/cjs/prefetched-blobs.d.ts +0 -13
  629. package/node_modules/@cursor/sdk/dist/cjs/prefetched-blobs.d.ts.map +0 -1
  630. package/node_modules/@cursor/sdk/dist/cjs/public-api.d.ts +0 -12
  631. package/node_modules/@cursor/sdk/dist/cjs/public-api.d.ts.map +0 -1
  632. package/node_modules/@cursor/sdk/dist/cjs/run-event-tailer.d.ts +0 -33
  633. package/node_modules/@cursor/sdk/dist/cjs/run-event-tailer.d.ts.map +0 -1
  634. package/node_modules/@cursor/sdk/dist/cjs/run-interaction-accumulator.d.ts +0 -33
  635. package/node_modules/@cursor/sdk/dist/cjs/run-interaction-accumulator.d.ts.map +0 -1
  636. package/node_modules/@cursor/sdk/dist/cjs/run.d.ts +0 -44
  637. package/node_modules/@cursor/sdk/dist/cjs/run.d.ts.map +0 -1
  638. package/node_modules/@cursor/sdk/dist/cjs/sdk-statsig.d.ts +0 -10
  639. package/node_modules/@cursor/sdk/dist/cjs/sdk-statsig.d.ts.map +0 -1
  640. package/node_modules/@cursor/sdk/dist/cjs/stubs.d.ts +0 -98
  641. package/node_modules/@cursor/sdk/dist/cjs/stubs.d.ts.map +0 -1
  642. package/node_modules/@cursor/sdk/dist/cjs/subagent-conversion.d.ts +0 -22
  643. package/node_modules/@cursor/sdk/dist/cjs/subagent-conversion.d.ts.map +0 -1
  644. package/node_modules/@cursor/sdk/dist/cjs/tool-call-utils.d.ts +0 -7
  645. package/node_modules/@cursor/sdk/dist/cjs/tool-call-utils.d.ts.map +0 -1
  646. package/node_modules/@cursor/sdk/dist/cjs/types/conversation-types.d.ts +0 -12062
  647. package/node_modules/@cursor/sdk/dist/cjs/types/conversation-types.d.ts.map +0 -1
  648. package/node_modules/@cursor/sdk/dist/cjs/types/delta-types.d.ts +0 -2
  649. package/node_modules/@cursor/sdk/dist/cjs/types/delta-types.d.ts.map +0 -1
  650. package/node_modules/@cursor/sdk/dist/cjs/types/tool-call-types.d.ts +0 -2
  651. package/node_modules/@cursor/sdk/dist/cjs/types/tool-call-types.d.ts.map +0 -1
  652. package/node_modules/@cursor/sdk/dist/cjs/utils/conversation-utils.d.ts +0 -3
  653. package/node_modules/@cursor/sdk/dist/cjs/utils/conversation-utils.d.ts.map +0 -1
  654. package/node_modules/@cursor/sdk/dist/cjs/utils/logger.d.ts +0 -12
  655. package/node_modules/@cursor/sdk/dist/cjs/utils/logger.d.ts.map +0 -1
  656. package/node_modules/@cursor/sdk/dist/cjs/utils/message-schemas.d.ts +0 -2
  657. package/node_modules/@cursor/sdk/dist/cjs/utils/message-schemas.d.ts.map +0 -1
  658. package/node_modules/@cursor/sdk/dist/esm/642.index.js +0 -1
  659. package/node_modules/@cursor/sdk/dist/esm/agent.d.ts +0 -170
  660. package/node_modules/@cursor/sdk/dist/esm/agent.d.ts.map +0 -1
  661. package/node_modules/@cursor/sdk/dist/esm/analytics.d.ts +0 -98
  662. package/node_modules/@cursor/sdk/dist/esm/analytics.d.ts.map +0 -1
  663. package/node_modules/@cursor/sdk/dist/esm/artifacts.d.ts +0 -6
  664. package/node_modules/@cursor/sdk/dist/esm/artifacts.d.ts.map +0 -1
  665. package/node_modules/@cursor/sdk/dist/esm/cloud-agent.d.ts +0 -47
  666. package/node_modules/@cursor/sdk/dist/esm/cloud-agent.d.ts.map +0 -1
  667. package/node_modules/@cursor/sdk/dist/esm/cloud-api-client.d.ts +0 -197
  668. package/node_modules/@cursor/sdk/dist/esm/cloud-api-client.d.ts.map +0 -1
  669. package/node_modules/@cursor/sdk/dist/esm/cloud-executor.d.ts +0 -14
  670. package/node_modules/@cursor/sdk/dist/esm/cloud-executor.d.ts.map +0 -1
  671. package/node_modules/@cursor/sdk/dist/esm/cloud-mcp-utils.d.ts +0 -4
  672. package/node_modules/@cursor/sdk/dist/esm/cloud-mcp-utils.d.ts.map +0 -1
  673. package/node_modules/@cursor/sdk/dist/esm/core-adapter.d.ts +0 -2
  674. package/node_modules/@cursor/sdk/dist/esm/core-adapter.d.ts.map +0 -1
  675. package/node_modules/@cursor/sdk/dist/esm/errors.d.ts +0 -135
  676. package/node_modules/@cursor/sdk/dist/esm/errors.d.ts.map +0 -1
  677. package/node_modules/@cursor/sdk/dist/esm/executor-common.d.ts +0 -16
  678. package/node_modules/@cursor/sdk/dist/esm/executor-common.d.ts.map +0 -1
  679. package/node_modules/@cursor/sdk/dist/esm/executor-types.d.ts +0 -65
  680. package/node_modules/@cursor/sdk/dist/esm/executor-types.d.ts.map +0 -1
  681. package/node_modules/@cursor/sdk/dist/esm/index.d.ts +0 -18
  682. package/node_modules/@cursor/sdk/dist/esm/index.d.ts.map +0 -1
  683. package/node_modules/@cursor/sdk/dist/esm/index.js +0 -8
  684. package/node_modules/@cursor/sdk/dist/esm/index.js.LICENSE.txt +0 -285
  685. package/node_modules/@cursor/sdk/dist/esm/local-executor.d.ts +0 -18
  686. package/node_modules/@cursor/sdk/dist/esm/local-executor.d.ts.map +0 -1
  687. package/node_modules/@cursor/sdk/dist/esm/local-model-validation.d.ts +0 -6
  688. package/node_modules/@cursor/sdk/dist/esm/local-model-validation.d.ts.map +0 -1
  689. package/node_modules/@cursor/sdk/dist/esm/messages.d.ts +0 -110
  690. package/node_modules/@cursor/sdk/dist/esm/messages.d.ts.map +0 -1
  691. package/node_modules/@cursor/sdk/dist/esm/options.d.ts +0 -145
  692. package/node_modules/@cursor/sdk/dist/esm/options.d.ts.map +0 -1
  693. package/node_modules/@cursor/sdk/dist/esm/platform.d.ts +0 -71
  694. package/node_modules/@cursor/sdk/dist/esm/platform.d.ts.map +0 -1
  695. package/node_modules/@cursor/sdk/dist/esm/prefetched-blobs.d.ts +0 -13
  696. package/node_modules/@cursor/sdk/dist/esm/prefetched-blobs.d.ts.map +0 -1
  697. package/node_modules/@cursor/sdk/dist/esm/public-api.d.ts +0 -12
  698. package/node_modules/@cursor/sdk/dist/esm/public-api.d.ts.map +0 -1
  699. package/node_modules/@cursor/sdk/dist/esm/run-event-tailer.d.ts +0 -33
  700. package/node_modules/@cursor/sdk/dist/esm/run-event-tailer.d.ts.map +0 -1
  701. package/node_modules/@cursor/sdk/dist/esm/run-interaction-accumulator.d.ts +0 -33
  702. package/node_modules/@cursor/sdk/dist/esm/run-interaction-accumulator.d.ts.map +0 -1
  703. package/node_modules/@cursor/sdk/dist/esm/run.d.ts +0 -44
  704. package/node_modules/@cursor/sdk/dist/esm/run.d.ts.map +0 -1
  705. package/node_modules/@cursor/sdk/dist/esm/sdk-statsig.d.ts +0 -10
  706. package/node_modules/@cursor/sdk/dist/esm/sdk-statsig.d.ts.map +0 -1
  707. package/node_modules/@cursor/sdk/dist/esm/stubs.d.ts +0 -98
  708. package/node_modules/@cursor/sdk/dist/esm/stubs.d.ts.map +0 -1
  709. package/node_modules/@cursor/sdk/dist/esm/subagent-conversion.d.ts +0 -22
  710. package/node_modules/@cursor/sdk/dist/esm/subagent-conversion.d.ts.map +0 -1
  711. package/node_modules/@cursor/sdk/dist/esm/tool-call-utils.d.ts +0 -7
  712. package/node_modules/@cursor/sdk/dist/esm/tool-call-utils.d.ts.map +0 -1
  713. package/node_modules/@cursor/sdk/dist/esm/types/conversation-types.d.ts +0 -12062
  714. package/node_modules/@cursor/sdk/dist/esm/types/conversation-types.d.ts.map +0 -1
  715. package/node_modules/@cursor/sdk/dist/esm/types/delta-types.d.ts +0 -2
  716. package/node_modules/@cursor/sdk/dist/esm/types/delta-types.d.ts.map +0 -1
  717. package/node_modules/@cursor/sdk/dist/esm/types/tool-call-types.d.ts +0 -2
  718. package/node_modules/@cursor/sdk/dist/esm/types/tool-call-types.d.ts.map +0 -1
  719. package/node_modules/@cursor/sdk/dist/esm/utils/conversation-utils.d.ts +0 -3
  720. package/node_modules/@cursor/sdk/dist/esm/utils/conversation-utils.d.ts.map +0 -1
  721. package/node_modules/@cursor/sdk/dist/esm/utils/logger.d.ts +0 -12
  722. package/node_modules/@cursor/sdk/dist/esm/utils/logger.d.ts.map +0 -1
  723. package/node_modules/@cursor/sdk/dist/esm/utils/message-schemas.d.ts +0 -2
  724. package/node_modules/@cursor/sdk/dist/esm/utils/message-schemas.d.ts.map +0 -1
  725. package/node_modules/@cursor/sdk/package.json +0 -114
  726. package/node_modules/@cursor/sdk-darwin-arm64/README.md +0 -5
  727. package/node_modules/@cursor/sdk-darwin-arm64/bin/cursorsandbox +0 -0
  728. package/node_modules/@cursor/sdk-darwin-arm64/bin/rg +0 -0
  729. package/node_modules/@cursor/sdk-darwin-arm64/package.json +0 -25
  730. package/node_modules/@isaacs/fs-minipass/LICENSE +0 -15
  731. package/node_modules/@isaacs/fs-minipass/README.md +0 -71
  732. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts +0 -118
  733. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts.map +0 -1
  734. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +0 -430
  735. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js.map +0 -1
  736. package/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +0 -3
  737. package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts +0 -118
  738. package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts.map +0 -1
  739. package/node_modules/@isaacs/fs-minipass/dist/esm/index.js +0 -420
  740. package/node_modules/@isaacs/fs-minipass/dist/esm/index.js.map +0 -1
  741. package/node_modules/@isaacs/fs-minipass/dist/esm/package.json +0 -3
  742. package/node_modules/@isaacs/fs-minipass/package.json +0 -72
  743. package/node_modules/@statsig/client-core/package.json +0 -15
  744. package/node_modules/@statsig/client-core/src/$_StatsigGlobal.d.ts +0 -19
  745. package/node_modules/@statsig/client-core/src/$_StatsigGlobal.js +0 -41
  746. package/node_modules/@statsig/client-core/src/CacheKey.d.ts +0 -4
  747. package/node_modules/@statsig/client-core/src/CacheKey.js +0 -28
  748. package/node_modules/@statsig/client-core/src/ClientInterfaces.d.ts +0 -62
  749. package/node_modules/@statsig/client-core/src/ClientInterfaces.js +0 -2
  750. package/node_modules/@statsig/client-core/src/DataAdapterCore.d.ts +0 -29
  751. package/node_modules/@statsig/client-core/src/DataAdapterCore.js +0 -216
  752. package/node_modules/@statsig/client-core/src/Diagnostics.d.ts +0 -67
  753. package/node_modules/@statsig/client-core/src/Diagnostics.js +0 -100
  754. package/node_modules/@statsig/client-core/src/DnsTxtQuery.d.ts +0 -2
  755. package/node_modules/@statsig/client-core/src/DnsTxtQuery.js +0 -63
  756. package/node_modules/@statsig/client-core/src/DownloadConfigSpecsResponse.d.ts +0 -61
  757. package/node_modules/@statsig/client-core/src/DownloadConfigSpecsResponse.js +0 -2
  758. package/node_modules/@statsig/client-core/src/ErrorBoundary.d.ts +0 -17
  759. package/node_modules/@statsig/client-core/src/ErrorBoundary.js +0 -197
  760. package/node_modules/@statsig/client-core/src/EvaluationOptions.d.ts +0 -30
  761. package/node_modules/@statsig/client-core/src/EvaluationOptions.js +0 -2
  762. package/node_modules/@statsig/client-core/src/EvaluationTypes.d.ts +0 -49
  763. package/node_modules/@statsig/client-core/src/EvaluationTypes.js +0 -2
  764. package/node_modules/@statsig/client-core/src/EvaluationTypesV2.d.ts +0 -30
  765. package/node_modules/@statsig/client-core/src/EvaluationTypesV2.js +0 -2
  766. package/node_modules/@statsig/client-core/src/EventBatch.d.ts +0 -8
  767. package/node_modules/@statsig/client-core/src/EventBatch.js +0 -14
  768. package/node_modules/@statsig/client-core/src/EventLogger.d.ts +0 -48
  769. package/node_modules/@statsig/client-core/src/EventLogger.js +0 -349
  770. package/node_modules/@statsig/client-core/src/EventRetryConstants.d.ts +0 -7
  771. package/node_modules/@statsig/client-core/src/EventRetryConstants.js +0 -12
  772. package/node_modules/@statsig/client-core/src/Hashing.d.ts +0 -3
  773. package/node_modules/@statsig/client-core/src/Hashing.js +0 -35
  774. package/node_modules/@statsig/client-core/src/InitializeResponse.d.ts +0 -66
  775. package/node_modules/@statsig/client-core/src/InitializeResponse.js +0 -2
  776. package/node_modules/@statsig/client-core/src/Log.d.ts +0 -15
  777. package/node_modules/@statsig/client-core/src/Log.js +0 -44
  778. package/node_modules/@statsig/client-core/src/MemoKey.d.ts +0 -11
  779. package/node_modules/@statsig/client-core/src/MemoKey.js +0 -37
  780. package/node_modules/@statsig/client-core/src/NetworkConfig.d.ts +0 -26
  781. package/node_modules/@statsig/client-core/src/NetworkConfig.js +0 -23
  782. package/node_modules/@statsig/client-core/src/NetworkCore.d.ts +0 -55
  783. package/node_modules/@statsig/client-core/src/NetworkCore.js +0 -371
  784. package/node_modules/@statsig/client-core/src/NetworkFallbackResolver.d.ts +0 -21
  785. package/node_modules/@statsig/client-core/src/NetworkFallbackResolver.js +0 -198
  786. package/node_modules/@statsig/client-core/src/OverrideAdapter.d.ts +0 -16
  787. package/node_modules/@statsig/client-core/src/OverrideAdapter.js +0 -2
  788. package/node_modules/@statsig/client-core/src/ParamStoreTypes.d.ts +0 -65
  789. package/node_modules/@statsig/client-core/src/ParamStoreTypes.js +0 -2
  790. package/node_modules/@statsig/client-core/src/SDKFlags.d.ts +0 -4
  791. package/node_modules/@statsig/client-core/src/SDKFlags.js +0 -13
  792. package/node_modules/@statsig/client-core/src/SDKType.d.ts +0 -8
  793. package/node_modules/@statsig/client-core/src/SDKType.js +0 -19
  794. package/node_modules/@statsig/client-core/src/SafeJs.d.ts +0 -8
  795. package/node_modules/@statsig/client-core/src/SafeJs.js +0 -68
  796. package/node_modules/@statsig/client-core/src/SessionID.d.ts +0 -20
  797. package/node_modules/@statsig/client-core/src/SessionID.js +0 -106
  798. package/node_modules/@statsig/client-core/src/SizeOf.d.ts +0 -1
  799. package/node_modules/@statsig/client-core/src/SizeOf.js +0 -26
  800. package/node_modules/@statsig/client-core/src/StableID.d.ts +0 -9
  801. package/node_modules/@statsig/client-core/src/StableID.js +0 -90
  802. package/node_modules/@statsig/client-core/src/StatsigClientBase.d.ts +0 -74
  803. package/node_modules/@statsig/client-core/src/StatsigClientBase.js +0 -207
  804. package/node_modules/@statsig/client-core/src/StatsigClientEventEmitter.d.ts +0 -100
  805. package/node_modules/@statsig/client-core/src/StatsigClientEventEmitter.js +0 -6
  806. package/node_modules/@statsig/client-core/src/StatsigDataAdapter.d.ts +0 -131
  807. package/node_modules/@statsig/client-core/src/StatsigDataAdapter.js +0 -4
  808. package/node_modules/@statsig/client-core/src/StatsigEvent.d.ts +0 -28
  809. package/node_modules/@statsig/client-core/src/StatsigEvent.js +0 -98
  810. package/node_modules/@statsig/client-core/src/StatsigMetadata.d.ts +0 -18
  811. package/node_modules/@statsig/client-core/src/StatsigMetadata.js +0 -14
  812. package/node_modules/@statsig/client-core/src/StatsigOptionsCommon.d.ts +0 -180
  813. package/node_modules/@statsig/client-core/src/StatsigOptionsCommon.js +0 -16
  814. package/node_modules/@statsig/client-core/src/StatsigPlugin.d.ts +0 -5
  815. package/node_modules/@statsig/client-core/src/StatsigPlugin.js +0 -2
  816. package/node_modules/@statsig/client-core/src/StatsigTypeFactories.d.ts +0 -8
  817. package/node_modules/@statsig/client-core/src/StatsigTypeFactories.js +0 -57
  818. package/node_modules/@statsig/client-core/src/StatsigTypes.d.ts +0 -43
  819. package/node_modules/@statsig/client-core/src/StatsigTypes.js +0 -2
  820. package/node_modules/@statsig/client-core/src/StatsigUpdateDetails.d.ts +0 -14
  821. package/node_modules/@statsig/client-core/src/StatsigUpdateDetails.js +0 -17
  822. package/node_modules/@statsig/client-core/src/StatsigUser.d.ts +0 -24
  823. package/node_modules/@statsig/client-core/src/StatsigUser.js +0 -25
  824. package/node_modules/@statsig/client-core/src/StorageProvider.d.ts +0 -17
  825. package/node_modules/@statsig/client-core/src/StorageProvider.js +0 -90
  826. package/node_modules/@statsig/client-core/src/TypedJsonParse.d.ts +0 -8
  827. package/node_modules/@statsig/client-core/src/TypedJsonParse.js +0 -27
  828. package/node_modules/@statsig/client-core/src/TypingUtils.d.ts +0 -7
  829. package/node_modules/@statsig/client-core/src/TypingUtils.js +0 -12
  830. package/node_modules/@statsig/client-core/src/UUID.d.ts +0 -1
  831. package/node_modules/@statsig/client-core/src/UUID.js +0 -28
  832. package/node_modules/@statsig/client-core/src/UrlConfiguration.d.ts +0 -12
  833. package/node_modules/@statsig/client-core/src/UrlConfiguration.js +0 -41
  834. package/node_modules/@statsig/client-core/src/VisibilityObserving.d.ts +0 -9
  835. package/node_modules/@statsig/client-core/src/VisibilityObserving.js +0 -39
  836. package/node_modules/@statsig/client-core/src/__tests__/MockOverrideAdapter.d.ts +0 -16
  837. package/node_modules/@statsig/client-core/src/__tests__/MockOverrideAdapter.js +0 -21
  838. package/node_modules/@statsig/client-core/src/index.d.ts +0 -47
  839. package/node_modules/@statsig/client-core/src/index.js +0 -70
  840. package/node_modules/@statsig/js-client/LICENSE +0 -14
  841. package/node_modules/@statsig/js-client/README.md +0 -49
  842. package/node_modules/@statsig/js-client/build/statsig-js-client+session-replay+web-analytics.min.js +0 -2
  843. package/node_modules/@statsig/js-client/build/statsig-js-client+session-replay.min.js +0 -1
  844. package/node_modules/@statsig/js-client/build/statsig-js-client+web-analytics.min.js +0 -2
  845. package/node_modules/@statsig/js-client/build/statsig-js-client.min.js +0 -1
  846. package/node_modules/@statsig/js-client/package.json +0 -18
  847. package/node_modules/@statsig/js-client/src/EvaluationResponseDeltas.d.ts +0 -10
  848. package/node_modules/@statsig/js-client/src/EvaluationResponseDeltas.js +0 -49
  849. package/node_modules/@statsig/js-client/src/EvaluationStore.d.ts +0 -29
  850. package/node_modules/@statsig/js-client/src/EvaluationStore.js +0 -175
  851. package/node_modules/@statsig/js-client/src/InitializeContainer.d.ts +0 -9
  852. package/node_modules/@statsig/js-client/src/InitializeContainer.js +0 -2
  853. package/node_modules/@statsig/js-client/src/Network.d.ts +0 -9
  854. package/node_modules/@statsig/js-client/src/Network.js +0 -74
  855. package/node_modules/@statsig/js-client/src/ParamStoreGetterFactory.d.ts +0 -3
  856. package/node_modules/@statsig/js-client/src/ParamStoreGetterFactory.js +0 -74
  857. package/node_modules/@statsig/js-client/src/StatsigClient.d.ts +0 -244
  858. package/node_modules/@statsig/js-client/src/StatsigClient.js +0 -418
  859. package/node_modules/@statsig/js-client/src/StatsigEvaluationsDataAdapter.d.ts +0 -15
  860. package/node_modules/@statsig/js-client/src/StatsigEvaluationsDataAdapter.js +0 -65
  861. package/node_modules/@statsig/js-client/src/StatsigOptions.d.ts +0 -42
  862. package/node_modules/@statsig/js-client/src/StatsigOptions.js +0 -2
  863. package/node_modules/@statsig/js-client/src/V1InitializeContainer.d.ts +0 -13
  864. package/node_modules/@statsig/js-client/src/V1InitializeContainer.js +0 -35
  865. package/node_modules/@statsig/js-client/src/V2InitializeContainer.d.ts +0 -13
  866. package/node_modules/@statsig/js-client/src/V2InitializeContainer.js +0 -82
  867. package/node_modules/@statsig/js-client/src/index.d.ts +0 -9
  868. package/node_modules/@statsig/js-client/src/index.js +0 -25
  869. package/node_modules/abbrev/LICENSE +0 -46
  870. package/node_modules/abbrev/README.md +0 -23
  871. package/node_modules/abbrev/lib/index.js +0 -53
  872. package/node_modules/abbrev/package.json +0 -41
  873. package/node_modules/base64-js/LICENSE +0 -21
  874. package/node_modules/base64-js/README.md +0 -34
  875. package/node_modules/base64-js/base64js.min.js +0 -1
  876. package/node_modules/base64-js/index.d.ts +0 -3
  877. package/node_modules/base64-js/index.js +0 -150
  878. package/node_modules/base64-js/package.json +0 -47
  879. package/node_modules/bindings/LICENSE.md +0 -22
  880. package/node_modules/bindings/README.md +0 -98
  881. package/node_modules/bindings/bindings.js +0 -221
  882. package/node_modules/bindings/package.json +0 -28
  883. package/node_modules/bl/.travis.yml +0 -17
  884. package/node_modules/bl/BufferList.js +0 -396
  885. package/node_modules/bl/LICENSE.md +0 -13
  886. package/node_modules/bl/README.md +0 -247
  887. package/node_modules/bl/bl.js +0 -84
  888. package/node_modules/bl/package.json +0 -37
  889. package/node_modules/bl/test/convert.js +0 -21
  890. package/node_modules/bl/test/indexOf.js +0 -492
  891. package/node_modules/bl/test/isBufferList.js +0 -32
  892. package/node_modules/bl/test/test.js +0 -869
  893. package/node_modules/buffer/AUTHORS.md +0 -70
  894. package/node_modules/buffer/LICENSE +0 -21
  895. package/node_modules/buffer/README.md +0 -410
  896. package/node_modules/buffer/index.d.ts +0 -186
  897. package/node_modules/buffer/index.js +0 -1817
  898. package/node_modules/buffer/package.json +0 -96
  899. package/node_modules/chownr/LICENSE.md +0 -63
  900. package/node_modules/chownr/README.md +0 -3
  901. package/node_modules/chownr/dist/commonjs/index.d.ts +0 -3
  902. package/node_modules/chownr/dist/commonjs/index.d.ts.map +0 -1
  903. package/node_modules/chownr/dist/commonjs/index.js +0 -93
  904. package/node_modules/chownr/dist/commonjs/index.js.map +0 -1
  905. package/node_modules/chownr/dist/commonjs/package.json +0 -3
  906. package/node_modules/chownr/dist/esm/index.d.ts +0 -3
  907. package/node_modules/chownr/dist/esm/index.d.ts.map +0 -1
  908. package/node_modules/chownr/dist/esm/index.js +0 -85
  909. package/node_modules/chownr/dist/esm/index.js.map +0 -1
  910. package/node_modules/chownr/dist/esm/package.json +0 -3
  911. package/node_modules/chownr/package.json +0 -69
  912. package/node_modules/decompress-response/index.d.ts +0 -22
  913. package/node_modules/decompress-response/index.js +0 -58
  914. package/node_modules/decompress-response/license +0 -9
  915. package/node_modules/decompress-response/package.json +0 -56
  916. package/node_modules/decompress-response/readme.md +0 -48
  917. package/node_modules/deep-extend/CHANGELOG.md +0 -46
  918. package/node_modules/deep-extend/LICENSE +0 -20
  919. package/node_modules/deep-extend/README.md +0 -91
  920. package/node_modules/deep-extend/index.js +0 -1
  921. package/node_modules/deep-extend/lib/deep-extend.js +0 -150
  922. package/node_modules/deep-extend/package.json +0 -62
  923. package/node_modules/detect-libc/LICENSE +0 -201
  924. package/node_modules/detect-libc/README.md +0 -163
  925. package/node_modules/detect-libc/index.d.ts +0 -14
  926. package/node_modules/detect-libc/lib/detect-libc.js +0 -313
  927. package/node_modules/detect-libc/lib/elf.js +0 -39
  928. package/node_modules/detect-libc/lib/filesystem.js +0 -51
  929. package/node_modules/detect-libc/lib/process.js +0 -24
  930. package/node_modules/detect-libc/package.json +0 -44
  931. package/node_modules/end-of-stream/LICENSE +0 -21
  932. package/node_modules/end-of-stream/README.md +0 -54
  933. package/node_modules/end-of-stream/index.js +0 -96
  934. package/node_modules/end-of-stream/package.json +0 -37
  935. package/node_modules/env-paths/index.d.ts +0 -101
  936. package/node_modules/env-paths/index.js +0 -74
  937. package/node_modules/env-paths/license +0 -9
  938. package/node_modules/env-paths/package.json +0 -45
  939. package/node_modules/env-paths/readme.md +0 -115
  940. package/node_modules/expand-template/.travis.yml +0 -6
  941. package/node_modules/expand-template/LICENSE +0 -21
  942. package/node_modules/expand-template/README.md +0 -43
  943. package/node_modules/expand-template/index.js +0 -26
  944. package/node_modules/expand-template/package.json +0 -29
  945. package/node_modules/expand-template/test.js +0 -67
  946. package/node_modules/exponential-backoff/LICENSE +0 -202
  947. package/node_modules/exponential-backoff/README.md +0 -89
  948. package/node_modules/exponential-backoff/dist/backoff.d.ts +0 -9
  949. package/node_modules/exponential-backoff/dist/backoff.js +0 -124
  950. package/node_modules/exponential-backoff/dist/backoff.js.map +0 -1
  951. package/node_modules/exponential-backoff/dist/delay/always/always.delay.d.ts +0 -3
  952. package/node_modules/exponential-backoff/dist/delay/always/always.delay.js +0 -25
  953. package/node_modules/exponential-backoff/dist/delay/always/always.delay.js.map +0 -1
  954. package/node_modules/exponential-backoff/dist/delay/delay.base.d.ts +0 -12
  955. package/node_modules/exponential-backoff/dist/delay/delay.base.js +0 -45
  956. package/node_modules/exponential-backoff/dist/delay/delay.base.js.map +0 -1
  957. package/node_modules/exponential-backoff/dist/delay/delay.factory.d.ts +0 -3
  958. package/node_modules/exponential-backoff/dist/delay/delay.factory.js +0 -17
  959. package/node_modules/exponential-backoff/dist/delay/delay.factory.js.map +0 -1
  960. package/node_modules/exponential-backoff/dist/delay/delay.interface.d.ts +0 -4
  961. package/node_modules/exponential-backoff/dist/delay/delay.interface.js +0 -3
  962. package/node_modules/exponential-backoff/dist/delay/delay.interface.js.map +0 -1
  963. package/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.d.ts +0 -6
  964. package/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js +0 -82
  965. package/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js.map +0 -1
  966. package/node_modules/exponential-backoff/dist/jitter/full/full.jitter.d.ts +0 -1
  967. package/node_modules/exponential-backoff/dist/jitter/full/full.jitter.js +0 -8
  968. package/node_modules/exponential-backoff/dist/jitter/full/full.jitter.js.map +0 -1
  969. package/node_modules/exponential-backoff/dist/jitter/jitter.factory.d.ts +0 -3
  970. package/node_modules/exponential-backoff/dist/jitter/jitter.factory.js +0 -15
  971. package/node_modules/exponential-backoff/dist/jitter/jitter.factory.js.map +0 -1
  972. package/node_modules/exponential-backoff/dist/jitter/no/no.jitter.d.ts +0 -1
  973. package/node_modules/exponential-backoff/dist/jitter/no/no.jitter.js +0 -7
  974. package/node_modules/exponential-backoff/dist/jitter/no/no.jitter.js.map +0 -1
  975. package/node_modules/exponential-backoff/dist/options.d.ts +0 -55
  976. package/node_modules/exponential-backoff/dist/options.js +0 -31
  977. package/node_modules/exponential-backoff/dist/options.js.map +0 -1
  978. package/node_modules/exponential-backoff/package.json +0 -62
  979. package/node_modules/exponential-backoff/src/backoff.spec.ts +0 -194
  980. package/node_modules/exponential-backoff/src/backoff.ts +0 -60
  981. package/node_modules/exponential-backoff/src/delay/always/always.delay.spec.ts +0 -65
  982. package/node_modules/exponential-backoff/src/delay/always/always.delay.ts +0 -3
  983. package/node_modules/exponential-backoff/src/delay/delay.base.ts +0 -34
  984. package/node_modules/exponential-backoff/src/delay/delay.factory.ts +0 -18
  985. package/node_modules/exponential-backoff/src/delay/delay.interface.ts +0 -4
  986. package/node_modules/exponential-backoff/src/delay/skip-first/skip-first.delay.ts +0 -15
  987. package/node_modules/exponential-backoff/src/jitter/full/full.jitter.spec.ts +0 -31
  988. package/node_modules/exponential-backoff/src/jitter/full/full.jitter.ts +0 -4
  989. package/node_modules/exponential-backoff/src/jitter/jitter.factory.ts +0 -16
  990. package/node_modules/exponential-backoff/src/jitter/no/no.jitter.spec.ts +0 -9
  991. package/node_modules/exponential-backoff/src/jitter/no/no.jitter.ts +0 -3
  992. package/node_modules/exponential-backoff/src/options.ts +0 -76
  993. package/node_modules/fdir/LICENSE +0 -7
  994. package/node_modules/fdir/README.md +0 -91
  995. package/node_modules/fdir/dist/index.cjs +0 -588
  996. package/node_modules/fdir/dist/index.d.cts +0 -155
  997. package/node_modules/fdir/dist/index.d.mts +0 -155
  998. package/node_modules/fdir/dist/index.mjs +0 -570
  999. package/node_modules/fdir/package.json +0 -103
  1000. package/node_modules/file-uri-to-path/.npmignore +0 -1
  1001. package/node_modules/file-uri-to-path/.travis.yml +0 -30
  1002. package/node_modules/file-uri-to-path/History.md +0 -21
  1003. package/node_modules/file-uri-to-path/LICENSE +0 -20
  1004. package/node_modules/file-uri-to-path/README.md +0 -74
  1005. package/node_modules/file-uri-to-path/index.d.ts +0 -2
  1006. package/node_modules/file-uri-to-path/index.js +0 -66
  1007. package/node_modules/file-uri-to-path/package.json +0 -32
  1008. package/node_modules/file-uri-to-path/test/test.js +0 -24
  1009. package/node_modules/file-uri-to-path/test/tests.json +0 -13
  1010. package/node_modules/fs-constants/LICENSE +0 -21
  1011. package/node_modules/fs-constants/README.md +0 -26
  1012. package/node_modules/fs-constants/browser.js +0 -1
  1013. package/node_modules/fs-constants/index.js +0 -1
  1014. package/node_modules/fs-constants/package.json +0 -19
  1015. package/node_modules/github-from-package/.travis.yml +0 -4
  1016. package/node_modules/github-from-package/LICENSE +0 -18
  1017. package/node_modules/github-from-package/example/package.json +0 -8
  1018. package/node_modules/github-from-package/example/url.js +0 -3
  1019. package/node_modules/github-from-package/index.js +0 -17
  1020. package/node_modules/github-from-package/package.json +0 -30
  1021. package/node_modules/github-from-package/readme.markdown +0 -53
  1022. package/node_modules/github-from-package/test/a.json +0 -8
  1023. package/node_modules/github-from-package/test/b.json +0 -5
  1024. package/node_modules/github-from-package/test/c.json +0 -5
  1025. package/node_modules/github-from-package/test/d.json +0 -7
  1026. package/node_modules/github-from-package/test/e.json +0 -5
  1027. package/node_modules/github-from-package/test/url.js +0 -19
  1028. package/node_modules/graceful-fs/LICENSE +0 -15
  1029. package/node_modules/graceful-fs/README.md +0 -143
  1030. package/node_modules/graceful-fs/clone.js +0 -23
  1031. package/node_modules/graceful-fs/graceful-fs.js +0 -448
  1032. package/node_modules/graceful-fs/legacy-streams.js +0 -118
  1033. package/node_modules/graceful-fs/package.json +0 -53
  1034. package/node_modules/graceful-fs/polyfills.js +0 -355
  1035. package/node_modules/ieee754/LICENSE +0 -11
  1036. package/node_modules/ieee754/README.md +0 -51
  1037. package/node_modules/ieee754/index.d.ts +0 -10
  1038. package/node_modules/ieee754/index.js +0 -85
  1039. package/node_modules/ieee754/package.json +0 -52
  1040. package/node_modules/inherits/LICENSE +0 -16
  1041. package/node_modules/inherits/README.md +0 -42
  1042. package/node_modules/inherits/inherits.js +0 -9
  1043. package/node_modules/inherits/inherits_browser.js +0 -27
  1044. package/node_modules/inherits/package.json +0 -29
  1045. package/node_modules/ini/LICENSE +0 -15
  1046. package/node_modules/ini/README.md +0 -102
  1047. package/node_modules/ini/ini.js +0 -206
  1048. package/node_modules/ini/package.json +0 -33
  1049. package/node_modules/isexe/LICENSE.md +0 -55
  1050. package/node_modules/isexe/README.md +0 -80
  1051. package/node_modules/isexe/dist/commonjs/index.d.ts +0 -14
  1052. package/node_modules/isexe/dist/commonjs/index.d.ts.map +0 -1
  1053. package/node_modules/isexe/dist/commonjs/index.js +0 -56
  1054. package/node_modules/isexe/dist/commonjs/index.js.map +0 -1
  1055. package/node_modules/isexe/dist/commonjs/index.min.js +0 -2
  1056. package/node_modules/isexe/dist/commonjs/index.min.js.map +0 -7
  1057. package/node_modules/isexe/dist/commonjs/options.d.ts +0 -32
  1058. package/node_modules/isexe/dist/commonjs/options.d.ts.map +0 -1
  1059. package/node_modules/isexe/dist/commonjs/options.js +0 -3
  1060. package/node_modules/isexe/dist/commonjs/options.js.map +0 -1
  1061. package/node_modules/isexe/dist/commonjs/package.json +0 -3
  1062. package/node_modules/isexe/dist/commonjs/posix.d.ts +0 -18
  1063. package/node_modules/isexe/dist/commonjs/posix.d.ts.map +0 -1
  1064. package/node_modules/isexe/dist/commonjs/posix.js +0 -67
  1065. package/node_modules/isexe/dist/commonjs/posix.js.map +0 -1
  1066. package/node_modules/isexe/dist/commonjs/win32.d.ts +0 -18
  1067. package/node_modules/isexe/dist/commonjs/win32.d.ts.map +0 -1
  1068. package/node_modules/isexe/dist/commonjs/win32.js +0 -63
  1069. package/node_modules/isexe/dist/commonjs/win32.js.map +0 -1
  1070. package/node_modules/isexe/dist/esm/index.d.ts +0 -14
  1071. package/node_modules/isexe/dist/esm/index.d.ts.map +0 -1
  1072. package/node_modules/isexe/dist/esm/index.js +0 -16
  1073. package/node_modules/isexe/dist/esm/index.js.map +0 -1
  1074. package/node_modules/isexe/dist/esm/index.min.js +0 -2
  1075. package/node_modules/isexe/dist/esm/index.min.js.map +0 -7
  1076. package/node_modules/isexe/dist/esm/options.d.ts +0 -32
  1077. package/node_modules/isexe/dist/esm/options.d.ts.map +0 -1
  1078. package/node_modules/isexe/dist/esm/options.js +0 -2
  1079. package/node_modules/isexe/dist/esm/options.js.map +0 -1
  1080. package/node_modules/isexe/dist/esm/package.json +0 -3
  1081. package/node_modules/isexe/dist/esm/posix.d.ts +0 -18
  1082. package/node_modules/isexe/dist/esm/posix.d.ts.map +0 -1
  1083. package/node_modules/isexe/dist/esm/posix.js +0 -62
  1084. package/node_modules/isexe/dist/esm/posix.js.map +0 -1
  1085. package/node_modules/isexe/dist/esm/win32.d.ts +0 -18
  1086. package/node_modules/isexe/dist/esm/win32.d.ts.map +0 -1
  1087. package/node_modules/isexe/dist/esm/win32.js +0 -58
  1088. package/node_modules/isexe/dist/esm/win32.js.map +0 -1
  1089. package/node_modules/isexe/package.json +0 -78
  1090. package/node_modules/mimic-response/index.d.ts +0 -17
  1091. package/node_modules/mimic-response/index.js +0 -77
  1092. package/node_modules/mimic-response/license +0 -9
  1093. package/node_modules/mimic-response/package.json +0 -42
  1094. package/node_modules/mimic-response/readme.md +0 -78
  1095. package/node_modules/minimist/.eslintrc +0 -29
  1096. package/node_modules/minimist/.github/FUNDING.yml +0 -12
  1097. package/node_modules/minimist/.nycrc +0 -14
  1098. package/node_modules/minimist/CHANGELOG.md +0 -298
  1099. package/node_modules/minimist/LICENSE +0 -18
  1100. package/node_modules/minimist/README.md +0 -121
  1101. package/node_modules/minimist/example/parse.js +0 -4
  1102. package/node_modules/minimist/index.js +0 -263
  1103. package/node_modules/minimist/package.json +0 -75
  1104. package/node_modules/minimist/test/all_bool.js +0 -34
  1105. package/node_modules/minimist/test/bool.js +0 -177
  1106. package/node_modules/minimist/test/dash.js +0 -43
  1107. package/node_modules/minimist/test/default_bool.js +0 -37
  1108. package/node_modules/minimist/test/dotted.js +0 -24
  1109. package/node_modules/minimist/test/kv_short.js +0 -32
  1110. package/node_modules/minimist/test/long.js +0 -33
  1111. package/node_modules/minimist/test/num.js +0 -38
  1112. package/node_modules/minimist/test/parse.js +0 -209
  1113. package/node_modules/minimist/test/parse_modified.js +0 -11
  1114. package/node_modules/minimist/test/proto.js +0 -64
  1115. package/node_modules/minimist/test/short.js +0 -69
  1116. package/node_modules/minimist/test/stop_early.js +0 -17
  1117. package/node_modules/minimist/test/unknown.js +0 -104
  1118. package/node_modules/minimist/test/whitespace.js +0 -10
  1119. package/node_modules/minipass/LICENSE.md +0 -55
  1120. package/node_modules/minipass/README.md +0 -825
  1121. package/node_modules/minipass/dist/commonjs/index.d.ts +0 -545
  1122. package/node_modules/minipass/dist/commonjs/index.d.ts.map +0 -1
  1123. package/node_modules/minipass/dist/commonjs/index.js +0 -1038
  1124. package/node_modules/minipass/dist/commonjs/index.js.map +0 -1
  1125. package/node_modules/minipass/dist/commonjs/package.json +0 -3
  1126. package/node_modules/minipass/dist/esm/index.d.ts +0 -545
  1127. package/node_modules/minipass/dist/esm/index.d.ts.map +0 -1
  1128. package/node_modules/minipass/dist/esm/index.js +0 -1020
  1129. package/node_modules/minipass/dist/esm/index.js.map +0 -1
  1130. package/node_modules/minipass/dist/esm/package.json +0 -3
  1131. package/node_modules/minipass/package.json +0 -77
  1132. package/node_modules/minizlib/LICENSE +0 -26
  1133. package/node_modules/minizlib/README.md +0 -64
  1134. package/node_modules/minizlib/dist/commonjs/constants.d.ts +0 -2
  1135. package/node_modules/minizlib/dist/commonjs/constants.d.ts.map +0 -1
  1136. package/node_modules/minizlib/dist/commonjs/constants.js +0 -123
  1137. package/node_modules/minizlib/dist/commonjs/constants.js.map +0 -1
  1138. package/node_modules/minizlib/dist/commonjs/index.d.ts +0 -99
  1139. package/node_modules/minizlib/dist/commonjs/index.d.ts.map +0 -1
  1140. package/node_modules/minizlib/dist/commonjs/index.js +0 -416
  1141. package/node_modules/minizlib/dist/commonjs/index.js.map +0 -1
  1142. package/node_modules/minizlib/dist/commonjs/package.json +0 -3
  1143. package/node_modules/minizlib/dist/esm/constants.d.ts +0 -2
  1144. package/node_modules/minizlib/dist/esm/constants.d.ts.map +0 -1
  1145. package/node_modules/minizlib/dist/esm/constants.js +0 -117
  1146. package/node_modules/minizlib/dist/esm/constants.js.map +0 -1
  1147. package/node_modules/minizlib/dist/esm/index.d.ts +0 -99
  1148. package/node_modules/minizlib/dist/esm/index.d.ts.map +0 -1
  1149. package/node_modules/minizlib/dist/esm/index.js +0 -363
  1150. package/node_modules/minizlib/dist/esm/index.js.map +0 -1
  1151. package/node_modules/minizlib/dist/esm/package.json +0 -3
  1152. package/node_modules/minizlib/package.json +0 -80
  1153. package/node_modules/mkdirp-classic/LICENSE +0 -21
  1154. package/node_modules/mkdirp-classic/README.md +0 -18
  1155. package/node_modules/mkdirp-classic/index.js +0 -98
  1156. package/node_modules/mkdirp-classic/package.json +0 -18
  1157. package/node_modules/napi-build-utils/.github/workflows/run-npm-tests.yml +0 -31
  1158. package/node_modules/napi-build-utils/LICENSE +0 -21
  1159. package/node_modules/napi-build-utils/README.md +0 -52
  1160. package/node_modules/napi-build-utils/index.js +0 -214
  1161. package/node_modules/napi-build-utils/index.md +0 -0
  1162. package/node_modules/napi-build-utils/package.json +0 -42
  1163. package/node_modules/node-abi/LICENSE +0 -21
  1164. package/node_modules/node-abi/README.md +0 -54
  1165. package/node_modules/node-abi/abi_registry.json +0 -439
  1166. package/node_modules/node-abi/index.js +0 -179
  1167. package/node_modules/node-abi/package.json +0 -45
  1168. package/node_modules/node-addon-api/LICENSE.md +0 -9
  1169. package/node_modules/node-addon-api/README.md +0 -95
  1170. package/node_modules/node-addon-api/common.gypi +0 -21
  1171. package/node_modules/node-addon-api/except.gypi +0 -25
  1172. package/node_modules/node-addon-api/index.js +0 -14
  1173. package/node_modules/node-addon-api/napi-inl.deprecated.h +0 -186
  1174. package/node_modules/node-addon-api/napi-inl.h +0 -7165
  1175. package/node_modules/node-addon-api/napi.h +0 -3364
  1176. package/node_modules/node-addon-api/node_addon_api.gyp +0 -42
  1177. package/node_modules/node-addon-api/node_api.gyp +0 -9
  1178. package/node_modules/node-addon-api/noexcept.gypi +0 -26
  1179. package/node_modules/node-addon-api/nothing.c +0 -0
  1180. package/node_modules/node-addon-api/package-support.json +0 -21
  1181. package/node_modules/node-addon-api/package.json +0 -480
  1182. package/node_modules/node-addon-api/tools/README.md +0 -73
  1183. package/node_modules/node-addon-api/tools/check-napi.js +0 -99
  1184. package/node_modules/node-addon-api/tools/clang-format.js +0 -71
  1185. package/node_modules/node-addon-api/tools/conversion.js +0 -301
  1186. package/node_modules/node-gyp/.release-please-manifest.json +0 -3
  1187. package/node_modules/node-gyp/CHANGELOG.md +0 -1221
  1188. package/node_modules/node-gyp/CODE_OF_CONDUCT.md +0 -4
  1189. package/node_modules/node-gyp/CONTRIBUTING.md +0 -44
  1190. package/node_modules/node-gyp/LICENSE +0 -24
  1191. package/node_modules/node-gyp/README.md +0 -290
  1192. package/node_modules/node-gyp/SECURITY.md +0 -2
  1193. package/node_modules/node-gyp/addon.gypi +0 -204
  1194. package/node_modules/node-gyp/bin/node-gyp.js +0 -145
  1195. package/node_modules/node-gyp/eslint.config.js +0 -3
  1196. package/node_modules/node-gyp/gyp/.release-please-manifest.json +0 -3
  1197. package/node_modules/node-gyp/gyp/LICENSE +0 -28
  1198. package/node_modules/node-gyp/gyp/data/ninja/build.ninja +0 -4
  1199. package/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +0 -12
  1200. package/node_modules/node-gyp/gyp/docs/GypVsCMake.md +0 -116
  1201. package/node_modules/node-gyp/gyp/docs/Hacking.md +0 -46
  1202. package/node_modules/node-gyp/gyp/docs/InputFormatReference.md +0 -1083
  1203. package/node_modules/node-gyp/gyp/docs/LanguageSpecification.md +0 -430
  1204. package/node_modules/node-gyp/gyp/docs/README.md +0 -27
  1205. package/node_modules/node-gyp/gyp/docs/Testing.md +0 -450
  1206. package/node_modules/node-gyp/gyp/docs/UserDocumentation.md +0 -965
  1207. package/node_modules/node-gyp/gyp/gyp +0 -8
  1208. package/node_modules/node-gyp/gyp/gyp.bat +0 -5
  1209. package/node_modules/node-gyp/gyp/gyp_main.py +0 -45
  1210. package/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +0 -365
  1211. package/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +0 -206
  1212. package/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +0 -1283
  1213. package/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +0 -1545
  1214. package/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +0 -59
  1215. package/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +0 -152
  1216. package/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +0 -270
  1217. package/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +0 -607
  1218. package/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +0 -706
  1219. package/node_modules/node-gyp/gyp/pylib/gyp/common.py +0 -725
  1220. package/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +0 -186
  1221. package/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +0 -170
  1222. package/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +0 -113
  1223. package/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +0 -55
  1224. package/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
  1225. package/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +0 -805
  1226. package/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +0 -1169
  1227. package/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +0 -1316
  1228. package/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +0 -128
  1229. package/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +0 -104
  1230. package/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +0 -461
  1231. package/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +0 -88
  1232. package/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +0 -55
  1233. package/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +0 -2755
  1234. package/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +0 -3970
  1235. package/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +0 -44
  1236. package/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +0 -2957
  1237. package/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +0 -77
  1238. package/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +0 -1389
  1239. package/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +0 -26
  1240. package/node_modules/node-gyp/gyp/pylib/gyp/input.py +0 -3097
  1241. package/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +0 -99
  1242. package/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +0 -765
  1243. package/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +0 -1255
  1244. package/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +0 -174
  1245. package/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +0 -61
  1246. package/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +0 -371
  1247. package/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +0 -1936
  1248. package/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +0 -54
  1249. package/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +0 -301
  1250. package/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +0 -3180
  1251. package/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +0 -64
  1252. package/node_modules/node-gyp/gyp/pylib/packaging/LICENSE +0 -3
  1253. package/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +0 -177
  1254. package/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.BSD +0 -23
  1255. package/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +0 -15
  1256. package/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +0 -107
  1257. package/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +0 -252
  1258. package/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +0 -83
  1259. package/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +0 -359
  1260. package/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +0 -61
  1261. package/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +0 -192
  1262. package/node_modules/node-gyp/gyp/pylib/packaging/markers.py +0 -251
  1263. package/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +0 -807
  1264. package/node_modules/node-gyp/gyp/pylib/packaging/py.typed +0 -0
  1265. package/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +0 -90
  1266. package/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +0 -1030
  1267. package/node_modules/node-gyp/gyp/pylib/packaging/tags.py +0 -541
  1268. package/node_modules/node-gyp/gyp/pylib/packaging/utils.py +0 -172
  1269. package/node_modules/node-gyp/gyp/pylib/packaging/version.py +0 -563
  1270. package/node_modules/node-gyp/gyp/pyproject.toml +0 -116
  1271. package/node_modules/node-gyp/gyp/release-please-config.json +0 -11
  1272. package/node_modules/node-gyp/gyp/test_gyp.py +0 -260
  1273. package/node_modules/node-gyp/lib/Find-VisualStudio.cs +0 -250
  1274. package/node_modules/node-gyp/lib/build.js +0 -230
  1275. package/node_modules/node-gyp/lib/clean.js +0 -15
  1276. package/node_modules/node-gyp/lib/configure.js +0 -328
  1277. package/node_modules/node-gyp/lib/create-config-gypi.js +0 -153
  1278. package/node_modules/node-gyp/lib/download.js +0 -86
  1279. package/node_modules/node-gyp/lib/find-node-directory.js +0 -63
  1280. package/node_modules/node-gyp/lib/find-python.js +0 -304
  1281. package/node_modules/node-gyp/lib/find-visualstudio.js +0 -606
  1282. package/node_modules/node-gyp/lib/install.js +0 -411
  1283. package/node_modules/node-gyp/lib/list.js +0 -26
  1284. package/node_modules/node-gyp/lib/log.js +0 -168
  1285. package/node_modules/node-gyp/lib/node-gyp.js +0 -199
  1286. package/node_modules/node-gyp/lib/process-release.js +0 -144
  1287. package/node_modules/node-gyp/lib/rebuild.js +0 -12
  1288. package/node_modules/node-gyp/lib/remove.js +0 -43
  1289. package/node_modules/node-gyp/lib/util.js +0 -81
  1290. package/node_modules/node-gyp/macOS_Catalina_acid_test.sh +0 -21
  1291. package/node_modules/node-gyp/package.json +0 -52
  1292. package/node_modules/node-gyp/release-please-config.json +0 -40
  1293. package/node_modules/node-gyp/src/win_delay_load_hook.cc +0 -41
  1294. package/node_modules/nopt/LICENSE +0 -15
  1295. package/node_modules/nopt/README.md +0 -214
  1296. package/node_modules/nopt/bin/nopt.js +0 -29
  1297. package/node_modules/nopt/lib/debug.js +0 -5
  1298. package/node_modules/nopt/lib/nopt-lib.js +0 -514
  1299. package/node_modules/nopt/lib/nopt.js +0 -34
  1300. package/node_modules/nopt/lib/type-defs.js +0 -91
  1301. package/node_modules/nopt/package.json +0 -52
  1302. package/node_modules/once/LICENSE +0 -15
  1303. package/node_modules/once/README.md +0 -79
  1304. package/node_modules/once/once.js +0 -42
  1305. package/node_modules/once/package.json +0 -33
  1306. package/node_modules/picomatch/LICENSE +0 -21
  1307. package/node_modules/picomatch/README.md +0 -749
  1308. package/node_modules/picomatch/index.js +0 -17
  1309. package/node_modules/picomatch/lib/constants.js +0 -184
  1310. package/node_modules/picomatch/lib/parse.js +0 -1386
  1311. package/node_modules/picomatch/lib/picomatch.js +0 -349
  1312. package/node_modules/picomatch/lib/scan.js +0 -391
  1313. package/node_modules/picomatch/lib/utils.js +0 -72
  1314. package/node_modules/picomatch/package.json +0 -82
  1315. package/node_modules/picomatch/posix.js +0 -3
  1316. package/node_modules/prebuild-install/CHANGELOG.md +0 -131
  1317. package/node_modules/prebuild-install/CONTRIBUTING.md +0 -6
  1318. package/node_modules/prebuild-install/LICENSE +0 -21
  1319. package/node_modules/prebuild-install/README.md +0 -163
  1320. package/node_modules/prebuild-install/asset.js +0 -44
  1321. package/node_modules/prebuild-install/bin.js +0 -78
  1322. package/node_modules/prebuild-install/download.js +0 -142
  1323. package/node_modules/prebuild-install/error.js +0 -14
  1324. package/node_modules/prebuild-install/help.txt +0 -16
  1325. package/node_modules/prebuild-install/index.js +0 -1
  1326. package/node_modules/prebuild-install/log.js +0 -33
  1327. package/node_modules/prebuild-install/package.json +0 -67
  1328. package/node_modules/prebuild-install/proxy.js +0 -35
  1329. package/node_modules/prebuild-install/rc.js +0 -64
  1330. package/node_modules/prebuild-install/util.js +0 -143
  1331. package/node_modules/proc-log/LICENSE +0 -15
  1332. package/node_modules/proc-log/README.md +0 -226
  1333. package/node_modules/proc-log/lib/index.js +0 -158
  1334. package/node_modules/proc-log/package.json +0 -46
  1335. package/node_modules/pump/.github/FUNDING.yml +0 -2
  1336. package/node_modules/pump/.travis.yml +0 -5
  1337. package/node_modules/pump/LICENSE +0 -21
  1338. package/node_modules/pump/README.md +0 -74
  1339. package/node_modules/pump/SECURITY.md +0 -5
  1340. package/node_modules/pump/empty.js +0 -1
  1341. package/node_modules/pump/index.js +0 -86
  1342. package/node_modules/pump/package.json +0 -30
  1343. package/node_modules/pump/test-browser.js +0 -66
  1344. package/node_modules/pump/test-node.js +0 -53
  1345. package/node_modules/rc/LICENSE.APACHE2 +0 -15
  1346. package/node_modules/rc/LICENSE.BSD +0 -26
  1347. package/node_modules/rc/LICENSE.MIT +0 -24
  1348. package/node_modules/rc/README.md +0 -227
  1349. package/node_modules/rc/browser.js +0 -7
  1350. package/node_modules/rc/cli.js +0 -4
  1351. package/node_modules/rc/index.js +0 -53
  1352. package/node_modules/rc/lib/utils.js +0 -104
  1353. package/node_modules/rc/package.json +0 -29
  1354. package/node_modules/rc/test/ini.js +0 -16
  1355. package/node_modules/rc/test/nested-env-vars.js +0 -50
  1356. package/node_modules/rc/test/test.js +0 -59
  1357. package/node_modules/readable-stream/CONTRIBUTING.md +0 -38
  1358. package/node_modules/readable-stream/GOVERNANCE.md +0 -136
  1359. package/node_modules/readable-stream/LICENSE +0 -47
  1360. package/node_modules/readable-stream/README.md +0 -106
  1361. package/node_modules/readable-stream/errors-browser.js +0 -127
  1362. package/node_modules/readable-stream/errors.js +0 -116
  1363. package/node_modules/readable-stream/experimentalWarning.js +0 -17
  1364. package/node_modules/readable-stream/lib/_stream_duplex.js +0 -126
  1365. package/node_modules/readable-stream/lib/_stream_passthrough.js +0 -37
  1366. package/node_modules/readable-stream/lib/_stream_readable.js +0 -1027
  1367. package/node_modules/readable-stream/lib/_stream_transform.js +0 -190
  1368. package/node_modules/readable-stream/lib/_stream_writable.js +0 -641
  1369. package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -180
  1370. package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -183
  1371. package/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -96
  1372. package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -86
  1373. package/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
  1374. package/node_modules/readable-stream/lib/internal/streams/from.js +0 -52
  1375. package/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -86
  1376. package/node_modules/readable-stream/lib/internal/streams/state.js +0 -22
  1377. package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
  1378. package/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
  1379. package/node_modules/readable-stream/package.json +0 -68
  1380. package/node_modules/readable-stream/readable-browser.js +0 -9
  1381. package/node_modules/readable-stream/readable.js +0 -16
  1382. package/node_modules/safe-buffer/LICENSE +0 -21
  1383. package/node_modules/safe-buffer/README.md +0 -584
  1384. package/node_modules/safe-buffer/index.d.ts +0 -187
  1385. package/node_modules/safe-buffer/index.js +0 -65
  1386. package/node_modules/safe-buffer/package.json +0 -51
  1387. package/node_modules/semver/LICENSE +0 -15
  1388. package/node_modules/semver/README.md +0 -665
  1389. package/node_modules/semver/bin/semver.js +0 -191
  1390. package/node_modules/semver/classes/comparator.js +0 -143
  1391. package/node_modules/semver/classes/index.js +0 -7
  1392. package/node_modules/semver/classes/range.js +0 -557
  1393. package/node_modules/semver/classes/semver.js +0 -333
  1394. package/node_modules/semver/functions/clean.js +0 -8
  1395. package/node_modules/semver/functions/cmp.js +0 -54
  1396. package/node_modules/semver/functions/coerce.js +0 -62
  1397. package/node_modules/semver/functions/compare-build.js +0 -9
  1398. package/node_modules/semver/functions/compare-loose.js +0 -5
  1399. package/node_modules/semver/functions/compare.js +0 -7
  1400. package/node_modules/semver/functions/diff.js +0 -60
  1401. package/node_modules/semver/functions/eq.js +0 -5
  1402. package/node_modules/semver/functions/gt.js +0 -5
  1403. package/node_modules/semver/functions/gte.js +0 -5
  1404. package/node_modules/semver/functions/inc.js +0 -21
  1405. package/node_modules/semver/functions/lt.js +0 -5
  1406. package/node_modules/semver/functions/lte.js +0 -5
  1407. package/node_modules/semver/functions/major.js +0 -5
  1408. package/node_modules/semver/functions/minor.js +0 -5
  1409. package/node_modules/semver/functions/neq.js +0 -5
  1410. package/node_modules/semver/functions/parse.js +0 -18
  1411. package/node_modules/semver/functions/patch.js +0 -5
  1412. package/node_modules/semver/functions/prerelease.js +0 -8
  1413. package/node_modules/semver/functions/rcompare.js +0 -5
  1414. package/node_modules/semver/functions/rsort.js +0 -5
  1415. package/node_modules/semver/functions/satisfies.js +0 -12
  1416. package/node_modules/semver/functions/sort.js +0 -5
  1417. package/node_modules/semver/functions/valid.js +0 -8
  1418. package/node_modules/semver/index.js +0 -91
  1419. package/node_modules/semver/internal/constants.js +0 -37
  1420. package/node_modules/semver/internal/debug.js +0 -11
  1421. package/node_modules/semver/internal/identifiers.js +0 -29
  1422. package/node_modules/semver/internal/lrucache.js +0 -42
  1423. package/node_modules/semver/internal/parse-options.js +0 -17
  1424. package/node_modules/semver/internal/re.js +0 -223
  1425. package/node_modules/semver/package.json +0 -78
  1426. package/node_modules/semver/preload.js +0 -4
  1427. package/node_modules/semver/range.bnf +0 -16
  1428. package/node_modules/semver/ranges/gtr.js +0 -6
  1429. package/node_modules/semver/ranges/intersects.js +0 -9
  1430. package/node_modules/semver/ranges/ltr.js +0 -6
  1431. package/node_modules/semver/ranges/max-satisfying.js +0 -27
  1432. package/node_modules/semver/ranges/min-satisfying.js +0 -26
  1433. package/node_modules/semver/ranges/min-version.js +0 -63
  1434. package/node_modules/semver/ranges/outside.js +0 -82
  1435. package/node_modules/semver/ranges/simplify.js +0 -49
  1436. package/node_modules/semver/ranges/subset.js +0 -249
  1437. package/node_modules/semver/ranges/to-comparators.js +0 -10
  1438. package/node_modules/semver/ranges/valid.js +0 -13
  1439. package/node_modules/simple-concat/.travis.yml +0 -3
  1440. package/node_modules/simple-concat/LICENSE +0 -20
  1441. package/node_modules/simple-concat/README.md +0 -44
  1442. package/node_modules/simple-concat/index.js +0 -15
  1443. package/node_modules/simple-concat/package.json +0 -47
  1444. package/node_modules/simple-concat/test/basic.js +0 -41
  1445. package/node_modules/simple-get/.github/dependabot.yml +0 -15
  1446. package/node_modules/simple-get/.github/workflows/ci.yml +0 -23
  1447. package/node_modules/simple-get/LICENSE +0 -20
  1448. package/node_modules/simple-get/README.md +0 -333
  1449. package/node_modules/simple-get/index.js +0 -108
  1450. package/node_modules/simple-get/package.json +0 -67
  1451. package/node_modules/sqlite3/LICENSE +0 -25
  1452. package/node_modules/sqlite3/README.md +0 -253
  1453. package/node_modules/sqlite3/binding.gyp +0 -58
  1454. package/node_modules/sqlite3/build/Release/node_sqlite3.node +0 -0
  1455. package/node_modules/sqlite3/deps/common-sqlite.gypi +0 -60
  1456. package/node_modules/sqlite3/deps/extract.js +0 -19
  1457. package/node_modules/sqlite3/deps/sqlite-autoconf-3520000.tar.gz +0 -0
  1458. package/node_modules/sqlite3/deps/sqlite3.gyp +0 -121
  1459. package/node_modules/sqlite3/lib/sqlite3-binding.js +0 -1
  1460. package/node_modules/sqlite3/lib/sqlite3.d.ts +0 -205
  1461. package/node_modules/sqlite3/lib/sqlite3.js +0 -207
  1462. package/node_modules/sqlite3/lib/trace.js +0 -38
  1463. package/node_modules/sqlite3/package.json +0 -92
  1464. package/node_modules/sqlite3/src/async.h +0 -76
  1465. package/node_modules/sqlite3/src/backup.cc +0 -418
  1466. package/node_modules/sqlite3/src/backup.h +0 -209
  1467. package/node_modules/sqlite3/src/database.cc +0 -751
  1468. package/node_modules/sqlite3/src/database.h +0 -188
  1469. package/node_modules/sqlite3/src/gcc-preinclude.h +0 -31
  1470. package/node_modules/sqlite3/src/macros.h +0 -207
  1471. package/node_modules/sqlite3/src/node_sqlite3.cc +0 -128
  1472. package/node_modules/sqlite3/src/statement.cc +0 -939
  1473. package/node_modules/sqlite3/src/statement.h +0 -244
  1474. package/node_modules/sqlite3/src/threading.h +0 -10
  1475. package/node_modules/string_decoder/LICENSE +0 -48
  1476. package/node_modules/string_decoder/README.md +0 -47
  1477. package/node_modules/string_decoder/lib/string_decoder.js +0 -296
  1478. package/node_modules/string_decoder/package.json +0 -34
  1479. package/node_modules/strip-json-comments/index.js +0 -70
  1480. package/node_modules/strip-json-comments/license +0 -21
  1481. package/node_modules/strip-json-comments/package.json +0 -42
  1482. package/node_modules/strip-json-comments/readme.md +0 -64
  1483. package/node_modules/tar/LICENSE.md +0 -55
  1484. package/node_modules/tar/README.md +0 -1224
  1485. package/node_modules/tar/dist/commonjs/create.d.ts +0 -3
  1486. package/node_modules/tar/dist/commonjs/create.d.ts.map +0 -1
  1487. package/node_modules/tar/dist/commonjs/create.js +0 -82
  1488. package/node_modules/tar/dist/commonjs/create.js.map +0 -1
  1489. package/node_modules/tar/dist/commonjs/cwd-error.d.ts +0 -8
  1490. package/node_modules/tar/dist/commonjs/cwd-error.d.ts.map +0 -1
  1491. package/node_modules/tar/dist/commonjs/cwd-error.js +0 -18
  1492. package/node_modules/tar/dist/commonjs/cwd-error.js.map +0 -1
  1493. package/node_modules/tar/dist/commonjs/extract.d.ts +0 -3
  1494. package/node_modules/tar/dist/commonjs/extract.d.ts.map +0 -1
  1495. package/node_modules/tar/dist/commonjs/extract.js +0 -88
  1496. package/node_modules/tar/dist/commonjs/extract.js.map +0 -1
  1497. package/node_modules/tar/dist/commonjs/get-write-flag.d.ts +0 -2
  1498. package/node_modules/tar/dist/commonjs/get-write-flag.d.ts.map +0 -1
  1499. package/node_modules/tar/dist/commonjs/get-write-flag.js +0 -32
  1500. package/node_modules/tar/dist/commonjs/get-write-flag.js.map +0 -1
  1501. package/node_modules/tar/dist/commonjs/header.d.ts +0 -53
  1502. package/node_modules/tar/dist/commonjs/header.d.ts.map +0 -1
  1503. package/node_modules/tar/dist/commonjs/header.js +0 -312
  1504. package/node_modules/tar/dist/commonjs/header.js.map +0 -1
  1505. package/node_modules/tar/dist/commonjs/index.d.ts +0 -20
  1506. package/node_modules/tar/dist/commonjs/index.d.ts.map +0 -1
  1507. package/node_modules/tar/dist/commonjs/index.js +0 -64
  1508. package/node_modules/tar/dist/commonjs/index.js.map +0 -1
  1509. package/node_modules/tar/dist/commonjs/index.min.js +0 -4
  1510. package/node_modules/tar/dist/commonjs/index.min.js.map +0 -7
  1511. package/node_modules/tar/dist/commonjs/large-numbers.d.ts +0 -3
  1512. package/node_modules/tar/dist/commonjs/large-numbers.d.ts.map +0 -1
  1513. package/node_modules/tar/dist/commonjs/large-numbers.js +0 -99
  1514. package/node_modules/tar/dist/commonjs/large-numbers.js.map +0 -1
  1515. package/node_modules/tar/dist/commonjs/list.d.ts +0 -7
  1516. package/node_modules/tar/dist/commonjs/list.d.ts.map +0 -1
  1517. package/node_modules/tar/dist/commonjs/list.js +0 -145
  1518. package/node_modules/tar/dist/commonjs/list.js.map +0 -1
  1519. package/node_modules/tar/dist/commonjs/make-command.d.ts +0 -49
  1520. package/node_modules/tar/dist/commonjs/make-command.d.ts.map +0 -1
  1521. package/node_modules/tar/dist/commonjs/make-command.js +0 -52
  1522. package/node_modules/tar/dist/commonjs/make-command.js.map +0 -1
  1523. package/node_modules/tar/dist/commonjs/mkdir.d.ts +0 -25
  1524. package/node_modules/tar/dist/commonjs/mkdir.d.ts.map +0 -1
  1525. package/node_modules/tar/dist/commonjs/mkdir.js +0 -187
  1526. package/node_modules/tar/dist/commonjs/mkdir.js.map +0 -1
  1527. package/node_modules/tar/dist/commonjs/mode-fix.d.ts +0 -2
  1528. package/node_modules/tar/dist/commonjs/mode-fix.d.ts.map +0 -1
  1529. package/node_modules/tar/dist/commonjs/mode-fix.js +0 -29
  1530. package/node_modules/tar/dist/commonjs/mode-fix.js.map +0 -1
  1531. package/node_modules/tar/dist/commonjs/normalize-unicode.d.ts +0 -2
  1532. package/node_modules/tar/dist/commonjs/normalize-unicode.d.ts.map +0 -1
  1533. package/node_modules/tar/dist/commonjs/normalize-unicode.js +0 -38
  1534. package/node_modules/tar/dist/commonjs/normalize-unicode.js.map +0 -1
  1535. package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts +0 -2
  1536. package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts.map +0 -1
  1537. package/node_modules/tar/dist/commonjs/normalize-windows-path.js +0 -12
  1538. package/node_modules/tar/dist/commonjs/normalize-windows-path.js.map +0 -1
  1539. package/node_modules/tar/dist/commonjs/options.d.ts +0 -596
  1540. package/node_modules/tar/dist/commonjs/options.d.ts.map +0 -1
  1541. package/node_modules/tar/dist/commonjs/options.js +0 -66
  1542. package/node_modules/tar/dist/commonjs/options.js.map +0 -1
  1543. package/node_modules/tar/dist/commonjs/pack.d.ts +0 -105
  1544. package/node_modules/tar/dist/commonjs/pack.d.ts.map +0 -1
  1545. package/node_modules/tar/dist/commonjs/pack.js +0 -545
  1546. package/node_modules/tar/dist/commonjs/pack.js.map +0 -1
  1547. package/node_modules/tar/dist/commonjs/package.json +0 -3
  1548. package/node_modules/tar/dist/commonjs/parse.d.ts +0 -85
  1549. package/node_modules/tar/dist/commonjs/parse.d.ts.map +0 -1
  1550. package/node_modules/tar/dist/commonjs/parse.js +0 -610
  1551. package/node_modules/tar/dist/commonjs/parse.js.map +0 -1
  1552. package/node_modules/tar/dist/commonjs/path-reservations.d.ts +0 -11
  1553. package/node_modules/tar/dist/commonjs/path-reservations.d.ts.map +0 -1
  1554. package/node_modules/tar/dist/commonjs/path-reservations.js +0 -170
  1555. package/node_modules/tar/dist/commonjs/path-reservations.js.map +0 -1
  1556. package/node_modules/tar/dist/commonjs/pax.d.ts +0 -26
  1557. package/node_modules/tar/dist/commonjs/pax.d.ts.map +0 -1
  1558. package/node_modules/tar/dist/commonjs/pax.js +0 -158
  1559. package/node_modules/tar/dist/commonjs/pax.js.map +0 -1
  1560. package/node_modules/tar/dist/commonjs/process-umask.d.ts +0 -2
  1561. package/node_modules/tar/dist/commonjs/process-umask.d.ts.map +0 -1
  1562. package/node_modules/tar/dist/commonjs/process-umask.js +0 -7
  1563. package/node_modules/tar/dist/commonjs/process-umask.js.map +0 -1
  1564. package/node_modules/tar/dist/commonjs/read-entry.d.ts +0 -36
  1565. package/node_modules/tar/dist/commonjs/read-entry.d.ts.map +0 -1
  1566. package/node_modules/tar/dist/commonjs/read-entry.js +0 -136
  1567. package/node_modules/tar/dist/commonjs/read-entry.js.map +0 -1
  1568. package/node_modules/tar/dist/commonjs/replace.d.ts +0 -2
  1569. package/node_modules/tar/dist/commonjs/replace.d.ts.map +0 -1
  1570. package/node_modules/tar/dist/commonjs/replace.js +0 -227
  1571. package/node_modules/tar/dist/commonjs/replace.js.map +0 -1
  1572. package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts +0 -2
  1573. package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts.map +0 -1
  1574. package/node_modules/tar/dist/commonjs/strip-absolute-path.js +0 -29
  1575. package/node_modules/tar/dist/commonjs/strip-absolute-path.js.map +0 -1
  1576. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts +0 -2
  1577. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts.map +0 -1
  1578. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +0 -18
  1579. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js.map +0 -1
  1580. package/node_modules/tar/dist/commonjs/symlink-error.d.ts +0 -9
  1581. package/node_modules/tar/dist/commonjs/symlink-error.d.ts.map +0 -1
  1582. package/node_modules/tar/dist/commonjs/symlink-error.js +0 -19
  1583. package/node_modules/tar/dist/commonjs/symlink-error.js.map +0 -1
  1584. package/node_modules/tar/dist/commonjs/types.d.ts +0 -7
  1585. package/node_modules/tar/dist/commonjs/types.d.ts.map +0 -1
  1586. package/node_modules/tar/dist/commonjs/types.js +0 -50
  1587. package/node_modules/tar/dist/commonjs/types.js.map +0 -1
  1588. package/node_modules/tar/dist/commonjs/unpack.d.ts +0 -101
  1589. package/node_modules/tar/dist/commonjs/unpack.d.ts.map +0 -1
  1590. package/node_modules/tar/dist/commonjs/unpack.js +0 -932
  1591. package/node_modules/tar/dist/commonjs/unpack.js.map +0 -1
  1592. package/node_modules/tar/dist/commonjs/update.d.ts +0 -2
  1593. package/node_modules/tar/dist/commonjs/update.d.ts.map +0 -1
  1594. package/node_modules/tar/dist/commonjs/update.js +0 -33
  1595. package/node_modules/tar/dist/commonjs/update.js.map +0 -1
  1596. package/node_modules/tar/dist/commonjs/warn-method.d.ts +0 -24
  1597. package/node_modules/tar/dist/commonjs/warn-method.d.ts.map +0 -1
  1598. package/node_modules/tar/dist/commonjs/warn-method.js +0 -31
  1599. package/node_modules/tar/dist/commonjs/warn-method.js.map +0 -1
  1600. package/node_modules/tar/dist/commonjs/winchars.d.ts +0 -3
  1601. package/node_modules/tar/dist/commonjs/winchars.d.ts.map +0 -1
  1602. package/node_modules/tar/dist/commonjs/winchars.js +0 -14
  1603. package/node_modules/tar/dist/commonjs/winchars.js.map +0 -1
  1604. package/node_modules/tar/dist/commonjs/write-entry.d.ts +0 -129
  1605. package/node_modules/tar/dist/commonjs/write-entry.d.ts.map +0 -1
  1606. package/node_modules/tar/dist/commonjs/write-entry.js +0 -698
  1607. package/node_modules/tar/dist/commonjs/write-entry.js.map +0 -1
  1608. package/node_modules/tar/dist/esm/create.d.ts +0 -3
  1609. package/node_modules/tar/dist/esm/create.d.ts.map +0 -1
  1610. package/node_modules/tar/dist/esm/create.js +0 -76
  1611. package/node_modules/tar/dist/esm/create.js.map +0 -1
  1612. package/node_modules/tar/dist/esm/cwd-error.d.ts +0 -8
  1613. package/node_modules/tar/dist/esm/cwd-error.d.ts.map +0 -1
  1614. package/node_modules/tar/dist/esm/cwd-error.js +0 -14
  1615. package/node_modules/tar/dist/esm/cwd-error.js.map +0 -1
  1616. package/node_modules/tar/dist/esm/extract.d.ts +0 -3
  1617. package/node_modules/tar/dist/esm/extract.d.ts.map +0 -1
  1618. package/node_modules/tar/dist/esm/extract.js +0 -49
  1619. package/node_modules/tar/dist/esm/extract.js.map +0 -1
  1620. package/node_modules/tar/dist/esm/get-write-flag.d.ts +0 -2
  1621. package/node_modules/tar/dist/esm/get-write-flag.d.ts.map +0 -1
  1622. package/node_modules/tar/dist/esm/get-write-flag.js +0 -26
  1623. package/node_modules/tar/dist/esm/get-write-flag.js.map +0 -1
  1624. package/node_modules/tar/dist/esm/header.d.ts +0 -53
  1625. package/node_modules/tar/dist/esm/header.d.ts.map +0 -1
  1626. package/node_modules/tar/dist/esm/header.js +0 -275
  1627. package/node_modules/tar/dist/esm/header.js.map +0 -1
  1628. package/node_modules/tar/dist/esm/index.d.ts +0 -20
  1629. package/node_modules/tar/dist/esm/index.d.ts.map +0 -1
  1630. package/node_modules/tar/dist/esm/index.js +0 -20
  1631. package/node_modules/tar/dist/esm/index.js.map +0 -1
  1632. package/node_modules/tar/dist/esm/index.min.js +0 -4
  1633. package/node_modules/tar/dist/esm/index.min.js.map +0 -7
  1634. package/node_modules/tar/dist/esm/large-numbers.d.ts +0 -3
  1635. package/node_modules/tar/dist/esm/large-numbers.d.ts.map +0 -1
  1636. package/node_modules/tar/dist/esm/large-numbers.js +0 -94
  1637. package/node_modules/tar/dist/esm/large-numbers.js.map +0 -1
  1638. package/node_modules/tar/dist/esm/list.d.ts +0 -7
  1639. package/node_modules/tar/dist/esm/list.d.ts.map +0 -1
  1640. package/node_modules/tar/dist/esm/list.js +0 -105
  1641. package/node_modules/tar/dist/esm/list.js.map +0 -1
  1642. package/node_modules/tar/dist/esm/make-command.d.ts +0 -49
  1643. package/node_modules/tar/dist/esm/make-command.d.ts.map +0 -1
  1644. package/node_modules/tar/dist/esm/make-command.js +0 -48
  1645. package/node_modules/tar/dist/esm/make-command.js.map +0 -1
  1646. package/node_modules/tar/dist/esm/mkdir.d.ts +0 -25
  1647. package/node_modules/tar/dist/esm/mkdir.d.ts.map +0 -1
  1648. package/node_modules/tar/dist/esm/mkdir.js +0 -179
  1649. package/node_modules/tar/dist/esm/mkdir.js.map +0 -1
  1650. package/node_modules/tar/dist/esm/mode-fix.d.ts +0 -2
  1651. package/node_modules/tar/dist/esm/mode-fix.d.ts.map +0 -1
  1652. package/node_modules/tar/dist/esm/mode-fix.js +0 -25
  1653. package/node_modules/tar/dist/esm/mode-fix.js.map +0 -1
  1654. package/node_modules/tar/dist/esm/normalize-unicode.d.ts +0 -2
  1655. package/node_modules/tar/dist/esm/normalize-unicode.d.ts.map +0 -1
  1656. package/node_modules/tar/dist/esm/normalize-unicode.js +0 -34
  1657. package/node_modules/tar/dist/esm/normalize-unicode.js.map +0 -1
  1658. package/node_modules/tar/dist/esm/normalize-windows-path.d.ts +0 -2
  1659. package/node_modules/tar/dist/esm/normalize-windows-path.d.ts.map +0 -1
  1660. package/node_modules/tar/dist/esm/normalize-windows-path.js +0 -9
  1661. package/node_modules/tar/dist/esm/normalize-windows-path.js.map +0 -1
  1662. package/node_modules/tar/dist/esm/options.d.ts +0 -596
  1663. package/node_modules/tar/dist/esm/options.d.ts.map +0 -1
  1664. package/node_modules/tar/dist/esm/options.js +0 -54
  1665. package/node_modules/tar/dist/esm/options.js.map +0 -1
  1666. package/node_modules/tar/dist/esm/pack.d.ts +0 -105
  1667. package/node_modules/tar/dist/esm/pack.d.ts.map +0 -1
  1668. package/node_modules/tar/dist/esm/pack.js +0 -503
  1669. package/node_modules/tar/dist/esm/pack.js.map +0 -1
  1670. package/node_modules/tar/dist/esm/package.json +0 -3
  1671. package/node_modules/tar/dist/esm/parse.d.ts +0 -85
  1672. package/node_modules/tar/dist/esm/parse.d.ts.map +0 -1
  1673. package/node_modules/tar/dist/esm/parse.js +0 -606
  1674. package/node_modules/tar/dist/esm/parse.js.map +0 -1
  1675. package/node_modules/tar/dist/esm/path-reservations.d.ts +0 -11
  1676. package/node_modules/tar/dist/esm/path-reservations.d.ts.map +0 -1
  1677. package/node_modules/tar/dist/esm/path-reservations.js +0 -166
  1678. package/node_modules/tar/dist/esm/path-reservations.js.map +0 -1
  1679. package/node_modules/tar/dist/esm/pax.d.ts +0 -26
  1680. package/node_modules/tar/dist/esm/pax.d.ts.map +0 -1
  1681. package/node_modules/tar/dist/esm/pax.js +0 -154
  1682. package/node_modules/tar/dist/esm/pax.js.map +0 -1
  1683. package/node_modules/tar/dist/esm/process-umask.d.ts +0 -2
  1684. package/node_modules/tar/dist/esm/process-umask.d.ts.map +0 -1
  1685. package/node_modules/tar/dist/esm/process-umask.js +0 -3
  1686. package/node_modules/tar/dist/esm/process-umask.js.map +0 -1
  1687. package/node_modules/tar/dist/esm/read-entry.d.ts +0 -36
  1688. package/node_modules/tar/dist/esm/read-entry.d.ts.map +0 -1
  1689. package/node_modules/tar/dist/esm/read-entry.js +0 -132
  1690. package/node_modules/tar/dist/esm/read-entry.js.map +0 -1
  1691. package/node_modules/tar/dist/esm/replace.d.ts +0 -2
  1692. package/node_modules/tar/dist/esm/replace.d.ts.map +0 -1
  1693. package/node_modules/tar/dist/esm/replace.js +0 -221
  1694. package/node_modules/tar/dist/esm/replace.js.map +0 -1
  1695. package/node_modules/tar/dist/esm/strip-absolute-path.d.ts +0 -2
  1696. package/node_modules/tar/dist/esm/strip-absolute-path.d.ts.map +0 -1
  1697. package/node_modules/tar/dist/esm/strip-absolute-path.js +0 -25
  1698. package/node_modules/tar/dist/esm/strip-absolute-path.js.map +0 -1
  1699. package/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts +0 -2
  1700. package/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts.map +0 -1
  1701. package/node_modules/tar/dist/esm/strip-trailing-slashes.js +0 -14
  1702. package/node_modules/tar/dist/esm/strip-trailing-slashes.js.map +0 -1
  1703. package/node_modules/tar/dist/esm/symlink-error.d.ts +0 -9
  1704. package/node_modules/tar/dist/esm/symlink-error.d.ts.map +0 -1
  1705. package/node_modules/tar/dist/esm/symlink-error.js +0 -15
  1706. package/node_modules/tar/dist/esm/symlink-error.js.map +0 -1
  1707. package/node_modules/tar/dist/esm/types.d.ts +0 -7
  1708. package/node_modules/tar/dist/esm/types.d.ts.map +0 -1
  1709. package/node_modules/tar/dist/esm/types.js +0 -45
  1710. package/node_modules/tar/dist/esm/types.js.map +0 -1
  1711. package/node_modules/tar/dist/esm/unpack.d.ts +0 -101
  1712. package/node_modules/tar/dist/esm/unpack.d.ts.map +0 -1
  1713. package/node_modules/tar/dist/esm/unpack.js +0 -891
  1714. package/node_modules/tar/dist/esm/unpack.js.map +0 -1
  1715. package/node_modules/tar/dist/esm/update.d.ts +0 -2
  1716. package/node_modules/tar/dist/esm/update.d.ts.map +0 -1
  1717. package/node_modules/tar/dist/esm/update.js +0 -30
  1718. package/node_modules/tar/dist/esm/update.js.map +0 -1
  1719. package/node_modules/tar/dist/esm/warn-method.d.ts +0 -24
  1720. package/node_modules/tar/dist/esm/warn-method.d.ts.map +0 -1
  1721. package/node_modules/tar/dist/esm/warn-method.js +0 -27
  1722. package/node_modules/tar/dist/esm/warn-method.js.map +0 -1
  1723. package/node_modules/tar/dist/esm/winchars.d.ts +0 -3
  1724. package/node_modules/tar/dist/esm/winchars.d.ts.map +0 -1
  1725. package/node_modules/tar/dist/esm/winchars.js +0 -9
  1726. package/node_modules/tar/dist/esm/winchars.js.map +0 -1
  1727. package/node_modules/tar/dist/esm/write-entry.d.ts +0 -129
  1728. package/node_modules/tar/dist/esm/write-entry.d.ts.map +0 -1
  1729. package/node_modules/tar/dist/esm/write-entry.js +0 -656
  1730. package/node_modules/tar/dist/esm/write-entry.js.map +0 -1
  1731. package/node_modules/tar/package.json +0 -297
  1732. package/node_modules/tar-fs/.travis.yml +0 -6
  1733. package/node_modules/tar-fs/LICENSE +0 -21
  1734. package/node_modules/tar-fs/README.md +0 -165
  1735. package/node_modules/tar-fs/index.js +0 -363
  1736. package/node_modules/tar-fs/node_modules/chownr/LICENSE +0 -15
  1737. package/node_modules/tar-fs/node_modules/chownr/README.md +0 -3
  1738. package/node_modules/tar-fs/node_modules/chownr/chownr.js +0 -167
  1739. package/node_modules/tar-fs/node_modules/chownr/package.json +0 -29
  1740. package/node_modules/tar-fs/package.json +0 -41
  1741. package/node_modules/tar-fs/test/fixtures/a/hello.txt +0 -1
  1742. package/node_modules/tar-fs/test/fixtures/b/a/test.txt +0 -1
  1743. package/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
  1744. package/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
  1745. package/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
  1746. package/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
  1747. package/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
  1748. package/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
  1749. package/node_modules/tar-fs/test/fixtures/e/file +0 -0
  1750. package/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
  1751. package/node_modules/tar-fs/test/index.js +0 -346
  1752. package/node_modules/tar-stream/LICENSE +0 -21
  1753. package/node_modules/tar-stream/README.md +0 -168
  1754. package/node_modules/tar-stream/extract.js +0 -257
  1755. package/node_modules/tar-stream/headers.js +0 -295
  1756. package/node_modules/tar-stream/index.js +0 -2
  1757. package/node_modules/tar-stream/pack.js +0 -255
  1758. package/node_modules/tar-stream/package.json +0 -58
  1759. package/node_modules/tar-stream/sandbox.js +0 -11
  1760. package/node_modules/tinyglobby/LICENSE +0 -21
  1761. package/node_modules/tinyglobby/README.md +0 -25
  1762. package/node_modules/tinyglobby/dist/index.cjs +0 -334
  1763. package/node_modules/tinyglobby/dist/index.d.cts +0 -148
  1764. package/node_modules/tinyglobby/dist/index.d.mts +0 -148
  1765. package/node_modules/tinyglobby/dist/index.mjs +0 -306
  1766. package/node_modules/tinyglobby/package.json +0 -73
  1767. package/node_modules/tunnel-agent/LICENSE +0 -55
  1768. package/node_modules/tunnel-agent/README.md +0 -4
  1769. package/node_modules/tunnel-agent/index.js +0 -244
  1770. package/node_modules/tunnel-agent/package.json +0 -22
  1771. package/node_modules/undici/LICENSE +0 -21
  1772. package/node_modules/undici/README.md +0 -741
  1773. package/node_modules/undici/docs/docs/api/Agent.md +0 -84
  1774. package/node_modules/undici/docs/docs/api/BalancedPool.md +0 -99
  1775. package/node_modules/undici/docs/docs/api/CacheStorage.md +0 -30
  1776. package/node_modules/undici/docs/docs/api/CacheStore.md +0 -164
  1777. package/node_modules/undici/docs/docs/api/Client.md +0 -285
  1778. package/node_modules/undici/docs/docs/api/ClientStats.md +0 -27
  1779. package/node_modules/undici/docs/docs/api/Connector.md +0 -115
  1780. package/node_modules/undici/docs/docs/api/ContentType.md +0 -57
  1781. package/node_modules/undici/docs/docs/api/Cookies.md +0 -101
  1782. package/node_modules/undici/docs/docs/api/Debug.md +0 -62
  1783. package/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +0 -315
  1784. package/node_modules/undici/docs/docs/api/Dispatcher.md +0 -1392
  1785. package/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +0 -159
  1786. package/node_modules/undici/docs/docs/api/Errors.md +0 -49
  1787. package/node_modules/undici/docs/docs/api/EventSource.md +0 -45
  1788. package/node_modules/undici/docs/docs/api/Fetch.md +0 -60
  1789. package/node_modules/undici/docs/docs/api/GlobalInstallation.md +0 -139
  1790. package/node_modules/undici/docs/docs/api/H2CClient.md +0 -263
  1791. package/node_modules/undici/docs/docs/api/MockAgent.md +0 -603
  1792. package/node_modules/undici/docs/docs/api/MockCallHistory.md +0 -197
  1793. package/node_modules/undici/docs/docs/api/MockCallHistoryLog.md +0 -43
  1794. package/node_modules/undici/docs/docs/api/MockClient.md +0 -81
  1795. package/node_modules/undici/docs/docs/api/MockErrors.md +0 -12
  1796. package/node_modules/undici/docs/docs/api/MockPool.md +0 -555
  1797. package/node_modules/undici/docs/docs/api/Pool.md +0 -84
  1798. package/node_modules/undici/docs/docs/api/PoolStats.md +0 -35
  1799. package/node_modules/undici/docs/docs/api/ProxyAgent.md +0 -229
  1800. package/node_modules/undici/docs/docs/api/RedirectHandler.md +0 -93
  1801. package/node_modules/undici/docs/docs/api/RetryAgent.md +0 -50
  1802. package/node_modules/undici/docs/docs/api/RetryHandler.md +0 -118
  1803. package/node_modules/undici/docs/docs/api/RoundRobinPool.md +0 -145
  1804. package/node_modules/undici/docs/docs/api/SnapshotAgent.md +0 -616
  1805. package/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +0 -274
  1806. package/node_modules/undici/docs/docs/api/Util.md +0 -25
  1807. package/node_modules/undici/docs/docs/api/WebSocket.md +0 -141
  1808. package/node_modules/undici/docs/docs/api/api-lifecycle.md +0 -91
  1809. package/node_modules/undici/docs/docs/best-practices/client-certificate.md +0 -64
  1810. package/node_modules/undici/docs/docs/best-practices/crawling.md +0 -58
  1811. package/node_modules/undici/docs/docs/best-practices/mocking-request.md +0 -190
  1812. package/node_modules/undici/docs/docs/best-practices/proxy.md +0 -127
  1813. package/node_modules/undici/docs/docs/best-practices/undici-vs-builtin-fetch.md +0 -224
  1814. package/node_modules/undici/docs/docs/best-practices/writing-tests.md +0 -63
  1815. package/node_modules/undici/index-fetch.js +0 -65
  1816. package/node_modules/undici/index.d.ts +0 -3
  1817. package/node_modules/undici/index.js +0 -234
  1818. package/node_modules/undici/lib/api/abort-signal.js +0 -59
  1819. package/node_modules/undici/lib/api/api-connect.js +0 -110
  1820. package/node_modules/undici/lib/api/api-pipeline.js +0 -252
  1821. package/node_modules/undici/lib/api/api-request.js +0 -214
  1822. package/node_modules/undici/lib/api/api-stream.js +0 -209
  1823. package/node_modules/undici/lib/api/api-upgrade.js +0 -111
  1824. package/node_modules/undici/lib/api/index.js +0 -7
  1825. package/node_modules/undici/lib/api/readable.js +0 -580
  1826. package/node_modules/undici/lib/cache/memory-cache-store.js +0 -234
  1827. package/node_modules/undici/lib/cache/sqlite-cache-store.js +0 -461
  1828. package/node_modules/undici/lib/core/connect.js +0 -137
  1829. package/node_modules/undici/lib/core/constants.js +0 -143
  1830. package/node_modules/undici/lib/core/diagnostics.js +0 -227
  1831. package/node_modules/undici/lib/core/errors.js +0 -477
  1832. package/node_modules/undici/lib/core/request.js +0 -438
  1833. package/node_modules/undici/lib/core/socks5-client.js +0 -407
  1834. package/node_modules/undici/lib/core/socks5-utils.js +0 -203
  1835. package/node_modules/undici/lib/core/symbols.js +0 -75
  1836. package/node_modules/undici/lib/core/tree.js +0 -160
  1837. package/node_modules/undici/lib/core/util.js +0 -992
  1838. package/node_modules/undici/lib/dispatcher/agent.js +0 -158
  1839. package/node_modules/undici/lib/dispatcher/balanced-pool.js +0 -219
  1840. package/node_modules/undici/lib/dispatcher/client-h1.js +0 -1610
  1841. package/node_modules/undici/lib/dispatcher/client-h2.js +0 -995
  1842. package/node_modules/undici/lib/dispatcher/client.js +0 -659
  1843. package/node_modules/undici/lib/dispatcher/dispatcher-base.js +0 -165
  1844. package/node_modules/undici/lib/dispatcher/dispatcher.js +0 -48
  1845. package/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +0 -146
  1846. package/node_modules/undici/lib/dispatcher/fixed-queue.js +0 -135
  1847. package/node_modules/undici/lib/dispatcher/h2c-client.js +0 -51
  1848. package/node_modules/undici/lib/dispatcher/pool-base.js +0 -214
  1849. package/node_modules/undici/lib/dispatcher/pool.js +0 -118
  1850. package/node_modules/undici/lib/dispatcher/proxy-agent.js +0 -318
  1851. package/node_modules/undici/lib/dispatcher/retry-agent.js +0 -35
  1852. package/node_modules/undici/lib/dispatcher/round-robin-pool.js +0 -137
  1853. package/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +0 -249
  1854. package/node_modules/undici/lib/encoding/index.js +0 -33
  1855. package/node_modules/undici/lib/global.js +0 -50
  1856. package/node_modules/undici/lib/handler/cache-handler.js +0 -578
  1857. package/node_modules/undici/lib/handler/cache-revalidation-handler.js +0 -124
  1858. package/node_modules/undici/lib/handler/decorator-handler.js +0 -67
  1859. package/node_modules/undici/lib/handler/deduplication-handler.js +0 -460
  1860. package/node_modules/undici/lib/handler/redirect-handler.js +0 -238
  1861. package/node_modules/undici/lib/handler/retry-handler.js +0 -394
  1862. package/node_modules/undici/lib/handler/unwrap-handler.js +0 -100
  1863. package/node_modules/undici/lib/handler/wrap-handler.js +0 -105
  1864. package/node_modules/undici/lib/interceptor/cache.js +0 -495
  1865. package/node_modules/undici/lib/interceptor/decompress.js +0 -259
  1866. package/node_modules/undici/lib/interceptor/deduplicate.js +0 -117
  1867. package/node_modules/undici/lib/interceptor/dns.js +0 -571
  1868. package/node_modules/undici/lib/interceptor/dump.js +0 -112
  1869. package/node_modules/undici/lib/interceptor/redirect.js +0 -21
  1870. package/node_modules/undici/lib/interceptor/response-error.js +0 -95
  1871. package/node_modules/undici/lib/interceptor/retry.js +0 -19
  1872. package/node_modules/undici/lib/llhttp/.gitkeep +0 -0
  1873. package/node_modules/undici/lib/llhttp/constants.d.ts +0 -195
  1874. package/node_modules/undici/lib/llhttp/constants.js +0 -531
  1875. package/node_modules/undici/lib/llhttp/llhttp-wasm.js +0 -15
  1876. package/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +0 -15
  1877. package/node_modules/undici/lib/llhttp/utils.d.ts +0 -2
  1878. package/node_modules/undici/lib/llhttp/utils.js +0 -12
  1879. package/node_modules/undici/lib/mock/mock-agent.js +0 -232
  1880. package/node_modules/undici/lib/mock/mock-call-history.js +0 -248
  1881. package/node_modules/undici/lib/mock/mock-client.js +0 -68
  1882. package/node_modules/undici/lib/mock/mock-errors.js +0 -29
  1883. package/node_modules/undici/lib/mock/mock-interceptor.js +0 -209
  1884. package/node_modules/undici/lib/mock/mock-pool.js +0 -68
  1885. package/node_modules/undici/lib/mock/mock-symbols.js +0 -32
  1886. package/node_modules/undici/lib/mock/mock-utils.js +0 -486
  1887. package/node_modules/undici/lib/mock/pending-interceptors-formatter.js +0 -43
  1888. package/node_modules/undici/lib/mock/snapshot-agent.js +0 -353
  1889. package/node_modules/undici/lib/mock/snapshot-recorder.js +0 -588
  1890. package/node_modules/undici/lib/mock/snapshot-utils.js +0 -158
  1891. package/node_modules/undici/lib/util/cache.js +0 -407
  1892. package/node_modules/undici/lib/util/date.js +0 -653
  1893. package/node_modules/undici/lib/util/promise.js +0 -28
  1894. package/node_modules/undici/lib/util/runtime-features.js +0 -124
  1895. package/node_modules/undici/lib/util/stats.js +0 -32
  1896. package/node_modules/undici/lib/util/timers.js +0 -425
  1897. package/node_modules/undici/lib/web/cache/cache.js +0 -864
  1898. package/node_modules/undici/lib/web/cache/cachestorage.js +0 -152
  1899. package/node_modules/undici/lib/web/cache/util.js +0 -45
  1900. package/node_modules/undici/lib/web/cookies/constants.js +0 -12
  1901. package/node_modules/undici/lib/web/cookies/index.js +0 -199
  1902. package/node_modules/undici/lib/web/cookies/parse.js +0 -322
  1903. package/node_modules/undici/lib/web/cookies/util.js +0 -282
  1904. package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +0 -399
  1905. package/node_modules/undici/lib/web/eventsource/eventsource.js +0 -501
  1906. package/node_modules/undici/lib/web/eventsource/util.js +0 -29
  1907. package/node_modules/undici/lib/web/fetch/LICENSE +0 -21
  1908. package/node_modules/undici/lib/web/fetch/body.js +0 -509
  1909. package/node_modules/undici/lib/web/fetch/constants.js +0 -131
  1910. package/node_modules/undici/lib/web/fetch/data-url.js +0 -596
  1911. package/node_modules/undici/lib/web/fetch/formdata-parser.js +0 -575
  1912. package/node_modules/undici/lib/web/fetch/formdata.js +0 -259
  1913. package/node_modules/undici/lib/web/fetch/global.js +0 -40
  1914. package/node_modules/undici/lib/web/fetch/headers.js +0 -719
  1915. package/node_modules/undici/lib/web/fetch/index.js +0 -2410
  1916. package/node_modules/undici/lib/web/fetch/request.js +0 -1115
  1917. package/node_modules/undici/lib/web/fetch/response.js +0 -641
  1918. package/node_modules/undici/lib/web/fetch/util.js +0 -1522
  1919. package/node_modules/undici/lib/web/infra/index.js +0 -229
  1920. package/node_modules/undici/lib/web/subresource-integrity/Readme.md +0 -9
  1921. package/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +0 -307
  1922. package/node_modules/undici/lib/web/webidl/index.js +0 -1006
  1923. package/node_modules/undici/lib/web/websocket/connection.js +0 -329
  1924. package/node_modules/undici/lib/web/websocket/constants.js +0 -126
  1925. package/node_modules/undici/lib/web/websocket/events.js +0 -331
  1926. package/node_modules/undici/lib/web/websocket/frame.js +0 -133
  1927. package/node_modules/undici/lib/web/websocket/permessage-deflate.js +0 -118
  1928. package/node_modules/undici/lib/web/websocket/receiver.js +0 -450
  1929. package/node_modules/undici/lib/web/websocket/sender.js +0 -109
  1930. package/node_modules/undici/lib/web/websocket/stream/websocketerror.js +0 -104
  1931. package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +0 -497
  1932. package/node_modules/undici/lib/web/websocket/util.js +0 -347
  1933. package/node_modules/undici/lib/web/websocket/websocket.js +0 -751
  1934. package/node_modules/undici/package.json +0 -152
  1935. package/node_modules/undici/scripts/strip-comments.js +0 -10
  1936. package/node_modules/undici/types/README.md +0 -6
  1937. package/node_modules/undici/types/agent.d.ts +0 -32
  1938. package/node_modules/undici/types/api.d.ts +0 -43
  1939. package/node_modules/undici/types/balanced-pool.d.ts +0 -30
  1940. package/node_modules/undici/types/cache-interceptor.d.ts +0 -179
  1941. package/node_modules/undici/types/cache.d.ts +0 -36
  1942. package/node_modules/undici/types/client-stats.d.ts +0 -15
  1943. package/node_modules/undici/types/client.d.ts +0 -123
  1944. package/node_modules/undici/types/connector.d.ts +0 -36
  1945. package/node_modules/undici/types/content-type.d.ts +0 -21
  1946. package/node_modules/undici/types/cookies.d.ts +0 -30
  1947. package/node_modules/undici/types/diagnostics-channel.d.ts +0 -74
  1948. package/node_modules/undici/types/dispatcher.d.ts +0 -273
  1949. package/node_modules/undici/types/env-http-proxy-agent.d.ts +0 -22
  1950. package/node_modules/undici/types/errors.d.ts +0 -177
  1951. package/node_modules/undici/types/eventsource.d.ts +0 -66
  1952. package/node_modules/undici/types/fetch.d.ts +0 -231
  1953. package/node_modules/undici/types/formdata.d.ts +0 -114
  1954. package/node_modules/undici/types/global-dispatcher.d.ts +0 -9
  1955. package/node_modules/undici/types/global-origin.d.ts +0 -7
  1956. package/node_modules/undici/types/h2c-client.d.ts +0 -73
  1957. package/node_modules/undici/types/handlers.d.ts +0 -14
  1958. package/node_modules/undici/types/header.d.ts +0 -160
  1959. package/node_modules/undici/types/index.d.ts +0 -91
  1960. package/node_modules/undici/types/interceptors.d.ts +0 -80
  1961. package/node_modules/undici/types/mock-agent.d.ts +0 -68
  1962. package/node_modules/undici/types/mock-call-history.d.ts +0 -111
  1963. package/node_modules/undici/types/mock-client.d.ts +0 -27
  1964. package/node_modules/undici/types/mock-errors.d.ts +0 -12
  1965. package/node_modules/undici/types/mock-interceptor.d.ts +0 -94
  1966. package/node_modules/undici/types/mock-pool.d.ts +0 -27
  1967. package/node_modules/undici/types/patch.d.ts +0 -29
  1968. package/node_modules/undici/types/pool-stats.d.ts +0 -19
  1969. package/node_modules/undici/types/pool.d.ts +0 -41
  1970. package/node_modules/undici/types/proxy-agent.d.ts +0 -29
  1971. package/node_modules/undici/types/readable.d.ts +0 -68
  1972. package/node_modules/undici/types/retry-agent.d.ts +0 -8
  1973. package/node_modules/undici/types/retry-handler.d.ts +0 -125
  1974. package/node_modules/undici/types/round-robin-pool.d.ts +0 -41
  1975. package/node_modules/undici/types/snapshot-agent.d.ts +0 -109
  1976. package/node_modules/undici/types/socks5-proxy-agent.d.ts +0 -25
  1977. package/node_modules/undici/types/util.d.ts +0 -18
  1978. package/node_modules/undici/types/utility.d.ts +0 -7
  1979. package/node_modules/undici/types/webidl.d.ts +0 -347
  1980. package/node_modules/undici/types/websocket.d.ts +0 -188
  1981. package/node_modules/util-deprecate/History.md +0 -16
  1982. package/node_modules/util-deprecate/LICENSE +0 -24
  1983. package/node_modules/util-deprecate/README.md +0 -53
  1984. package/node_modules/util-deprecate/browser.js +0 -67
  1985. package/node_modules/util-deprecate/node.js +0 -6
  1986. package/node_modules/util-deprecate/package.json +0 -27
  1987. package/node_modules/which/LICENSE +0 -15
  1988. package/node_modules/which/README.md +0 -51
  1989. package/node_modules/which/bin/which.js +0 -52
  1990. package/node_modules/which/lib/index.js +0 -111
  1991. package/node_modules/which/package.json +0 -52
  1992. package/node_modules/wrappy/LICENSE +0 -15
  1993. package/node_modules/wrappy/README.md +0 -36
  1994. package/node_modules/wrappy/package.json +0 -29
  1995. package/node_modules/wrappy/wrappy.js +0 -33
  1996. package/node_modules/yallist/LICENSE.md +0 -63
  1997. package/node_modules/yallist/README.md +0 -205
  1998. package/node_modules/yallist/dist/commonjs/index.d.ts +0 -39
  1999. package/node_modules/yallist/dist/commonjs/index.d.ts.map +0 -1
  2000. package/node_modules/yallist/dist/commonjs/index.js +0 -384
  2001. package/node_modules/yallist/dist/commonjs/index.js.map +0 -1
  2002. package/node_modules/yallist/dist/commonjs/package.json +0 -3
  2003. package/node_modules/yallist/dist/esm/index.d.ts +0 -39
  2004. package/node_modules/yallist/dist/esm/index.d.ts.map +0 -1
  2005. package/node_modules/yallist/dist/esm/index.js +0 -379
  2006. package/node_modules/yallist/dist/esm/index.js.map +0 -1
  2007. package/node_modules/yallist/dist/esm/package.json +0 -3
  2008. package/node_modules/yallist/package.json +0 -68
  2009. package/node_modules/zod/LICENSE +0 -21
  2010. package/node_modules/zod/README.md +0 -208
  2011. package/node_modules/zod/index.cjs +0 -33
  2012. package/node_modules/zod/index.d.cts +0 -4
  2013. package/node_modules/zod/index.d.ts +0 -4
  2014. package/node_modules/zod/index.js +0 -4
  2015. package/node_modules/zod/package.json +0 -118
  2016. package/node_modules/zod/src/index.ts +0 -4
  2017. package/node_modules/zod/src/v3/ZodError.ts +0 -330
  2018. package/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
  2019. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
  2020. package/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
  2021. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
  2022. package/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
  2023. package/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
  2024. package/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
  2025. package/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
  2026. package/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
  2027. package/node_modules/zod/src/v3/errors.ts +0 -13
  2028. package/node_modules/zod/src/v3/external.ts +0 -6
  2029. package/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
  2030. package/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
  2031. package/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
  2032. package/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
  2033. package/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
  2034. package/node_modules/zod/src/v3/helpers/util.ts +0 -224
  2035. package/node_modules/zod/src/v3/index.ts +0 -4
  2036. package/node_modules/zod/src/v3/locales/en.ts +0 -124
  2037. package/node_modules/zod/src/v3/standard-schema.ts +0 -113
  2038. package/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
  2039. package/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
  2040. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
  2041. package/node_modules/zod/src/v3/tests/array.test.ts +0 -71
  2042. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
  2043. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
  2044. package/node_modules/zod/src/v3/tests/base.test.ts +0 -29
  2045. package/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
  2046. package/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
  2047. package/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
  2048. package/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
  2049. package/node_modules/zod/src/v3/tests/complex.test.ts +0 -56
  2050. package/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
  2051. package/node_modules/zod/src/v3/tests/date.test.ts +0 -32
  2052. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
  2053. package/node_modules/zod/src/v3/tests/default.test.ts +0 -112
  2054. package/node_modules/zod/src/v3/tests/description.test.ts +0 -33
  2055. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
  2056. package/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
  2057. package/node_modules/zod/src/v3/tests/error.test.ts +0 -551
  2058. package/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
  2059. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
  2060. package/node_modules/zod/src/v3/tests/function.test.ts +0 -257
  2061. package/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
  2062. package/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
  2063. package/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
  2064. package/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
  2065. package/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
  2066. package/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
  2067. package/node_modules/zod/src/v3/tests/map.test.ts +0 -110
  2068. package/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
  2069. package/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
  2070. package/node_modules/zod/src/v3/tests/nan.test.ts +0 -21
  2071. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
  2072. package/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
  2073. package/node_modules/zod/src/v3/tests/number.test.ts +0 -176
  2074. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
  2075. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
  2076. package/node_modules/zod/src/v3/tests/object.test.ts +0 -434
  2077. package/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
  2078. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
  2079. package/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
  2080. package/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
  2081. package/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
  2082. package/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
  2083. package/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
  2084. package/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
  2085. package/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
  2086. package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
  2087. package/node_modules/zod/src/v3/tests/record.test.ts +0 -171
  2088. package/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
  2089. package/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
  2090. package/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
  2091. package/node_modules/zod/src/v3/tests/set.test.ts +0 -142
  2092. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
  2093. package/node_modules/zod/src/v3/tests/string.test.ts +0 -916
  2094. package/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
  2095. package/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
  2096. package/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
  2097. package/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
  2098. package/node_modules/zod/src/v3/tests/void.test.ts +0 -15
  2099. package/node_modules/zod/src/v3/types.ts +0 -5136
  2100. package/node_modules/zod/src/v4/classic/checks.ts +0 -30
  2101. package/node_modules/zod/src/v4/classic/coerce.ts +0 -27
  2102. package/node_modules/zod/src/v4/classic/compat.ts +0 -66
  2103. package/node_modules/zod/src/v4/classic/errors.ts +0 -75
  2104. package/node_modules/zod/src/v4/classic/external.ts +0 -50
  2105. package/node_modules/zod/src/v4/classic/index.ts +0 -5
  2106. package/node_modules/zod/src/v4/classic/iso.ts +0 -90
  2107. package/node_modules/zod/src/v4/classic/parse.ts +0 -33
  2108. package/node_modules/zod/src/v4/classic/schemas.ts +0 -2054
  2109. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
  2110. package/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
  2111. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -210
  2112. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
  2113. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
  2114. package/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
  2115. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
  2116. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -63
  2117. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -252
  2118. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
  2119. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
  2120. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -352
  2121. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
  2122. package/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -31
  2123. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -296
  2124. package/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -313
  2125. package/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
  2126. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -619
  2127. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
  2128. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -527
  2129. package/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
  2130. package/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -91
  2131. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -175
  2132. package/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -268
  2133. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
  2134. package/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -829
  2135. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -34
  2136. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -171
  2137. package/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -108
  2138. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
  2139. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -92
  2140. package/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -196
  2141. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
  2142. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
  2143. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -86
  2144. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
  2145. package/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -247
  2146. package/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -563
  2147. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -123
  2148. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -147
  2149. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -127
  2150. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -81
  2151. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -37
  2152. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -298
  2153. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
  2154. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
  2155. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
  2156. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
  2157. package/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -342
  2158. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -356
  2159. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -532
  2160. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -204
  2161. package/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -179
  2162. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -57
  2163. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -109
  2164. package/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -881
  2165. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -66
  2166. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -758
  2167. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -2314
  2168. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -250
  2169. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -163
  2170. package/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -94
  2171. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
  2172. package/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
  2173. package/node_modules/zod/src/v4/core/api.ts +0 -1594
  2174. package/node_modules/zod/src/v4/core/checks.ts +0 -1283
  2175. package/node_modules/zod/src/v4/core/config.ts +0 -15
  2176. package/node_modules/zod/src/v4/core/core.ts +0 -134
  2177. package/node_modules/zod/src/v4/core/doc.ts +0 -44
  2178. package/node_modules/zod/src/v4/core/errors.ts +0 -424
  2179. package/node_modules/zod/src/v4/core/function.ts +0 -176
  2180. package/node_modules/zod/src/v4/core/index.ts +0 -15
  2181. package/node_modules/zod/src/v4/core/json-schema.ts +0 -143
  2182. package/node_modules/zod/src/v4/core/parse.ts +0 -94
  2183. package/node_modules/zod/src/v4/core/regexes.ts +0 -135
  2184. package/node_modules/zod/src/v4/core/registries.ts +0 -96
  2185. package/node_modules/zod/src/v4/core/schemas.ts +0 -3842
  2186. package/node_modules/zod/src/v4/core/standard-schema.ts +0 -64
  2187. package/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
  2188. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
  2189. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
  2190. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
  2191. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
  2192. package/node_modules/zod/src/v4/core/to-json-schema.ts +0 -977
  2193. package/node_modules/zod/src/v4/core/util.ts +0 -775
  2194. package/node_modules/zod/src/v4/core/versions.ts +0 -5
  2195. package/node_modules/zod/src/v4/core/zsf.ts +0 -323
  2196. package/node_modules/zod/src/v4/index.ts +0 -4
  2197. package/node_modules/zod/src/v4/locales/ar.ts +0 -125
  2198. package/node_modules/zod/src/v4/locales/az.ts +0 -121
  2199. package/node_modules/zod/src/v4/locales/be.ts +0 -184
  2200. package/node_modules/zod/src/v4/locales/ca.ts +0 -127
  2201. package/node_modules/zod/src/v4/locales/cs.ts +0 -142
  2202. package/node_modules/zod/src/v4/locales/de.ts +0 -124
  2203. package/node_modules/zod/src/v4/locales/en.ts +0 -127
  2204. package/node_modules/zod/src/v4/locales/eo.ts +0 -125
  2205. package/node_modules/zod/src/v4/locales/es.ts +0 -125
  2206. package/node_modules/zod/src/v4/locales/fa.ts +0 -134
  2207. package/node_modules/zod/src/v4/locales/fi.ts +0 -131
  2208. package/node_modules/zod/src/v4/locales/fr-CA.ts +0 -126
  2209. package/node_modules/zod/src/v4/locales/fr.ts +0 -124
  2210. package/node_modules/zod/src/v4/locales/he.ts +0 -125
  2211. package/node_modules/zod/src/v4/locales/hu.ts +0 -126
  2212. package/node_modules/zod/src/v4/locales/id.ts +0 -125
  2213. package/node_modules/zod/src/v4/locales/index.ts +0 -39
  2214. package/node_modules/zod/src/v4/locales/it.ts +0 -125
  2215. package/node_modules/zod/src/v4/locales/ja.ts +0 -122
  2216. package/node_modules/zod/src/v4/locales/kh.ts +0 -126
  2217. package/node_modules/zod/src/v4/locales/ko.ts +0 -131
  2218. package/node_modules/zod/src/v4/locales/mk.ts +0 -127
  2219. package/node_modules/zod/src/v4/locales/ms.ts +0 -124
  2220. package/node_modules/zod/src/v4/locales/nl.ts +0 -126
  2221. package/node_modules/zod/src/v4/locales/no.ts +0 -124
  2222. package/node_modules/zod/src/v4/locales/ota.ts +0 -125
  2223. package/node_modules/zod/src/v4/locales/pl.ts +0 -126
  2224. package/node_modules/zod/src/v4/locales/ps.ts +0 -133
  2225. package/node_modules/zod/src/v4/locales/pt.ts +0 -123
  2226. package/node_modules/zod/src/v4/locales/ru.ts +0 -184
  2227. package/node_modules/zod/src/v4/locales/sl.ts +0 -126
  2228. package/node_modules/zod/src/v4/locales/sv.ts +0 -127
  2229. package/node_modules/zod/src/v4/locales/ta.ts +0 -125
  2230. package/node_modules/zod/src/v4/locales/th.ts +0 -126
  2231. package/node_modules/zod/src/v4/locales/tr.ts +0 -121
  2232. package/node_modules/zod/src/v4/locales/ua.ts +0 -126
  2233. package/node_modules/zod/src/v4/locales/ur.ts +0 -126
  2234. package/node_modules/zod/src/v4/locales/vi.ts +0 -125
  2235. package/node_modules/zod/src/v4/locales/zh-CN.ts +0 -123
  2236. package/node_modules/zod/src/v4/locales/zh-TW.ts +0 -125
  2237. package/node_modules/zod/src/v4/mini/checks.ts +0 -32
  2238. package/node_modules/zod/src/v4/mini/coerce.ts +0 -22
  2239. package/node_modules/zod/src/v4/mini/external.ts +0 -40
  2240. package/node_modules/zod/src/v4/mini/index.ts +0 -3
  2241. package/node_modules/zod/src/v4/mini/iso.ts +0 -62
  2242. package/node_modules/zod/src/v4/mini/parse.ts +0 -1
  2243. package/node_modules/zod/src/v4/mini/schemas.ts +0 -1579
  2244. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
  2245. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -51
  2246. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
  2247. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
  2248. package/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
  2249. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -43
  2250. package/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -871
  2251. package/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
  2252. package/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -185
  2253. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
  2254. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -275
  2255. package/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -299
  2256. package/node_modules/zod/src/v4-mini/index.ts +0 -1
  2257. package/node_modules/zod/v3/ZodError.cjs +0 -138
  2258. package/node_modules/zod/v3/ZodError.d.cts +0 -164
  2259. package/node_modules/zod/v3/ZodError.d.ts +0 -164
  2260. package/node_modules/zod/v3/ZodError.js +0 -133
  2261. package/node_modules/zod/v3/errors.cjs +0 -17
  2262. package/node_modules/zod/v3/errors.d.cts +0 -5
  2263. package/node_modules/zod/v3/errors.d.ts +0 -5
  2264. package/node_modules/zod/v3/errors.js +0 -9
  2265. package/node_modules/zod/v3/external.cjs +0 -22
  2266. package/node_modules/zod/v3/external.d.cts +0 -6
  2267. package/node_modules/zod/v3/external.d.ts +0 -6
  2268. package/node_modules/zod/v3/external.js +0 -6
  2269. package/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
  2270. package/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
  2271. package/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
  2272. package/node_modules/zod/v3/helpers/enumUtil.js +0 -1
  2273. package/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
  2274. package/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
  2275. package/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
  2276. package/node_modules/zod/v3/helpers/errorUtil.js +0 -6
  2277. package/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
  2278. package/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
  2279. package/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
  2280. package/node_modules/zod/v3/helpers/parseUtil.js +0 -109
  2281. package/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
  2282. package/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
  2283. package/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
  2284. package/node_modules/zod/v3/helpers/partialUtil.js +0 -1
  2285. package/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
  2286. package/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
  2287. package/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
  2288. package/node_modules/zod/v3/helpers/typeAliases.js +0 -1
  2289. package/node_modules/zod/v3/helpers/util.cjs +0 -137
  2290. package/node_modules/zod/v3/helpers/util.d.cts +0 -85
  2291. package/node_modules/zod/v3/helpers/util.d.ts +0 -85
  2292. package/node_modules/zod/v3/helpers/util.js +0 -133
  2293. package/node_modules/zod/v3/index.cjs +0 -33
  2294. package/node_modules/zod/v3/index.d.cts +0 -4
  2295. package/node_modules/zod/v3/index.d.ts +0 -4
  2296. package/node_modules/zod/v3/index.js +0 -4
  2297. package/node_modules/zod/v3/locales/en.cjs +0 -111
  2298. package/node_modules/zod/v3/locales/en.d.cts +0 -3
  2299. package/node_modules/zod/v3/locales/en.d.ts +0 -3
  2300. package/node_modules/zod/v3/locales/en.js +0 -109
  2301. package/node_modules/zod/v3/standard-schema.cjs +0 -2
  2302. package/node_modules/zod/v3/standard-schema.d.cts +0 -102
  2303. package/node_modules/zod/v3/standard-schema.d.ts +0 -102
  2304. package/node_modules/zod/v3/standard-schema.js +0 -1
  2305. package/node_modules/zod/v3/types.cjs +0 -3775
  2306. package/node_modules/zod/v3/types.d.cts +0 -1031
  2307. package/node_modules/zod/v3/types.d.ts +0 -1031
  2308. package/node_modules/zod/v3/types.js +0 -3693
  2309. package/node_modules/zod/v4/classic/checks.cjs +0 -32
  2310. package/node_modules/zod/v4/classic/checks.d.cts +0 -1
  2311. package/node_modules/zod/v4/classic/checks.d.ts +0 -1
  2312. package/node_modules/zod/v4/classic/checks.js +0 -1
  2313. package/node_modules/zod/v4/classic/coerce.cjs +0 -47
  2314. package/node_modules/zod/v4/classic/coerce.d.cts +0 -17
  2315. package/node_modules/zod/v4/classic/coerce.d.ts +0 -17
  2316. package/node_modules/zod/v4/classic/coerce.js +0 -17
  2317. package/node_modules/zod/v4/classic/compat.cjs +0 -57
  2318. package/node_modules/zod/v4/classic/compat.d.cts +0 -46
  2319. package/node_modules/zod/v4/classic/compat.d.ts +0 -46
  2320. package/node_modules/zod/v4/classic/compat.js +0 -27
  2321. package/node_modules/zod/v4/classic/errors.cjs +0 -67
  2322. package/node_modules/zod/v4/classic/errors.d.cts +0 -30
  2323. package/node_modules/zod/v4/classic/errors.d.ts +0 -30
  2324. package/node_modules/zod/v4/classic/errors.js +0 -41
  2325. package/node_modules/zod/v4/classic/external.cjs +0 -70
  2326. package/node_modules/zod/v4/classic/external.d.cts +0 -13
  2327. package/node_modules/zod/v4/classic/external.d.ts +0 -13
  2328. package/node_modules/zod/v4/classic/external.js +0 -18
  2329. package/node_modules/zod/v4/classic/index.cjs +0 -33
  2330. package/node_modules/zod/v4/classic/index.d.cts +0 -4
  2331. package/node_modules/zod/v4/classic/index.d.ts +0 -4
  2332. package/node_modules/zod/v4/classic/index.js +0 -4
  2333. package/node_modules/zod/v4/classic/iso.cjs +0 -60
  2334. package/node_modules/zod/v4/classic/iso.d.cts +0 -22
  2335. package/node_modules/zod/v4/classic/iso.d.ts +0 -22
  2336. package/node_modules/zod/v4/classic/iso.js +0 -30
  2337. package/node_modules/zod/v4/classic/parse.cjs +0 -32
  2338. package/node_modules/zod/v4/classic/parse.d.cts +0 -23
  2339. package/node_modules/zod/v4/classic/parse.d.ts +0 -23
  2340. package/node_modules/zod/v4/classic/parse.js +0 -6
  2341. package/node_modules/zod/v4/classic/schemas.cjs +0 -1109
  2342. package/node_modules/zod/v4/classic/schemas.d.cts +0 -630
  2343. package/node_modules/zod/v4/classic/schemas.d.ts +0 -630
  2344. package/node_modules/zod/v4/classic/schemas.js +0 -1006
  2345. package/node_modules/zod/v4/core/api.cjs +0 -1039
  2346. package/node_modules/zod/v4/core/api.d.cts +0 -284
  2347. package/node_modules/zod/v4/core/api.d.ts +0 -284
  2348. package/node_modules/zod/v4/core/api.js +0 -906
  2349. package/node_modules/zod/v4/core/checks.cjs +0 -591
  2350. package/node_modules/zod/v4/core/checks.d.cts +0 -278
  2351. package/node_modules/zod/v4/core/checks.d.ts +0 -278
  2352. package/node_modules/zod/v4/core/checks.js +0 -565
  2353. package/node_modules/zod/v4/core/core.cjs +0 -67
  2354. package/node_modules/zod/v4/core/core.d.cts +0 -49
  2355. package/node_modules/zod/v4/core/core.d.ts +0 -49
  2356. package/node_modules/zod/v4/core/core.js +0 -61
  2357. package/node_modules/zod/v4/core/doc.cjs +0 -39
  2358. package/node_modules/zod/v4/core/doc.d.cts +0 -14
  2359. package/node_modules/zod/v4/core/doc.d.ts +0 -14
  2360. package/node_modules/zod/v4/core/doc.js +0 -35
  2361. package/node_modules/zod/v4/core/errors.cjs +0 -226
  2362. package/node_modules/zod/v4/core/errors.d.cts +0 -208
  2363. package/node_modules/zod/v4/core/errors.d.ts +0 -208
  2364. package/node_modules/zod/v4/core/errors.js +0 -195
  2365. package/node_modules/zod/v4/core/function.cjs +0 -102
  2366. package/node_modules/zod/v4/core/function.d.cts +0 -52
  2367. package/node_modules/zod/v4/core/function.d.ts +0 -52
  2368. package/node_modules/zod/v4/core/function.js +0 -75
  2369. package/node_modules/zod/v4/core/index.cjs +0 -44
  2370. package/node_modules/zod/v4/core/index.d.cts +0 -15
  2371. package/node_modules/zod/v4/core/index.d.ts +0 -15
  2372. package/node_modules/zod/v4/core/index.js +0 -15
  2373. package/node_modules/zod/v4/core/json-schema.cjs +0 -2
  2374. package/node_modules/zod/v4/core/json-schema.d.cts +0 -87
  2375. package/node_modules/zod/v4/core/json-schema.d.ts +0 -87
  2376. package/node_modules/zod/v4/core/json-schema.js +0 -1
  2377. package/node_modules/zod/v4/core/parse.cjs +0 -87
  2378. package/node_modules/zod/v4/core/parse.d.cts +0 -25
  2379. package/node_modules/zod/v4/core/parse.d.ts +0 -25
  2380. package/node_modules/zod/v4/core/parse.js +0 -57
  2381. package/node_modules/zod/v4/core/regexes.cjs +0 -103
  2382. package/node_modules/zod/v4/core/regexes.d.cts +0 -62
  2383. package/node_modules/zod/v4/core/regexes.d.ts +0 -62
  2384. package/node_modules/zod/v4/core/regexes.js +0 -95
  2385. package/node_modules/zod/v4/core/registries.cjs +0 -56
  2386. package/node_modules/zod/v4/core/registries.d.cts +0 -35
  2387. package/node_modules/zod/v4/core/registries.d.ts +0 -35
  2388. package/node_modules/zod/v4/core/registries.js +0 -51
  2389. package/node_modules/zod/v4/core/schemas.cjs +0 -1748
  2390. package/node_modules/zod/v4/core/schemas.d.cts +0 -1041
  2391. package/node_modules/zod/v4/core/schemas.d.ts +0 -1041
  2392. package/node_modules/zod/v4/core/schemas.js +0 -1717
  2393. package/node_modules/zod/v4/core/standard-schema.cjs +0 -2
  2394. package/node_modules/zod/v4/core/standard-schema.d.cts +0 -55
  2395. package/node_modules/zod/v4/core/standard-schema.d.ts +0 -55
  2396. package/node_modules/zod/v4/core/standard-schema.js +0 -1
  2397. package/node_modules/zod/v4/core/to-json-schema.cjs +0 -854
  2398. package/node_modules/zod/v4/core/to-json-schema.d.cts +0 -88
  2399. package/node_modules/zod/v4/core/to-json-schema.d.ts +0 -88
  2400. package/node_modules/zod/v4/core/to-json-schema.js +0 -849
  2401. package/node_modules/zod/v4/core/util.cjs +0 -539
  2402. package/node_modules/zod/v4/core/util.d.cts +0 -183
  2403. package/node_modules/zod/v4/core/util.d.ts +0 -183
  2404. package/node_modules/zod/v4/core/util.js +0 -493
  2405. package/node_modules/zod/v4/core/versions.cjs +0 -8
  2406. package/node_modules/zod/v4/core/versions.d.cts +0 -5
  2407. package/node_modules/zod/v4/core/versions.d.ts +0 -5
  2408. package/node_modules/zod/v4/core/versions.js +0 -5
  2409. package/node_modules/zod/v4/index.cjs +0 -22
  2410. package/node_modules/zod/v4/index.d.cts +0 -3
  2411. package/node_modules/zod/v4/index.d.ts +0 -3
  2412. package/node_modules/zod/v4/index.js +0 -3
  2413. package/node_modules/zod/v4/locales/ar.cjs +0 -142
  2414. package/node_modules/zod/v4/locales/ar.d.cts +0 -4
  2415. package/node_modules/zod/v4/locales/ar.d.ts +0 -4
  2416. package/node_modules/zod/v4/locales/ar.js +0 -116
  2417. package/node_modules/zod/v4/locales/az.cjs +0 -141
  2418. package/node_modules/zod/v4/locales/az.d.cts +0 -4
  2419. package/node_modules/zod/v4/locales/az.d.ts +0 -4
  2420. package/node_modules/zod/v4/locales/az.js +0 -115
  2421. package/node_modules/zod/v4/locales/be.cjs +0 -190
  2422. package/node_modules/zod/v4/locales/be.d.cts +0 -4
  2423. package/node_modules/zod/v4/locales/be.d.ts +0 -4
  2424. package/node_modules/zod/v4/locales/be.js +0 -164
  2425. package/node_modules/zod/v4/locales/ca.cjs +0 -144
  2426. package/node_modules/zod/v4/locales/ca.d.cts +0 -4
  2427. package/node_modules/zod/v4/locales/ca.d.ts +0 -4
  2428. package/node_modules/zod/v4/locales/ca.js +0 -118
  2429. package/node_modules/zod/v4/locales/cs.cjs +0 -161
  2430. package/node_modules/zod/v4/locales/cs.d.cts +0 -4
  2431. package/node_modules/zod/v4/locales/cs.d.ts +0 -4
  2432. package/node_modules/zod/v4/locales/cs.js +0 -135
  2433. package/node_modules/zod/v4/locales/de.cjs +0 -142
  2434. package/node_modules/zod/v4/locales/de.d.cts +0 -4
  2435. package/node_modules/zod/v4/locales/de.d.ts +0 -4
  2436. package/node_modules/zod/v4/locales/de.js +0 -116
  2437. package/node_modules/zod/v4/locales/en.cjs +0 -145
  2438. package/node_modules/zod/v4/locales/en.d.cts +0 -5
  2439. package/node_modules/zod/v4/locales/en.d.ts +0 -5
  2440. package/node_modules/zod/v4/locales/en.js +0 -117
  2441. package/node_modules/zod/v4/locales/eo.cjs +0 -144
  2442. package/node_modules/zod/v4/locales/eo.d.cts +0 -5
  2443. package/node_modules/zod/v4/locales/eo.d.ts +0 -5
  2444. package/node_modules/zod/v4/locales/eo.js +0 -116
  2445. package/node_modules/zod/v4/locales/es.cjs +0 -143
  2446. package/node_modules/zod/v4/locales/es.d.cts +0 -4
  2447. package/node_modules/zod/v4/locales/es.d.ts +0 -4
  2448. package/node_modules/zod/v4/locales/es.js +0 -117
  2449. package/node_modules/zod/v4/locales/fa.cjs +0 -148
  2450. package/node_modules/zod/v4/locales/fa.d.cts +0 -4
  2451. package/node_modules/zod/v4/locales/fa.d.ts +0 -4
  2452. package/node_modules/zod/v4/locales/fa.js +0 -122
  2453. package/node_modules/zod/v4/locales/fi.cjs +0 -148
  2454. package/node_modules/zod/v4/locales/fi.d.cts +0 -4
  2455. package/node_modules/zod/v4/locales/fi.d.ts +0 -4
  2456. package/node_modules/zod/v4/locales/fi.js +0 -122
  2457. package/node_modules/zod/v4/locales/fr-CA.cjs +0 -143
  2458. package/node_modules/zod/v4/locales/fr-CA.d.cts +0 -4
  2459. package/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
  2460. package/node_modules/zod/v4/locales/fr-CA.js +0 -117
  2461. package/node_modules/zod/v4/locales/fr.cjs +0 -142
  2462. package/node_modules/zod/v4/locales/fr.d.cts +0 -4
  2463. package/node_modules/zod/v4/locales/fr.d.ts +0 -4
  2464. package/node_modules/zod/v4/locales/fr.js +0 -116
  2465. package/node_modules/zod/v4/locales/he.cjs +0 -143
  2466. package/node_modules/zod/v4/locales/he.d.cts +0 -4
  2467. package/node_modules/zod/v4/locales/he.d.ts +0 -4
  2468. package/node_modules/zod/v4/locales/he.js +0 -117
  2469. package/node_modules/zod/v4/locales/hu.cjs +0 -143
  2470. package/node_modules/zod/v4/locales/hu.d.cts +0 -4
  2471. package/node_modules/zod/v4/locales/hu.d.ts +0 -4
  2472. package/node_modules/zod/v4/locales/hu.js +0 -117
  2473. package/node_modules/zod/v4/locales/id.cjs +0 -142
  2474. package/node_modules/zod/v4/locales/id.d.cts +0 -4
  2475. package/node_modules/zod/v4/locales/id.d.ts +0 -4
  2476. package/node_modules/zod/v4/locales/id.js +0 -116
  2477. package/node_modules/zod/v4/locales/index.cjs +0 -84
  2478. package/node_modules/zod/v4/locales/index.d.cts +0 -39
  2479. package/node_modules/zod/v4/locales/index.d.ts +0 -39
  2480. package/node_modules/zod/v4/locales/index.js +0 -39
  2481. package/node_modules/zod/v4/locales/it.cjs +0 -143
  2482. package/node_modules/zod/v4/locales/it.d.cts +0 -4
  2483. package/node_modules/zod/v4/locales/it.d.ts +0 -4
  2484. package/node_modules/zod/v4/locales/it.js +0 -117
  2485. package/node_modules/zod/v4/locales/ja.cjs +0 -141
  2486. package/node_modules/zod/v4/locales/ja.d.cts +0 -4
  2487. package/node_modules/zod/v4/locales/ja.d.ts +0 -4
  2488. package/node_modules/zod/v4/locales/ja.js +0 -115
  2489. package/node_modules/zod/v4/locales/kh.cjs +0 -143
  2490. package/node_modules/zod/v4/locales/kh.d.cts +0 -4
  2491. package/node_modules/zod/v4/locales/kh.d.ts +0 -4
  2492. package/node_modules/zod/v4/locales/kh.js +0 -117
  2493. package/node_modules/zod/v4/locales/ko.cjs +0 -147
  2494. package/node_modules/zod/v4/locales/ko.d.cts +0 -4
  2495. package/node_modules/zod/v4/locales/ko.d.ts +0 -4
  2496. package/node_modules/zod/v4/locales/ko.js +0 -121
  2497. package/node_modules/zod/v4/locales/mk.cjs +0 -144
  2498. package/node_modules/zod/v4/locales/mk.d.cts +0 -4
  2499. package/node_modules/zod/v4/locales/mk.d.ts +0 -4
  2500. package/node_modules/zod/v4/locales/mk.js +0 -118
  2501. package/node_modules/zod/v4/locales/ms.cjs +0 -142
  2502. package/node_modules/zod/v4/locales/ms.d.cts +0 -4
  2503. package/node_modules/zod/v4/locales/ms.d.ts +0 -4
  2504. package/node_modules/zod/v4/locales/ms.js +0 -116
  2505. package/node_modules/zod/v4/locales/nl.cjs +0 -143
  2506. package/node_modules/zod/v4/locales/nl.d.cts +0 -4
  2507. package/node_modules/zod/v4/locales/nl.d.ts +0 -4
  2508. package/node_modules/zod/v4/locales/nl.js +0 -117
  2509. package/node_modules/zod/v4/locales/no.cjs +0 -142
  2510. package/node_modules/zod/v4/locales/no.d.cts +0 -4
  2511. package/node_modules/zod/v4/locales/no.d.ts +0 -4
  2512. package/node_modules/zod/v4/locales/no.js +0 -116
  2513. package/node_modules/zod/v4/locales/ota.cjs +0 -143
  2514. package/node_modules/zod/v4/locales/ota.d.cts +0 -4
  2515. package/node_modules/zod/v4/locales/ota.d.ts +0 -4
  2516. package/node_modules/zod/v4/locales/ota.js +0 -117
  2517. package/node_modules/zod/v4/locales/pl.cjs +0 -143
  2518. package/node_modules/zod/v4/locales/pl.d.cts +0 -4
  2519. package/node_modules/zod/v4/locales/pl.d.ts +0 -4
  2520. package/node_modules/zod/v4/locales/pl.js +0 -117
  2521. package/node_modules/zod/v4/locales/ps.cjs +0 -148
  2522. package/node_modules/zod/v4/locales/ps.d.cts +0 -4
  2523. package/node_modules/zod/v4/locales/ps.d.ts +0 -4
  2524. package/node_modules/zod/v4/locales/ps.js +0 -122
  2525. package/node_modules/zod/v4/locales/pt.cjs +0 -142
  2526. package/node_modules/zod/v4/locales/pt.d.cts +0 -4
  2527. package/node_modules/zod/v4/locales/pt.d.ts +0 -4
  2528. package/node_modules/zod/v4/locales/pt.js +0 -116
  2529. package/node_modules/zod/v4/locales/ru.cjs +0 -190
  2530. package/node_modules/zod/v4/locales/ru.d.cts +0 -4
  2531. package/node_modules/zod/v4/locales/ru.d.ts +0 -4
  2532. package/node_modules/zod/v4/locales/ru.js +0 -164
  2533. package/node_modules/zod/v4/locales/sl.cjs +0 -143
  2534. package/node_modules/zod/v4/locales/sl.d.cts +0 -4
  2535. package/node_modules/zod/v4/locales/sl.d.ts +0 -4
  2536. package/node_modules/zod/v4/locales/sl.js +0 -117
  2537. package/node_modules/zod/v4/locales/sv.cjs +0 -144
  2538. package/node_modules/zod/v4/locales/sv.d.cts +0 -4
  2539. package/node_modules/zod/v4/locales/sv.d.ts +0 -4
  2540. package/node_modules/zod/v4/locales/sv.js +0 -118
  2541. package/node_modules/zod/v4/locales/ta.cjs +0 -143
  2542. package/node_modules/zod/v4/locales/ta.d.cts +0 -4
  2543. package/node_modules/zod/v4/locales/ta.d.ts +0 -4
  2544. package/node_modules/zod/v4/locales/ta.js +0 -117
  2545. package/node_modules/zod/v4/locales/th.cjs +0 -143
  2546. package/node_modules/zod/v4/locales/th.d.cts +0 -4
  2547. package/node_modules/zod/v4/locales/th.d.ts +0 -4
  2548. package/node_modules/zod/v4/locales/th.js +0 -117
  2549. package/node_modules/zod/v4/locales/tr.cjs +0 -143
  2550. package/node_modules/zod/v4/locales/tr.d.cts +0 -5
  2551. package/node_modules/zod/v4/locales/tr.d.ts +0 -5
  2552. package/node_modules/zod/v4/locales/tr.js +0 -115
  2553. package/node_modules/zod/v4/locales/ua.cjs +0 -143
  2554. package/node_modules/zod/v4/locales/ua.d.cts +0 -4
  2555. package/node_modules/zod/v4/locales/ua.d.ts +0 -4
  2556. package/node_modules/zod/v4/locales/ua.js +0 -117
  2557. package/node_modules/zod/v4/locales/ur.cjs +0 -143
  2558. package/node_modules/zod/v4/locales/ur.d.cts +0 -4
  2559. package/node_modules/zod/v4/locales/ur.d.ts +0 -4
  2560. package/node_modules/zod/v4/locales/ur.js +0 -117
  2561. package/node_modules/zod/v4/locales/vi.cjs +0 -142
  2562. package/node_modules/zod/v4/locales/vi.d.cts +0 -4
  2563. package/node_modules/zod/v4/locales/vi.d.ts +0 -4
  2564. package/node_modules/zod/v4/locales/vi.js +0 -116
  2565. package/node_modules/zod/v4/locales/zh-CN.cjs +0 -142
  2566. package/node_modules/zod/v4/locales/zh-CN.d.cts +0 -4
  2567. package/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
  2568. package/node_modules/zod/v4/locales/zh-CN.js +0 -116
  2569. package/node_modules/zod/v4/locales/zh-TW.cjs +0 -143
  2570. package/node_modules/zod/v4/locales/zh-TW.d.cts +0 -4
  2571. package/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
  2572. package/node_modules/zod/v4/locales/zh-TW.js +0 -117
  2573. package/node_modules/zod/v4/mini/checks.cjs +0 -34
  2574. package/node_modules/zod/v4/mini/checks.d.cts +0 -1
  2575. package/node_modules/zod/v4/mini/checks.d.ts +0 -1
  2576. package/node_modules/zod/v4/mini/checks.js +0 -1
  2577. package/node_modules/zod/v4/mini/coerce.cjs +0 -47
  2578. package/node_modules/zod/v4/mini/coerce.d.cts +0 -7
  2579. package/node_modules/zod/v4/mini/coerce.d.ts +0 -7
  2580. package/node_modules/zod/v4/mini/coerce.js +0 -17
  2581. package/node_modules/zod/v4/mini/external.cjs +0 -62
  2582. package/node_modules/zod/v4/mini/external.d.cts +0 -11
  2583. package/node_modules/zod/v4/mini/external.d.ts +0 -11
  2584. package/node_modules/zod/v4/mini/external.js +0 -13
  2585. package/node_modules/zod/v4/mini/index.cjs +0 -32
  2586. package/node_modules/zod/v4/mini/index.d.cts +0 -3
  2587. package/node_modules/zod/v4/mini/index.d.ts +0 -3
  2588. package/node_modules/zod/v4/mini/index.js +0 -3
  2589. package/node_modules/zod/v4/mini/iso.cjs +0 -60
  2590. package/node_modules/zod/v4/mini/iso.d.cts +0 -22
  2591. package/node_modules/zod/v4/mini/iso.d.ts +0 -22
  2592. package/node_modules/zod/v4/mini/iso.js +0 -30
  2593. package/node_modules/zod/v4/mini/parse.cjs +0 -8
  2594. package/node_modules/zod/v4/mini/parse.d.cts +0 -1
  2595. package/node_modules/zod/v4/mini/parse.d.ts +0 -1
  2596. package/node_modules/zod/v4/mini/parse.js +0 -1
  2597. package/node_modules/zod/v4/mini/schemas.cjs +0 -839
  2598. package/node_modules/zod/v4/mini/schemas.d.cts +0 -356
  2599. package/node_modules/zod/v4/mini/schemas.d.ts +0 -356
  2600. package/node_modules/zod/v4/mini/schemas.js +0 -732
  2601. package/node_modules/zod/v4-mini/index.cjs +0 -17
  2602. package/node_modules/zod/v4-mini/index.d.cts +0 -1
  2603. package/node_modules/zod/v4-mini/index.d.ts +0 -1
  2604. 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_