shell-mirror 1.5.24 → 1.5.26

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 (2458) hide show
  1. package/mac-agent/.env +9 -0
  2. package/mac-agent/.env.example +24 -0
  3. package/mac-agent/README.md +167 -0
  4. package/mac-agent/agent-debug.log +94 -0
  5. package/mac-agent/agent.js +403 -0
  6. package/mac-agent/authorized-users.json +35 -0
  7. package/mac-agent/http-agent.js +675 -0
  8. package/mac-agent/interactive-setup.js +183 -0
  9. package/mac-agent/logs/http-agent.log +823 -0
  10. package/mac-agent/manual-setup.js +140 -0
  11. package/mac-agent/node +0 -0
  12. package/mac-agent/node_modules/.package-lock.json +2255 -0
  13. package/mac-agent/node_modules/@colors/colors/LICENSE +26 -0
  14. package/mac-agent/node_modules/@colors/colors/README.md +219 -0
  15. package/mac-agent/node_modules/@colors/colors/examples/normal-usage.js +83 -0
  16. package/mac-agent/node_modules/@colors/colors/examples/safe-string.js +80 -0
  17. package/mac-agent/node_modules/@colors/colors/index.d.ts +184 -0
  18. package/mac-agent/node_modules/@colors/colors/lib/colors.js +211 -0
  19. package/mac-agent/node_modules/@colors/colors/lib/custom/trap.js +46 -0
  20. package/mac-agent/node_modules/@colors/colors/lib/custom/zalgo.js +110 -0
  21. package/mac-agent/node_modules/@colors/colors/lib/extendStringPrototype.js +110 -0
  22. package/mac-agent/node_modules/@colors/colors/lib/index.js +13 -0
  23. package/mac-agent/node_modules/@colors/colors/lib/maps/america.js +10 -0
  24. package/mac-agent/node_modules/@colors/colors/lib/maps/rainbow.js +12 -0
  25. package/mac-agent/node_modules/@colors/colors/lib/maps/random.js +11 -0
  26. package/mac-agent/node_modules/@colors/colors/lib/maps/zebra.js +5 -0
  27. package/mac-agent/node_modules/@colors/colors/lib/styles.js +95 -0
  28. package/mac-agent/node_modules/@colors/colors/lib/system/has-flag.js +35 -0
  29. package/mac-agent/node_modules/@colors/colors/lib/system/supports-colors.js +151 -0
  30. package/mac-agent/node_modules/@colors/colors/package.json +45 -0
  31. package/mac-agent/node_modules/@colors/colors/safe.d.ts +64 -0
  32. package/mac-agent/node_modules/@colors/colors/safe.js +10 -0
  33. package/mac-agent/node_modules/@colors/colors/themes/generic-logging.js +12 -0
  34. package/mac-agent/node_modules/@dabh/diagnostics/CHANGELOG.md +26 -0
  35. package/mac-agent/node_modules/@dabh/diagnostics/LICENSE +20 -0
  36. package/mac-agent/node_modules/@dabh/diagnostics/README.md +473 -0
  37. package/mac-agent/node_modules/@dabh/diagnostics/adapters/hash.js +11 -0
  38. package/mac-agent/node_modules/@dabh/diagnostics/adapters/index.js +18 -0
  39. package/mac-agent/node_modules/@dabh/diagnostics/adapters/localstorage.js +11 -0
  40. package/mac-agent/node_modules/@dabh/diagnostics/adapters/process.env.js +11 -0
  41. package/mac-agent/node_modules/@dabh/diagnostics/browser/development.js +35 -0
  42. package/mac-agent/node_modules/@dabh/diagnostics/browser/index.js +8 -0
  43. package/mac-agent/node_modules/@dabh/diagnostics/browser/override.js +6 -0
  44. package/mac-agent/node_modules/@dabh/diagnostics/browser/production.js +24 -0
  45. package/mac-agent/node_modules/@dabh/diagnostics/diagnostics.js +212 -0
  46. package/mac-agent/node_modules/@dabh/diagnostics/logger/console.js +19 -0
  47. package/mac-agent/node_modules/@dabh/diagnostics/modifiers/namespace-ansi.js +20 -0
  48. package/mac-agent/node_modules/@dabh/diagnostics/modifiers/namespace.js +32 -0
  49. package/mac-agent/node_modules/@dabh/diagnostics/node/development.js +36 -0
  50. package/mac-agent/node_modules/@dabh/diagnostics/node/index.js +8 -0
  51. package/mac-agent/node_modules/@dabh/diagnostics/node/override.js +21 -0
  52. package/mac-agent/node_modules/@dabh/diagnostics/node/production.js +24 -0
  53. package/mac-agent/node_modules/@dabh/diagnostics/package.json +64 -0
  54. package/mac-agent/node_modules/@koush/wrtc/CMakeLists.txt +664 -0
  55. package/mac-agent/node_modules/@koush/wrtc/LICENSE.md +30 -0
  56. package/mac-agent/node_modules/@koush/wrtc/NodeJS.cmake +638 -0
  57. package/mac-agent/node_modules/@koush/wrtc/README.md +120 -0
  58. package/mac-agent/node_modules/@koush/wrtc/THIRD_PARTY_LICENSES.md +1314 -0
  59. package/mac-agent/node_modules/@koush/wrtc/build/Release/wrtc.node +0 -0
  60. package/mac-agent/node_modules/@koush/wrtc/build-linux-variants.sh +10 -0
  61. package/mac-agent/node_modules/@koush/wrtc/build-mac-variants.sh +14 -0
  62. package/mac-agent/node_modules/@koush/wrtc/clean.sh +2 -0
  63. package/mac-agent/node_modules/@koush/wrtc/lib/binding.js +7 -0
  64. package/mac-agent/node_modules/@koush/wrtc/lib/browser.js +18 -0
  65. package/mac-agent/node_modules/@koush/wrtc/lib/datachannelevent.js +26 -0
  66. package/mac-agent/node_modules/@koush/wrtc/lib/datachannelmessageevent.js +9 -0
  67. package/mac-agent/node_modules/@koush/wrtc/lib/error.js +20 -0
  68. package/mac-agent/node_modules/@koush/wrtc/lib/eventtarget.js +50 -0
  69. package/mac-agent/node_modules/@koush/wrtc/lib/icecandidate.js +28 -0
  70. package/mac-agent/node_modules/@koush/wrtc/lib/index.js +81 -0
  71. package/mac-agent/node_modules/@koush/wrtc/lib/mediadevices.js +24 -0
  72. package/mac-agent/node_modules/@koush/wrtc/lib/peerconnection.js +313 -0
  73. package/mac-agent/node_modules/@koush/wrtc/lib/rtcpeerconnectioniceerrorevent.js +36 -0
  74. package/mac-agent/node_modules/@koush/wrtc/lib/rtcpeerconnectioniceevent.js +20 -0
  75. package/mac-agent/node_modules/@koush/wrtc/lib/sessiondescription.js +10 -0
  76. package/mac-agent/node_modules/@koush/wrtc/package.json +95 -0
  77. package/mac-agent/node_modules/@koush/wrtc/scripts/build-appveyor.bat +73 -0
  78. package/mac-agent/node_modules/@koush/wrtc/scripts/build-from-source.js +45 -0
  79. package/mac-agent/node_modules/@koush/wrtc/scripts/build-webrtc.bat +20 -0
  80. package/mac-agent/node_modules/@koush/wrtc/scripts/build-webrtc.sh +23 -0
  81. package/mac-agent/node_modules/@koush/wrtc/scripts/configure-webrtc.bat +28 -0
  82. package/mac-agent/node_modules/@koush/wrtc/scripts/configure-webrtc.sh +25 -0
  83. package/mac-agent/node_modules/@koush/wrtc/scripts/download-prebuilt-or-build-from-source.js +25 -0
  84. package/mac-agent/node_modules/@koush/wrtc/scripts/download-prebuilt.js +35 -0
  85. package/mac-agent/node_modules/@koush/wrtc/scripts/download-webrtc.bat +47 -0
  86. package/mac-agent/node_modules/@koush/wrtc/scripts/download-webrtc.sh +21 -0
  87. package/mac-agent/node_modules/@koush/wrtc/scripts/install-example.js +80 -0
  88. package/mac-agent/node_modules/@koush/wrtc/scripts/karma.js +70 -0
  89. package/mac-agent/node_modules/@koush/wrtc/scripts/pack-webrtc.bat +1 -0
  90. package/mac-agent/node_modules/@koush/wrtc/scripts/pack-webrtc.js +93 -0
  91. package/mac-agent/node_modules/@koush/wrtc/scripts/pack-webrtc.sh +38 -0
  92. package/mac-agent/node_modules/@koush/wrtc/scripts/publish-to-npm.js +98 -0
  93. package/mac-agent/node_modules/@koush/wrtc/scripts/publish.js +26 -0
  94. package/mac-agent/node_modules/@koush/wrtc/scripts/run-tests.bat +25 -0
  95. package/mac-agent/node_modules/@koush/wrtc/scripts/unpack-webrtc.bat +1 -0
  96. package/mac-agent/node_modules/@koush/wrtc/scripts/unpack-webrtc.js +36 -0
  97. package/mac-agent/node_modules/@koush/wrtc/scripts/unpack-webrtc.sh +28 -0
  98. package/mac-agent/node_modules/@mapbox/node-pre-gyp/.github/workflows/codeql.yml +74 -0
  99. package/mac-agent/node_modules/@mapbox/node-pre-gyp/CHANGELOG.md +510 -0
  100. package/mac-agent/node_modules/@mapbox/node-pre-gyp/LICENSE +27 -0
  101. package/mac-agent/node_modules/@mapbox/node-pre-gyp/README.md +742 -0
  102. package/mac-agent/node_modules/@mapbox/node-pre-gyp/bin/node-pre-gyp +4 -0
  103. package/mac-agent/node_modules/@mapbox/node-pre-gyp/bin/node-pre-gyp.cmd +2 -0
  104. package/mac-agent/node_modules/@mapbox/node-pre-gyp/contributing.md +10 -0
  105. package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/build.js +51 -0
  106. package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/clean.js +31 -0
  107. package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/configure.js +52 -0
  108. package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/info.js +38 -0
  109. package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/install.js +235 -0
  110. package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/main.js +125 -0
  111. package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js +309 -0
  112. package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/package.js +73 -0
  113. package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/pre-binding.js +34 -0
  114. package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/publish.js +81 -0
  115. package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/rebuild.js +20 -0
  116. package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/reinstall.js +19 -0
  117. package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/reveal.js +32 -0
  118. package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/testbinary.js +79 -0
  119. package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/testpackage.js +53 -0
  120. package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/unpublish.js +41 -0
  121. package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/util/abi_crosswalk.json +2602 -0
  122. package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js +93 -0
  123. package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/util/handle_gyp_opts.js +102 -0
  124. package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/util/napi.js +205 -0
  125. package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/index.html +26 -0
  126. package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/package.json +9 -0
  127. package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js +163 -0
  128. package/mac-agent/node_modules/@mapbox/node-pre-gyp/lib/util/versioning.js +335 -0
  129. package/mac-agent/node_modules/@mapbox/node-pre-gyp/package.json +62 -0
  130. package/mac-agent/node_modules/@types/triple-beam/LICENSE +21 -0
  131. package/mac-agent/node_modules/@types/triple-beam/README.md +36 -0
  132. package/mac-agent/node_modules/@types/triple-beam/index.d.ts +17 -0
  133. package/mac-agent/node_modules/@types/triple-beam/package.json +25 -0
  134. package/mac-agent/node_modules/abbrev/LICENSE +46 -0
  135. package/mac-agent/node_modules/abbrev/README.md +23 -0
  136. package/mac-agent/node_modules/abbrev/abbrev.js +61 -0
  137. package/mac-agent/node_modules/abbrev/package.json +21 -0
  138. package/mac-agent/node_modules/agent-base/README.md +145 -0
  139. package/mac-agent/node_modules/agent-base/dist/src/index.d.ts +78 -0
  140. package/mac-agent/node_modules/agent-base/dist/src/index.js +203 -0
  141. package/mac-agent/node_modules/agent-base/dist/src/index.js.map +1 -0
  142. package/mac-agent/node_modules/agent-base/dist/src/promisify.d.ts +4 -0
  143. package/mac-agent/node_modules/agent-base/dist/src/promisify.js +18 -0
  144. package/mac-agent/node_modules/agent-base/dist/src/promisify.js.map +1 -0
  145. package/mac-agent/node_modules/agent-base/package.json +64 -0
  146. package/mac-agent/node_modules/agent-base/src/index.ts +345 -0
  147. package/mac-agent/node_modules/agent-base/src/promisify.ts +33 -0
  148. package/mac-agent/node_modules/ansi-regex/index.d.ts +37 -0
  149. package/mac-agent/node_modules/ansi-regex/index.js +10 -0
  150. package/mac-agent/node_modules/ansi-regex/license +9 -0
  151. package/mac-agent/node_modules/ansi-regex/package.json +55 -0
  152. package/mac-agent/node_modules/ansi-regex/readme.md +78 -0
  153. package/mac-agent/node_modules/anymatch/LICENSE +15 -0
  154. package/mac-agent/node_modules/anymatch/README.md +87 -0
  155. package/mac-agent/node_modules/anymatch/index.d.ts +20 -0
  156. package/mac-agent/node_modules/anymatch/index.js +104 -0
  157. package/mac-agent/node_modules/anymatch/package.json +48 -0
  158. package/mac-agent/node_modules/aproba/LICENSE +14 -0
  159. package/mac-agent/node_modules/aproba/README.md +94 -0
  160. package/mac-agent/node_modules/aproba/index.js +105 -0
  161. package/mac-agent/node_modules/aproba/package.json +35 -0
  162. package/mac-agent/node_modules/are-we-there-yet/LICENSE.md +18 -0
  163. package/mac-agent/node_modules/are-we-there-yet/README.md +208 -0
  164. package/mac-agent/node_modules/are-we-there-yet/lib/index.js +4 -0
  165. package/mac-agent/node_modules/are-we-there-yet/lib/tracker-base.js +11 -0
  166. package/mac-agent/node_modules/are-we-there-yet/lib/tracker-group.js +116 -0
  167. package/mac-agent/node_modules/are-we-there-yet/lib/tracker-stream.js +36 -0
  168. package/mac-agent/node_modules/are-we-there-yet/lib/tracker.js +32 -0
  169. package/mac-agent/node_modules/are-we-there-yet/package.json +53 -0
  170. package/mac-agent/node_modules/async/CHANGELOG.md +351 -0
  171. package/mac-agent/node_modules/async/LICENSE +19 -0
  172. package/mac-agent/node_modules/async/README.md +59 -0
  173. package/mac-agent/node_modules/async/all.js +119 -0
  174. package/mac-agent/node_modules/async/allLimit.js +46 -0
  175. package/mac-agent/node_modules/async/allSeries.js +45 -0
  176. package/mac-agent/node_modules/async/any.js +122 -0
  177. package/mac-agent/node_modules/async/anyLimit.js +47 -0
  178. package/mac-agent/node_modules/async/anySeries.js +46 -0
  179. package/mac-agent/node_modules/async/apply.js +11 -0
  180. package/mac-agent/node_modules/async/applyEach.js +57 -0
  181. package/mac-agent/node_modules/async/applyEachSeries.js +37 -0
  182. package/mac-agent/node_modules/async/asyncify.js +118 -0
  183. package/mac-agent/node_modules/async/auto.js +333 -0
  184. package/mac-agent/node_modules/async/autoInject.js +182 -0
  185. package/mac-agent/node_modules/async/bower.json +17 -0
  186. package/mac-agent/node_modules/async/cargo.js +63 -0
  187. package/mac-agent/node_modules/async/cargoQueue.js +71 -0
  188. package/mac-agent/node_modules/async/compose.js +55 -0
  189. package/mac-agent/node_modules/async/concat.js +115 -0
  190. package/mac-agent/node_modules/async/concatLimit.js +60 -0
  191. package/mac-agent/node_modules/async/concatSeries.js +41 -0
  192. package/mac-agent/node_modules/async/constant.js +14 -0
  193. package/mac-agent/node_modules/async/detect.js +96 -0
  194. package/mac-agent/node_modules/async/detectLimit.js +48 -0
  195. package/mac-agent/node_modules/async/detectSeries.js +47 -0
  196. package/mac-agent/node_modules/async/dir.js +43 -0
  197. package/mac-agent/node_modules/async/dist/async.js +6061 -0
  198. package/mac-agent/node_modules/async/dist/async.min.js +1 -0
  199. package/mac-agent/node_modules/async/dist/async.mjs +5948 -0
  200. package/mac-agent/node_modules/async/doDuring.js +68 -0
  201. package/mac-agent/node_modules/async/doUntil.js +46 -0
  202. package/mac-agent/node_modules/async/doWhilst.js +68 -0
  203. package/mac-agent/node_modules/async/during.js +78 -0
  204. package/mac-agent/node_modules/async/each.js +129 -0
  205. package/mac-agent/node_modules/async/eachLimit.js +50 -0
  206. package/mac-agent/node_modules/async/eachOf.js +185 -0
  207. package/mac-agent/node_modules/async/eachOfLimit.js +47 -0
  208. package/mac-agent/node_modules/async/eachOfSeries.js +39 -0
  209. package/mac-agent/node_modules/async/eachSeries.js +44 -0
  210. package/mac-agent/node_modules/async/ensureAsync.js +67 -0
  211. package/mac-agent/node_modules/async/every.js +119 -0
  212. package/mac-agent/node_modules/async/everyLimit.js +46 -0
  213. package/mac-agent/node_modules/async/everySeries.js +45 -0
  214. package/mac-agent/node_modules/async/filter.js +93 -0
  215. package/mac-agent/node_modules/async/filterLimit.js +45 -0
  216. package/mac-agent/node_modules/async/filterSeries.js +43 -0
  217. package/mac-agent/node_modules/async/find.js +96 -0
  218. package/mac-agent/node_modules/async/findLimit.js +48 -0
  219. package/mac-agent/node_modules/async/findSeries.js +47 -0
  220. package/mac-agent/node_modules/async/flatMap.js +115 -0
  221. package/mac-agent/node_modules/async/flatMapLimit.js +60 -0
  222. package/mac-agent/node_modules/async/flatMapSeries.js +41 -0
  223. package/mac-agent/node_modules/async/foldl.js +153 -0
  224. package/mac-agent/node_modules/async/foldr.js +41 -0
  225. package/mac-agent/node_modules/async/forEach.js +129 -0
  226. package/mac-agent/node_modules/async/forEachLimit.js +50 -0
  227. package/mac-agent/node_modules/async/forEachOf.js +185 -0
  228. package/mac-agent/node_modules/async/forEachOfLimit.js +47 -0
  229. package/mac-agent/node_modules/async/forEachOfSeries.js +39 -0
  230. package/mac-agent/node_modules/async/forEachSeries.js +44 -0
  231. package/mac-agent/node_modules/async/forever.js +68 -0
  232. package/mac-agent/node_modules/async/groupBy.js +108 -0
  233. package/mac-agent/node_modules/async/groupByLimit.js +71 -0
  234. package/mac-agent/node_modules/async/groupBySeries.js +36 -0
  235. package/mac-agent/node_modules/async/index.js +588 -0
  236. package/mac-agent/node_modules/async/inject.js +153 -0
  237. package/mac-agent/node_modules/async/internal/DoublyLinkedList.js +92 -0
  238. package/mac-agent/node_modules/async/internal/Heap.js +120 -0
  239. package/mac-agent/node_modules/async/internal/applyEach.js +29 -0
  240. package/mac-agent/node_modules/async/internal/asyncEachOfLimit.js +75 -0
  241. package/mac-agent/node_modules/async/internal/awaitify.js +28 -0
  242. package/mac-agent/node_modules/async/internal/breakLoop.js +10 -0
  243. package/mac-agent/node_modules/async/internal/consoleFunc.js +31 -0
  244. package/mac-agent/node_modules/async/internal/createTester.js +40 -0
  245. package/mac-agent/node_modules/async/internal/eachOfLimit.js +90 -0
  246. package/mac-agent/node_modules/async/internal/filter.js +55 -0
  247. package/mac-agent/node_modules/async/internal/getIterator.js +11 -0
  248. package/mac-agent/node_modules/async/internal/initialParams.js +14 -0
  249. package/mac-agent/node_modules/async/internal/isArrayLike.js +10 -0
  250. package/mac-agent/node_modules/async/internal/iterator.js +57 -0
  251. package/mac-agent/node_modules/async/internal/map.js +30 -0
  252. package/mac-agent/node_modules/async/internal/once.js +17 -0
  253. package/mac-agent/node_modules/async/internal/onlyOnce.js +15 -0
  254. package/mac-agent/node_modules/async/internal/parallel.js +34 -0
  255. package/mac-agent/node_modules/async/internal/promiseCallback.js +23 -0
  256. package/mac-agent/node_modules/async/internal/queue.js +294 -0
  257. package/mac-agent/node_modules/async/internal/range.js +14 -0
  258. package/mac-agent/node_modules/async/internal/reject.js +26 -0
  259. package/mac-agent/node_modules/async/internal/setImmediate.js +34 -0
  260. package/mac-agent/node_modules/async/internal/withoutIndex.js +10 -0
  261. package/mac-agent/node_modules/async/internal/wrapAsync.js +34 -0
  262. package/mac-agent/node_modules/async/log.js +41 -0
  263. package/mac-agent/node_modules/async/map.js +142 -0
  264. package/mac-agent/node_modules/async/mapLimit.js +45 -0
  265. package/mac-agent/node_modules/async/mapSeries.js +44 -0
  266. package/mac-agent/node_modules/async/mapValues.js +152 -0
  267. package/mac-agent/node_modules/async/mapValuesLimit.js +61 -0
  268. package/mac-agent/node_modules/async/mapValuesSeries.js +37 -0
  269. package/mac-agent/node_modules/async/memoize.js +91 -0
  270. package/mac-agent/node_modules/async/nextTick.js +52 -0
  271. package/mac-agent/node_modules/async/package.json +75 -0
  272. package/mac-agent/node_modules/async/parallel.js +180 -0
  273. package/mac-agent/node_modules/async/parallelLimit.js +41 -0
  274. package/mac-agent/node_modules/async/priorityQueue.js +60 -0
  275. package/mac-agent/node_modules/async/queue.js +24 -0
  276. package/mac-agent/node_modules/async/race.js +67 -0
  277. package/mac-agent/node_modules/async/reduce.js +153 -0
  278. package/mac-agent/node_modules/async/reduceRight.js +41 -0
  279. package/mac-agent/node_modules/async/reflect.js +78 -0
  280. package/mac-agent/node_modules/async/reflectAll.js +93 -0
  281. package/mac-agent/node_modules/async/reject.js +87 -0
  282. package/mac-agent/node_modules/async/rejectLimit.js +45 -0
  283. package/mac-agent/node_modules/async/rejectSeries.js +43 -0
  284. package/mac-agent/node_modules/async/retry.js +159 -0
  285. package/mac-agent/node_modules/async/retryable.js +77 -0
  286. package/mac-agent/node_modules/async/select.js +93 -0
  287. package/mac-agent/node_modules/async/selectLimit.js +45 -0
  288. package/mac-agent/node_modules/async/selectSeries.js +43 -0
  289. package/mac-agent/node_modules/async/seq.js +79 -0
  290. package/mac-agent/node_modules/async/series.js +186 -0
  291. package/mac-agent/node_modules/async/setImmediate.js +45 -0
  292. package/mac-agent/node_modules/async/some.js +122 -0
  293. package/mac-agent/node_modules/async/someLimit.js +47 -0
  294. package/mac-agent/node_modules/async/someSeries.js +46 -0
  295. package/mac-agent/node_modules/async/sortBy.js +190 -0
  296. package/mac-agent/node_modules/async/timeout.js +89 -0
  297. package/mac-agent/node_modules/async/times.js +50 -0
  298. package/mac-agent/node_modules/async/timesLimit.js +43 -0
  299. package/mac-agent/node_modules/async/timesSeries.js +32 -0
  300. package/mac-agent/node_modules/async/transform.js +173 -0
  301. package/mac-agent/node_modules/async/tryEach.js +78 -0
  302. package/mac-agent/node_modules/async/unmemoize.js +25 -0
  303. package/mac-agent/node_modules/async/until.js +61 -0
  304. package/mac-agent/node_modules/async/waterfall.js +105 -0
  305. package/mac-agent/node_modules/async/whilst.js +78 -0
  306. package/mac-agent/node_modules/async/wrapSync.js +118 -0
  307. package/mac-agent/node_modules/asynckit/LICENSE +21 -0
  308. package/mac-agent/node_modules/asynckit/README.md +233 -0
  309. package/mac-agent/node_modules/asynckit/bench.js +76 -0
  310. package/mac-agent/node_modules/asynckit/index.js +6 -0
  311. package/mac-agent/node_modules/asynckit/lib/abort.js +29 -0
  312. package/mac-agent/node_modules/asynckit/lib/async.js +34 -0
  313. package/mac-agent/node_modules/asynckit/lib/defer.js +26 -0
  314. package/mac-agent/node_modules/asynckit/lib/iterate.js +75 -0
  315. package/mac-agent/node_modules/asynckit/lib/readable_asynckit.js +91 -0
  316. package/mac-agent/node_modules/asynckit/lib/readable_parallel.js +25 -0
  317. package/mac-agent/node_modules/asynckit/lib/readable_serial.js +25 -0
  318. package/mac-agent/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
  319. package/mac-agent/node_modules/asynckit/lib/state.js +37 -0
  320. package/mac-agent/node_modules/asynckit/lib/streamify.js +141 -0
  321. package/mac-agent/node_modules/asynckit/lib/terminator.js +29 -0
  322. package/mac-agent/node_modules/asynckit/package.json +63 -0
  323. package/mac-agent/node_modules/asynckit/parallel.js +43 -0
  324. package/mac-agent/node_modules/asynckit/serial.js +17 -0
  325. package/mac-agent/node_modules/asynckit/serialOrdered.js +75 -0
  326. package/mac-agent/node_modules/asynckit/stream.js +21 -0
  327. package/mac-agent/node_modules/axios/CHANGELOG.md +1220 -0
  328. package/mac-agent/node_modules/axios/LICENSE +7 -0
  329. package/mac-agent/node_modules/axios/MIGRATION_GUIDE.md +3 -0
  330. package/mac-agent/node_modules/axios/README.md +1682 -0
  331. package/mac-agent/node_modules/axios/dist/axios.js +4296 -0
  332. package/mac-agent/node_modules/axios/dist/axios.js.map +1 -0
  333. package/mac-agent/node_modules/axios/dist/axios.min.js +3 -0
  334. package/mac-agent/node_modules/axios/dist/axios.min.js.map +1 -0
  335. package/mac-agent/node_modules/axios/dist/browser/axios.cjs +3730 -0
  336. package/mac-agent/node_modules/axios/dist/browser/axios.cjs.map +1 -0
  337. package/mac-agent/node_modules/axios/dist/esm/axios.js +3753 -0
  338. package/mac-agent/node_modules/axios/dist/esm/axios.js.map +1 -0
  339. package/mac-agent/node_modules/axios/dist/esm/axios.min.js +3 -0
  340. package/mac-agent/node_modules/axios/dist/esm/axios.min.js.map +1 -0
  341. package/mac-agent/node_modules/axios/dist/node/axios.cjs +4787 -0
  342. package/mac-agent/node_modules/axios/dist/node/axios.cjs.map +1 -0
  343. package/mac-agent/node_modules/axios/index.d.cts +550 -0
  344. package/mac-agent/node_modules/axios/index.d.ts +572 -0
  345. package/mac-agent/node_modules/axios/index.js +43 -0
  346. package/mac-agent/node_modules/axios/lib/adapters/README.md +37 -0
  347. package/mac-agent/node_modules/axios/lib/adapters/adapters.js +79 -0
  348. package/mac-agent/node_modules/axios/lib/adapters/fetch.js +229 -0
  349. package/mac-agent/node_modules/axios/lib/adapters/http.js +695 -0
  350. package/mac-agent/node_modules/axios/lib/adapters/xhr.js +197 -0
  351. package/mac-agent/node_modules/axios/lib/axios.js +89 -0
  352. package/mac-agent/node_modules/axios/lib/cancel/CancelToken.js +135 -0
  353. package/mac-agent/node_modules/axios/lib/cancel/CanceledError.js +25 -0
  354. package/mac-agent/node_modules/axios/lib/cancel/isCancel.js +5 -0
  355. package/mac-agent/node_modules/axios/lib/core/Axios.js +242 -0
  356. package/mac-agent/node_modules/axios/lib/core/AxiosError.js +103 -0
  357. package/mac-agent/node_modules/axios/lib/core/AxiosHeaders.js +314 -0
  358. package/mac-agent/node_modules/axios/lib/core/InterceptorManager.js +71 -0
  359. package/mac-agent/node_modules/axios/lib/core/README.md +8 -0
  360. package/mac-agent/node_modules/axios/lib/core/buildFullPath.js +22 -0
  361. package/mac-agent/node_modules/axios/lib/core/dispatchRequest.js +81 -0
  362. package/mac-agent/node_modules/axios/lib/core/mergeConfig.js +106 -0
  363. package/mac-agent/node_modules/axios/lib/core/settle.js +27 -0
  364. package/mac-agent/node_modules/axios/lib/core/transformData.js +28 -0
  365. package/mac-agent/node_modules/axios/lib/defaults/index.js +161 -0
  366. package/mac-agent/node_modules/axios/lib/defaults/transitional.js +7 -0
  367. package/mac-agent/node_modules/axios/lib/env/README.md +3 -0
  368. package/mac-agent/node_modules/axios/lib/env/classes/FormData.js +2 -0
  369. package/mac-agent/node_modules/axios/lib/env/data.js +1 -0
  370. package/mac-agent/node_modules/axios/lib/helpers/AxiosTransformStream.js +143 -0
  371. package/mac-agent/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +58 -0
  372. package/mac-agent/node_modules/axios/lib/helpers/HttpStatusCode.js +71 -0
  373. package/mac-agent/node_modules/axios/lib/helpers/README.md +7 -0
  374. package/mac-agent/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +28 -0
  375. package/mac-agent/node_modules/axios/lib/helpers/bind.js +7 -0
  376. package/mac-agent/node_modules/axios/lib/helpers/buildURL.js +69 -0
  377. package/mac-agent/node_modules/axios/lib/helpers/callbackify.js +16 -0
  378. package/mac-agent/node_modules/axios/lib/helpers/combineURLs.js +15 -0
  379. package/mac-agent/node_modules/axios/lib/helpers/composeSignals.js +48 -0
  380. package/mac-agent/node_modules/axios/lib/helpers/cookies.js +42 -0
  381. package/mac-agent/node_modules/axios/lib/helpers/deprecatedMethod.js +26 -0
  382. package/mac-agent/node_modules/axios/lib/helpers/formDataToJSON.js +95 -0
  383. package/mac-agent/node_modules/axios/lib/helpers/formDataToStream.js +112 -0
  384. package/mac-agent/node_modules/axios/lib/helpers/fromDataURI.js +53 -0
  385. package/mac-agent/node_modules/axios/lib/helpers/isAbsoluteURL.js +15 -0
  386. package/mac-agent/node_modules/axios/lib/helpers/isAxiosError.js +14 -0
  387. package/mac-agent/node_modules/axios/lib/helpers/isURLSameOrigin.js +14 -0
  388. package/mac-agent/node_modules/axios/lib/helpers/null.js +2 -0
  389. package/mac-agent/node_modules/axios/lib/helpers/parseHeaders.js +55 -0
  390. package/mac-agent/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
  391. package/mac-agent/node_modules/axios/lib/helpers/progressEventReducer.js +44 -0
  392. package/mac-agent/node_modules/axios/lib/helpers/readBlob.js +15 -0
  393. package/mac-agent/node_modules/axios/lib/helpers/resolveConfig.js +57 -0
  394. package/mac-agent/node_modules/axios/lib/helpers/speedometer.js +55 -0
  395. package/mac-agent/node_modules/axios/lib/helpers/spread.js +28 -0
  396. package/mac-agent/node_modules/axios/lib/helpers/throttle.js +44 -0
  397. package/mac-agent/node_modules/axios/lib/helpers/toFormData.js +223 -0
  398. package/mac-agent/node_modules/axios/lib/helpers/toURLEncodedForm.js +18 -0
  399. package/mac-agent/node_modules/axios/lib/helpers/trackStream.js +87 -0
  400. package/mac-agent/node_modules/axios/lib/helpers/validator.js +99 -0
  401. package/mac-agent/node_modules/axios/lib/platform/browser/classes/Blob.js +3 -0
  402. package/mac-agent/node_modules/axios/lib/platform/browser/classes/FormData.js +3 -0
  403. package/mac-agent/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +4 -0
  404. package/mac-agent/node_modules/axios/lib/platform/browser/index.js +13 -0
  405. package/mac-agent/node_modules/axios/lib/platform/common/utils.js +51 -0
  406. package/mac-agent/node_modules/axios/lib/platform/index.js +7 -0
  407. package/mac-agent/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
  408. package/mac-agent/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +4 -0
  409. package/mac-agent/node_modules/axios/lib/platform/node/index.js +38 -0
  410. package/mac-agent/node_modules/axios/lib/utils.js +744 -0
  411. package/mac-agent/node_modules/axios/package.json +228 -0
  412. package/mac-agent/node_modules/balanced-match/.github/FUNDING.yml +2 -0
  413. package/mac-agent/node_modules/balanced-match/LICENSE.md +21 -0
  414. package/mac-agent/node_modules/balanced-match/README.md +97 -0
  415. package/mac-agent/node_modules/balanced-match/index.js +62 -0
  416. package/mac-agent/node_modules/balanced-match/package.json +48 -0
  417. package/mac-agent/node_modules/binary-extensions/binary-extensions.json +263 -0
  418. package/mac-agent/node_modules/binary-extensions/binary-extensions.json.d.ts +3 -0
  419. package/mac-agent/node_modules/binary-extensions/index.d.ts +14 -0
  420. package/mac-agent/node_modules/binary-extensions/index.js +1 -0
  421. package/mac-agent/node_modules/binary-extensions/license +10 -0
  422. package/mac-agent/node_modules/binary-extensions/package.json +40 -0
  423. package/mac-agent/node_modules/binary-extensions/readme.md +25 -0
  424. package/mac-agent/node_modules/brace-expansion/LICENSE +21 -0
  425. package/mac-agent/node_modules/brace-expansion/README.md +129 -0
  426. package/mac-agent/node_modules/brace-expansion/index.js +201 -0
  427. package/mac-agent/node_modules/brace-expansion/package.json +50 -0
  428. package/mac-agent/node_modules/braces/LICENSE +21 -0
  429. package/mac-agent/node_modules/braces/README.md +586 -0
  430. package/mac-agent/node_modules/braces/index.js +170 -0
  431. package/mac-agent/node_modules/braces/lib/compile.js +60 -0
  432. package/mac-agent/node_modules/braces/lib/constants.js +57 -0
  433. package/mac-agent/node_modules/braces/lib/expand.js +113 -0
  434. package/mac-agent/node_modules/braces/lib/parse.js +331 -0
  435. package/mac-agent/node_modules/braces/lib/stringify.js +32 -0
  436. package/mac-agent/node_modules/braces/lib/utils.js +122 -0
  437. package/mac-agent/node_modules/braces/package.json +77 -0
  438. package/mac-agent/node_modules/call-bind/.eslintignore +1 -0
  439. package/mac-agent/node_modules/call-bind/.eslintrc +16 -0
  440. package/mac-agent/node_modules/call-bind/.github/FUNDING.yml +12 -0
  441. package/mac-agent/node_modules/call-bind/.nycrc +9 -0
  442. package/mac-agent/node_modules/call-bind/CHANGELOG.md +106 -0
  443. package/mac-agent/node_modules/call-bind/LICENSE +21 -0
  444. package/mac-agent/node_modules/call-bind/README.md +64 -0
  445. package/mac-agent/node_modules/call-bind/callBound.js +15 -0
  446. package/mac-agent/node_modules/call-bind/index.js +24 -0
  447. package/mac-agent/node_modules/call-bind/package.json +93 -0
  448. package/mac-agent/node_modules/call-bind/test/callBound.js +54 -0
  449. package/mac-agent/node_modules/call-bind/test/index.js +74 -0
  450. package/mac-agent/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
  451. package/mac-agent/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
  452. package/mac-agent/node_modules/call-bind-apply-helpers/.nycrc +9 -0
  453. package/mac-agent/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
  454. package/mac-agent/node_modules/call-bind-apply-helpers/LICENSE +21 -0
  455. package/mac-agent/node_modules/call-bind-apply-helpers/README.md +62 -0
  456. package/mac-agent/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
  457. package/mac-agent/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
  458. package/mac-agent/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
  459. package/mac-agent/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
  460. package/mac-agent/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
  461. package/mac-agent/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
  462. package/mac-agent/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
  463. package/mac-agent/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
  464. package/mac-agent/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
  465. package/mac-agent/node_modules/call-bind-apply-helpers/index.js +15 -0
  466. package/mac-agent/node_modules/call-bind-apply-helpers/package.json +85 -0
  467. package/mac-agent/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
  468. package/mac-agent/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
  469. package/mac-agent/node_modules/call-bind-apply-helpers/test/index.js +63 -0
  470. package/mac-agent/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
  471. package/mac-agent/node_modules/call-bound/.eslintrc +13 -0
  472. package/mac-agent/node_modules/call-bound/.github/FUNDING.yml +12 -0
  473. package/mac-agent/node_modules/call-bound/.nycrc +9 -0
  474. package/mac-agent/node_modules/call-bound/CHANGELOG.md +42 -0
  475. package/mac-agent/node_modules/call-bound/LICENSE +21 -0
  476. package/mac-agent/node_modules/call-bound/README.md +53 -0
  477. package/mac-agent/node_modules/call-bound/index.d.ts +94 -0
  478. package/mac-agent/node_modules/call-bound/index.js +19 -0
  479. package/mac-agent/node_modules/call-bound/package.json +99 -0
  480. package/mac-agent/node_modules/call-bound/test/index.js +61 -0
  481. package/mac-agent/node_modules/call-bound/tsconfig.json +10 -0
  482. package/mac-agent/node_modules/camelcase/index.js +56 -0
  483. package/mac-agent/node_modules/camelcase/license +21 -0
  484. package/mac-agent/node_modules/camelcase/package.json +39 -0
  485. package/mac-agent/node_modules/camelcase/readme.md +57 -0
  486. package/mac-agent/node_modules/chokidar/LICENSE +21 -0
  487. package/mac-agent/node_modules/chokidar/README.md +308 -0
  488. package/mac-agent/node_modules/chokidar/index.js +973 -0
  489. package/mac-agent/node_modules/chokidar/lib/constants.js +66 -0
  490. package/mac-agent/node_modules/chokidar/lib/fsevents-handler.js +526 -0
  491. package/mac-agent/node_modules/chokidar/lib/nodefs-handler.js +654 -0
  492. package/mac-agent/node_modules/chokidar/package.json +70 -0
  493. package/mac-agent/node_modules/chokidar/types/index.d.ts +192 -0
  494. package/mac-agent/node_modules/chownr/LICENSE +15 -0
  495. package/mac-agent/node_modules/chownr/README.md +3 -0
  496. package/mac-agent/node_modules/chownr/chownr.js +167 -0
  497. package/mac-agent/node_modules/chownr/package.json +32 -0
  498. package/mac-agent/node_modules/cliui/CHANGELOG.md +15 -0
  499. package/mac-agent/node_modules/cliui/LICENSE.txt +14 -0
  500. package/mac-agent/node_modules/cliui/README.md +110 -0
  501. package/mac-agent/node_modules/cliui/index.js +316 -0
  502. package/mac-agent/node_modules/cliui/node_modules/ansi-regex/index.js +4 -0
  503. package/mac-agent/node_modules/cliui/node_modules/ansi-regex/license +21 -0
  504. package/mac-agent/node_modules/cliui/node_modules/ansi-regex/package.json +64 -0
  505. package/mac-agent/node_modules/cliui/node_modules/ansi-regex/readme.md +39 -0
  506. package/mac-agent/node_modules/cliui/node_modules/is-fullwidth-code-point/index.js +46 -0
  507. package/mac-agent/node_modules/cliui/node_modules/is-fullwidth-code-point/license +21 -0
  508. package/mac-agent/node_modules/cliui/node_modules/is-fullwidth-code-point/package.json +45 -0
  509. package/mac-agent/node_modules/cliui/node_modules/is-fullwidth-code-point/readme.md +39 -0
  510. package/mac-agent/node_modules/cliui/node_modules/string-width/index.js +37 -0
  511. package/mac-agent/node_modules/cliui/node_modules/string-width/license +21 -0
  512. package/mac-agent/node_modules/cliui/node_modules/string-width/package.json +56 -0
  513. package/mac-agent/node_modules/cliui/node_modules/string-width/readme.md +42 -0
  514. package/mac-agent/node_modules/cliui/node_modules/strip-ansi/index.js +6 -0
  515. package/mac-agent/node_modules/cliui/node_modules/strip-ansi/license +21 -0
  516. package/mac-agent/node_modules/cliui/node_modules/strip-ansi/package.json +57 -0
  517. package/mac-agent/node_modules/cliui/node_modules/strip-ansi/readme.md +33 -0
  518. package/mac-agent/node_modules/cliui/package.json +64 -0
  519. package/mac-agent/node_modules/code-point-at/index.js +32 -0
  520. package/mac-agent/node_modules/code-point-at/license +21 -0
  521. package/mac-agent/node_modules/code-point-at/package.json +38 -0
  522. package/mac-agent/node_modules/code-point-at/readme.md +32 -0
  523. package/mac-agent/node_modules/color/LICENSE +21 -0
  524. package/mac-agent/node_modules/color/README.md +123 -0
  525. package/mac-agent/node_modules/color/index.js +482 -0
  526. package/mac-agent/node_modules/color/package.json +40 -0
  527. package/mac-agent/node_modules/color-convert/CHANGELOG.md +54 -0
  528. package/mac-agent/node_modules/color-convert/LICENSE +21 -0
  529. package/mac-agent/node_modules/color-convert/README.md +68 -0
  530. package/mac-agent/node_modules/color-convert/conversions.js +868 -0
  531. package/mac-agent/node_modules/color-convert/index.js +78 -0
  532. package/mac-agent/node_modules/color-convert/package.json +46 -0
  533. package/mac-agent/node_modules/color-convert/route.js +97 -0
  534. package/mac-agent/node_modules/color-name/.eslintrc.json +43 -0
  535. package/mac-agent/node_modules/color-name/LICENSE +8 -0
  536. package/mac-agent/node_modules/color-name/README.md +11 -0
  537. package/mac-agent/node_modules/color-name/index.js +152 -0
  538. package/mac-agent/node_modules/color-name/package.json +25 -0
  539. package/mac-agent/node_modules/color-name/test.js +7 -0
  540. package/mac-agent/node_modules/color-string/LICENSE +21 -0
  541. package/mac-agent/node_modules/color-string/README.md +62 -0
  542. package/mac-agent/node_modules/color-string/index.js +242 -0
  543. package/mac-agent/node_modules/color-string/package.json +39 -0
  544. package/mac-agent/node_modules/color-support/LICENSE +15 -0
  545. package/mac-agent/node_modules/color-support/README.md +129 -0
  546. package/mac-agent/node_modules/color-support/bin.js +3 -0
  547. package/mac-agent/node_modules/color-support/browser.js +14 -0
  548. package/mac-agent/node_modules/color-support/index.js +134 -0
  549. package/mac-agent/node_modules/color-support/package.json +36 -0
  550. package/mac-agent/node_modules/colorspace/LICENSE.md +20 -0
  551. package/mac-agent/node_modules/colorspace/README.md +43 -0
  552. package/mac-agent/node_modules/colorspace/index.js +29 -0
  553. package/mac-agent/node_modules/colorspace/package.json +37 -0
  554. package/mac-agent/node_modules/combined-stream/License +19 -0
  555. package/mac-agent/node_modules/combined-stream/Readme.md +138 -0
  556. package/mac-agent/node_modules/combined-stream/lib/combined_stream.js +208 -0
  557. package/mac-agent/node_modules/combined-stream/package.json +25 -0
  558. package/mac-agent/node_modules/combined-stream/yarn.lock +17 -0
  559. package/mac-agent/node_modules/concat-map/.travis.yml +4 -0
  560. package/mac-agent/node_modules/concat-map/LICENSE +18 -0
  561. package/mac-agent/node_modules/concat-map/README.markdown +62 -0
  562. package/mac-agent/node_modules/concat-map/example/map.js +6 -0
  563. package/mac-agent/node_modules/concat-map/index.js +13 -0
  564. package/mac-agent/node_modules/concat-map/package.json +43 -0
  565. package/mac-agent/node_modules/concat-map/test/map.js +39 -0
  566. package/mac-agent/node_modules/console-control-strings/LICENSE +13 -0
  567. package/mac-agent/node_modules/console-control-strings/README.md +145 -0
  568. package/mac-agent/node_modules/console-control-strings/README.md~ +140 -0
  569. package/mac-agent/node_modules/console-control-strings/index.js +125 -0
  570. package/mac-agent/node_modules/console-control-strings/package.json +27 -0
  571. package/mac-agent/node_modules/debug/LICENSE +20 -0
  572. package/mac-agent/node_modules/debug/README.md +481 -0
  573. package/mac-agent/node_modules/debug/package.json +64 -0
  574. package/mac-agent/node_modules/debug/src/browser.js +272 -0
  575. package/mac-agent/node_modules/debug/src/common.js +292 -0
  576. package/mac-agent/node_modules/debug/src/index.js +10 -0
  577. package/mac-agent/node_modules/debug/src/node.js +263 -0
  578. package/mac-agent/node_modules/decamelize/index.js +13 -0
  579. package/mac-agent/node_modules/decamelize/license +21 -0
  580. package/mac-agent/node_modules/decamelize/package.json +38 -0
  581. package/mac-agent/node_modules/decamelize/readme.md +48 -0
  582. package/mac-agent/node_modules/define-data-property/.eslintrc +24 -0
  583. package/mac-agent/node_modules/define-data-property/.github/FUNDING.yml +12 -0
  584. package/mac-agent/node_modules/define-data-property/.nycrc +13 -0
  585. package/mac-agent/node_modules/define-data-property/CHANGELOG.md +70 -0
  586. package/mac-agent/node_modules/define-data-property/LICENSE +21 -0
  587. package/mac-agent/node_modules/define-data-property/README.md +67 -0
  588. package/mac-agent/node_modules/define-data-property/index.d.ts +12 -0
  589. package/mac-agent/node_modules/define-data-property/index.js +56 -0
  590. package/mac-agent/node_modules/define-data-property/package.json +106 -0
  591. package/mac-agent/node_modules/define-data-property/test/index.js +392 -0
  592. package/mac-agent/node_modules/define-data-property/tsconfig.json +59 -0
  593. package/mac-agent/node_modules/define-properties/.editorconfig +13 -0
  594. package/mac-agent/node_modules/define-properties/.eslintrc +19 -0
  595. package/mac-agent/node_modules/define-properties/.github/FUNDING.yml +12 -0
  596. package/mac-agent/node_modules/define-properties/.nycrc +9 -0
  597. package/mac-agent/node_modules/define-properties/CHANGELOG.md +91 -0
  598. package/mac-agent/node_modules/define-properties/LICENSE +21 -0
  599. package/mac-agent/node_modules/define-properties/README.md +84 -0
  600. package/mac-agent/node_modules/define-properties/index.js +47 -0
  601. package/mac-agent/node_modules/define-properties/package.json +88 -0
  602. package/mac-agent/node_modules/delayed-stream/License +19 -0
  603. package/mac-agent/node_modules/delayed-stream/Makefile +7 -0
  604. package/mac-agent/node_modules/delayed-stream/Readme.md +141 -0
  605. package/mac-agent/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
  606. package/mac-agent/node_modules/delayed-stream/package.json +27 -0
  607. package/mac-agent/node_modules/delegates/History.md +22 -0
  608. package/mac-agent/node_modules/delegates/License +20 -0
  609. package/mac-agent/node_modules/delegates/Makefile +8 -0
  610. package/mac-agent/node_modules/delegates/Readme.md +94 -0
  611. package/mac-agent/node_modules/delegates/index.js +121 -0
  612. package/mac-agent/node_modules/delegates/package.json +13 -0
  613. package/mac-agent/node_modules/delegates/test/index.js +94 -0
  614. package/mac-agent/node_modules/detect-libc/LICENSE +201 -0
  615. package/mac-agent/node_modules/detect-libc/README.md +163 -0
  616. package/mac-agent/node_modules/detect-libc/index.d.ts +14 -0
  617. package/mac-agent/node_modules/detect-libc/lib/detect-libc.js +267 -0
  618. package/mac-agent/node_modules/detect-libc/lib/filesystem.js +41 -0
  619. package/mac-agent/node_modules/detect-libc/lib/process.js +24 -0
  620. package/mac-agent/node_modules/detect-libc/package.json +41 -0
  621. package/mac-agent/node_modules/domexception/LICENSE.txt +21 -0
  622. package/mac-agent/node_modules/domexception/README.md +19 -0
  623. package/mac-agent/node_modules/domexception/lib/DOMException-impl.js +22 -0
  624. package/mac-agent/node_modules/domexception/lib/DOMException.js +368 -0
  625. package/mac-agent/node_modules/domexception/lib/legacy-error-codes.json +27 -0
  626. package/mac-agent/node_modules/domexception/lib/public-api.js +5 -0
  627. package/mac-agent/node_modules/domexception/lib/utils.js +86 -0
  628. package/mac-agent/node_modules/domexception/package.json +36 -0
  629. package/mac-agent/node_modules/dotenv/CHANGELOG.md +520 -0
  630. package/mac-agent/node_modules/dotenv/LICENSE +23 -0
  631. package/mac-agent/node_modules/dotenv/README-es.md +411 -0
  632. package/mac-agent/node_modules/dotenv/README.md +645 -0
  633. package/mac-agent/node_modules/dotenv/SECURITY.md +1 -0
  634. package/mac-agent/node_modules/dotenv/config.d.ts +1 -0
  635. package/mac-agent/node_modules/dotenv/config.js +9 -0
  636. package/mac-agent/node_modules/dotenv/lib/cli-options.js +17 -0
  637. package/mac-agent/node_modules/dotenv/lib/env-options.js +28 -0
  638. package/mac-agent/node_modules/dotenv/lib/main.d.ts +162 -0
  639. package/mac-agent/node_modules/dotenv/lib/main.js +386 -0
  640. package/mac-agent/node_modules/dotenv/package.json +62 -0
  641. package/mac-agent/node_modules/dunder-proto/.eslintrc +5 -0
  642. package/mac-agent/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
  643. package/mac-agent/node_modules/dunder-proto/.nycrc +13 -0
  644. package/mac-agent/node_modules/dunder-proto/CHANGELOG.md +24 -0
  645. package/mac-agent/node_modules/dunder-proto/LICENSE +21 -0
  646. package/mac-agent/node_modules/dunder-proto/README.md +54 -0
  647. package/mac-agent/node_modules/dunder-proto/get.d.ts +5 -0
  648. package/mac-agent/node_modules/dunder-proto/get.js +30 -0
  649. package/mac-agent/node_modules/dunder-proto/package.json +76 -0
  650. package/mac-agent/node_modules/dunder-proto/set.d.ts +5 -0
  651. package/mac-agent/node_modules/dunder-proto/set.js +35 -0
  652. package/mac-agent/node_modules/dunder-proto/test/get.js +34 -0
  653. package/mac-agent/node_modules/dunder-proto/test/index.js +4 -0
  654. package/mac-agent/node_modules/dunder-proto/test/set.js +50 -0
  655. package/mac-agent/node_modules/dunder-proto/tsconfig.json +9 -0
  656. package/mac-agent/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  657. package/mac-agent/node_modules/emoji-regex/README.md +73 -0
  658. package/mac-agent/node_modules/emoji-regex/es2015/index.js +6 -0
  659. package/mac-agent/node_modules/emoji-regex/es2015/text.js +6 -0
  660. package/mac-agent/node_modules/emoji-regex/index.d.ts +23 -0
  661. package/mac-agent/node_modules/emoji-regex/index.js +6 -0
  662. package/mac-agent/node_modules/emoji-regex/package.json +50 -0
  663. package/mac-agent/node_modules/emoji-regex/text.js +6 -0
  664. package/mac-agent/node_modules/enabled/.travis.yml +9 -0
  665. package/mac-agent/node_modules/enabled/LICENSE +20 -0
  666. package/mac-agent/node_modules/enabled/README.md +68 -0
  667. package/mac-agent/node_modules/enabled/index.js +34 -0
  668. package/mac-agent/node_modules/enabled/package.json +33 -0
  669. package/mac-agent/node_modules/enabled/test.js +39 -0
  670. package/mac-agent/node_modules/error-ex/LICENSE +21 -0
  671. package/mac-agent/node_modules/error-ex/README.md +144 -0
  672. package/mac-agent/node_modules/error-ex/index.js +141 -0
  673. package/mac-agent/node_modules/error-ex/node_modules/is-arrayish/.editorconfig +18 -0
  674. package/mac-agent/node_modules/error-ex/node_modules/is-arrayish/.istanbul.yml +4 -0
  675. package/mac-agent/node_modules/error-ex/node_modules/is-arrayish/.travis.yml +17 -0
  676. package/mac-agent/node_modules/error-ex/node_modules/is-arrayish/LICENSE +21 -0
  677. package/mac-agent/node_modules/error-ex/node_modules/is-arrayish/README.md +16 -0
  678. package/mac-agent/node_modules/error-ex/node_modules/is-arrayish/index.js +10 -0
  679. package/mac-agent/node_modules/error-ex/node_modules/is-arrayish/package.json +34 -0
  680. package/mac-agent/node_modules/error-ex/package.json +46 -0
  681. package/mac-agent/node_modules/es-define-property/.eslintrc +13 -0
  682. package/mac-agent/node_modules/es-define-property/.github/FUNDING.yml +12 -0
  683. package/mac-agent/node_modules/es-define-property/.nycrc +9 -0
  684. package/mac-agent/node_modules/es-define-property/CHANGELOG.md +29 -0
  685. package/mac-agent/node_modules/es-define-property/LICENSE +21 -0
  686. package/mac-agent/node_modules/es-define-property/README.md +49 -0
  687. package/mac-agent/node_modules/es-define-property/index.d.ts +3 -0
  688. package/mac-agent/node_modules/es-define-property/index.js +14 -0
  689. package/mac-agent/node_modules/es-define-property/package.json +81 -0
  690. package/mac-agent/node_modules/es-define-property/test/index.js +56 -0
  691. package/mac-agent/node_modules/es-define-property/tsconfig.json +10 -0
  692. package/mac-agent/node_modules/es-errors/.eslintrc +5 -0
  693. package/mac-agent/node_modules/es-errors/.github/FUNDING.yml +12 -0
  694. package/mac-agent/node_modules/es-errors/CHANGELOG.md +40 -0
  695. package/mac-agent/node_modules/es-errors/LICENSE +21 -0
  696. package/mac-agent/node_modules/es-errors/README.md +55 -0
  697. package/mac-agent/node_modules/es-errors/eval.d.ts +3 -0
  698. package/mac-agent/node_modules/es-errors/eval.js +4 -0
  699. package/mac-agent/node_modules/es-errors/index.d.ts +3 -0
  700. package/mac-agent/node_modules/es-errors/index.js +4 -0
  701. package/mac-agent/node_modules/es-errors/package.json +80 -0
  702. package/mac-agent/node_modules/es-errors/range.d.ts +3 -0
  703. package/mac-agent/node_modules/es-errors/range.js +4 -0
  704. package/mac-agent/node_modules/es-errors/ref.d.ts +3 -0
  705. package/mac-agent/node_modules/es-errors/ref.js +4 -0
  706. package/mac-agent/node_modules/es-errors/syntax.d.ts +3 -0
  707. package/mac-agent/node_modules/es-errors/syntax.js +4 -0
  708. package/mac-agent/node_modules/es-errors/test/index.js +19 -0
  709. package/mac-agent/node_modules/es-errors/tsconfig.json +49 -0
  710. package/mac-agent/node_modules/es-errors/type.d.ts +3 -0
  711. package/mac-agent/node_modules/es-errors/type.js +4 -0
  712. package/mac-agent/node_modules/es-errors/uri.d.ts +3 -0
  713. package/mac-agent/node_modules/es-errors/uri.js +4 -0
  714. package/mac-agent/node_modules/es-object-atoms/.eslintrc +16 -0
  715. package/mac-agent/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
  716. package/mac-agent/node_modules/es-object-atoms/CHANGELOG.md +37 -0
  717. package/mac-agent/node_modules/es-object-atoms/LICENSE +21 -0
  718. package/mac-agent/node_modules/es-object-atoms/README.md +63 -0
  719. package/mac-agent/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
  720. package/mac-agent/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
  721. package/mac-agent/node_modules/es-object-atoms/ToObject.d.ts +7 -0
  722. package/mac-agent/node_modules/es-object-atoms/ToObject.js +10 -0
  723. package/mac-agent/node_modules/es-object-atoms/index.d.ts +3 -0
  724. package/mac-agent/node_modules/es-object-atoms/index.js +4 -0
  725. package/mac-agent/node_modules/es-object-atoms/isObject.d.ts +3 -0
  726. package/mac-agent/node_modules/es-object-atoms/isObject.js +6 -0
  727. package/mac-agent/node_modules/es-object-atoms/package.json +80 -0
  728. package/mac-agent/node_modules/es-object-atoms/test/index.js +38 -0
  729. package/mac-agent/node_modules/es-object-atoms/tsconfig.json +6 -0
  730. package/mac-agent/node_modules/es-set-tostringtag/.eslintrc +13 -0
  731. package/mac-agent/node_modules/es-set-tostringtag/.nycrc +9 -0
  732. package/mac-agent/node_modules/es-set-tostringtag/CHANGELOG.md +67 -0
  733. package/mac-agent/node_modules/es-set-tostringtag/LICENSE +21 -0
  734. package/mac-agent/node_modules/es-set-tostringtag/README.md +53 -0
  735. package/mac-agent/node_modules/es-set-tostringtag/index.d.ts +10 -0
  736. package/mac-agent/node_modules/es-set-tostringtag/index.js +35 -0
  737. package/mac-agent/node_modules/es-set-tostringtag/package.json +78 -0
  738. package/mac-agent/node_modules/es-set-tostringtag/test/index.js +85 -0
  739. package/mac-agent/node_modules/es-set-tostringtag/tsconfig.json +9 -0
  740. package/mac-agent/node_modules/fecha/LICENSE +22 -0
  741. package/mac-agent/node_modules/fecha/README.md +320 -0
  742. package/mac-agent/node_modules/fecha/dist/fecha.min.js +2 -0
  743. package/mac-agent/node_modules/fecha/dist/fecha.min.js.map +1 -0
  744. package/mac-agent/node_modules/fecha/lib/fecha.d.ts +52 -0
  745. package/mac-agent/node_modules/fecha/lib/fecha.js +403 -0
  746. package/mac-agent/node_modules/fecha/lib/fecha.js.map +1 -0
  747. package/mac-agent/node_modules/fecha/lib/fecha.umd.js +418 -0
  748. package/mac-agent/node_modules/fecha/lib/fecha.umd.js.map +1 -0
  749. package/mac-agent/node_modules/fecha/package.json +55 -0
  750. package/mac-agent/node_modules/fecha/src/fecha.ts +524 -0
  751. package/mac-agent/node_modules/fill-range/LICENSE +21 -0
  752. package/mac-agent/node_modules/fill-range/README.md +237 -0
  753. package/mac-agent/node_modules/fill-range/index.js +248 -0
  754. package/mac-agent/node_modules/fill-range/package.json +74 -0
  755. package/mac-agent/node_modules/find-up/index.js +53 -0
  756. package/mac-agent/node_modules/find-up/license +21 -0
  757. package/mac-agent/node_modules/find-up/package.json +51 -0
  758. package/mac-agent/node_modules/find-up/readme.md +72 -0
  759. package/mac-agent/node_modules/fn.name/.gitattributes +1 -0
  760. package/mac-agent/node_modules/fn.name/.travis.yml +10 -0
  761. package/mac-agent/node_modules/fn.name/LICENSE +22 -0
  762. package/mac-agent/node_modules/fn.name/README.md +42 -0
  763. package/mac-agent/node_modules/fn.name/index.js +42 -0
  764. package/mac-agent/node_modules/fn.name/package.json +37 -0
  765. package/mac-agent/node_modules/fn.name/test.js +73 -0
  766. package/mac-agent/node_modules/follow-redirects/LICENSE +18 -0
  767. package/mac-agent/node_modules/follow-redirects/README.md +155 -0
  768. package/mac-agent/node_modules/follow-redirects/debug.js +15 -0
  769. package/mac-agent/node_modules/follow-redirects/http.js +1 -0
  770. package/mac-agent/node_modules/follow-redirects/https.js +1 -0
  771. package/mac-agent/node_modules/follow-redirects/index.js +686 -0
  772. package/mac-agent/node_modules/follow-redirects/package.json +58 -0
  773. package/mac-agent/node_modules/form-data/License +19 -0
  774. package/mac-agent/node_modules/form-data/README.md.bak +355 -0
  775. package/mac-agent/node_modules/form-data/Readme.md +355 -0
  776. package/mac-agent/node_modules/form-data/index.d.ts +62 -0
  777. package/mac-agent/node_modules/form-data/lib/browser.js +4 -0
  778. package/mac-agent/node_modules/form-data/lib/form_data.js +498 -0
  779. package/mac-agent/node_modules/form-data/lib/populate.js +10 -0
  780. package/mac-agent/node_modules/form-data/package.json +66 -0
  781. package/mac-agent/node_modules/fs-minipass/LICENSE +15 -0
  782. package/mac-agent/node_modules/fs-minipass/README.md +70 -0
  783. package/mac-agent/node_modules/fs-minipass/index.js +422 -0
  784. package/mac-agent/node_modules/fs-minipass/node_modules/minipass/LICENSE +15 -0
  785. package/mac-agent/node_modules/fs-minipass/node_modules/minipass/README.md +728 -0
  786. package/mac-agent/node_modules/fs-minipass/node_modules/minipass/index.d.ts +155 -0
  787. package/mac-agent/node_modules/fs-minipass/node_modules/minipass/index.js +649 -0
  788. package/mac-agent/node_modules/fs-minipass/node_modules/minipass/package.json +56 -0
  789. package/mac-agent/node_modules/fs-minipass/package.json +39 -0
  790. package/mac-agent/node_modules/fs.realpath/LICENSE +43 -0
  791. package/mac-agent/node_modules/fs.realpath/README.md +33 -0
  792. package/mac-agent/node_modules/fs.realpath/index.js +66 -0
  793. package/mac-agent/node_modules/fs.realpath/old.js +303 -0
  794. package/mac-agent/node_modules/fs.realpath/package.json +26 -0
  795. package/mac-agent/node_modules/fsevents/LICENSE +22 -0
  796. package/mac-agent/node_modules/fsevents/README.md +89 -0
  797. package/mac-agent/node_modules/fsevents/fsevents.d.ts +46 -0
  798. package/mac-agent/node_modules/fsevents/fsevents.js +83 -0
  799. package/mac-agent/node_modules/fsevents/fsevents.node +0 -0
  800. package/mac-agent/node_modules/fsevents/package.json +62 -0
  801. package/mac-agent/node_modules/function-bind/.eslintrc +21 -0
  802. package/mac-agent/node_modules/function-bind/.github/FUNDING.yml +12 -0
  803. package/mac-agent/node_modules/function-bind/.github/SECURITY.md +3 -0
  804. package/mac-agent/node_modules/function-bind/.nycrc +13 -0
  805. package/mac-agent/node_modules/function-bind/CHANGELOG.md +136 -0
  806. package/mac-agent/node_modules/function-bind/LICENSE +20 -0
  807. package/mac-agent/node_modules/function-bind/README.md +46 -0
  808. package/mac-agent/node_modules/function-bind/implementation.js +84 -0
  809. package/mac-agent/node_modules/function-bind/index.js +5 -0
  810. package/mac-agent/node_modules/function-bind/package.json +87 -0
  811. package/mac-agent/node_modules/function-bind/test/.eslintrc +9 -0
  812. package/mac-agent/node_modules/function-bind/test/index.js +252 -0
  813. package/mac-agent/node_modules/gauge/CHANGELOG.md +163 -0
  814. package/mac-agent/node_modules/gauge/LICENSE +13 -0
  815. package/mac-agent/node_modules/gauge/README.md +402 -0
  816. package/mac-agent/node_modules/gauge/base-theme.js +14 -0
  817. package/mac-agent/node_modules/gauge/error.js +24 -0
  818. package/mac-agent/node_modules/gauge/has-color.js +4 -0
  819. package/mac-agent/node_modules/gauge/index.js +233 -0
  820. package/mac-agent/node_modules/gauge/package.json +66 -0
  821. package/mac-agent/node_modules/gauge/plumbing.js +48 -0
  822. package/mac-agent/node_modules/gauge/process.js +3 -0
  823. package/mac-agent/node_modules/gauge/progress-bar.js +35 -0
  824. package/mac-agent/node_modules/gauge/render-template.js +178 -0
  825. package/mac-agent/node_modules/gauge/set-immediate.js +7 -0
  826. package/mac-agent/node_modules/gauge/set-interval.js +3 -0
  827. package/mac-agent/node_modules/gauge/spin.js +5 -0
  828. package/mac-agent/node_modules/gauge/template-item.js +72 -0
  829. package/mac-agent/node_modules/gauge/theme-set.js +114 -0
  830. package/mac-agent/node_modules/gauge/themes.js +56 -0
  831. package/mac-agent/node_modules/gauge/wide-truncate.js +25 -0
  832. package/mac-agent/node_modules/get-caller-file/LICENSE.md +6 -0
  833. package/mac-agent/node_modules/get-caller-file/README.md +4 -0
  834. package/mac-agent/node_modules/get-caller-file/index.js +20 -0
  835. package/mac-agent/node_modules/get-caller-file/package.json +31 -0
  836. package/mac-agent/node_modules/get-intrinsic/.eslintrc +42 -0
  837. package/mac-agent/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
  838. package/mac-agent/node_modules/get-intrinsic/.nycrc +9 -0
  839. package/mac-agent/node_modules/get-intrinsic/CHANGELOG.md +186 -0
  840. package/mac-agent/node_modules/get-intrinsic/LICENSE +21 -0
  841. package/mac-agent/node_modules/get-intrinsic/README.md +71 -0
  842. package/mac-agent/node_modules/get-intrinsic/index.js +378 -0
  843. package/mac-agent/node_modules/get-intrinsic/package.json +97 -0
  844. package/mac-agent/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
  845. package/mac-agent/node_modules/get-proto/.eslintrc +10 -0
  846. package/mac-agent/node_modules/get-proto/.github/FUNDING.yml +12 -0
  847. package/mac-agent/node_modules/get-proto/.nycrc +9 -0
  848. package/mac-agent/node_modules/get-proto/CHANGELOG.md +21 -0
  849. package/mac-agent/node_modules/get-proto/LICENSE +21 -0
  850. package/mac-agent/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
  851. package/mac-agent/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
  852. package/mac-agent/node_modules/get-proto/README.md +50 -0
  853. package/mac-agent/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
  854. package/mac-agent/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
  855. package/mac-agent/node_modules/get-proto/index.d.ts +5 -0
  856. package/mac-agent/node_modules/get-proto/index.js +27 -0
  857. package/mac-agent/node_modules/get-proto/package.json +81 -0
  858. package/mac-agent/node_modules/get-proto/test/index.js +68 -0
  859. package/mac-agent/node_modules/get-proto/tsconfig.json +9 -0
  860. package/mac-agent/node_modules/glob/LICENSE +21 -0
  861. package/mac-agent/node_modules/glob/README.md +378 -0
  862. package/mac-agent/node_modules/glob/common.js +238 -0
  863. package/mac-agent/node_modules/glob/glob.js +790 -0
  864. package/mac-agent/node_modules/glob/package.json +55 -0
  865. package/mac-agent/node_modules/glob/sync.js +486 -0
  866. package/mac-agent/node_modules/glob-parent/CHANGELOG.md +110 -0
  867. package/mac-agent/node_modules/glob-parent/LICENSE +15 -0
  868. package/mac-agent/node_modules/glob-parent/README.md +137 -0
  869. package/mac-agent/node_modules/glob-parent/index.js +42 -0
  870. package/mac-agent/node_modules/glob-parent/package.json +48 -0
  871. package/mac-agent/node_modules/gopd/.eslintrc +16 -0
  872. package/mac-agent/node_modules/gopd/.github/FUNDING.yml +12 -0
  873. package/mac-agent/node_modules/gopd/CHANGELOG.md +45 -0
  874. package/mac-agent/node_modules/gopd/LICENSE +21 -0
  875. package/mac-agent/node_modules/gopd/README.md +40 -0
  876. package/mac-agent/node_modules/gopd/gOPD.d.ts +1 -0
  877. package/mac-agent/node_modules/gopd/gOPD.js +4 -0
  878. package/mac-agent/node_modules/gopd/index.d.ts +5 -0
  879. package/mac-agent/node_modules/gopd/index.js +15 -0
  880. package/mac-agent/node_modules/gopd/package.json +77 -0
  881. package/mac-agent/node_modules/gopd/test/index.js +36 -0
  882. package/mac-agent/node_modules/gopd/tsconfig.json +9 -0
  883. package/mac-agent/node_modules/graceful-fs/LICENSE +15 -0
  884. package/mac-agent/node_modules/graceful-fs/README.md +143 -0
  885. package/mac-agent/node_modules/graceful-fs/clone.js +23 -0
  886. package/mac-agent/node_modules/graceful-fs/graceful-fs.js +448 -0
  887. package/mac-agent/node_modules/graceful-fs/legacy-streams.js +118 -0
  888. package/mac-agent/node_modules/graceful-fs/package.json +53 -0
  889. package/mac-agent/node_modules/graceful-fs/polyfills.js +355 -0
  890. package/mac-agent/node_modules/has-flag/index.js +8 -0
  891. package/mac-agent/node_modules/has-flag/license +9 -0
  892. package/mac-agent/node_modules/has-flag/package.json +44 -0
  893. package/mac-agent/node_modules/has-flag/readme.md +70 -0
  894. package/mac-agent/node_modules/has-property-descriptors/.eslintrc +13 -0
  895. package/mac-agent/node_modules/has-property-descriptors/.github/FUNDING.yml +12 -0
  896. package/mac-agent/node_modules/has-property-descriptors/.nycrc +9 -0
  897. package/mac-agent/node_modules/has-property-descriptors/CHANGELOG.md +35 -0
  898. package/mac-agent/node_modules/has-property-descriptors/LICENSE +21 -0
  899. package/mac-agent/node_modules/has-property-descriptors/README.md +43 -0
  900. package/mac-agent/node_modules/has-property-descriptors/index.js +22 -0
  901. package/mac-agent/node_modules/has-property-descriptors/package.json +77 -0
  902. package/mac-agent/node_modules/has-property-descriptors/test/index.js +57 -0
  903. package/mac-agent/node_modules/has-symbols/.eslintrc +11 -0
  904. package/mac-agent/node_modules/has-symbols/.github/FUNDING.yml +12 -0
  905. package/mac-agent/node_modules/has-symbols/.nycrc +9 -0
  906. package/mac-agent/node_modules/has-symbols/CHANGELOG.md +91 -0
  907. package/mac-agent/node_modules/has-symbols/LICENSE +21 -0
  908. package/mac-agent/node_modules/has-symbols/README.md +46 -0
  909. package/mac-agent/node_modules/has-symbols/index.d.ts +3 -0
  910. package/mac-agent/node_modules/has-symbols/index.js +14 -0
  911. package/mac-agent/node_modules/has-symbols/package.json +111 -0
  912. package/mac-agent/node_modules/has-symbols/shams.d.ts +3 -0
  913. package/mac-agent/node_modules/has-symbols/shams.js +45 -0
  914. package/mac-agent/node_modules/has-symbols/test/index.js +22 -0
  915. package/mac-agent/node_modules/has-symbols/test/shams/core-js.js +29 -0
  916. package/mac-agent/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
  917. package/mac-agent/node_modules/has-symbols/test/tests.js +58 -0
  918. package/mac-agent/node_modules/has-symbols/tsconfig.json +10 -0
  919. package/mac-agent/node_modules/has-tostringtag/.eslintrc +5 -0
  920. package/mac-agent/node_modules/has-tostringtag/.github/FUNDING.yml +12 -0
  921. package/mac-agent/node_modules/has-tostringtag/.nycrc +13 -0
  922. package/mac-agent/node_modules/has-tostringtag/CHANGELOG.md +42 -0
  923. package/mac-agent/node_modules/has-tostringtag/LICENSE +21 -0
  924. package/mac-agent/node_modules/has-tostringtag/README.md +46 -0
  925. package/mac-agent/node_modules/has-tostringtag/index.d.ts +3 -0
  926. package/mac-agent/node_modules/has-tostringtag/index.js +8 -0
  927. package/mac-agent/node_modules/has-tostringtag/package.json +108 -0
  928. package/mac-agent/node_modules/has-tostringtag/shams.d.ts +3 -0
  929. package/mac-agent/node_modules/has-tostringtag/shams.js +8 -0
  930. package/mac-agent/node_modules/has-tostringtag/test/index.js +21 -0
  931. package/mac-agent/node_modules/has-tostringtag/test/shams/core-js.js +31 -0
  932. package/mac-agent/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +30 -0
  933. package/mac-agent/node_modules/has-tostringtag/test/tests.js +15 -0
  934. package/mac-agent/node_modules/has-tostringtag/tsconfig.json +49 -0
  935. package/mac-agent/node_modules/has-unicode/LICENSE +14 -0
  936. package/mac-agent/node_modules/has-unicode/README.md +43 -0
  937. package/mac-agent/node_modules/has-unicode/index.js +16 -0
  938. package/mac-agent/node_modules/has-unicode/package.json +30 -0
  939. package/mac-agent/node_modules/hasown/.eslintrc +5 -0
  940. package/mac-agent/node_modules/hasown/.github/FUNDING.yml +12 -0
  941. package/mac-agent/node_modules/hasown/.nycrc +13 -0
  942. package/mac-agent/node_modules/hasown/CHANGELOG.md +40 -0
  943. package/mac-agent/node_modules/hasown/LICENSE +21 -0
  944. package/mac-agent/node_modules/hasown/README.md +40 -0
  945. package/mac-agent/node_modules/hasown/index.d.ts +3 -0
  946. package/mac-agent/node_modules/hasown/index.js +8 -0
  947. package/mac-agent/node_modules/hasown/package.json +92 -0
  948. package/mac-agent/node_modules/hasown/tsconfig.json +6 -0
  949. package/mac-agent/node_modules/hosted-git-info/CHANGELOG.md +151 -0
  950. package/mac-agent/node_modules/hosted-git-info/LICENSE +13 -0
  951. package/mac-agent/node_modules/hosted-git-info/README.md +133 -0
  952. package/mac-agent/node_modules/hosted-git-info/git-host-info.js +79 -0
  953. package/mac-agent/node_modules/hosted-git-info/git-host.js +156 -0
  954. package/mac-agent/node_modules/hosted-git-info/index.js +148 -0
  955. package/mac-agent/node_modules/hosted-git-info/package.json +40 -0
  956. package/mac-agent/node_modules/https-proxy-agent/README.md +137 -0
  957. package/mac-agent/node_modules/https-proxy-agent/dist/agent.d.ts +30 -0
  958. package/mac-agent/node_modules/https-proxy-agent/dist/agent.js +177 -0
  959. package/mac-agent/node_modules/https-proxy-agent/dist/agent.js.map +1 -0
  960. package/mac-agent/node_modules/https-proxy-agent/dist/index.d.ts +23 -0
  961. package/mac-agent/node_modules/https-proxy-agent/dist/index.js +14 -0
  962. package/mac-agent/node_modules/https-proxy-agent/dist/index.js.map +1 -0
  963. package/mac-agent/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +7 -0
  964. package/mac-agent/node_modules/https-proxy-agent/dist/parse-proxy-response.js +66 -0
  965. package/mac-agent/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
  966. package/mac-agent/node_modules/https-proxy-agent/package.json +56 -0
  967. package/mac-agent/node_modules/ignore-by-default/LICENSE +14 -0
  968. package/mac-agent/node_modules/ignore-by-default/README.md +26 -0
  969. package/mac-agent/node_modules/ignore-by-default/index.js +12 -0
  970. package/mac-agent/node_modules/ignore-by-default/package.json +34 -0
  971. package/mac-agent/node_modules/inflight/LICENSE +15 -0
  972. package/mac-agent/node_modules/inflight/README.md +37 -0
  973. package/mac-agent/node_modules/inflight/inflight.js +54 -0
  974. package/mac-agent/node_modules/inflight/package.json +29 -0
  975. package/mac-agent/node_modules/inherits/LICENSE +16 -0
  976. package/mac-agent/node_modules/inherits/README.md +42 -0
  977. package/mac-agent/node_modules/inherits/inherits.js +9 -0
  978. package/mac-agent/node_modules/inherits/inherits_browser.js +27 -0
  979. package/mac-agent/node_modules/inherits/package.json +29 -0
  980. package/mac-agent/node_modules/invert-kv/index.js +15 -0
  981. package/mac-agent/node_modules/invert-kv/package.json +33 -0
  982. package/mac-agent/node_modules/invert-kv/readme.md +25 -0
  983. package/mac-agent/node_modules/is-arrayish/LICENSE +21 -0
  984. package/mac-agent/node_modules/is-arrayish/README.md +16 -0
  985. package/mac-agent/node_modules/is-arrayish/index.js +9 -0
  986. package/mac-agent/node_modules/is-arrayish/package.json +45 -0
  987. package/mac-agent/node_modules/is-arrayish/yarn-error.log +1443 -0
  988. package/mac-agent/node_modules/is-binary-path/index.d.ts +17 -0
  989. package/mac-agent/node_modules/is-binary-path/index.js +7 -0
  990. package/mac-agent/node_modules/is-binary-path/license +9 -0
  991. package/mac-agent/node_modules/is-binary-path/package.json +40 -0
  992. package/mac-agent/node_modules/is-binary-path/readme.md +34 -0
  993. package/mac-agent/node_modules/is-core-module/.eslintrc +18 -0
  994. package/mac-agent/node_modules/is-core-module/.nycrc +9 -0
  995. package/mac-agent/node_modules/is-core-module/CHANGELOG.md +218 -0
  996. package/mac-agent/node_modules/is-core-module/LICENSE +20 -0
  997. package/mac-agent/node_modules/is-core-module/README.md +40 -0
  998. package/mac-agent/node_modules/is-core-module/core.json +162 -0
  999. package/mac-agent/node_modules/is-core-module/index.js +69 -0
  1000. package/mac-agent/node_modules/is-core-module/package.json +76 -0
  1001. package/mac-agent/node_modules/is-core-module/test/index.js +157 -0
  1002. package/mac-agent/node_modules/is-extglob/LICENSE +21 -0
  1003. package/mac-agent/node_modules/is-extglob/README.md +107 -0
  1004. package/mac-agent/node_modules/is-extglob/index.js +20 -0
  1005. package/mac-agent/node_modules/is-extglob/package.json +69 -0
  1006. package/mac-agent/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
  1007. package/mac-agent/node_modules/is-fullwidth-code-point/index.js +50 -0
  1008. package/mac-agent/node_modules/is-fullwidth-code-point/license +9 -0
  1009. package/mac-agent/node_modules/is-fullwidth-code-point/package.json +42 -0
  1010. package/mac-agent/node_modules/is-fullwidth-code-point/readme.md +39 -0
  1011. package/mac-agent/node_modules/is-glob/LICENSE +21 -0
  1012. package/mac-agent/node_modules/is-glob/README.md +206 -0
  1013. package/mac-agent/node_modules/is-glob/index.js +150 -0
  1014. package/mac-agent/node_modules/is-glob/package.json +81 -0
  1015. package/mac-agent/node_modules/is-number/LICENSE +21 -0
  1016. package/mac-agent/node_modules/is-number/README.md +187 -0
  1017. package/mac-agent/node_modules/is-number/index.js +18 -0
  1018. package/mac-agent/node_modules/is-number/package.json +82 -0
  1019. package/mac-agent/node_modules/is-stream/index.d.ts +79 -0
  1020. package/mac-agent/node_modules/is-stream/index.js +28 -0
  1021. package/mac-agent/node_modules/is-stream/license +9 -0
  1022. package/mac-agent/node_modules/is-stream/package.json +42 -0
  1023. package/mac-agent/node_modules/is-stream/readme.md +60 -0
  1024. package/mac-agent/node_modules/is-utf8/LICENSE +9 -0
  1025. package/mac-agent/node_modules/is-utf8/README.md +16 -0
  1026. package/mac-agent/node_modules/is-utf8/is-utf8.js +76 -0
  1027. package/mac-agent/node_modules/is-utf8/package.json +19 -0
  1028. package/mac-agent/node_modules/isexe/LICENSE +15 -0
  1029. package/mac-agent/node_modules/isexe/README.md +51 -0
  1030. package/mac-agent/node_modules/isexe/index.js +57 -0
  1031. package/mac-agent/node_modules/isexe/mode.js +41 -0
  1032. package/mac-agent/node_modules/isexe/package.json +31 -0
  1033. package/mac-agent/node_modules/isexe/test/basic.js +221 -0
  1034. package/mac-agent/node_modules/isexe/windows.js +42 -0
  1035. package/mac-agent/node_modules/kuler/.travis.yml +5 -0
  1036. package/mac-agent/node_modules/kuler/LICENSE +7 -0
  1037. package/mac-agent/node_modules/kuler/README.md +40 -0
  1038. package/mac-agent/node_modules/kuler/index.js +118 -0
  1039. package/mac-agent/node_modules/kuler/package.json +34 -0
  1040. package/mac-agent/node_modules/kuler/test.js +23 -0
  1041. package/mac-agent/node_modules/lcid/index.js +22 -0
  1042. package/mac-agent/node_modules/lcid/lcid.json +203 -0
  1043. package/mac-agent/node_modules/lcid/license +21 -0
  1044. package/mac-agent/node_modules/lcid/package.json +46 -0
  1045. package/mac-agent/node_modules/lcid/readme.md +35 -0
  1046. package/mac-agent/node_modules/load-json-file/index.js +21 -0
  1047. package/mac-agent/node_modules/load-json-file/license +21 -0
  1048. package/mac-agent/node_modules/load-json-file/package.json +46 -0
  1049. package/mac-agent/node_modules/load-json-file/readme.md +45 -0
  1050. package/mac-agent/node_modules/logform/.babelrc +3 -0
  1051. package/mac-agent/node_modules/logform/.eslintrc +7 -0
  1052. package/mac-agent/node_modules/logform/.gitattributes +1 -0
  1053. package/mac-agent/node_modules/logform/CHANGELOG.md +309 -0
  1054. package/mac-agent/node_modules/logform/LICENSE +21 -0
  1055. package/mac-agent/node_modules/logform/README.md +653 -0
  1056. package/mac-agent/node_modules/logform/align.js +14 -0
  1057. package/mac-agent/node_modules/logform/browser.js +38 -0
  1058. package/mac-agent/node_modules/logform/cli.js +52 -0
  1059. package/mac-agent/node_modules/logform/colorize.js +122 -0
  1060. package/mac-agent/node_modules/logform/combine.js +66 -0
  1061. package/mac-agent/node_modules/logform/dist/align.js +14 -0
  1062. package/mac-agent/node_modules/logform/dist/browser.js +72 -0
  1063. package/mac-agent/node_modules/logform/dist/cli.js +62 -0
  1064. package/mac-agent/node_modules/logform/dist/colorize.js +131 -0
  1065. package/mac-agent/node_modules/logform/dist/combine.js +62 -0
  1066. package/mac-agent/node_modules/logform/dist/errors.js +44 -0
  1067. package/mac-agent/node_modules/logform/dist/format.js +70 -0
  1068. package/mac-agent/node_modules/logform/dist/index.js +86 -0
  1069. package/mac-agent/node_modules/logform/dist/json.js +30 -0
  1070. package/mac-agent/node_modules/logform/dist/label.js +18 -0
  1071. package/mac-agent/node_modules/logform/dist/levels.js +13 -0
  1072. package/mac-agent/node_modules/logform/dist/logstash.js +28 -0
  1073. package/mac-agent/node_modules/logform/dist/metadata.js +56 -0
  1074. package/mac-agent/node_modules/logform/dist/ms.js +18 -0
  1075. package/mac-agent/node_modules/logform/dist/pad-levels.js +110 -0
  1076. package/mac-agent/node_modules/logform/dist/pretty-print.js +32 -0
  1077. package/mac-agent/node_modules/logform/dist/printf.js +33 -0
  1078. package/mac-agent/node_modules/logform/dist/simple.js +32 -0
  1079. package/mac-agent/node_modules/logform/dist/splat.js +143 -0
  1080. package/mac-agent/node_modules/logform/dist/timestamp.js +26 -0
  1081. package/mac-agent/node_modules/logform/dist/uncolorize.js +25 -0
  1082. package/mac-agent/node_modules/logform/errors.js +41 -0
  1083. package/mac-agent/node_modules/logform/format.js +52 -0
  1084. package/mac-agent/node_modules/logform/index.d.ts +201 -0
  1085. package/mac-agent/node_modules/logform/index.js +52 -0
  1086. package/mac-agent/node_modules/logform/json.js +30 -0
  1087. package/mac-agent/node_modules/logform/label.js +19 -0
  1088. package/mac-agent/node_modules/logform/levels.js +12 -0
  1089. package/mac-agent/node_modules/logform/logstash.js +29 -0
  1090. package/mac-agent/node_modules/logform/metadata.js +61 -0
  1091. package/mac-agent/node_modules/logform/ms.js +18 -0
  1092. package/mac-agent/node_modules/logform/package.json +53 -0
  1093. package/mac-agent/node_modules/logform/pad-levels.js +83 -0
  1094. package/mac-agent/node_modules/logform/pretty-print.js +29 -0
  1095. package/mac-agent/node_modules/logform/printf.js +26 -0
  1096. package/mac-agent/node_modules/logform/simple.js +33 -0
  1097. package/mac-agent/node_modules/logform/splat.js +132 -0
  1098. package/mac-agent/node_modules/logform/timestamp.js +30 -0
  1099. package/mac-agent/node_modules/logform/tsconfig.json +22 -0
  1100. package/mac-agent/node_modules/logform/uncolorize.js +27 -0
  1101. package/mac-agent/node_modules/make-dir/index.d.ts +66 -0
  1102. package/mac-agent/node_modules/make-dir/index.js +156 -0
  1103. package/mac-agent/node_modules/make-dir/license +9 -0
  1104. package/mac-agent/node_modules/make-dir/node_modules/semver/LICENSE +15 -0
  1105. package/mac-agent/node_modules/make-dir/node_modules/semver/README.md +443 -0
  1106. package/mac-agent/node_modules/make-dir/node_modules/semver/bin/semver.js +174 -0
  1107. package/mac-agent/node_modules/make-dir/node_modules/semver/package.json +38 -0
  1108. package/mac-agent/node_modules/make-dir/node_modules/semver/range.bnf +16 -0
  1109. package/mac-agent/node_modules/make-dir/node_modules/semver/semver.js +1643 -0
  1110. package/mac-agent/node_modules/make-dir/package.json +59 -0
  1111. package/mac-agent/node_modules/make-dir/readme.md +125 -0
  1112. package/mac-agent/node_modules/math-intrinsics/.eslintrc +16 -0
  1113. package/mac-agent/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
  1114. package/mac-agent/node_modules/math-intrinsics/CHANGELOG.md +24 -0
  1115. package/mac-agent/node_modules/math-intrinsics/LICENSE +21 -0
  1116. package/mac-agent/node_modules/math-intrinsics/README.md +50 -0
  1117. package/mac-agent/node_modules/math-intrinsics/abs.d.ts +1 -0
  1118. package/mac-agent/node_modules/math-intrinsics/abs.js +4 -0
  1119. package/mac-agent/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
  1120. package/mac-agent/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
  1121. package/mac-agent/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
  1122. package/mac-agent/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
  1123. package/mac-agent/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
  1124. package/mac-agent/node_modules/math-intrinsics/constants/maxValue.js +5 -0
  1125. package/mac-agent/node_modules/math-intrinsics/floor.d.ts +1 -0
  1126. package/mac-agent/node_modules/math-intrinsics/floor.js +4 -0
  1127. package/mac-agent/node_modules/math-intrinsics/isFinite.d.ts +3 -0
  1128. package/mac-agent/node_modules/math-intrinsics/isFinite.js +12 -0
  1129. package/mac-agent/node_modules/math-intrinsics/isInteger.d.ts +3 -0
  1130. package/mac-agent/node_modules/math-intrinsics/isInteger.js +16 -0
  1131. package/mac-agent/node_modules/math-intrinsics/isNaN.d.ts +1 -0
  1132. package/mac-agent/node_modules/math-intrinsics/isNaN.js +6 -0
  1133. package/mac-agent/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
  1134. package/mac-agent/node_modules/math-intrinsics/isNegativeZero.js +6 -0
  1135. package/mac-agent/node_modules/math-intrinsics/max.d.ts +1 -0
  1136. package/mac-agent/node_modules/math-intrinsics/max.js +4 -0
  1137. package/mac-agent/node_modules/math-intrinsics/min.d.ts +1 -0
  1138. package/mac-agent/node_modules/math-intrinsics/min.js +4 -0
  1139. package/mac-agent/node_modules/math-intrinsics/mod.d.ts +3 -0
  1140. package/mac-agent/node_modules/math-intrinsics/mod.js +9 -0
  1141. package/mac-agent/node_modules/math-intrinsics/package.json +86 -0
  1142. package/mac-agent/node_modules/math-intrinsics/pow.d.ts +1 -0
  1143. package/mac-agent/node_modules/math-intrinsics/pow.js +4 -0
  1144. package/mac-agent/node_modules/math-intrinsics/round.d.ts +1 -0
  1145. package/mac-agent/node_modules/math-intrinsics/round.js +4 -0
  1146. package/mac-agent/node_modules/math-intrinsics/sign.d.ts +3 -0
  1147. package/mac-agent/node_modules/math-intrinsics/sign.js +11 -0
  1148. package/mac-agent/node_modules/math-intrinsics/test/index.js +192 -0
  1149. package/mac-agent/node_modules/math-intrinsics/tsconfig.json +3 -0
  1150. package/mac-agent/node_modules/mime-db/HISTORY.md +507 -0
  1151. package/mac-agent/node_modules/mime-db/LICENSE +23 -0
  1152. package/mac-agent/node_modules/mime-db/README.md +100 -0
  1153. package/mac-agent/node_modules/mime-db/db.json +8519 -0
  1154. package/mac-agent/node_modules/mime-db/index.js +12 -0
  1155. package/mac-agent/node_modules/mime-db/package.json +60 -0
  1156. package/mac-agent/node_modules/mime-types/HISTORY.md +397 -0
  1157. package/mac-agent/node_modules/mime-types/LICENSE +23 -0
  1158. package/mac-agent/node_modules/mime-types/README.md +113 -0
  1159. package/mac-agent/node_modules/mime-types/index.js +188 -0
  1160. package/mac-agent/node_modules/mime-types/package.json +44 -0
  1161. package/mac-agent/node_modules/minimatch/LICENSE +15 -0
  1162. package/mac-agent/node_modules/minimatch/README.md +230 -0
  1163. package/mac-agent/node_modules/minimatch/minimatch.js +947 -0
  1164. package/mac-agent/node_modules/minimatch/package.json +33 -0
  1165. package/mac-agent/node_modules/minipass/LICENSE +15 -0
  1166. package/mac-agent/node_modules/minipass/README.md +769 -0
  1167. package/mac-agent/node_modules/minipass/index.d.ts +152 -0
  1168. package/mac-agent/node_modules/minipass/index.js +702 -0
  1169. package/mac-agent/node_modules/minipass/index.mjs +702 -0
  1170. package/mac-agent/node_modules/minipass/package.json +76 -0
  1171. package/mac-agent/node_modules/minizlib/LICENSE +26 -0
  1172. package/mac-agent/node_modules/minizlib/README.md +60 -0
  1173. package/mac-agent/node_modules/minizlib/constants.js +115 -0
  1174. package/mac-agent/node_modules/minizlib/index.js +348 -0
  1175. package/mac-agent/node_modules/minizlib/node_modules/minipass/LICENSE +15 -0
  1176. package/mac-agent/node_modules/minizlib/node_modules/minipass/README.md +728 -0
  1177. package/mac-agent/node_modules/minizlib/node_modules/minipass/index.d.ts +155 -0
  1178. package/mac-agent/node_modules/minizlib/node_modules/minipass/index.js +649 -0
  1179. package/mac-agent/node_modules/minizlib/node_modules/minipass/package.json +56 -0
  1180. package/mac-agent/node_modules/minizlib/package.json +42 -0
  1181. package/mac-agent/node_modules/mkdirp/CHANGELOG.md +15 -0
  1182. package/mac-agent/node_modules/mkdirp/LICENSE +21 -0
  1183. package/mac-agent/node_modules/mkdirp/bin/cmd.js +68 -0
  1184. package/mac-agent/node_modules/mkdirp/index.js +31 -0
  1185. package/mac-agent/node_modules/mkdirp/lib/find-made.js +29 -0
  1186. package/mac-agent/node_modules/mkdirp/lib/mkdirp-manual.js +64 -0
  1187. package/mac-agent/node_modules/mkdirp/lib/mkdirp-native.js +39 -0
  1188. package/mac-agent/node_modules/mkdirp/lib/opts-arg.js +23 -0
  1189. package/mac-agent/node_modules/mkdirp/lib/path-arg.js +29 -0
  1190. package/mac-agent/node_modules/mkdirp/lib/use-native.js +10 -0
  1191. package/mac-agent/node_modules/mkdirp/package.json +44 -0
  1192. package/mac-agent/node_modules/mkdirp/readme.markdown +266 -0
  1193. package/mac-agent/node_modules/ms/index.js +162 -0
  1194. package/mac-agent/node_modules/ms/license.md +21 -0
  1195. package/mac-agent/node_modules/ms/package.json +38 -0
  1196. package/mac-agent/node_modules/ms/readme.md +59 -0
  1197. package/mac-agent/node_modules/nan/.github/workflows/ci.yml +52 -0
  1198. package/mac-agent/node_modules/nan/CHANGELOG.md +577 -0
  1199. package/mac-agent/node_modules/nan/CMakeLists.txt +138 -0
  1200. package/mac-agent/node_modules/nan/LICENSE.md +9 -0
  1201. package/mac-agent/node_modules/nan/README.md +455 -0
  1202. package/mac-agent/node_modules/nan/doc/asyncworker.md +146 -0
  1203. package/mac-agent/node_modules/nan/doc/buffers.md +54 -0
  1204. package/mac-agent/node_modules/nan/doc/callback.md +76 -0
  1205. package/mac-agent/node_modules/nan/doc/converters.md +41 -0
  1206. package/mac-agent/node_modules/nan/doc/errors.md +226 -0
  1207. package/mac-agent/node_modules/nan/doc/json.md +62 -0
  1208. package/mac-agent/node_modules/nan/doc/maybe_types.md +583 -0
  1209. package/mac-agent/node_modules/nan/doc/methods.md +672 -0
  1210. package/mac-agent/node_modules/nan/doc/new.md +147 -0
  1211. package/mac-agent/node_modules/nan/doc/node_misc.md +123 -0
  1212. package/mac-agent/node_modules/nan/doc/object_wrappers.md +263 -0
  1213. package/mac-agent/node_modules/nan/doc/persistent.md +296 -0
  1214. package/mac-agent/node_modules/nan/doc/scopes.md +73 -0
  1215. package/mac-agent/node_modules/nan/doc/script.md +58 -0
  1216. package/mac-agent/node_modules/nan/doc/string_bytes.md +62 -0
  1217. package/mac-agent/node_modules/nan/doc/v8_internals.md +199 -0
  1218. package/mac-agent/node_modules/nan/doc/v8_misc.md +85 -0
  1219. package/mac-agent/node_modules/nan/include_dirs.js +1 -0
  1220. package/mac-agent/node_modules/nan/nan.h +3049 -0
  1221. package/mac-agent/node_modules/nan/nan_callbacks.h +128 -0
  1222. package/mac-agent/node_modules/nan/nan_callbacks_12_inl.h +676 -0
  1223. package/mac-agent/node_modules/nan/nan_callbacks_pre_12_inl.h +520 -0
  1224. package/mac-agent/node_modules/nan/nan_converters.h +72 -0
  1225. package/mac-agent/node_modules/nan/nan_converters_43_inl.h +68 -0
  1226. package/mac-agent/node_modules/nan/nan_converters_pre_43_inl.h +42 -0
  1227. package/mac-agent/node_modules/nan/nan_define_own_property_helper.h +29 -0
  1228. package/mac-agent/node_modules/nan/nan_implementation_12_inl.h +430 -0
  1229. package/mac-agent/node_modules/nan/nan_implementation_pre_12_inl.h +263 -0
  1230. package/mac-agent/node_modules/nan/nan_json.h +166 -0
  1231. package/mac-agent/node_modules/nan/nan_maybe_43_inl.h +356 -0
  1232. package/mac-agent/node_modules/nan/nan_maybe_pre_43_inl.h +268 -0
  1233. package/mac-agent/node_modules/nan/nan_new.h +340 -0
  1234. package/mac-agent/node_modules/nan/nan_object_wrap.h +156 -0
  1235. package/mac-agent/node_modules/nan/nan_persistent_12_inl.h +132 -0
  1236. package/mac-agent/node_modules/nan/nan_persistent_pre_12_inl.h +242 -0
  1237. package/mac-agent/node_modules/nan/nan_private.h +73 -0
  1238. package/mac-agent/node_modules/nan/nan_scriptorigin.h +95 -0
  1239. package/mac-agent/node_modules/nan/nan_string_bytes.h +305 -0
  1240. package/mac-agent/node_modules/nan/nan_typedarray_contents.h +96 -0
  1241. package/mac-agent/node_modules/nan/nan_weak.h +437 -0
  1242. package/mac-agent/node_modules/nan/package.json +38 -0
  1243. package/mac-agent/node_modules/nan/tools/1to2.js +412 -0
  1244. package/mac-agent/node_modules/nan/tools/README.md +14 -0
  1245. package/mac-agent/node_modules/nan/tools/package.json +19 -0
  1246. package/mac-agent/node_modules/node-addon-api/.editorconfig +8 -0
  1247. package/mac-agent/node_modules/node-addon-api/.travis.yml +65 -0
  1248. package/mac-agent/node_modules/node-addon-api/CHANGELOG.md +325 -0
  1249. package/mac-agent/node_modules/node-addon-api/CODE_OF_CONDUCT.md +4 -0
  1250. package/mac-agent/node_modules/node-addon-api/CONTRIBUTING.md +66 -0
  1251. package/mac-agent/node_modules/node-addon-api/LICENSE.md +13 -0
  1252. package/mac-agent/node_modules/node-addon-api/README.md +200 -0
  1253. package/mac-agent/node_modules/node-addon-api/appveyor.yml +48 -0
  1254. package/mac-agent/node_modules/node-addon-api/doc/Doxyfile +2450 -0
  1255. package/mac-agent/node_modules/node-addon-api/doc/array_buffer.md +129 -0
  1256. package/mac-agent/node_modules/node-addon-api/doc/async_context.md +76 -0
  1257. package/mac-agent/node_modules/node-addon-api/doc/async_operations.md +31 -0
  1258. package/mac-agent/node_modules/node-addon-api/doc/async_worker.md +397 -0
  1259. package/mac-agent/node_modules/node-addon-api/doc/basic_types.md +415 -0
  1260. package/mac-agent/node_modules/node-addon-api/doc/bigint.md +92 -0
  1261. package/mac-agent/node_modules/node-addon-api/doc/boolean.md +64 -0
  1262. package/mac-agent/node_modules/node-addon-api/doc/buffer.md +140 -0
  1263. package/mac-agent/node_modules/node-addon-api/doc/callback_scope.md +54 -0
  1264. package/mac-agent/node_modules/node-addon-api/doc/callbackinfo.md +97 -0
  1265. package/mac-agent/node_modules/node-addon-api/doc/checker-tool.md +32 -0
  1266. package/mac-agent/node_modules/node-addon-api/doc/class_property_descriptor.md +118 -0
  1267. package/mac-agent/node_modules/node-addon-api/doc/cmake-js.md +19 -0
  1268. package/mac-agent/node_modules/node-addon-api/doc/conversion-tool.md +28 -0
  1269. package/mac-agent/node_modules/node-addon-api/doc/creating_a_release.md +62 -0
  1270. package/mac-agent/node_modules/node-addon-api/doc/dataview.md +244 -0
  1271. package/mac-agent/node_modules/node-addon-api/doc/env.md +63 -0
  1272. package/mac-agent/node_modules/node-addon-api/doc/error.md +115 -0
  1273. package/mac-agent/node_modules/node-addon-api/doc/error_handling.md +186 -0
  1274. package/mac-agent/node_modules/node-addon-api/doc/escapable_handle_scope.md +82 -0
  1275. package/mac-agent/node_modules/node-addon-api/doc/external.md +59 -0
  1276. package/mac-agent/node_modules/node-addon-api/doc/function.md +294 -0
  1277. package/mac-agent/node_modules/node-addon-api/doc/function_reference.md +238 -0
  1278. package/mac-agent/node_modules/node-addon-api/doc/generator.md +13 -0
  1279. package/mac-agent/node_modules/node-addon-api/doc/handle_scope.md +65 -0
  1280. package/mac-agent/node_modules/node-addon-api/doc/memory_management.md +27 -0
  1281. package/mac-agent/node_modules/node-addon-api/doc/node-gyp.md +82 -0
  1282. package/mac-agent/node_modules/node-addon-api/doc/number.md +163 -0
  1283. package/mac-agent/node_modules/node-addon-api/doc/object.md +202 -0
  1284. package/mac-agent/node_modules/node-addon-api/doc/object_lifetime_management.md +83 -0
  1285. package/mac-agent/node_modules/node-addon-api/doc/object_reference.md +117 -0
  1286. package/mac-agent/node_modules/node-addon-api/doc/object_wrap.md +546 -0
  1287. package/mac-agent/node_modules/node-addon-api/doc/prebuild_tools.md +16 -0
  1288. package/mac-agent/node_modules/node-addon-api/doc/promises.md +74 -0
  1289. package/mac-agent/node_modules/node-addon-api/doc/property_descriptor.md +231 -0
  1290. package/mac-agent/node_modules/node-addon-api/doc/range_error.md +59 -0
  1291. package/mac-agent/node_modules/node-addon-api/doc/reference.md +111 -0
  1292. package/mac-agent/node_modules/node-addon-api/doc/setup.md +82 -0
  1293. package/mac-agent/node_modules/node-addon-api/doc/string.md +89 -0
  1294. package/mac-agent/node_modules/node-addon-api/doc/symbol.md +44 -0
  1295. package/mac-agent/node_modules/node-addon-api/doc/threadsafe_function.md +303 -0
  1296. package/mac-agent/node_modules/node-addon-api/doc/type_error.md +59 -0
  1297. package/mac-agent/node_modules/node-addon-api/doc/typed_array.md +74 -0
  1298. package/mac-agent/node_modules/node-addon-api/doc/typed_array_of.md +133 -0
  1299. package/mac-agent/node_modules/node-addon-api/doc/value.md +269 -0
  1300. package/mac-agent/node_modules/node-addon-api/doc/version_management.md +43 -0
  1301. package/mac-agent/node_modules/node-addon-api/doc/working_with_javascript_values.md +14 -0
  1302. package/mac-agent/node_modules/node-addon-api/external-napi/node_api.h +7 -0
  1303. package/mac-agent/node_modules/node-addon-api/index.js +45 -0
  1304. package/mac-agent/node_modules/node-addon-api/napi-inl.deprecated.h +192 -0
  1305. package/mac-agent/node_modules/node-addon-api/napi-inl.h +4097 -0
  1306. package/mac-agent/node_modules/node-addon-api/napi.h +2053 -0
  1307. package/mac-agent/node_modules/node-addon-api/package.json +79 -0
  1308. package/mac-agent/node_modules/node-addon-api/src/node_api.cc +3655 -0
  1309. package/mac-agent/node_modules/node-addon-api/src/node_api.gyp +21 -0
  1310. package/mac-agent/node_modules/node-addon-api/src/node_api.h +588 -0
  1311. package/mac-agent/node_modules/node-addon-api/src/node_api_types.h +115 -0
  1312. package/mac-agent/node_modules/node-addon-api/src/node_internals.cc +142 -0
  1313. package/mac-agent/node_modules/node-addon-api/src/node_internals.h +157 -0
  1314. package/mac-agent/node_modules/node-addon-api/src/nothing.c +0 -0
  1315. package/mac-agent/node_modules/node-addon-api/src/util-inl.h +38 -0
  1316. package/mac-agent/node_modules/node-addon-api/src/util.h +7 -0
  1317. package/mac-agent/node_modules/node-addon-api/tools/README.md +67 -0
  1318. package/mac-agent/node_modules/node-addon-api/tools/check-napi.js +100 -0
  1319. package/mac-agent/node_modules/node-addon-api/tools/conversion.js +313 -0
  1320. package/mac-agent/node_modules/node-cmake/.jshintrc +20 -0
  1321. package/mac-agent/node_modules/node-cmake/LICENSE.txt +15 -0
  1322. package/mac-agent/node_modules/node-cmake/NodeJS.cmake +637 -0
  1323. package/mac-agent/node_modules/node-cmake/README.md +93 -0
  1324. package/mac-agent/node_modules/node-cmake/docs/Nan.md +9 -0
  1325. package/mac-agent/node_modules/node-cmake/docs/NcmakeManual.md +83 -0
  1326. package/mac-agent/node_modules/node-cmake/docs/NodeJSCmakeManual.md +107 -0
  1327. package/mac-agent/node_modules/node-cmake/example/CMakeLists.txt +8 -0
  1328. package/mac-agent/node_modules/node-cmake/example/README.md +28 -0
  1329. package/mac-agent/node_modules/node-cmake/example/index.js +2 -0
  1330. package/mac-agent/node_modules/node-cmake/example/package.json +20 -0
  1331. package/mac-agent/node_modules/node-cmake/example/src/hello.cc +16 -0
  1332. package/mac-agent/node_modules/node-cmake/index.js +44 -0
  1333. package/mac-agent/node_modules/node-cmake/lib/embed.js +17 -0
  1334. package/mac-agent/node_modules/node-cmake/lib/ncmake.js +284 -0
  1335. package/mac-agent/node_modules/node-cmake/package.json +34 -0
  1336. package/mac-agent/node_modules/node-cmake/src/win_delay_load_hook.c +68 -0
  1337. package/mac-agent/node_modules/node-fetch/LICENSE.md +22 -0
  1338. package/mac-agent/node_modules/node-fetch/README.md +634 -0
  1339. package/mac-agent/node_modules/node-fetch/browser.js +25 -0
  1340. package/mac-agent/node_modules/node-fetch/lib/index.es.js +1777 -0
  1341. package/mac-agent/node_modules/node-fetch/lib/index.js +1787 -0
  1342. package/mac-agent/node_modules/node-fetch/lib/index.mjs +1775 -0
  1343. package/mac-agent/node_modules/node-fetch/package.json +89 -0
  1344. package/mac-agent/node_modules/node-pty/LICENSE +69 -0
  1345. package/mac-agent/node_modules/node-pty/README.md +163 -0
  1346. package/mac-agent/node_modules/node-pty/binding.gyp +117 -0
  1347. package/mac-agent/node_modules/node-pty/build/Makefile +352 -0
  1348. package/mac-agent/node_modules/node-pty/build/Release/pty.node +0 -0
  1349. package/mac-agent/node_modules/node-pty/build/Release/spawn-helper +0 -0
  1350. package/mac-agent/node_modules/node-pty/build/binding.Makefile +6 -0
  1351. package/mac-agent/node_modules/node-pty/build/gyp-mac-tool +768 -0
  1352. package/mac-agent/node_modules/node-pty/build/pty.target.mk +183 -0
  1353. package/mac-agent/node_modules/node-pty/build/spawn-helper.target.mk +172 -0
  1354. package/mac-agent/node_modules/node-pty/deps/.editorconfig +2 -0
  1355. package/mac-agent/node_modules/node-pty/deps/winpty/.drone.yml +17 -0
  1356. package/mac-agent/node_modules/node-pty/deps/winpty/.gitattributes +19 -0
  1357. package/mac-agent/node_modules/node-pty/deps/winpty/LICENSE +21 -0
  1358. package/mac-agent/node_modules/node-pty/deps/winpty/Makefile +166 -0
  1359. package/mac-agent/node_modules/node-pty/deps/winpty/README.md +151 -0
  1360. package/mac-agent/node_modules/node-pty/deps/winpty/RELEASES.md +280 -0
  1361. package/mac-agent/node_modules/node-pty/deps/winpty/VERSION.txt +1 -0
  1362. package/mac-agent/node_modules/node-pty/deps/winpty/configure +167 -0
  1363. package/mac-agent/node_modules/node-pty/deps/winpty/misc/BufferResizeTests.cc +90 -0
  1364. package/mac-agent/node_modules/node-pty/deps/winpty/misc/ChangeScreenBuffer.cc +53 -0
  1365. package/mac-agent/node_modules/node-pty/deps/winpty/misc/ClearConsole.cc +72 -0
  1366. package/mac-agent/node_modules/node-pty/deps/winpty/misc/ConinMode.cc +117 -0
  1367. package/mac-agent/node_modules/node-pty/deps/winpty/misc/ConinMode.ps1 +116 -0
  1368. package/mac-agent/node_modules/node-pty/deps/winpty/misc/ConoutMode.cc +113 -0
  1369. package/mac-agent/node_modules/node-pty/deps/winpty/misc/DebugClient.py +42 -0
  1370. package/mac-agent/node_modules/node-pty/deps/winpty/misc/DebugServer.py +63 -0
  1371. package/mac-agent/node_modules/node-pty/deps/winpty/misc/DumpLines.py +5 -0
  1372. package/mac-agent/node_modules/node-pty/deps/winpty/misc/EnableExtendedFlags.txt +46 -0
  1373. package/mac-agent/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP437-Consolas.txt +528 -0
  1374. package/mac-agent/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP437-Lucida.txt +633 -0
  1375. package/mac-agent/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP932.txt +630 -0
  1376. package/mac-agent/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP936.txt +630 -0
  1377. package/mac-agent/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP949.txt +630 -0
  1378. package/mac-agent/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP950.txt +630 -0
  1379. package/mac-agent/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/MinimumWindowWidths.txt +16 -0
  1380. package/mac-agent/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/Results.txt +4 -0
  1381. package/mac-agent/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/Windows10SetFontBugginess.txt +144 -0
  1382. package/mac-agent/node_modules/node-pty/deps/winpty/misc/FontSurvey.cc +100 -0
  1383. package/mac-agent/node_modules/node-pty/deps/winpty/misc/FormatChar.h +21 -0
  1384. package/mac-agent/node_modules/node-pty/deps/winpty/misc/FreezePerfTest.cc +62 -0
  1385. package/mac-agent/node_modules/node-pty/deps/winpty/misc/GetCh.cc +20 -0
  1386. package/mac-agent/node_modules/node-pty/deps/winpty/misc/GetConsolePos.cc +41 -0
  1387. package/mac-agent/node_modules/node-pty/deps/winpty/misc/GetFont.cc +261 -0
  1388. package/mac-agent/node_modules/node-pty/deps/winpty/misc/IdentifyConsoleWindow.ps1 +51 -0
  1389. package/mac-agent/node_modules/node-pty/deps/winpty/misc/IsNewConsole.cc +87 -0
  1390. package/mac-agent/node_modules/node-pty/deps/winpty/misc/MouseInputNotes.txt +90 -0
  1391. package/mac-agent/node_modules/node-pty/deps/winpty/misc/MoveConsoleWindow.cc +34 -0
  1392. package/mac-agent/node_modules/node-pty/deps/winpty/misc/Notes.txt +219 -0
  1393. package/mac-agent/node_modules/node-pty/deps/winpty/misc/OSVersion.cc +27 -0
  1394. package/mac-agent/node_modules/node-pty/deps/winpty/misc/ScreenBufferFreezeInactive.cc +101 -0
  1395. package/mac-agent/node_modules/node-pty/deps/winpty/misc/ScreenBufferTest.cc +671 -0
  1396. package/mac-agent/node_modules/node-pty/deps/winpty/misc/ScreenBufferTest2.cc +151 -0
  1397. package/mac-agent/node_modules/node-pty/deps/winpty/misc/SelectAllTest.cc +45 -0
  1398. package/mac-agent/node_modules/node-pty/deps/winpty/misc/SetBufferSize.cc +32 -0
  1399. package/mac-agent/node_modules/node-pty/deps/winpty/misc/SetCursorPos.cc +10 -0
  1400. package/mac-agent/node_modules/node-pty/deps/winpty/misc/SetFont.cc +145 -0
  1401. package/mac-agent/node_modules/node-pty/deps/winpty/misc/SetWindowRect.cc +36 -0
  1402. package/mac-agent/node_modules/node-pty/deps/winpty/misc/ShowArgv.cc +12 -0
  1403. package/mac-agent/node_modules/node-pty/deps/winpty/misc/ShowConsoleInput.cc +40 -0
  1404. package/mac-agent/node_modules/node-pty/deps/winpty/misc/Spew.py +5 -0
  1405. package/mac-agent/node_modules/node-pty/deps/winpty/misc/TestUtil.cc +172 -0
  1406. package/mac-agent/node_modules/node-pty/deps/winpty/misc/UnicodeDoubleWidthTest.cc +102 -0
  1407. package/mac-agent/node_modules/node-pty/deps/winpty/misc/UnicodeWideTest1.cc +246 -0
  1408. package/mac-agent/node_modules/node-pty/deps/winpty/misc/UnicodeWideTest2.cc +130 -0
  1409. package/mac-agent/node_modules/node-pty/deps/winpty/misc/UnixEcho.cc +89 -0
  1410. package/mac-agent/node_modules/node-pty/deps/winpty/misc/Utf16Echo.cc +46 -0
  1411. package/mac-agent/node_modules/node-pty/deps/winpty/misc/VeryLargeRead.cc +122 -0
  1412. package/mac-agent/node_modules/node-pty/deps/winpty/misc/VkEscapeTest.cc +56 -0
  1413. package/mac-agent/node_modules/node-pty/deps/winpty/misc/Win10ResizeWhileFrozen.cc +52 -0
  1414. package/mac-agent/node_modules/node-pty/deps/winpty/misc/Win10WrapTest1.cc +57 -0
  1415. package/mac-agent/node_modules/node-pty/deps/winpty/misc/Win10WrapTest2.cc +30 -0
  1416. package/mac-agent/node_modules/node-pty/deps/winpty/misc/Win32Echo1.cc +26 -0
  1417. package/mac-agent/node_modules/node-pty/deps/winpty/misc/Win32Echo2.cc +19 -0
  1418. package/mac-agent/node_modules/node-pty/deps/winpty/misc/Win32Test1.cc +46 -0
  1419. package/mac-agent/node_modules/node-pty/deps/winpty/misc/Win32Test2.cc +70 -0
  1420. package/mac-agent/node_modules/node-pty/deps/winpty/misc/Win32Test3.cc +78 -0
  1421. package/mac-agent/node_modules/node-pty/deps/winpty/misc/Win32Write1.cc +44 -0
  1422. package/mac-agent/node_modules/node-pty/deps/winpty/misc/WindowsBugCrashReader.cc +27 -0
  1423. package/mac-agent/node_modules/node-pty/deps/winpty/misc/WriteConsole.cc +106 -0
  1424. package/mac-agent/node_modules/node-pty/deps/winpty/misc/build32.sh +9 -0
  1425. package/mac-agent/node_modules/node-pty/deps/winpty/misc/build64.sh +9 -0
  1426. package/mac-agent/node_modules/node-pty/deps/winpty/misc/color-test.sh +212 -0
  1427. package/mac-agent/node_modules/node-pty/deps/winpty/misc/font-notes.txt +300 -0
  1428. package/mac-agent/node_modules/node-pty/deps/winpty/misc/winbug-15048.cc +201 -0
  1429. package/mac-agent/node_modules/node-pty/deps/winpty/ship/build-pty4j-libpty.bat +36 -0
  1430. package/mac-agent/node_modules/node-pty/deps/winpty/ship/common_ship.py +53 -0
  1431. package/mac-agent/node_modules/node-pty/deps/winpty/ship/make_msvc_package.py +165 -0
  1432. package/mac-agent/node_modules/node-pty/deps/winpty/ship/ship.py +108 -0
  1433. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/Agent.cc +605 -0
  1434. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/Agent.h +103 -0
  1435. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/AgentCreateDesktop.cc +84 -0
  1436. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/AgentCreateDesktop.h +28 -0
  1437. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/ConsoleFont.cc +632 -0
  1438. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/ConsoleFont.h +28 -0
  1439. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/ConsoleInput.cc +852 -0
  1440. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/ConsoleInput.h +109 -0
  1441. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/ConsoleInputReencoding.cc +121 -0
  1442. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/ConsoleInputReencoding.h +36 -0
  1443. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/ConsoleLine.cc +152 -0
  1444. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/ConsoleLine.h +41 -0
  1445. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/Coord.h +87 -0
  1446. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/DebugShowInput.cc +239 -0
  1447. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/DebugShowInput.h +32 -0
  1448. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/DefaultInputMap.cc +422 -0
  1449. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/DefaultInputMap.h +28 -0
  1450. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/DsrSender.h +30 -0
  1451. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/EventLoop.cc +99 -0
  1452. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/EventLoop.h +47 -0
  1453. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/InputMap.cc +246 -0
  1454. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/InputMap.h +114 -0
  1455. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/LargeConsoleRead.cc +71 -0
  1456. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/LargeConsoleRead.h +68 -0
  1457. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/NamedPipe.cc +378 -0
  1458. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/NamedPipe.h +125 -0
  1459. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/Scraper.cc +699 -0
  1460. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/Scraper.h +103 -0
  1461. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/SimplePool.h +75 -0
  1462. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/SmallRect.h +143 -0
  1463. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/Terminal.cc +535 -0
  1464. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/Terminal.h +69 -0
  1465. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/UnicodeEncoding.h +157 -0
  1466. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/UnicodeEncodingTest.cc +189 -0
  1467. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/Win32Console.cc +107 -0
  1468. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/Win32Console.h +67 -0
  1469. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/Win32ConsoleBuffer.cc +193 -0
  1470. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/Win32ConsoleBuffer.h +99 -0
  1471. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/main.cc +114 -0
  1472. package/mac-agent/node_modules/node-pty/deps/winpty/src/agent/subdir.mk +61 -0
  1473. package/mac-agent/node_modules/node-pty/deps/winpty/src/configurations.gypi +60 -0
  1474. package/mac-agent/node_modules/node-pty/deps/winpty/src/debugserver/DebugServer.cc +117 -0
  1475. package/mac-agent/node_modules/node-pty/deps/winpty/src/debugserver/subdir.mk +41 -0
  1476. package/mac-agent/node_modules/node-pty/deps/winpty/src/include/winpty.h +242 -0
  1477. package/mac-agent/node_modules/node-pty/deps/winpty/src/include/winpty_constants.h +131 -0
  1478. package/mac-agent/node_modules/node-pty/deps/winpty/src/libwinpty/AgentLocation.cc +75 -0
  1479. package/mac-agent/node_modules/node-pty/deps/winpty/src/libwinpty/AgentLocation.h +28 -0
  1480. package/mac-agent/node_modules/node-pty/deps/winpty/src/libwinpty/LibWinptyException.h +54 -0
  1481. package/mac-agent/node_modules/node-pty/deps/winpty/src/libwinpty/WinptyInternal.h +72 -0
  1482. package/mac-agent/node_modules/node-pty/deps/winpty/src/libwinpty/subdir.mk +46 -0
  1483. package/mac-agent/node_modules/node-pty/deps/winpty/src/libwinpty/winpty.cc +970 -0
  1484. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/AgentMsg.h +38 -0
  1485. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/BackgroundDesktop.cc +122 -0
  1486. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/BackgroundDesktop.h +73 -0
  1487. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/Buffer.cc +103 -0
  1488. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/Buffer.h +102 -0
  1489. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/DebugClient.cc +187 -0
  1490. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/DebugClient.h +38 -0
  1491. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/GenRandom.cc +138 -0
  1492. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/GenRandom.h +55 -0
  1493. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/GetCommitHash.bat +13 -0
  1494. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/Mutex.h +54 -0
  1495. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/OsModule.h +63 -0
  1496. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/OwnedHandle.cc +36 -0
  1497. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/OwnedHandle.h +45 -0
  1498. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/PrecompiledHeader.h +43 -0
  1499. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/StringBuilder.h +227 -0
  1500. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/StringBuilderTest.cc +114 -0
  1501. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/StringUtil.cc +55 -0
  1502. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/StringUtil.h +80 -0
  1503. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/TimeMeasurement.h +63 -0
  1504. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/UnixCtrlChars.h +45 -0
  1505. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/UpdateGenVersion.bat +20 -0
  1506. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/WindowsSecurity.cc +460 -0
  1507. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/WindowsSecurity.h +104 -0
  1508. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/WindowsVersion.cc +252 -0
  1509. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/WindowsVersion.h +29 -0
  1510. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/WinptyAssert.cc +55 -0
  1511. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/WinptyAssert.h +64 -0
  1512. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/WinptyException.cc +57 -0
  1513. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/WinptyException.h +43 -0
  1514. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/WinptyVersion.cc +42 -0
  1515. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/WinptyVersion.h +27 -0
  1516. package/mac-agent/node_modules/node-pty/deps/winpty/src/shared/winpty_snprintf.h +99 -0
  1517. package/mac-agent/node_modules/node-pty/deps/winpty/src/subdir.mk +5 -0
  1518. package/mac-agent/node_modules/node-pty/deps/winpty/src/tests/subdir.mk +28 -0
  1519. package/mac-agent/node_modules/node-pty/deps/winpty/src/tests/trivial_test.cc +158 -0
  1520. package/mac-agent/node_modules/node-pty/deps/winpty/src/unix-adapter/InputHandler.cc +114 -0
  1521. package/mac-agent/node_modules/node-pty/deps/winpty/src/unix-adapter/InputHandler.h +56 -0
  1522. package/mac-agent/node_modules/node-pty/deps/winpty/src/unix-adapter/OutputHandler.cc +80 -0
  1523. package/mac-agent/node_modules/node-pty/deps/winpty/src/unix-adapter/OutputHandler.h +53 -0
  1524. package/mac-agent/node_modules/node-pty/deps/winpty/src/unix-adapter/Util.cc +86 -0
  1525. package/mac-agent/node_modules/node-pty/deps/winpty/src/unix-adapter/Util.h +31 -0
  1526. package/mac-agent/node_modules/node-pty/deps/winpty/src/unix-adapter/WakeupFd.cc +70 -0
  1527. package/mac-agent/node_modules/node-pty/deps/winpty/src/unix-adapter/WakeupFd.h +42 -0
  1528. package/mac-agent/node_modules/node-pty/deps/winpty/src/unix-adapter/main.cc +729 -0
  1529. package/mac-agent/node_modules/node-pty/deps/winpty/src/unix-adapter/subdir.mk +41 -0
  1530. package/mac-agent/node_modules/node-pty/deps/winpty/src/winpty.gyp +206 -0
  1531. package/mac-agent/node_modules/node-pty/deps/winpty/vcbuild.bat +83 -0
  1532. package/mac-agent/node_modules/node-pty/lib/conpty_console_list_agent.js +20 -0
  1533. package/mac-agent/node_modules/node-pty/lib/conpty_console_list_agent.js.map +1 -0
  1534. package/mac-agent/node_modules/node-pty/lib/eventEmitter2.js +47 -0
  1535. package/mac-agent/node_modules/node-pty/lib/eventEmitter2.js.map +1 -0
  1536. package/mac-agent/node_modules/node-pty/lib/eventEmitter2.test.js +30 -0
  1537. package/mac-agent/node_modules/node-pty/lib/eventEmitter2.test.js.map +1 -0
  1538. package/mac-agent/node_modules/node-pty/lib/index.js +51 -0
  1539. package/mac-agent/node_modules/node-pty/lib/index.js.map +1 -0
  1540. package/mac-agent/node_modules/node-pty/lib/interfaces.js +7 -0
  1541. package/mac-agent/node_modules/node-pty/lib/interfaces.js.map +1 -0
  1542. package/mac-agent/node_modules/node-pty/lib/shared/conout.js +11 -0
  1543. package/mac-agent/node_modules/node-pty/lib/shared/conout.js.map +1 -0
  1544. package/mac-agent/node_modules/node-pty/lib/terminal.js +190 -0
  1545. package/mac-agent/node_modules/node-pty/lib/terminal.js.map +1 -0
  1546. package/mac-agent/node_modules/node-pty/lib/terminal.test.js +139 -0
  1547. package/mac-agent/node_modules/node-pty/lib/terminal.test.js.map +1 -0
  1548. package/mac-agent/node_modules/node-pty/lib/testUtils.test.js +28 -0
  1549. package/mac-agent/node_modules/node-pty/lib/testUtils.test.js.map +1 -0
  1550. package/mac-agent/node_modules/node-pty/lib/types.js +7 -0
  1551. package/mac-agent/node_modules/node-pty/lib/types.js.map +1 -0
  1552. package/mac-agent/node_modules/node-pty/lib/unixTerminal.js +304 -0
  1553. package/mac-agent/node_modules/node-pty/lib/unixTerminal.js.map +1 -0
  1554. package/mac-agent/node_modules/node-pty/lib/unixTerminal.test.js +330 -0
  1555. package/mac-agent/node_modules/node-pty/lib/unixTerminal.test.js.map +1 -0
  1556. package/mac-agent/node_modules/node-pty/lib/utils.js +17 -0
  1557. package/mac-agent/node_modules/node-pty/lib/utils.js.map +1 -0
  1558. package/mac-agent/node_modules/node-pty/lib/windowsConoutConnection.js +122 -0
  1559. package/mac-agent/node_modules/node-pty/lib/windowsConoutConnection.js.map +1 -0
  1560. package/mac-agent/node_modules/node-pty/lib/windowsPtyAgent.js +324 -0
  1561. package/mac-agent/node_modules/node-pty/lib/windowsPtyAgent.js.map +1 -0
  1562. package/mac-agent/node_modules/node-pty/lib/windowsPtyAgent.test.js +90 -0
  1563. package/mac-agent/node_modules/node-pty/lib/windowsPtyAgent.test.js.map +1 -0
  1564. package/mac-agent/node_modules/node-pty/lib/windowsTerminal.js +201 -0
  1565. package/mac-agent/node_modules/node-pty/lib/windowsTerminal.js.map +1 -0
  1566. package/mac-agent/node_modules/node-pty/lib/windowsTerminal.test.js +203 -0
  1567. package/mac-agent/node_modules/node-pty/lib/windowsTerminal.test.js.map +1 -0
  1568. package/mac-agent/node_modules/node-pty/lib/worker/conoutSocketWorker.js +22 -0
  1569. package/mac-agent/node_modules/node-pty/lib/worker/conoutSocketWorker.js.map +1 -0
  1570. package/mac-agent/node_modules/node-pty/package.json +59 -0
  1571. package/mac-agent/node_modules/node-pty/scripts/post-install.js +42 -0
  1572. package/mac-agent/node_modules/node-pty/scripts/publish.js +62 -0
  1573. package/mac-agent/node_modules/node-pty/src/conpty_console_list_agent.ts +19 -0
  1574. package/mac-agent/node_modules/node-pty/src/eventEmitter2.test.ts +30 -0
  1575. package/mac-agent/node_modules/node-pty/src/eventEmitter2.ts +48 -0
  1576. package/mac-agent/node_modules/node-pty/src/index.ts +51 -0
  1577. package/mac-agent/node_modules/node-pty/src/interfaces.ts +129 -0
  1578. package/mac-agent/node_modules/node-pty/src/native.d.ts +56 -0
  1579. package/mac-agent/node_modules/node-pty/src/shared/conout.ts +15 -0
  1580. package/mac-agent/node_modules/node-pty/src/terminal.test.ts +119 -0
  1581. package/mac-agent/node_modules/node-pty/src/terminal.ts +211 -0
  1582. package/mac-agent/node_modules/node-pty/src/testUtils.test.ts +23 -0
  1583. package/mac-agent/node_modules/node-pty/src/tsconfig.json +22 -0
  1584. package/mac-agent/node_modules/node-pty/src/types.ts +15 -0
  1585. package/mac-agent/node_modules/node-pty/src/unix/pty.cc +826 -0
  1586. package/mac-agent/node_modules/node-pty/src/unix/spawn-helper.cc +23 -0
  1587. package/mac-agent/node_modules/node-pty/src/unixTerminal.test.ts +335 -0
  1588. package/mac-agent/node_modules/node-pty/src/unixTerminal.ts +320 -0
  1589. package/mac-agent/node_modules/node-pty/src/utils.ts +9 -0
  1590. package/mac-agent/node_modules/node-pty/src/win/conpty.cc +498 -0
  1591. package/mac-agent/node_modules/node-pty/src/win/conpty_console_list.cc +43 -0
  1592. package/mac-agent/node_modules/node-pty/src/win/path_util.cc +73 -0
  1593. package/mac-agent/node_modules/node-pty/src/win/path_util.h +22 -0
  1594. package/mac-agent/node_modules/node-pty/src/win/winpty.cc +312 -0
  1595. package/mac-agent/node_modules/node-pty/src/windowsConoutConnection.ts +79 -0
  1596. package/mac-agent/node_modules/node-pty/src/windowsPtyAgent.test.ts +94 -0
  1597. package/mac-agent/node_modules/node-pty/src/windowsPtyAgent.ts +323 -0
  1598. package/mac-agent/node_modules/node-pty/src/windowsTerminal.test.ts +214 -0
  1599. package/mac-agent/node_modules/node-pty/src/windowsTerminal.ts +208 -0
  1600. package/mac-agent/node_modules/node-pty/src/worker/conoutSocketWorker.ts +22 -0
  1601. package/mac-agent/node_modules/node-pty/typings/node-pty.d.ts +203 -0
  1602. package/mac-agent/node_modules/nodemon/.prettierrc.json +3 -0
  1603. package/mac-agent/node_modules/nodemon/LICENSE +21 -0
  1604. package/mac-agent/node_modules/nodemon/README.md +441 -0
  1605. package/mac-agent/node_modules/nodemon/bin/nodemon.js +16 -0
  1606. package/mac-agent/node_modules/nodemon/bin/windows-kill.exe +0 -0
  1607. package/mac-agent/node_modules/nodemon/doc/cli/authors.txt +8 -0
  1608. package/mac-agent/node_modules/nodemon/doc/cli/config.txt +44 -0
  1609. package/mac-agent/node_modules/nodemon/doc/cli/help.txt +29 -0
  1610. package/mac-agent/node_modules/nodemon/doc/cli/logo.txt +20 -0
  1611. package/mac-agent/node_modules/nodemon/doc/cli/options.txt +36 -0
  1612. package/mac-agent/node_modules/nodemon/doc/cli/topics.txt +8 -0
  1613. package/mac-agent/node_modules/nodemon/doc/cli/usage.txt +3 -0
  1614. package/mac-agent/node_modules/nodemon/doc/cli/whoami.txt +9 -0
  1615. package/mac-agent/node_modules/nodemon/index.d.ts +125 -0
  1616. package/mac-agent/node_modules/nodemon/jsconfig.json +7 -0
  1617. package/mac-agent/node_modules/nodemon/lib/cli/index.js +49 -0
  1618. package/mac-agent/node_modules/nodemon/lib/cli/parse.js +230 -0
  1619. package/mac-agent/node_modules/nodemon/lib/config/command.js +43 -0
  1620. package/mac-agent/node_modules/nodemon/lib/config/defaults.js +34 -0
  1621. package/mac-agent/node_modules/nodemon/lib/config/exec.js +234 -0
  1622. package/mac-agent/node_modules/nodemon/lib/config/index.js +93 -0
  1623. package/mac-agent/node_modules/nodemon/lib/config/load.js +225 -0
  1624. package/mac-agent/node_modules/nodemon/lib/help/index.js +27 -0
  1625. package/mac-agent/node_modules/nodemon/lib/index.js +1 -0
  1626. package/mac-agent/node_modules/nodemon/lib/monitor/index.js +4 -0
  1627. package/mac-agent/node_modules/nodemon/lib/monitor/match.js +287 -0
  1628. package/mac-agent/node_modules/nodemon/lib/monitor/run.js +562 -0
  1629. package/mac-agent/node_modules/nodemon/lib/monitor/signals.js +34 -0
  1630. package/mac-agent/node_modules/nodemon/lib/monitor/watch.js +244 -0
  1631. package/mac-agent/node_modules/nodemon/lib/nodemon.js +317 -0
  1632. package/mac-agent/node_modules/nodemon/lib/rules/add.js +89 -0
  1633. package/mac-agent/node_modules/nodemon/lib/rules/index.js +53 -0
  1634. package/mac-agent/node_modules/nodemon/lib/rules/parse.js +43 -0
  1635. package/mac-agent/node_modules/nodemon/lib/spawn.js +74 -0
  1636. package/mac-agent/node_modules/nodemon/lib/utils/bus.js +44 -0
  1637. package/mac-agent/node_modules/nodemon/lib/utils/clone.js +40 -0
  1638. package/mac-agent/node_modules/nodemon/lib/utils/colour.js +26 -0
  1639. package/mac-agent/node_modules/nodemon/lib/utils/index.js +103 -0
  1640. package/mac-agent/node_modules/nodemon/lib/utils/log.js +82 -0
  1641. package/mac-agent/node_modules/nodemon/lib/utils/merge.js +47 -0
  1642. package/mac-agent/node_modules/nodemon/lib/version.js +100 -0
  1643. package/mac-agent/node_modules/nodemon/package.json +75 -0
  1644. package/mac-agent/node_modules/nopt/CHANGELOG.md +58 -0
  1645. package/mac-agent/node_modules/nopt/LICENSE +15 -0
  1646. package/mac-agent/node_modules/nopt/README.md +213 -0
  1647. package/mac-agent/node_modules/nopt/bin/nopt.js +54 -0
  1648. package/mac-agent/node_modules/nopt/lib/nopt.js +441 -0
  1649. package/mac-agent/node_modules/nopt/package.json +34 -0
  1650. package/mac-agent/node_modules/normalize-package-data/AUTHORS +4 -0
  1651. package/mac-agent/node_modules/normalize-package-data/LICENSE +30 -0
  1652. package/mac-agent/node_modules/normalize-package-data/README.md +106 -0
  1653. package/mac-agent/node_modules/normalize-package-data/lib/extract_description.js +14 -0
  1654. package/mac-agent/node_modules/normalize-package-data/lib/fixer.js +418 -0
  1655. package/mac-agent/node_modules/normalize-package-data/lib/make_warning.js +23 -0
  1656. package/mac-agent/node_modules/normalize-package-data/lib/normalize.js +39 -0
  1657. package/mac-agent/node_modules/normalize-package-data/lib/safe_format.js +9 -0
  1658. package/mac-agent/node_modules/normalize-package-data/lib/typos.json +25 -0
  1659. package/mac-agent/node_modules/normalize-package-data/lib/warning_messages.json +30 -0
  1660. package/mac-agent/node_modules/normalize-package-data/node_modules/semver/LICENSE +15 -0
  1661. package/mac-agent/node_modules/normalize-package-data/node_modules/semver/README.md +412 -0
  1662. package/mac-agent/node_modules/normalize-package-data/node_modules/semver/bin/semver +160 -0
  1663. package/mac-agent/node_modules/normalize-package-data/node_modules/semver/package.json +38 -0
  1664. package/mac-agent/node_modules/normalize-package-data/node_modules/semver/range.bnf +16 -0
  1665. package/mac-agent/node_modules/normalize-package-data/node_modules/semver/semver.js +1525 -0
  1666. package/mac-agent/node_modules/normalize-package-data/package.json +31 -0
  1667. package/mac-agent/node_modules/normalize-path/LICENSE +21 -0
  1668. package/mac-agent/node_modules/normalize-path/README.md +127 -0
  1669. package/mac-agent/node_modules/normalize-path/index.js +35 -0
  1670. package/mac-agent/node_modules/normalize-path/package.json +77 -0
  1671. package/mac-agent/node_modules/npmlog/LICENSE +15 -0
  1672. package/mac-agent/node_modules/npmlog/README.md +216 -0
  1673. package/mac-agent/node_modules/npmlog/log.js +403 -0
  1674. package/mac-agent/node_modules/npmlog/package.json +33 -0
  1675. package/mac-agent/node_modules/number-is-nan/index.js +4 -0
  1676. package/mac-agent/node_modules/number-is-nan/license +21 -0
  1677. package/mac-agent/node_modules/number-is-nan/package.json +35 -0
  1678. package/mac-agent/node_modules/number-is-nan/readme.md +28 -0
  1679. package/mac-agent/node_modules/object-assign/index.js +90 -0
  1680. package/mac-agent/node_modules/object-assign/license +21 -0
  1681. package/mac-agent/node_modules/object-assign/package.json +42 -0
  1682. package/mac-agent/node_modules/object-assign/readme.md +61 -0
  1683. package/mac-agent/node_modules/object-keys/.editorconfig +13 -0
  1684. package/mac-agent/node_modules/object-keys/.eslintrc +17 -0
  1685. package/mac-agent/node_modules/object-keys/.travis.yml +277 -0
  1686. package/mac-agent/node_modules/object-keys/CHANGELOG.md +232 -0
  1687. package/mac-agent/node_modules/object-keys/LICENSE +21 -0
  1688. package/mac-agent/node_modules/object-keys/README.md +76 -0
  1689. package/mac-agent/node_modules/object-keys/implementation.js +122 -0
  1690. package/mac-agent/node_modules/object-keys/index.js +32 -0
  1691. package/mac-agent/node_modules/object-keys/isArguments.js +17 -0
  1692. package/mac-agent/node_modules/object-keys/package.json +88 -0
  1693. package/mac-agent/node_modules/object-keys/test/index.js +5 -0
  1694. package/mac-agent/node_modules/object.assign/.editorconfig +20 -0
  1695. package/mac-agent/node_modules/object.assign/.eslintrc +28 -0
  1696. package/mac-agent/node_modules/object.assign/.github/FUNDING.yml +12 -0
  1697. package/mac-agent/node_modules/object.assign/.nycrc +9 -0
  1698. package/mac-agent/node_modules/object.assign/CHANGELOG.md +246 -0
  1699. package/mac-agent/node_modules/object.assign/LICENSE +21 -0
  1700. package/mac-agent/node_modules/object.assign/README.md +136 -0
  1701. package/mac-agent/node_modules/object.assign/auto.js +3 -0
  1702. package/mac-agent/node_modules/object.assign/dist/browser.js +1304 -0
  1703. package/mac-agent/node_modules/object.assign/hasSymbols.js +43 -0
  1704. package/mac-agent/node_modules/object.assign/implementation.js +46 -0
  1705. package/mac-agent/node_modules/object.assign/index.js +22 -0
  1706. package/mac-agent/node_modules/object.assign/package.json +96 -0
  1707. package/mac-agent/node_modules/object.assign/polyfill.js +55 -0
  1708. package/mac-agent/node_modules/object.assign/shim.js +14 -0
  1709. package/mac-agent/node_modules/object.assign/test/implementation.js +19 -0
  1710. package/mac-agent/node_modules/object.assign/test/index.js +17 -0
  1711. package/mac-agent/node_modules/object.assign/test/native.js +49 -0
  1712. package/mac-agent/node_modules/object.assign/test/ses-compat.js +12 -0
  1713. package/mac-agent/node_modules/object.assign/test/shimmed.js +52 -0
  1714. package/mac-agent/node_modules/object.assign/test/tests.js +232 -0
  1715. package/mac-agent/node_modules/once/LICENSE +15 -0
  1716. package/mac-agent/node_modules/once/README.md +79 -0
  1717. package/mac-agent/node_modules/once/once.js +42 -0
  1718. package/mac-agent/node_modules/once/package.json +33 -0
  1719. package/mac-agent/node_modules/one-time/LICENSE +22 -0
  1720. package/mac-agent/node_modules/one-time/README.md +88 -0
  1721. package/mac-agent/node_modules/one-time/async.js +43 -0
  1722. package/mac-agent/node_modules/one-time/index.js +42 -0
  1723. package/mac-agent/node_modules/one-time/package.json +34 -0
  1724. package/mac-agent/node_modules/os-locale/index.js +127 -0
  1725. package/mac-agent/node_modules/os-locale/license +21 -0
  1726. package/mac-agent/node_modules/os-locale/package.json +43 -0
  1727. package/mac-agent/node_modules/os-locale/readme.md +47 -0
  1728. package/mac-agent/node_modules/parse-json/index.js +35 -0
  1729. package/mac-agent/node_modules/parse-json/license +21 -0
  1730. package/mac-agent/node_modules/parse-json/package.json +46 -0
  1731. package/mac-agent/node_modules/parse-json/readme.md +83 -0
  1732. package/mac-agent/node_modules/parse-json/vendor/parse.js +752 -0
  1733. package/mac-agent/node_modules/parse-json/vendor/unicode.js +71 -0
  1734. package/mac-agent/node_modules/path-exists/index.js +24 -0
  1735. package/mac-agent/node_modules/path-exists/license +21 -0
  1736. package/mac-agent/node_modules/path-exists/package.json +40 -0
  1737. package/mac-agent/node_modules/path-exists/readme.md +45 -0
  1738. package/mac-agent/node_modules/path-is-absolute/index.js +20 -0
  1739. package/mac-agent/node_modules/path-is-absolute/license +21 -0
  1740. package/mac-agent/node_modules/path-is-absolute/package.json +43 -0
  1741. package/mac-agent/node_modules/path-is-absolute/readme.md +59 -0
  1742. package/mac-agent/node_modules/path-parse/LICENSE +21 -0
  1743. package/mac-agent/node_modules/path-parse/README.md +42 -0
  1744. package/mac-agent/node_modules/path-parse/index.js +75 -0
  1745. package/mac-agent/node_modules/path-parse/package.json +33 -0
  1746. package/mac-agent/node_modules/path-type/index.js +29 -0
  1747. package/mac-agent/node_modules/path-type/license +21 -0
  1748. package/mac-agent/node_modules/path-type/package.json +52 -0
  1749. package/mac-agent/node_modules/path-type/readme.md +42 -0
  1750. package/mac-agent/node_modules/picomatch/CHANGELOG.md +136 -0
  1751. package/mac-agent/node_modules/picomatch/LICENSE +21 -0
  1752. package/mac-agent/node_modules/picomatch/README.md +708 -0
  1753. package/mac-agent/node_modules/picomatch/index.js +3 -0
  1754. package/mac-agent/node_modules/picomatch/lib/constants.js +179 -0
  1755. package/mac-agent/node_modules/picomatch/lib/parse.js +1091 -0
  1756. package/mac-agent/node_modules/picomatch/lib/picomatch.js +342 -0
  1757. package/mac-agent/node_modules/picomatch/lib/scan.js +391 -0
  1758. package/mac-agent/node_modules/picomatch/lib/utils.js +64 -0
  1759. package/mac-agent/node_modules/picomatch/package.json +81 -0
  1760. package/mac-agent/node_modules/pify/index.js +68 -0
  1761. package/mac-agent/node_modules/pify/license +21 -0
  1762. package/mac-agent/node_modules/pify/package.json +48 -0
  1763. package/mac-agent/node_modules/pify/readme.md +119 -0
  1764. package/mac-agent/node_modules/pinkie/index.js +292 -0
  1765. package/mac-agent/node_modules/pinkie/license +21 -0
  1766. package/mac-agent/node_modules/pinkie/package.json +36 -0
  1767. package/mac-agent/node_modules/pinkie/readme.md +83 -0
  1768. package/mac-agent/node_modules/pinkie-promise/index.js +3 -0
  1769. package/mac-agent/node_modules/pinkie-promise/license +21 -0
  1770. package/mac-agent/node_modules/pinkie-promise/package.json +35 -0
  1771. package/mac-agent/node_modules/pinkie-promise/readme.md +28 -0
  1772. package/mac-agent/node_modules/proxy-from-env/.eslintrc +29 -0
  1773. package/mac-agent/node_modules/proxy-from-env/.travis.yml +10 -0
  1774. package/mac-agent/node_modules/proxy-from-env/LICENSE +20 -0
  1775. package/mac-agent/node_modules/proxy-from-env/README.md +131 -0
  1776. package/mac-agent/node_modules/proxy-from-env/index.js +108 -0
  1777. package/mac-agent/node_modules/proxy-from-env/package.json +34 -0
  1778. package/mac-agent/node_modules/proxy-from-env/test.js +483 -0
  1779. package/mac-agent/node_modules/pstree.remy/.travis.yml +8 -0
  1780. package/mac-agent/node_modules/pstree.remy/LICENSE +7 -0
  1781. package/mac-agent/node_modules/pstree.remy/README.md +26 -0
  1782. package/mac-agent/node_modules/pstree.remy/lib/index.js +37 -0
  1783. package/mac-agent/node_modules/pstree.remy/lib/tree.js +37 -0
  1784. package/mac-agent/node_modules/pstree.remy/lib/utils.js +53 -0
  1785. package/mac-agent/node_modules/pstree.remy/package.json +33 -0
  1786. package/mac-agent/node_modules/pstree.remy/tests/fixtures/index.js +13 -0
  1787. package/mac-agent/node_modules/pstree.remy/tests/fixtures/out1 +10 -0
  1788. package/mac-agent/node_modules/pstree.remy/tests/fixtures/out2 +29 -0
  1789. package/mac-agent/node_modules/pstree.remy/tests/index.test.js +51 -0
  1790. package/mac-agent/node_modules/read-pkg/index.js +48 -0
  1791. package/mac-agent/node_modules/read-pkg/license +21 -0
  1792. package/mac-agent/node_modules/read-pkg/package.json +42 -0
  1793. package/mac-agent/node_modules/read-pkg/readme.md +79 -0
  1794. package/mac-agent/node_modules/read-pkg-up/index.js +31 -0
  1795. package/mac-agent/node_modules/read-pkg-up/license +21 -0
  1796. package/mac-agent/node_modules/read-pkg-up/package.json +59 -0
  1797. package/mac-agent/node_modules/read-pkg-up/readme.md +79 -0
  1798. package/mac-agent/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  1799. package/mac-agent/node_modules/readable-stream/GOVERNANCE.md +136 -0
  1800. package/mac-agent/node_modules/readable-stream/LICENSE +47 -0
  1801. package/mac-agent/node_modules/readable-stream/README.md +106 -0
  1802. package/mac-agent/node_modules/readable-stream/errors-browser.js +127 -0
  1803. package/mac-agent/node_modules/readable-stream/errors.js +116 -0
  1804. package/mac-agent/node_modules/readable-stream/experimentalWarning.js +17 -0
  1805. package/mac-agent/node_modules/readable-stream/lib/_stream_duplex.js +126 -0
  1806. package/mac-agent/node_modules/readable-stream/lib/_stream_passthrough.js +37 -0
  1807. package/mac-agent/node_modules/readable-stream/lib/_stream_readable.js +1027 -0
  1808. package/mac-agent/node_modules/readable-stream/lib/_stream_transform.js +190 -0
  1809. package/mac-agent/node_modules/readable-stream/lib/_stream_writable.js +641 -0
  1810. package/mac-agent/node_modules/readable-stream/lib/internal/streams/async_iterator.js +180 -0
  1811. package/mac-agent/node_modules/readable-stream/lib/internal/streams/buffer_list.js +183 -0
  1812. package/mac-agent/node_modules/readable-stream/lib/internal/streams/destroy.js +96 -0
  1813. package/mac-agent/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +86 -0
  1814. package/mac-agent/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
  1815. package/mac-agent/node_modules/readable-stream/lib/internal/streams/from.js +52 -0
  1816. package/mac-agent/node_modules/readable-stream/lib/internal/streams/pipeline.js +86 -0
  1817. package/mac-agent/node_modules/readable-stream/lib/internal/streams/state.js +22 -0
  1818. package/mac-agent/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
  1819. package/mac-agent/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
  1820. package/mac-agent/node_modules/readable-stream/package.json +68 -0
  1821. package/mac-agent/node_modules/readable-stream/readable-browser.js +9 -0
  1822. package/mac-agent/node_modules/readable-stream/readable.js +16 -0
  1823. package/mac-agent/node_modules/readdirp/LICENSE +21 -0
  1824. package/mac-agent/node_modules/readdirp/README.md +122 -0
  1825. package/mac-agent/node_modules/readdirp/index.d.ts +43 -0
  1826. package/mac-agent/node_modules/readdirp/index.js +287 -0
  1827. package/mac-agent/node_modules/readdirp/package.json +122 -0
  1828. package/mac-agent/node_modules/require-directory/.jshintrc +67 -0
  1829. package/mac-agent/node_modules/require-directory/.travis.yml +3 -0
  1830. package/mac-agent/node_modules/require-directory/LICENSE +22 -0
  1831. package/mac-agent/node_modules/require-directory/README.markdown +184 -0
  1832. package/mac-agent/node_modules/require-directory/index.js +86 -0
  1833. package/mac-agent/node_modules/require-directory/package.json +40 -0
  1834. package/mac-agent/node_modules/require-main-filename/.travis.yml +8 -0
  1835. package/mac-agent/node_modules/require-main-filename/LICENSE.txt +14 -0
  1836. package/mac-agent/node_modules/require-main-filename/README.md +26 -0
  1837. package/mac-agent/node_modules/require-main-filename/index.js +18 -0
  1838. package/mac-agent/node_modules/require-main-filename/package.json +30 -0
  1839. package/mac-agent/node_modules/require-main-filename/test.js +36 -0
  1840. package/mac-agent/node_modules/resolve/.editorconfig +37 -0
  1841. package/mac-agent/node_modules/resolve/.eslintrc +65 -0
  1842. package/mac-agent/node_modules/resolve/.github/FUNDING.yml +12 -0
  1843. package/mac-agent/node_modules/resolve/LICENSE +21 -0
  1844. package/mac-agent/node_modules/resolve/SECURITY.md +3 -0
  1845. package/mac-agent/node_modules/resolve/async.js +3 -0
  1846. package/mac-agent/node_modules/resolve/bin/resolve +50 -0
  1847. package/mac-agent/node_modules/resolve/example/async.js +5 -0
  1848. package/mac-agent/node_modules/resolve/example/sync.js +3 -0
  1849. package/mac-agent/node_modules/resolve/index.js +6 -0
  1850. package/mac-agent/node_modules/resolve/lib/async.js +329 -0
  1851. package/mac-agent/node_modules/resolve/lib/caller.js +8 -0
  1852. package/mac-agent/node_modules/resolve/lib/core.js +12 -0
  1853. package/mac-agent/node_modules/resolve/lib/core.json +162 -0
  1854. package/mac-agent/node_modules/resolve/lib/homedir.js +24 -0
  1855. package/mac-agent/node_modules/resolve/lib/is-core.js +5 -0
  1856. package/mac-agent/node_modules/resolve/lib/node-modules-paths.js +42 -0
  1857. package/mac-agent/node_modules/resolve/lib/normalize-options.js +10 -0
  1858. package/mac-agent/node_modules/resolve/lib/sync.js +208 -0
  1859. package/mac-agent/node_modules/resolve/package.json +75 -0
  1860. package/mac-agent/node_modules/resolve/readme.markdown +301 -0
  1861. package/mac-agent/node_modules/resolve/sync.js +3 -0
  1862. package/mac-agent/node_modules/resolve/test/core.js +88 -0
  1863. package/mac-agent/node_modules/resolve/test/dotdot/abc/index.js +2 -0
  1864. package/mac-agent/node_modules/resolve/test/dotdot/index.js +1 -0
  1865. package/mac-agent/node_modules/resolve/test/dotdot.js +29 -0
  1866. package/mac-agent/node_modules/resolve/test/faulty_basedir.js +29 -0
  1867. package/mac-agent/node_modules/resolve/test/filter.js +34 -0
  1868. package/mac-agent/node_modules/resolve/test/filter_sync.js +33 -0
  1869. package/mac-agent/node_modules/resolve/test/home_paths.js +127 -0
  1870. package/mac-agent/node_modules/resolve/test/home_paths_sync.js +114 -0
  1871. package/mac-agent/node_modules/resolve/test/mock.js +315 -0
  1872. package/mac-agent/node_modules/resolve/test/mock_sync.js +214 -0
  1873. package/mac-agent/node_modules/resolve/test/module_dir/xmodules/aaa/index.js +1 -0
  1874. package/mac-agent/node_modules/resolve/test/module_dir/ymodules/aaa/index.js +1 -0
  1875. package/mac-agent/node_modules/resolve/test/module_dir/zmodules/bbb/main.js +1 -0
  1876. package/mac-agent/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +3 -0
  1877. package/mac-agent/node_modules/resolve/test/module_dir.js +56 -0
  1878. package/mac-agent/node_modules/resolve/test/node-modules-paths.js +143 -0
  1879. package/mac-agent/node_modules/resolve/test/node_path/x/aaa/index.js +1 -0
  1880. package/mac-agent/node_modules/resolve/test/node_path/x/ccc/index.js +1 -0
  1881. package/mac-agent/node_modules/resolve/test/node_path/y/bbb/index.js +1 -0
  1882. package/mac-agent/node_modules/resolve/test/node_path/y/ccc/index.js +1 -0
  1883. package/mac-agent/node_modules/resolve/test/node_path.js +70 -0
  1884. package/mac-agent/node_modules/resolve/test/nonstring.js +9 -0
  1885. package/mac-agent/node_modules/resolve/test/pathfilter/deep_ref/main.js +0 -0
  1886. package/mac-agent/node_modules/resolve/test/pathfilter.js +75 -0
  1887. package/mac-agent/node_modules/resolve/test/precedence/aaa/index.js +1 -0
  1888. package/mac-agent/node_modules/resolve/test/precedence/aaa/main.js +1 -0
  1889. package/mac-agent/node_modules/resolve/test/precedence/aaa.js +1 -0
  1890. package/mac-agent/node_modules/resolve/test/precedence/bbb/main.js +1 -0
  1891. package/mac-agent/node_modules/resolve/test/precedence/bbb.js +1 -0
  1892. package/mac-agent/node_modules/resolve/test/precedence.js +23 -0
  1893. package/mac-agent/node_modules/resolve/test/resolver/baz/doom.js +0 -0
  1894. package/mac-agent/node_modules/resolve/test/resolver/baz/package.json +4 -0
  1895. package/mac-agent/node_modules/resolve/test/resolver/baz/quux.js +1 -0
  1896. package/mac-agent/node_modules/resolve/test/resolver/browser_field/a.js +0 -0
  1897. package/mac-agent/node_modules/resolve/test/resolver/browser_field/b.js +0 -0
  1898. package/mac-agent/node_modules/resolve/test/resolver/browser_field/package.json +5 -0
  1899. package/mac-agent/node_modules/resolve/test/resolver/cup.coffee +1 -0
  1900. package/mac-agent/node_modules/resolve/test/resolver/dot_main/index.js +1 -0
  1901. package/mac-agent/node_modules/resolve/test/resolver/dot_main/package.json +3 -0
  1902. package/mac-agent/node_modules/resolve/test/resolver/dot_slash_main/index.js +1 -0
  1903. package/mac-agent/node_modules/resolve/test/resolver/dot_slash_main/package.json +3 -0
  1904. package/mac-agent/node_modules/resolve/test/resolver/false_main/index.js +0 -0
  1905. package/mac-agent/node_modules/resolve/test/resolver/false_main/package.json +4 -0
  1906. package/mac-agent/node_modules/resolve/test/resolver/foo.js +1 -0
  1907. package/mac-agent/node_modules/resolve/test/resolver/incorrect_main/index.js +2 -0
  1908. package/mac-agent/node_modules/resolve/test/resolver/incorrect_main/package.json +3 -0
  1909. package/mac-agent/node_modules/resolve/test/resolver/invalid_main/package.json +7 -0
  1910. package/mac-agent/node_modules/resolve/test/resolver/mug.coffee +0 -0
  1911. package/mac-agent/node_modules/resolve/test/resolver/mug.js +0 -0
  1912. package/mac-agent/node_modules/resolve/test/resolver/multirepo/lerna.json +6 -0
  1913. package/mac-agent/node_modules/resolve/test/resolver/multirepo/package.json +20 -0
  1914. package/mac-agent/node_modules/resolve/test/resolver/multirepo/packages/package-a/index.js +35 -0
  1915. package/mac-agent/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json +14 -0
  1916. package/mac-agent/node_modules/resolve/test/resolver/multirepo/packages/package-b/index.js +0 -0
  1917. package/mac-agent/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json +14 -0
  1918. package/mac-agent/node_modules/resolve/test/resolver/nested_symlinks/mylib/async.js +26 -0
  1919. package/mac-agent/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json +15 -0
  1920. package/mac-agent/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js +12 -0
  1921. package/mac-agent/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
  1922. package/mac-agent/node_modules/resolve/test/resolver/other_path/root.js +0 -0
  1923. package/mac-agent/node_modules/resolve/test/resolver/quux/foo/index.js +1 -0
  1924. package/mac-agent/node_modules/resolve/test/resolver/same_names/foo/index.js +1 -0
  1925. package/mac-agent/node_modules/resolve/test/resolver/same_names/foo.js +1 -0
  1926. package/mac-agent/node_modules/resolve/test/resolver/symlinked/_/node_modules/foo.js +0 -0
  1927. package/mac-agent/node_modules/resolve/test/resolver/symlinked/_/symlink_target/.gitkeep +0 -0
  1928. package/mac-agent/node_modules/resolve/test/resolver/symlinked/package/bar.js +1 -0
  1929. package/mac-agent/node_modules/resolve/test/resolver/symlinked/package/package.json +3 -0
  1930. package/mac-agent/node_modules/resolve/test/resolver/without_basedir/main.js +5 -0
  1931. package/mac-agent/node_modules/resolve/test/resolver.js +597 -0
  1932. package/mac-agent/node_modules/resolve/test/resolver_sync.js +730 -0
  1933. package/mac-agent/node_modules/resolve/test/shadowed_core/node_modules/util/index.js +0 -0
  1934. package/mac-agent/node_modules/resolve/test/shadowed_core.js +54 -0
  1935. package/mac-agent/node_modules/resolve/test/subdirs.js +13 -0
  1936. package/mac-agent/node_modules/resolve/test/symlinks.js +176 -0
  1937. package/mac-agent/node_modules/rimraf/CHANGELOG.md +65 -0
  1938. package/mac-agent/node_modules/rimraf/LICENSE +15 -0
  1939. package/mac-agent/node_modules/rimraf/README.md +101 -0
  1940. package/mac-agent/node_modules/rimraf/bin.js +68 -0
  1941. package/mac-agent/node_modules/rimraf/package.json +32 -0
  1942. package/mac-agent/node_modules/rimraf/rimraf.js +360 -0
  1943. package/mac-agent/node_modules/safe-buffer/LICENSE +21 -0
  1944. package/mac-agent/node_modules/safe-buffer/README.md +584 -0
  1945. package/mac-agent/node_modules/safe-buffer/index.d.ts +187 -0
  1946. package/mac-agent/node_modules/safe-buffer/index.js +65 -0
  1947. package/mac-agent/node_modules/safe-buffer/package.json +51 -0
  1948. package/mac-agent/node_modules/safe-stable-stringify/LICENSE +21 -0
  1949. package/mac-agent/node_modules/safe-stable-stringify/esm/package.json +4 -0
  1950. package/mac-agent/node_modules/safe-stable-stringify/esm/wrapper.d.ts +4 -0
  1951. package/mac-agent/node_modules/safe-stable-stringify/esm/wrapper.js +6 -0
  1952. package/mac-agent/node_modules/safe-stable-stringify/index.d.ts +22 -0
  1953. package/mac-agent/node_modules/safe-stable-stringify/index.js +625 -0
  1954. package/mac-agent/node_modules/safe-stable-stringify/package.json +65 -0
  1955. package/mac-agent/node_modules/safe-stable-stringify/readme.md +179 -0
  1956. package/mac-agent/node_modules/semver/LICENSE +15 -0
  1957. package/mac-agent/node_modules/semver/README.md +664 -0
  1958. package/mac-agent/node_modules/semver/bin/semver.js +191 -0
  1959. package/mac-agent/node_modules/semver/classes/comparator.js +143 -0
  1960. package/mac-agent/node_modules/semver/classes/index.js +7 -0
  1961. package/mac-agent/node_modules/semver/classes/range.js +556 -0
  1962. package/mac-agent/node_modules/semver/classes/semver.js +319 -0
  1963. package/mac-agent/node_modules/semver/functions/clean.js +8 -0
  1964. package/mac-agent/node_modules/semver/functions/cmp.js +54 -0
  1965. package/mac-agent/node_modules/semver/functions/coerce.js +62 -0
  1966. package/mac-agent/node_modules/semver/functions/compare-build.js +9 -0
  1967. package/mac-agent/node_modules/semver/functions/compare-loose.js +5 -0
  1968. package/mac-agent/node_modules/semver/functions/compare.js +7 -0
  1969. package/mac-agent/node_modules/semver/functions/diff.js +60 -0
  1970. package/mac-agent/node_modules/semver/functions/eq.js +5 -0
  1971. package/mac-agent/node_modules/semver/functions/gt.js +5 -0
  1972. package/mac-agent/node_modules/semver/functions/gte.js +5 -0
  1973. package/mac-agent/node_modules/semver/functions/inc.js +21 -0
  1974. package/mac-agent/node_modules/semver/functions/lt.js +5 -0
  1975. package/mac-agent/node_modules/semver/functions/lte.js +5 -0
  1976. package/mac-agent/node_modules/semver/functions/major.js +5 -0
  1977. package/mac-agent/node_modules/semver/functions/minor.js +5 -0
  1978. package/mac-agent/node_modules/semver/functions/neq.js +5 -0
  1979. package/mac-agent/node_modules/semver/functions/parse.js +18 -0
  1980. package/mac-agent/node_modules/semver/functions/patch.js +5 -0
  1981. package/mac-agent/node_modules/semver/functions/prerelease.js +8 -0
  1982. package/mac-agent/node_modules/semver/functions/rcompare.js +5 -0
  1983. package/mac-agent/node_modules/semver/functions/rsort.js +5 -0
  1984. package/mac-agent/node_modules/semver/functions/satisfies.js +12 -0
  1985. package/mac-agent/node_modules/semver/functions/sort.js +5 -0
  1986. package/mac-agent/node_modules/semver/functions/valid.js +8 -0
  1987. package/mac-agent/node_modules/semver/index.js +91 -0
  1988. package/mac-agent/node_modules/semver/internal/constants.js +37 -0
  1989. package/mac-agent/node_modules/semver/internal/debug.js +11 -0
  1990. package/mac-agent/node_modules/semver/internal/identifiers.js +25 -0
  1991. package/mac-agent/node_modules/semver/internal/lrucache.js +42 -0
  1992. package/mac-agent/node_modules/semver/internal/parse-options.js +17 -0
  1993. package/mac-agent/node_modules/semver/internal/re.js +223 -0
  1994. package/mac-agent/node_modules/semver/package.json +78 -0
  1995. package/mac-agent/node_modules/semver/preload.js +4 -0
  1996. package/mac-agent/node_modules/semver/range.bnf +16 -0
  1997. package/mac-agent/node_modules/semver/ranges/gtr.js +6 -0
  1998. package/mac-agent/node_modules/semver/ranges/intersects.js +9 -0
  1999. package/mac-agent/node_modules/semver/ranges/ltr.js +6 -0
  2000. package/mac-agent/node_modules/semver/ranges/max-satisfying.js +27 -0
  2001. package/mac-agent/node_modules/semver/ranges/min-satisfying.js +26 -0
  2002. package/mac-agent/node_modules/semver/ranges/min-version.js +63 -0
  2003. package/mac-agent/node_modules/semver/ranges/outside.js +82 -0
  2004. package/mac-agent/node_modules/semver/ranges/simplify.js +49 -0
  2005. package/mac-agent/node_modules/semver/ranges/subset.js +249 -0
  2006. package/mac-agent/node_modules/semver/ranges/to-comparators.js +10 -0
  2007. package/mac-agent/node_modules/semver/ranges/valid.js +13 -0
  2008. package/mac-agent/node_modules/set-blocking/CHANGELOG.md +26 -0
  2009. package/mac-agent/node_modules/set-blocking/LICENSE.txt +14 -0
  2010. package/mac-agent/node_modules/set-blocking/README.md +31 -0
  2011. package/mac-agent/node_modules/set-blocking/index.js +7 -0
  2012. package/mac-agent/node_modules/set-blocking/package.json +42 -0
  2013. package/mac-agent/node_modules/set-function-length/.eslintrc +27 -0
  2014. package/mac-agent/node_modules/set-function-length/.github/FUNDING.yml +12 -0
  2015. package/mac-agent/node_modules/set-function-length/.nycrc +13 -0
  2016. package/mac-agent/node_modules/set-function-length/CHANGELOG.md +70 -0
  2017. package/mac-agent/node_modules/set-function-length/LICENSE +21 -0
  2018. package/mac-agent/node_modules/set-function-length/README.md +56 -0
  2019. package/mac-agent/node_modules/set-function-length/env.d.ts +9 -0
  2020. package/mac-agent/node_modules/set-function-length/env.js +25 -0
  2021. package/mac-agent/node_modules/set-function-length/index.d.ts +7 -0
  2022. package/mac-agent/node_modules/set-function-length/index.js +42 -0
  2023. package/mac-agent/node_modules/set-function-length/package.json +102 -0
  2024. package/mac-agent/node_modules/set-function-length/tsconfig.json +9 -0
  2025. package/mac-agent/node_modules/signal-exit/LICENSE.txt +16 -0
  2026. package/mac-agent/node_modules/signal-exit/README.md +39 -0
  2027. package/mac-agent/node_modules/signal-exit/index.js +202 -0
  2028. package/mac-agent/node_modules/signal-exit/package.json +38 -0
  2029. package/mac-agent/node_modules/signal-exit/signals.js +53 -0
  2030. package/mac-agent/node_modules/simple-swizzle/LICENSE +21 -0
  2031. package/mac-agent/node_modules/simple-swizzle/README.md +39 -0
  2032. package/mac-agent/node_modules/simple-swizzle/index.js +29 -0
  2033. package/mac-agent/node_modules/simple-swizzle/package.json +36 -0
  2034. package/mac-agent/node_modules/simple-update-notifier/LICENSE +21 -0
  2035. package/mac-agent/node_modules/simple-update-notifier/README.md +82 -0
  2036. package/mac-agent/node_modules/simple-update-notifier/build/index.d.ts +13 -0
  2037. package/mac-agent/node_modules/simple-update-notifier/build/index.js +210 -0
  2038. package/mac-agent/node_modules/simple-update-notifier/package.json +100 -0
  2039. package/mac-agent/node_modules/simple-update-notifier/src/borderedText.ts +12 -0
  2040. package/mac-agent/node_modules/simple-update-notifier/src/cache.spec.ts +17 -0
  2041. package/mac-agent/node_modules/simple-update-notifier/src/cache.ts +44 -0
  2042. package/mac-agent/node_modules/simple-update-notifier/src/getDistVersion.spec.ts +35 -0
  2043. package/mac-agent/node_modules/simple-update-notifier/src/getDistVersion.ts +29 -0
  2044. package/mac-agent/node_modules/simple-update-notifier/src/hasNewVersion.spec.ts +82 -0
  2045. package/mac-agent/node_modules/simple-update-notifier/src/hasNewVersion.ts +40 -0
  2046. package/mac-agent/node_modules/simple-update-notifier/src/index.spec.ts +27 -0
  2047. package/mac-agent/node_modules/simple-update-notifier/src/index.ts +34 -0
  2048. package/mac-agent/node_modules/simple-update-notifier/src/isNpmOrYarn.ts +12 -0
  2049. package/mac-agent/node_modules/simple-update-notifier/src/types.ts +8 -0
  2050. package/mac-agent/node_modules/spdx-correct/LICENSE +202 -0
  2051. package/mac-agent/node_modules/spdx-correct/README.md +22 -0
  2052. package/mac-agent/node_modules/spdx-correct/index.js +386 -0
  2053. package/mac-agent/node_modules/spdx-correct/package.json +32 -0
  2054. package/mac-agent/node_modules/spdx-exceptions/README.md +36 -0
  2055. package/mac-agent/node_modules/spdx-exceptions/deprecated.json +3 -0
  2056. package/mac-agent/node_modules/spdx-exceptions/index.json +68 -0
  2057. package/mac-agent/node_modules/spdx-exceptions/package.json +19 -0
  2058. package/mac-agent/node_modules/spdx-expression-parse/AUTHORS +4 -0
  2059. package/mac-agent/node_modules/spdx-expression-parse/LICENSE +22 -0
  2060. package/mac-agent/node_modules/spdx-expression-parse/README.md +91 -0
  2061. package/mac-agent/node_modules/spdx-expression-parse/index.js +8 -0
  2062. package/mac-agent/node_modules/spdx-expression-parse/package.json +39 -0
  2063. package/mac-agent/node_modules/spdx-expression-parse/parse.js +138 -0
  2064. package/mac-agent/node_modules/spdx-expression-parse/scan.js +131 -0
  2065. package/mac-agent/node_modules/spdx-license-ids/README.md +51 -0
  2066. package/mac-agent/node_modules/spdx-license-ids/deprecated.json +28 -0
  2067. package/mac-agent/node_modules/spdx-license-ids/index.json +650 -0
  2068. package/mac-agent/node_modules/spdx-license-ids/package.json +29 -0
  2069. package/mac-agent/node_modules/stack-trace/License +19 -0
  2070. package/mac-agent/node_modules/stack-trace/Makefile +11 -0
  2071. package/mac-agent/node_modules/stack-trace/Readme.md +98 -0
  2072. package/mac-agent/node_modules/stack-trace/lib/stack-trace.js +136 -0
  2073. package/mac-agent/node_modules/stack-trace/package.json +21 -0
  2074. package/mac-agent/node_modules/string-width/index.d.ts +29 -0
  2075. package/mac-agent/node_modules/string-width/index.js +47 -0
  2076. package/mac-agent/node_modules/string-width/license +9 -0
  2077. package/mac-agent/node_modules/string-width/package.json +56 -0
  2078. package/mac-agent/node_modules/string-width/readme.md +50 -0
  2079. package/mac-agent/node_modules/string_decoder/LICENSE +48 -0
  2080. package/mac-agent/node_modules/string_decoder/README.md +47 -0
  2081. package/mac-agent/node_modules/string_decoder/lib/string_decoder.js +296 -0
  2082. package/mac-agent/node_modules/string_decoder/package.json +34 -0
  2083. package/mac-agent/node_modules/strip-ansi/index.d.ts +17 -0
  2084. package/mac-agent/node_modules/strip-ansi/index.js +4 -0
  2085. package/mac-agent/node_modules/strip-ansi/license +9 -0
  2086. package/mac-agent/node_modules/strip-ansi/package.json +54 -0
  2087. package/mac-agent/node_modules/strip-ansi/readme.md +46 -0
  2088. package/mac-agent/node_modules/strip-bom/index.js +17 -0
  2089. package/mac-agent/node_modules/strip-bom/license +21 -0
  2090. package/mac-agent/node_modules/strip-bom/package.json +42 -0
  2091. package/mac-agent/node_modules/strip-bom/readme.md +39 -0
  2092. package/mac-agent/node_modules/supports-color/browser.js +5 -0
  2093. package/mac-agent/node_modules/supports-color/index.js +131 -0
  2094. package/mac-agent/node_modules/supports-color/license +9 -0
  2095. package/mac-agent/node_modules/supports-color/package.json +53 -0
  2096. package/mac-agent/node_modules/supports-color/readme.md +66 -0
  2097. package/mac-agent/node_modules/supports-preserve-symlinks-flag/.eslintrc +14 -0
  2098. package/mac-agent/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +12 -0
  2099. package/mac-agent/node_modules/supports-preserve-symlinks-flag/.nycrc +9 -0
  2100. package/mac-agent/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +22 -0
  2101. package/mac-agent/node_modules/supports-preserve-symlinks-flag/LICENSE +21 -0
  2102. package/mac-agent/node_modules/supports-preserve-symlinks-flag/README.md +42 -0
  2103. package/mac-agent/node_modules/supports-preserve-symlinks-flag/browser.js +3 -0
  2104. package/mac-agent/node_modules/supports-preserve-symlinks-flag/index.js +9 -0
  2105. package/mac-agent/node_modules/supports-preserve-symlinks-flag/package.json +70 -0
  2106. package/mac-agent/node_modules/supports-preserve-symlinks-flag/test/index.js +29 -0
  2107. package/mac-agent/node_modules/tar/LICENSE +15 -0
  2108. package/mac-agent/node_modules/tar/README.md +1080 -0
  2109. package/mac-agent/node_modules/tar/index.js +18 -0
  2110. package/mac-agent/node_modules/tar/lib/create.js +111 -0
  2111. package/mac-agent/node_modules/tar/lib/extract.js +113 -0
  2112. package/mac-agent/node_modules/tar/lib/get-write-flag.js +20 -0
  2113. package/mac-agent/node_modules/tar/lib/header.js +304 -0
  2114. package/mac-agent/node_modules/tar/lib/high-level-opt.js +29 -0
  2115. package/mac-agent/node_modules/tar/lib/large-numbers.js +104 -0
  2116. package/mac-agent/node_modules/tar/lib/list.js +139 -0
  2117. package/mac-agent/node_modules/tar/lib/mkdir.js +229 -0
  2118. package/mac-agent/node_modules/tar/lib/mode-fix.js +27 -0
  2119. package/mac-agent/node_modules/tar/lib/normalize-unicode.js +12 -0
  2120. package/mac-agent/node_modules/tar/lib/normalize-windows-path.js +8 -0
  2121. package/mac-agent/node_modules/tar/lib/pack.js +432 -0
  2122. package/mac-agent/node_modules/tar/lib/parse.js +552 -0
  2123. package/mac-agent/node_modules/tar/lib/path-reservations.js +156 -0
  2124. package/mac-agent/node_modules/tar/lib/pax.js +150 -0
  2125. package/mac-agent/node_modules/tar/lib/read-entry.js +107 -0
  2126. package/mac-agent/node_modules/tar/lib/replace.js +246 -0
  2127. package/mac-agent/node_modules/tar/lib/strip-absolute-path.js +24 -0
  2128. package/mac-agent/node_modules/tar/lib/strip-trailing-slashes.js +13 -0
  2129. package/mac-agent/node_modules/tar/lib/types.js +44 -0
  2130. package/mac-agent/node_modules/tar/lib/unpack.js +923 -0
  2131. package/mac-agent/node_modules/tar/lib/update.js +40 -0
  2132. package/mac-agent/node_modules/tar/lib/warn-mixin.js +24 -0
  2133. package/mac-agent/node_modules/tar/lib/winchars.js +23 -0
  2134. package/mac-agent/node_modules/tar/lib/write-entry.js +546 -0
  2135. package/mac-agent/node_modules/tar/package.json +70 -0
  2136. package/mac-agent/node_modules/text-hex/LICENSE +21 -0
  2137. package/mac-agent/node_modules/text-hex/README.md +20 -0
  2138. package/mac-agent/node_modules/text-hex/index.js +24 -0
  2139. package/mac-agent/node_modules/text-hex/package.json +30 -0
  2140. package/mac-agent/node_modules/text-hex/test.js +11 -0
  2141. package/mac-agent/node_modules/to-regex-range/LICENSE +21 -0
  2142. package/mac-agent/node_modules/to-regex-range/README.md +305 -0
  2143. package/mac-agent/node_modules/to-regex-range/index.js +288 -0
  2144. package/mac-agent/node_modules/to-regex-range/package.json +88 -0
  2145. package/mac-agent/node_modules/touch/LICENSE +15 -0
  2146. package/mac-agent/node_modules/touch/README.md +52 -0
  2147. package/mac-agent/node_modules/touch/bin/nodetouch.js +112 -0
  2148. package/mac-agent/node_modules/touch/index.js +224 -0
  2149. package/mac-agent/node_modules/touch/package.json +25 -0
  2150. package/mac-agent/node_modules/tr46/index.js +193 -0
  2151. package/mac-agent/node_modules/tr46/lib/.gitkeep +0 -0
  2152. package/mac-agent/node_modules/tr46/lib/mappingTable.json +1 -0
  2153. package/mac-agent/node_modules/tr46/package.json +31 -0
  2154. package/mac-agent/node_modules/triple-beam/.nyc_output/c579bf8f-6820-47a5-b2da-a11267eb8435.json +1 -0
  2155. package/mac-agent/node_modules/triple-beam/.nyc_output/processinfo/c579bf8f-6820-47a5-b2da-a11267eb8435.json +1 -0
  2156. package/mac-agent/node_modules/triple-beam/.nyc_output/processinfo/index.json +1 -0
  2157. package/mac-agent/node_modules/triple-beam/CHANGELOG.md +22 -0
  2158. package/mac-agent/node_modules/triple-beam/LICENSE +21 -0
  2159. package/mac-agent/node_modules/triple-beam/README.md +34 -0
  2160. package/mac-agent/node_modules/triple-beam/config/cli.js +42 -0
  2161. package/mac-agent/node_modules/triple-beam/config/index.js +32 -0
  2162. package/mac-agent/node_modules/triple-beam/config/npm.js +36 -0
  2163. package/mac-agent/node_modules/triple-beam/config/syslog.js +38 -0
  2164. package/mac-agent/node_modules/triple-beam/index.js +46 -0
  2165. package/mac-agent/node_modules/triple-beam/package.json +40 -0
  2166. package/mac-agent/node_modules/undefsafe/.github/workflows/release.yml +25 -0
  2167. package/mac-agent/node_modules/undefsafe/.jscsrc +13 -0
  2168. package/mac-agent/node_modules/undefsafe/.jshintrc +16 -0
  2169. package/mac-agent/node_modules/undefsafe/.travis.yml +18 -0
  2170. package/mac-agent/node_modules/undefsafe/LICENSE +22 -0
  2171. package/mac-agent/node_modules/undefsafe/README.md +63 -0
  2172. package/mac-agent/node_modules/undefsafe/example.js +14 -0
  2173. package/mac-agent/node_modules/undefsafe/lib/undefsafe.js +125 -0
  2174. package/mac-agent/node_modules/undefsafe/package.json +34 -0
  2175. package/mac-agent/node_modules/util-deprecate/History.md +16 -0
  2176. package/mac-agent/node_modules/util-deprecate/LICENSE +24 -0
  2177. package/mac-agent/node_modules/util-deprecate/README.md +53 -0
  2178. package/mac-agent/node_modules/util-deprecate/browser.js +67 -0
  2179. package/mac-agent/node_modules/util-deprecate/node.js +6 -0
  2180. package/mac-agent/node_modules/util-deprecate/package.json +27 -0
  2181. package/mac-agent/node_modules/uuid/CHANGELOG.md +229 -0
  2182. package/mac-agent/node_modules/uuid/CONTRIBUTING.md +18 -0
  2183. package/mac-agent/node_modules/uuid/LICENSE.md +9 -0
  2184. package/mac-agent/node_modules/uuid/README.md +505 -0
  2185. package/mac-agent/node_modules/uuid/dist/bin/uuid +2 -0
  2186. package/mac-agent/node_modules/uuid/dist/esm-browser/index.js +9 -0
  2187. package/mac-agent/node_modules/uuid/dist/esm-browser/md5.js +215 -0
  2188. package/mac-agent/node_modules/uuid/dist/esm-browser/nil.js +1 -0
  2189. package/mac-agent/node_modules/uuid/dist/esm-browser/parse.js +35 -0
  2190. package/mac-agent/node_modules/uuid/dist/esm-browser/regex.js +1 -0
  2191. package/mac-agent/node_modules/uuid/dist/esm-browser/rng.js +19 -0
  2192. package/mac-agent/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
  2193. package/mac-agent/node_modules/uuid/dist/esm-browser/stringify.js +30 -0
  2194. package/mac-agent/node_modules/uuid/dist/esm-browser/v1.js +95 -0
  2195. package/mac-agent/node_modules/uuid/dist/esm-browser/v3.js +4 -0
  2196. package/mac-agent/node_modules/uuid/dist/esm-browser/v35.js +64 -0
  2197. package/mac-agent/node_modules/uuid/dist/esm-browser/v4.js +24 -0
  2198. package/mac-agent/node_modules/uuid/dist/esm-browser/v5.js +4 -0
  2199. package/mac-agent/node_modules/uuid/dist/esm-browser/validate.js +7 -0
  2200. package/mac-agent/node_modules/uuid/dist/esm-browser/version.js +11 -0
  2201. package/mac-agent/node_modules/uuid/dist/esm-node/index.js +9 -0
  2202. package/mac-agent/node_modules/uuid/dist/esm-node/md5.js +13 -0
  2203. package/mac-agent/node_modules/uuid/dist/esm-node/nil.js +1 -0
  2204. package/mac-agent/node_modules/uuid/dist/esm-node/parse.js +35 -0
  2205. package/mac-agent/node_modules/uuid/dist/esm-node/regex.js +1 -0
  2206. package/mac-agent/node_modules/uuid/dist/esm-node/rng.js +12 -0
  2207. package/mac-agent/node_modules/uuid/dist/esm-node/sha1.js +13 -0
  2208. package/mac-agent/node_modules/uuid/dist/esm-node/stringify.js +29 -0
  2209. package/mac-agent/node_modules/uuid/dist/esm-node/v1.js +95 -0
  2210. package/mac-agent/node_modules/uuid/dist/esm-node/v3.js +4 -0
  2211. package/mac-agent/node_modules/uuid/dist/esm-node/v35.js +64 -0
  2212. package/mac-agent/node_modules/uuid/dist/esm-node/v4.js +24 -0
  2213. package/mac-agent/node_modules/uuid/dist/esm-node/v5.js +4 -0
  2214. package/mac-agent/node_modules/uuid/dist/esm-node/validate.js +7 -0
  2215. package/mac-agent/node_modules/uuid/dist/esm-node/version.js +11 -0
  2216. package/mac-agent/node_modules/uuid/dist/index.js +79 -0
  2217. package/mac-agent/node_modules/uuid/dist/md5-browser.js +223 -0
  2218. package/mac-agent/node_modules/uuid/dist/md5.js +23 -0
  2219. package/mac-agent/node_modules/uuid/dist/nil.js +8 -0
  2220. package/mac-agent/node_modules/uuid/dist/parse.js +45 -0
  2221. package/mac-agent/node_modules/uuid/dist/regex.js +8 -0
  2222. package/mac-agent/node_modules/uuid/dist/rng-browser.js +26 -0
  2223. package/mac-agent/node_modules/uuid/dist/rng.js +24 -0
  2224. package/mac-agent/node_modules/uuid/dist/sha1-browser.js +104 -0
  2225. package/mac-agent/node_modules/uuid/dist/sha1.js +23 -0
  2226. package/mac-agent/node_modules/uuid/dist/stringify.js +39 -0
  2227. package/mac-agent/node_modules/uuid/dist/umd/uuid.min.js +1 -0
  2228. package/mac-agent/node_modules/uuid/dist/umd/uuidNIL.min.js +1 -0
  2229. package/mac-agent/node_modules/uuid/dist/umd/uuidParse.min.js +1 -0
  2230. package/mac-agent/node_modules/uuid/dist/umd/uuidStringify.min.js +1 -0
  2231. package/mac-agent/node_modules/uuid/dist/umd/uuidValidate.min.js +1 -0
  2232. package/mac-agent/node_modules/uuid/dist/umd/uuidVersion.min.js +1 -0
  2233. package/mac-agent/node_modules/uuid/dist/umd/uuidv1.min.js +1 -0
  2234. package/mac-agent/node_modules/uuid/dist/umd/uuidv3.min.js +1 -0
  2235. package/mac-agent/node_modules/uuid/dist/umd/uuidv4.min.js +1 -0
  2236. package/mac-agent/node_modules/uuid/dist/umd/uuidv5.min.js +1 -0
  2237. package/mac-agent/node_modules/uuid/dist/uuid-bin.js +85 -0
  2238. package/mac-agent/node_modules/uuid/dist/v1.js +107 -0
  2239. package/mac-agent/node_modules/uuid/dist/v3.js +16 -0
  2240. package/mac-agent/node_modules/uuid/dist/v35.js +78 -0
  2241. package/mac-agent/node_modules/uuid/dist/v4.js +37 -0
  2242. package/mac-agent/node_modules/uuid/dist/v5.js +16 -0
  2243. package/mac-agent/node_modules/uuid/dist/validate.js +17 -0
  2244. package/mac-agent/node_modules/uuid/dist/version.js +21 -0
  2245. package/mac-agent/node_modules/uuid/package.json +135 -0
  2246. package/mac-agent/node_modules/uuid/wrapper.mjs +10 -0
  2247. package/mac-agent/node_modules/validate-npm-package-license/LICENSE +202 -0
  2248. package/mac-agent/node_modules/validate-npm-package-license/README.md +113 -0
  2249. package/mac-agent/node_modules/validate-npm-package-license/index.js +86 -0
  2250. package/mac-agent/node_modules/validate-npm-package-license/package.json +28 -0
  2251. package/mac-agent/node_modules/webidl-conversions/LICENSE.md +12 -0
  2252. package/mac-agent/node_modules/webidl-conversions/README.md +80 -0
  2253. package/mac-agent/node_modules/webidl-conversions/lib/index.js +332 -0
  2254. package/mac-agent/node_modules/webidl-conversions/package.json +27 -0
  2255. package/mac-agent/node_modules/whatwg-url/LICENSE.txt +21 -0
  2256. package/mac-agent/node_modules/whatwg-url/README.md +67 -0
  2257. package/mac-agent/node_modules/whatwg-url/lib/URL-impl.js +200 -0
  2258. package/mac-agent/node_modules/whatwg-url/lib/URL.js +196 -0
  2259. package/mac-agent/node_modules/whatwg-url/lib/public-api.js +11 -0
  2260. package/mac-agent/node_modules/whatwg-url/lib/url-state-machine.js +1297 -0
  2261. package/mac-agent/node_modules/whatwg-url/lib/utils.js +20 -0
  2262. package/mac-agent/node_modules/whatwg-url/node_modules/webidl-conversions/LICENSE.md +12 -0
  2263. package/mac-agent/node_modules/whatwg-url/node_modules/webidl-conversions/README.md +53 -0
  2264. package/mac-agent/node_modules/whatwg-url/node_modules/webidl-conversions/lib/index.js +189 -0
  2265. package/mac-agent/node_modules/whatwg-url/node_modules/webidl-conversions/package.json +23 -0
  2266. package/mac-agent/node_modules/whatwg-url/package.json +32 -0
  2267. package/mac-agent/node_modules/which/CHANGELOG.md +152 -0
  2268. package/mac-agent/node_modules/which/LICENSE +15 -0
  2269. package/mac-agent/node_modules/which/README.md +51 -0
  2270. package/mac-agent/node_modules/which/bin/which +52 -0
  2271. package/mac-agent/node_modules/which/package.json +30 -0
  2272. package/mac-agent/node_modules/which/which.js +135 -0
  2273. package/mac-agent/node_modules/which-module/CHANGELOG.md +11 -0
  2274. package/mac-agent/node_modules/which-module/LICENSE +13 -0
  2275. package/mac-agent/node_modules/which-module/README.md +55 -0
  2276. package/mac-agent/node_modules/which-module/index.js +9 -0
  2277. package/mac-agent/node_modules/which-module/package.json +41 -0
  2278. package/mac-agent/node_modules/wide-align/LICENSE +14 -0
  2279. package/mac-agent/node_modules/wide-align/README.md +47 -0
  2280. package/mac-agent/node_modules/wide-align/align.js +65 -0
  2281. package/mac-agent/node_modules/wide-align/package.json +33 -0
  2282. package/mac-agent/node_modules/winston/LICENSE +19 -0
  2283. package/mac-agent/node_modules/winston/README.md +1271 -0
  2284. package/mac-agent/node_modules/winston/dist/winston/common.js +44 -0
  2285. package/mac-agent/node_modules/winston/dist/winston/config/index.js +36 -0
  2286. package/mac-agent/node_modules/winston/dist/winston/container.js +141 -0
  2287. package/mac-agent/node_modules/winston/dist/winston/create-logger.js +123 -0
  2288. package/mac-agent/node_modules/winston/dist/winston/exception-handler.js +265 -0
  2289. package/mac-agent/node_modules/winston/dist/winston/exception-stream.js +75 -0
  2290. package/mac-agent/node_modules/winston/dist/winston/logger.js +672 -0
  2291. package/mac-agent/node_modules/winston/dist/winston/profiler.js +65 -0
  2292. package/mac-agent/node_modules/winston/dist/winston/rejection-handler.js +265 -0
  2293. package/mac-agent/node_modules/winston/dist/winston/rejection-stream.js +72 -0
  2294. package/mac-agent/node_modules/winston/dist/winston/tail-file.js +113 -0
  2295. package/mac-agent/node_modules/winston/dist/winston/transports/console.js +143 -0
  2296. package/mac-agent/node_modules/winston/dist/winston/transports/file.js +788 -0
  2297. package/mac-agent/node_modules/winston/dist/winston/transports/http.js +288 -0
  2298. package/mac-agent/node_modules/winston/dist/winston/transports/index.js +56 -0
  2299. package/mac-agent/node_modules/winston/dist/winston/transports/stream.js +86 -0
  2300. package/mac-agent/node_modules/winston/dist/winston.js +171 -0
  2301. package/mac-agent/node_modules/winston/index.d.ts +208 -0
  2302. package/mac-agent/node_modules/winston/lib/winston/common.js +46 -0
  2303. package/mac-agent/node_modules/winston/lib/winston/config/index.d.ts +99 -0
  2304. package/mac-agent/node_modules/winston/lib/winston/config/index.js +35 -0
  2305. package/mac-agent/node_modules/winston/lib/winston/container.js +118 -0
  2306. package/mac-agent/node_modules/winston/lib/winston/create-logger.js +104 -0
  2307. package/mac-agent/node_modules/winston/lib/winston/exception-handler.js +245 -0
  2308. package/mac-agent/node_modules/winston/lib/winston/exception-stream.js +54 -0
  2309. package/mac-agent/node_modules/winston/lib/winston/logger.js +677 -0
  2310. package/mac-agent/node_modules/winston/lib/winston/profiler.js +53 -0
  2311. package/mac-agent/node_modules/winston/lib/winston/rejection-handler.js +251 -0
  2312. package/mac-agent/node_modules/winston/lib/winston/rejection-stream.js +52 -0
  2313. package/mac-agent/node_modules/winston/lib/winston/tail-file.js +124 -0
  2314. package/mac-agent/node_modules/winston/lib/winston/transports/console.js +125 -0
  2315. package/mac-agent/node_modules/winston/lib/winston/transports/file.js +763 -0
  2316. package/mac-agent/node_modules/winston/lib/winston/transports/http.js +262 -0
  2317. package/mac-agent/node_modules/winston/lib/winston/transports/index.d.ts +117 -0
  2318. package/mac-agent/node_modules/winston/lib/winston/transports/index.js +56 -0
  2319. package/mac-agent/node_modules/winston/lib/winston/transports/stream.js +63 -0
  2320. package/mac-agent/node_modules/winston/lib/winston.js +191 -0
  2321. package/mac-agent/node_modules/winston/package.json +74 -0
  2322. package/mac-agent/node_modules/winston-transport/.babelrc +3 -0
  2323. package/mac-agent/node_modules/winston-transport/.eslintrc +7 -0
  2324. package/mac-agent/node_modules/winston-transport/.gitattributes +1 -0
  2325. package/mac-agent/node_modules/winston-transport/.nyc_output/68e78020-c804-4f37-a68a-a967c6380da9.json +1 -0
  2326. package/mac-agent/node_modules/winston-transport/.nyc_output/processinfo/68e78020-c804-4f37-a68a-a967c6380da9.json +1 -0
  2327. package/mac-agent/node_modules/winston-transport/.nyc_output/processinfo/index.json +1 -0
  2328. package/mac-agent/node_modules/winston-transport/CHANGELOG.md +126 -0
  2329. package/mac-agent/node_modules/winston-transport/LICENSE +22 -0
  2330. package/mac-agent/node_modules/winston-transport/README.md +50 -0
  2331. package/mac-agent/node_modules/winston-transport/dist/index.js +8 -0
  2332. package/mac-agent/node_modules/winston-transport/dist/legacy.js +116 -0
  2333. package/mac-agent/node_modules/winston-transport/dist/modern.js +212 -0
  2334. package/mac-agent/node_modules/winston-transport/index.d.ts +39 -0
  2335. package/mac-agent/node_modules/winston-transport/index.js +7 -0
  2336. package/mac-agent/node_modules/winston-transport/legacy.js +119 -0
  2337. package/mac-agent/node_modules/winston-transport/modern.js +211 -0
  2338. package/mac-agent/node_modules/winston-transport/package.json +52 -0
  2339. package/mac-agent/node_modules/wrap-ansi/index.js +168 -0
  2340. package/mac-agent/node_modules/wrap-ansi/license +21 -0
  2341. package/mac-agent/node_modules/wrap-ansi/node_modules/ansi-regex/index.js +4 -0
  2342. package/mac-agent/node_modules/wrap-ansi/node_modules/ansi-regex/license +21 -0
  2343. package/mac-agent/node_modules/wrap-ansi/node_modules/ansi-regex/package.json +64 -0
  2344. package/mac-agent/node_modules/wrap-ansi/node_modules/ansi-regex/readme.md +39 -0
  2345. package/mac-agent/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/index.js +46 -0
  2346. package/mac-agent/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/license +21 -0
  2347. package/mac-agent/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/package.json +45 -0
  2348. package/mac-agent/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/readme.md +39 -0
  2349. package/mac-agent/node_modules/wrap-ansi/node_modules/string-width/index.js +37 -0
  2350. package/mac-agent/node_modules/wrap-ansi/node_modules/string-width/license +21 -0
  2351. package/mac-agent/node_modules/wrap-ansi/node_modules/string-width/package.json +56 -0
  2352. package/mac-agent/node_modules/wrap-ansi/node_modules/string-width/readme.md +42 -0
  2353. package/mac-agent/node_modules/wrap-ansi/node_modules/strip-ansi/index.js +6 -0
  2354. package/mac-agent/node_modules/wrap-ansi/node_modules/strip-ansi/license +21 -0
  2355. package/mac-agent/node_modules/wrap-ansi/node_modules/strip-ansi/package.json +57 -0
  2356. package/mac-agent/node_modules/wrap-ansi/node_modules/strip-ansi/readme.md +33 -0
  2357. package/mac-agent/node_modules/wrap-ansi/package.json +68 -0
  2358. package/mac-agent/node_modules/wrap-ansi/readme.md +73 -0
  2359. package/mac-agent/node_modules/wrappy/LICENSE +15 -0
  2360. package/mac-agent/node_modules/wrappy/README.md +36 -0
  2361. package/mac-agent/node_modules/wrappy/package.json +29 -0
  2362. package/mac-agent/node_modules/wrappy/wrappy.js +33 -0
  2363. package/mac-agent/node_modules/ws/LICENSE +20 -0
  2364. package/mac-agent/node_modules/ws/README.md +548 -0
  2365. package/mac-agent/node_modules/ws/browser.js +8 -0
  2366. package/mac-agent/node_modules/ws/index.js +13 -0
  2367. package/mac-agent/node_modules/ws/lib/buffer-util.js +131 -0
  2368. package/mac-agent/node_modules/ws/lib/constants.js +18 -0
  2369. package/mac-agent/node_modules/ws/lib/event-target.js +292 -0
  2370. package/mac-agent/node_modules/ws/lib/extension.js +203 -0
  2371. package/mac-agent/node_modules/ws/lib/limiter.js +55 -0
  2372. package/mac-agent/node_modules/ws/lib/permessage-deflate.js +528 -0
  2373. package/mac-agent/node_modules/ws/lib/receiver.js +706 -0
  2374. package/mac-agent/node_modules/ws/lib/sender.js +602 -0
  2375. package/mac-agent/node_modules/ws/lib/stream.js +161 -0
  2376. package/mac-agent/node_modules/ws/lib/subprotocol.js +62 -0
  2377. package/mac-agent/node_modules/ws/lib/validation.js +152 -0
  2378. package/mac-agent/node_modules/ws/lib/websocket-server.js +550 -0
  2379. package/mac-agent/node_modules/ws/lib/websocket.js +1388 -0
  2380. package/mac-agent/node_modules/ws/package.json +69 -0
  2381. package/mac-agent/node_modules/ws/wrapper.mjs +8 -0
  2382. package/mac-agent/node_modules/y18n/CHANGELOG.md +6 -0
  2383. package/mac-agent/node_modules/y18n/LICENSE +13 -0
  2384. package/mac-agent/node_modules/y18n/README.md +91 -0
  2385. package/mac-agent/node_modules/y18n/index.js +172 -0
  2386. package/mac-agent/node_modules/y18n/package.json +37 -0
  2387. package/mac-agent/node_modules/yallist/LICENSE +15 -0
  2388. package/mac-agent/node_modules/yallist/README.md +204 -0
  2389. package/mac-agent/node_modules/yallist/iterator.js +8 -0
  2390. package/mac-agent/node_modules/yallist/package.json +29 -0
  2391. package/mac-agent/node_modules/yallist/yallist.js +426 -0
  2392. package/mac-agent/node_modules/yargs/CHANGELOG.md +928 -0
  2393. package/mac-agent/node_modules/yargs/LICENSE +22 -0
  2394. package/mac-agent/node_modules/yargs/README.md +2017 -0
  2395. package/mac-agent/node_modules/yargs/completion.sh.hbs +28 -0
  2396. package/mac-agent/node_modules/yargs/index.js +31 -0
  2397. package/mac-agent/node_modules/yargs/lib/apply-extends.js +41 -0
  2398. package/mac-agent/node_modules/yargs/lib/argsert.js +72 -0
  2399. package/mac-agent/node_modules/yargs/lib/assign.js +15 -0
  2400. package/mac-agent/node_modules/yargs/lib/command.js +334 -0
  2401. package/mac-agent/node_modules/yargs/lib/completion.js +104 -0
  2402. package/mac-agent/node_modules/yargs/lib/levenshtein.js +47 -0
  2403. package/mac-agent/node_modules/yargs/lib/obj-filter.js +10 -0
  2404. package/mac-agent/node_modules/yargs/lib/usage.js +489 -0
  2405. package/mac-agent/node_modules/yargs/lib/validation.js +363 -0
  2406. package/mac-agent/node_modules/yargs/lib/yerror.js +10 -0
  2407. package/mac-agent/node_modules/yargs/locales/be.json +39 -0
  2408. package/mac-agent/node_modules/yargs/locales/de.json +39 -0
  2409. package/mac-agent/node_modules/yargs/locales/en.json +40 -0
  2410. package/mac-agent/node_modules/yargs/locales/es.json +39 -0
  2411. package/mac-agent/node_modules/yargs/locales/fr.json +37 -0
  2412. package/mac-agent/node_modules/yargs/locales/hi.json +39 -0
  2413. package/mac-agent/node_modules/yargs/locales/hu.json +39 -0
  2414. package/mac-agent/node_modules/yargs/locales/id.json +40 -0
  2415. package/mac-agent/node_modules/yargs/locales/it.json +39 -0
  2416. package/mac-agent/node_modules/yargs/locales/ja.json +39 -0
  2417. package/mac-agent/node_modules/yargs/locales/ko.json +39 -0
  2418. package/mac-agent/node_modules/yargs/locales/nb.json +37 -0
  2419. package/mac-agent/node_modules/yargs/locales/nl.json +39 -0
  2420. package/mac-agent/node_modules/yargs/locales/pirate.json +12 -0
  2421. package/mac-agent/node_modules/yargs/locales/pl.json +39 -0
  2422. package/mac-agent/node_modules/yargs/locales/pt.json +38 -0
  2423. package/mac-agent/node_modules/yargs/locales/pt_BR.json +40 -0
  2424. package/mac-agent/node_modules/yargs/locales/ru.json +39 -0
  2425. package/mac-agent/node_modules/yargs/locales/th.json +39 -0
  2426. package/mac-agent/node_modules/yargs/locales/tr.json +39 -0
  2427. package/mac-agent/node_modules/yargs/locales/zh_CN.json +37 -0
  2428. package/mac-agent/node_modules/yargs/locales/zh_TW.json +40 -0
  2429. package/mac-agent/node_modules/yargs/node_modules/ansi-regex/index.js +4 -0
  2430. package/mac-agent/node_modules/yargs/node_modules/ansi-regex/license +21 -0
  2431. package/mac-agent/node_modules/yargs/node_modules/ansi-regex/package.json +64 -0
  2432. package/mac-agent/node_modules/yargs/node_modules/ansi-regex/readme.md +39 -0
  2433. package/mac-agent/node_modules/yargs/node_modules/is-fullwidth-code-point/index.js +46 -0
  2434. package/mac-agent/node_modules/yargs/node_modules/is-fullwidth-code-point/license +21 -0
  2435. package/mac-agent/node_modules/yargs/node_modules/is-fullwidth-code-point/package.json +45 -0
  2436. package/mac-agent/node_modules/yargs/node_modules/is-fullwidth-code-point/readme.md +39 -0
  2437. package/mac-agent/node_modules/yargs/node_modules/string-width/index.js +37 -0
  2438. package/mac-agent/node_modules/yargs/node_modules/string-width/license +21 -0
  2439. package/mac-agent/node_modules/yargs/node_modules/string-width/package.json +56 -0
  2440. package/mac-agent/node_modules/yargs/node_modules/string-width/readme.md +42 -0
  2441. package/mac-agent/node_modules/yargs/node_modules/strip-ansi/index.js +6 -0
  2442. package/mac-agent/node_modules/yargs/node_modules/strip-ansi/license +21 -0
  2443. package/mac-agent/node_modules/yargs/node_modules/strip-ansi/package.json +57 -0
  2444. package/mac-agent/node_modules/yargs/node_modules/strip-ansi/readme.md +33 -0
  2445. package/mac-agent/node_modules/yargs/package.json +80 -0
  2446. package/mac-agent/node_modules/yargs/yargs.js +1126 -0
  2447. package/mac-agent/node_modules/yargs-parser/CHANGELOG.md +176 -0
  2448. package/mac-agent/node_modules/yargs-parser/LICENSE.txt +14 -0
  2449. package/mac-agent/node_modules/yargs-parser/README.md +257 -0
  2450. package/mac-agent/node_modules/yargs-parser/index.js +753 -0
  2451. package/mac-agent/node_modules/yargs-parser/lib/tokenize-arg-string.js +34 -0
  2452. package/mac-agent/node_modules/yargs-parser/package.json +44 -0
  2453. package/mac-agent/package-lock.json +2272 -0
  2454. package/mac-agent/package.json +31 -0
  2455. package/mac-agent/setup.js +120 -0
  2456. package/mac-agent/shell-mirror@1.5.7 +0 -0
  2457. package/mac-agent/web-setup.js +145 -0
  2458. package/package.json +2 -1
@@ -0,0 +1,3049 @@
1
+ /*********************************************************************
2
+ * NAN - Native Abstractions for Node.js
3
+ *
4
+ * Copyright (c) 2018 NAN contributors:
5
+ * - Rod Vagg <https://github.com/rvagg>
6
+ * - Benjamin Byholm <https://github.com/kkoopa>
7
+ * - Trevor Norris <https://github.com/trevnorris>
8
+ * - Nathan Rajlich <https://github.com/TooTallNate>
9
+ * - Brett Lawson <https://github.com/brett19>
10
+ * - Ben Noordhuis <https://github.com/bnoordhuis>
11
+ * - David Siegel <https://github.com/agnat>
12
+ * - Michael Ira Krufky <https://github.com/mkrufky>
13
+ *
14
+ * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
15
+ *
16
+ * Version 2.22.2: current Node 22.14.0, Node 0.12: 0.12.18, Node 0.10: 0.10.48, iojs: 3.3.1
17
+ *
18
+ * See https://github.com/nodejs/nan for the latest update to this file
19
+ **********************************************************************************/
20
+
21
+ #ifndef NAN_H_
22
+ #define NAN_H_
23
+
24
+ #include <node_version.h>
25
+
26
+ #define NODE_0_10_MODULE_VERSION 11
27
+ #define NODE_0_12_MODULE_VERSION 14
28
+ #define ATOM_0_21_MODULE_VERSION 41
29
+ #define IOJS_1_0_MODULE_VERSION 42
30
+ #define IOJS_1_1_MODULE_VERSION 43
31
+ #define IOJS_2_0_MODULE_VERSION 44
32
+ #define IOJS_3_0_MODULE_VERSION 45
33
+ #define NODE_4_0_MODULE_VERSION 46
34
+ #define NODE_5_0_MODULE_VERSION 47
35
+ #define NODE_6_0_MODULE_VERSION 48
36
+ #define NODE_7_0_MODULE_VERSION 51
37
+ #define NODE_8_0_MODULE_VERSION 57
38
+ #define NODE_9_0_MODULE_VERSION 59
39
+ #define NODE_10_0_MODULE_VERSION 64
40
+ #define NODE_11_0_MODULE_VERSION 67
41
+ #define NODE_12_0_MODULE_VERSION 72
42
+ #define NODE_13_0_MODULE_VERSION 79
43
+ #define NODE_14_0_MODULE_VERSION 83
44
+ #define NODE_15_0_MODULE_VERSION 88
45
+ #define NODE_16_0_MODULE_VERSION 93
46
+ #define NODE_17_0_MODULE_VERSION 102
47
+ #define NODE_18_0_MODULE_VERSION 108
48
+ #define NODE_19_0_MODULE_VERSION 111
49
+ #define NODE_20_0_MODULE_VERSION 115
50
+
51
+ #ifdef _MSC_VER
52
+ # define NAN_HAS_CPLUSPLUS_11 (_MSC_VER >= 1800)
53
+ #else
54
+ # define NAN_HAS_CPLUSPLUS_11 (__cplusplus >= 201103L)
55
+ #endif
56
+
57
+ #if NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION && !NAN_HAS_CPLUSPLUS_11
58
+ # error This version of node/NAN/v8 requires a C++11 compiler
59
+ #endif
60
+
61
+ #include <uv.h>
62
+ #include <node.h>
63
+ #include <node_buffer.h>
64
+ #include <node_object_wrap.h>
65
+ #include <algorithm>
66
+ #include <cstring>
67
+ #include <climits>
68
+ #include <cstdlib>
69
+ #include <utility>
70
+ #if defined(_MSC_VER)
71
+ # pragma warning( push )
72
+ # pragma warning( disable : 4530 )
73
+ # include <queue>
74
+ # include <string>
75
+ # include <vector>
76
+ # pragma warning( pop )
77
+ #else
78
+ # include <queue>
79
+ # include <string>
80
+ # include <vector>
81
+ #endif
82
+
83
+ // uv helpers
84
+ #ifdef UV_VERSION_MAJOR
85
+ # ifndef UV_VERSION_PATCH
86
+ # define UV_VERSION_PATCH 0
87
+ # endif
88
+ # define NAUV_UVVERSION ((UV_VERSION_MAJOR << 16) | \
89
+ (UV_VERSION_MINOR << 8) | \
90
+ (UV_VERSION_PATCH))
91
+ #else
92
+ # define NAUV_UVVERSION 0x000b00
93
+ #endif
94
+
95
+ #if NAUV_UVVERSION < 0x000b0b
96
+ # ifdef WIN32
97
+ # include <windows.h>
98
+ # else
99
+ # include <pthread.h>
100
+ # endif
101
+ #endif
102
+
103
+ namespace Nan {
104
+
105
+ #define NAN_CONCAT(a, b) NAN_CONCAT_HELPER(a, b)
106
+ #define NAN_CONCAT_HELPER(a, b) a##b
107
+
108
+ #define NAN_INLINE inline // TODO(bnoordhuis) Remove in v3.0.0.
109
+
110
+ #if defined(__GNUC__) && \
111
+ !(defined(V8_DISABLE_DEPRECATIONS) && V8_DISABLE_DEPRECATIONS)
112
+ # define NAN_DEPRECATED __attribute__((deprecated))
113
+ #elif defined(_MSC_VER) && \
114
+ !(defined(V8_DISABLE_DEPRECATIONS) && V8_DISABLE_DEPRECATIONS)
115
+ # define NAN_DEPRECATED __declspec(deprecated)
116
+ #else
117
+ # define NAN_DEPRECATED
118
+ #endif
119
+
120
+ #if NAN_HAS_CPLUSPLUS_11
121
+ # define NAN_DISALLOW_ASSIGN(CLASS) void operator=(const CLASS&) = delete;
122
+ # define NAN_DISALLOW_COPY(CLASS) CLASS(const CLASS&) = delete;
123
+ # define NAN_DISALLOW_MOVE(CLASS) \
124
+ CLASS(CLASS&&) = delete; /* NOLINT(build/c++11) */ \
125
+ void operator=(CLASS&&) = delete;
126
+ #else
127
+ # define NAN_DISALLOW_ASSIGN(CLASS) void operator=(const CLASS&);
128
+ # define NAN_DISALLOW_COPY(CLASS) CLASS(const CLASS&);
129
+ # define NAN_DISALLOW_MOVE(CLASS)
130
+ #endif
131
+
132
+ #define NAN_DISALLOW_ASSIGN_COPY(CLASS) \
133
+ NAN_DISALLOW_ASSIGN(CLASS) \
134
+ NAN_DISALLOW_COPY(CLASS)
135
+
136
+ #define NAN_DISALLOW_ASSIGN_MOVE(CLASS) \
137
+ NAN_DISALLOW_ASSIGN(CLASS) \
138
+ NAN_DISALLOW_MOVE(CLASS)
139
+
140
+ #define NAN_DISALLOW_COPY_MOVE(CLASS) \
141
+ NAN_DISALLOW_COPY(CLASS) \
142
+ NAN_DISALLOW_MOVE(CLASS)
143
+
144
+ #define NAN_DISALLOW_ASSIGN_COPY_MOVE(CLASS) \
145
+ NAN_DISALLOW_ASSIGN(CLASS) \
146
+ NAN_DISALLOW_COPY(CLASS) \
147
+ NAN_DISALLOW_MOVE(CLASS)
148
+
149
+ #define TYPE_CHECK(T, S) \
150
+ while (false) { \
151
+ *(static_cast<T *volatile *>(0)) = static_cast<S*>(0); \
152
+ }
153
+
154
+ //=== RegistrationFunction =====================================================
155
+
156
+ #if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
157
+ typedef v8::Handle<v8::Object> ADDON_REGISTER_FUNCTION_ARGS_TYPE;
158
+ #else
159
+ typedef v8::Local<v8::Object> ADDON_REGISTER_FUNCTION_ARGS_TYPE;
160
+ #endif
161
+
162
+ #define NAN_MODULE_INIT(name) \
163
+ void name(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE target)
164
+
165
+ #if NODE_MAJOR_VERSION >= 10 || \
166
+ NODE_MAJOR_VERSION == 9 && NODE_MINOR_VERSION >= 3
167
+ #define NAN_MODULE_WORKER_ENABLED(module_name, registration) \
168
+ extern "C" NODE_MODULE_EXPORT void \
169
+ NAN_CONCAT(node_register_module_v, NODE_MODULE_VERSION)( \
170
+ v8::Local<v8::Object> exports, v8::Local<v8::Value> module, \
171
+ v8::Local<v8::Context> context) \
172
+ { \
173
+ registration(exports); \
174
+ }
175
+ #else
176
+ #define NAN_MODULE_WORKER_ENABLED(module_name, registration) \
177
+ NODE_MODULE(module_name, registration)
178
+ #endif
179
+
180
+ //=== CallbackInfo =============================================================
181
+
182
+ #include "nan_callbacks.h" // NOLINT(build/include)
183
+
184
+ //==============================================================================
185
+
186
+ #if (NODE_MODULE_VERSION < NODE_0_12_MODULE_VERSION)
187
+ typedef v8::Script UnboundScript;
188
+ typedef v8::Script BoundScript;
189
+ #else
190
+ typedef v8::UnboundScript UnboundScript;
191
+ typedef v8::Script BoundScript;
192
+ #endif
193
+
194
+ #if (NODE_MODULE_VERSION < ATOM_0_21_MODULE_VERSION)
195
+ typedef v8::String::ExternalAsciiStringResource
196
+ ExternalOneByteStringResource;
197
+ #else
198
+ typedef v8::String::ExternalOneByteStringResource
199
+ ExternalOneByteStringResource;
200
+ #endif
201
+
202
+ #if (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION)
203
+ template<typename T>
204
+ class NonCopyablePersistentTraits :
205
+ public v8::NonCopyablePersistentTraits<T> {};
206
+ #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 10 || \
207
+ (V8_MAJOR_VERSION == 10 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 5))
208
+ template<typename T> struct CopyablePersistentTraits {
209
+ typedef v8::Persistent<T, CopyablePersistentTraits<T> > CopyablePersistent;
210
+ static const bool kResetInDestructor = true;
211
+ template <typename S, typename M>
212
+ static NAN_INLINE void Copy(const v8::Persistent<S, M> &source,
213
+ CopyablePersistent *dest) {
214
+ }
215
+ };
216
+ #else
217
+ template<typename T>
218
+ class CopyablePersistentTraits :
219
+ public v8::CopyablePersistentTraits<T> {};
220
+ #endif
221
+
222
+ template<typename T>
223
+ class PersistentBase :
224
+ public v8::PersistentBase<T> {};
225
+
226
+ template<typename T, typename M = v8::NonCopyablePersistentTraits<T> >
227
+ class Persistent;
228
+ #else
229
+ template<typename T> class NonCopyablePersistentTraits;
230
+ template<typename T> class PersistentBase;
231
+ template<typename T, typename P> class WeakCallbackData;
232
+ template<typename T, typename M = NonCopyablePersistentTraits<T> >
233
+ class Persistent;
234
+ #endif // NODE_MODULE_VERSION
235
+
236
+ template<typename T>
237
+ class Maybe {
238
+ public:
239
+ inline bool IsNothing() const { return !has_value_; }
240
+ inline bool IsJust() const { return has_value_; }
241
+
242
+ inline T ToChecked() const { return FromJust(); }
243
+ inline void Check() const { FromJust(); }
244
+
245
+ inline bool To(T* out) const {
246
+ if (IsJust()) *out = value_;
247
+ return IsJust();
248
+ }
249
+
250
+ inline T FromJust() const {
251
+ #if defined(V8_ENABLE_CHECKS)
252
+ assert(IsJust() && "FromJust is Nothing");
253
+ #endif // V8_ENABLE_CHECKS
254
+ return value_;
255
+ }
256
+
257
+ inline T FromMaybe(const T& default_value) const {
258
+ return has_value_ ? value_ : default_value;
259
+ }
260
+
261
+ inline bool operator==(const Maybe &other) const {
262
+ return (IsJust() == other.IsJust()) &&
263
+ (!IsJust() || FromJust() == other.FromJust());
264
+ }
265
+
266
+ inline bool operator!=(const Maybe &other) const {
267
+ return !operator==(other);
268
+ }
269
+
270
+ #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
271
+ (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
272
+ // Allow implicit conversions from v8::Maybe<T> to Nan::Maybe<T>.
273
+ Maybe(const v8::Maybe<T>& that) // NOLINT(runtime/explicit)
274
+ : has_value_(that.IsJust())
275
+ , value_(that.FromMaybe(T())) {}
276
+ #endif
277
+
278
+ private:
279
+ Maybe() : has_value_(false) {}
280
+ explicit Maybe(const T& t) : has_value_(true), value_(t) {}
281
+ bool has_value_;
282
+ T value_;
283
+
284
+ template<typename U>
285
+ friend Maybe<U> Nothing();
286
+ template<typename U>
287
+ friend Maybe<U> Just(const U& u);
288
+ };
289
+
290
+ template<typename T>
291
+ inline Maybe<T> Nothing() {
292
+ return Maybe<T>();
293
+ }
294
+
295
+ template<typename T>
296
+ inline Maybe<T> Just(const T& t) {
297
+ return Maybe<T>(t);
298
+ }
299
+
300
+ #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
301
+ (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
302
+ # include "nan_maybe_43_inl.h" // NOLINT(build/include)
303
+ #else
304
+ # include "nan_maybe_pre_43_inl.h" // NOLINT(build/include)
305
+ #endif
306
+
307
+ #include "nan_converters.h" // NOLINT(build/include)
308
+ #include "nan_new.h" // NOLINT(build/include)
309
+
310
+ #if NAUV_UVVERSION < 0x000b17
311
+ #define NAUV_WORK_CB(func) \
312
+ void func(uv_async_t *async, int)
313
+ #else
314
+ #define NAUV_WORK_CB(func) \
315
+ void func(uv_async_t *async)
316
+ #endif
317
+
318
+ #if NAUV_UVVERSION >= 0x000b0b
319
+
320
+ typedef uv_key_t nauv_key_t;
321
+
322
+ inline int nauv_key_create(nauv_key_t *key) {
323
+ return uv_key_create(key);
324
+ }
325
+
326
+ inline void nauv_key_delete(nauv_key_t *key) {
327
+ uv_key_delete(key);
328
+ }
329
+
330
+ inline void* nauv_key_get(nauv_key_t *key) {
331
+ return uv_key_get(key);
332
+ }
333
+
334
+ inline void nauv_key_set(nauv_key_t *key, void *value) {
335
+ uv_key_set(key, value);
336
+ }
337
+
338
+ #else
339
+
340
+ /* Implement thread local storage for older versions of libuv.
341
+ * This is essentially a backport of libuv commit 5d2434bf
342
+ * written by Ben Noordhuis, adjusted for names and inline.
343
+ */
344
+
345
+ #ifndef WIN32
346
+
347
+ typedef pthread_key_t nauv_key_t;
348
+
349
+ inline int nauv_key_create(nauv_key_t* key) {
350
+ return -pthread_key_create(key, NULL);
351
+ }
352
+
353
+ inline void nauv_key_delete(nauv_key_t* key) {
354
+ if (pthread_key_delete(*key))
355
+ abort();
356
+ }
357
+
358
+ inline void* nauv_key_get(nauv_key_t* key) {
359
+ return pthread_getspecific(*key);
360
+ }
361
+
362
+ inline void nauv_key_set(nauv_key_t* key, void* value) {
363
+ if (pthread_setspecific(*key, value))
364
+ abort();
365
+ }
366
+
367
+ #else
368
+
369
+ typedef struct {
370
+ DWORD tls_index;
371
+ } nauv_key_t;
372
+
373
+ inline int nauv_key_create(nauv_key_t* key) {
374
+ key->tls_index = TlsAlloc();
375
+ if (key->tls_index == TLS_OUT_OF_INDEXES)
376
+ return UV_ENOMEM;
377
+ return 0;
378
+ }
379
+
380
+ inline void nauv_key_delete(nauv_key_t* key) {
381
+ if (TlsFree(key->tls_index) == FALSE)
382
+ abort();
383
+ key->tls_index = TLS_OUT_OF_INDEXES;
384
+ }
385
+
386
+ inline void* nauv_key_get(nauv_key_t* key) {
387
+ void* value = TlsGetValue(key->tls_index);
388
+ if (value == NULL)
389
+ if (GetLastError() != ERROR_SUCCESS)
390
+ abort();
391
+ return value;
392
+ }
393
+
394
+ inline void nauv_key_set(nauv_key_t* key, void* value) {
395
+ if (TlsSetValue(key->tls_index, value) == FALSE)
396
+ abort();
397
+ }
398
+
399
+ #endif
400
+ #endif
401
+
402
+ #if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
403
+ template<typename T>
404
+ v8::Local<T> New(v8::Handle<T>);
405
+ #endif
406
+
407
+ #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
408
+ (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
409
+ typedef v8::WeakCallbackType WeakCallbackType;
410
+ #else
411
+ struct WeakCallbackType {
412
+ enum E {kParameter, kInternalFields};
413
+ E type;
414
+ WeakCallbackType(E other) : type(other) {} // NOLINT(runtime/explicit)
415
+ inline bool operator==(E other) { return other == this->type; }
416
+ inline bool operator!=(E other) { return !operator==(other); }
417
+ };
418
+ #endif
419
+
420
+ template<typename P> class WeakCallbackInfo;
421
+
422
+ #if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
423
+ # include "nan_persistent_12_inl.h" // NOLINT(build/include)
424
+ #else
425
+ # include "nan_persistent_pre_12_inl.h" // NOLINT(build/include)
426
+ #endif
427
+
428
+ namespace imp {
429
+ static const size_t kMaxLength = 0x3fffffff;
430
+ // v8::String::REPLACE_INVALID_UTF8 was introduced
431
+ // in node.js v0.10.29 and v0.8.27.
432
+ #if NODE_MAJOR_VERSION > 0 || \
433
+ NODE_MINOR_VERSION > 10 || \
434
+ NODE_MINOR_VERSION == 10 && NODE_PATCH_VERSION >= 29 || \
435
+ NODE_MINOR_VERSION == 8 && NODE_PATCH_VERSION >= 27
436
+ static const unsigned kReplaceInvalidUtf8 = v8::String::REPLACE_INVALID_UTF8;
437
+ #else
438
+ static const unsigned kReplaceInvalidUtf8 = 0;
439
+ #endif
440
+ } // end of namespace imp
441
+
442
+ //=== HandleScope ==============================================================
443
+
444
+ class HandleScope {
445
+ v8::HandleScope scope;
446
+
447
+ public:
448
+ #if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
449
+ inline HandleScope() : scope(v8::Isolate::GetCurrent()) {}
450
+ inline static int NumberOfHandles() {
451
+ return v8::HandleScope::NumberOfHandles(v8::Isolate::GetCurrent());
452
+ }
453
+ #else
454
+ inline HandleScope() : scope() {}
455
+ inline static int NumberOfHandles() {
456
+ return v8::HandleScope::NumberOfHandles();
457
+ }
458
+ #endif
459
+
460
+ private:
461
+ // Make it hard to create heap-allocated or illegal handle scopes by
462
+ // disallowing certain operations.
463
+ HandleScope(const HandleScope &);
464
+ void operator=(const HandleScope &);
465
+ void *operator new(size_t size);
466
+ void operator delete(void *, size_t) {
467
+ abort();
468
+ }
469
+ };
470
+
471
+ class EscapableHandleScope {
472
+ public:
473
+ #if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
474
+ inline EscapableHandleScope() : scope(v8::Isolate::GetCurrent()) {}
475
+
476
+ inline static int NumberOfHandles() {
477
+ return v8::EscapableHandleScope::NumberOfHandles(v8::Isolate::GetCurrent());
478
+ }
479
+
480
+ template<typename T>
481
+ inline v8::Local<T> Escape(v8::Local<T> value) {
482
+ return scope.Escape(value);
483
+ }
484
+
485
+ private:
486
+ v8::EscapableHandleScope scope;
487
+ #else
488
+ inline EscapableHandleScope() : scope() {}
489
+
490
+ inline static int NumberOfHandles() {
491
+ return v8::HandleScope::NumberOfHandles();
492
+ }
493
+
494
+ template<typename T>
495
+ inline v8::Local<T> Escape(v8::Local<T> value) {
496
+ return scope.Close(value);
497
+ }
498
+
499
+ private:
500
+ v8::HandleScope scope;
501
+ #endif
502
+
503
+ private:
504
+ // Make it hard to create heap-allocated or illegal handle scopes by
505
+ // disallowing certain operations.
506
+ EscapableHandleScope(const EscapableHandleScope &);
507
+ void operator=(const EscapableHandleScope &);
508
+ void *operator new(size_t size);
509
+ void operator delete(void *, size_t) {
510
+ abort();
511
+ }
512
+ };
513
+
514
+ //=== TryCatch =================================================================
515
+
516
+ class TryCatch {
517
+ v8::TryCatch try_catch_;
518
+ friend void FatalException(const TryCatch&);
519
+
520
+ public:
521
+ #if NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION
522
+ TryCatch() : try_catch_(v8::Isolate::GetCurrent()) {}
523
+ #endif
524
+
525
+ inline bool HasCaught() const { return try_catch_.HasCaught(); }
526
+
527
+ inline bool CanContinue() const { return try_catch_.CanContinue(); }
528
+
529
+ inline v8::Local<v8::Value> ReThrow() {
530
+ #if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
531
+ return New(try_catch_.ReThrow());
532
+ #else
533
+ return try_catch_.ReThrow();
534
+ #endif
535
+ }
536
+
537
+ inline v8::Local<v8::Value> Exception() const {
538
+ return try_catch_.Exception();
539
+ }
540
+
541
+ #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
542
+ (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
543
+ inline v8::MaybeLocal<v8::Value> StackTrace() const {
544
+ v8::Isolate *isolate = v8::Isolate::GetCurrent();
545
+ v8::EscapableHandleScope scope(isolate);
546
+ return scope.Escape(try_catch_.StackTrace(isolate->GetCurrentContext())
547
+ .FromMaybe(v8::Local<v8::Value>()));
548
+ }
549
+ #else
550
+ inline MaybeLocal<v8::Value> StackTrace() const {
551
+ return try_catch_.StackTrace();
552
+ }
553
+ #endif
554
+
555
+ inline v8::Local<v8::Message> Message() const {
556
+ return try_catch_.Message();
557
+ }
558
+
559
+ inline void Reset() { try_catch_.Reset(); }
560
+
561
+ inline void SetVerbose(bool value) { try_catch_.SetVerbose(value); }
562
+
563
+ inline void SetCaptureMessage(bool value) {
564
+ try_catch_.SetCaptureMessage(value);
565
+ }
566
+ };
567
+
568
+ v8::Local<v8::Value> MakeCallback(v8::Local<v8::Object> target,
569
+ v8::Local<v8::Function> func,
570
+ int argc,
571
+ v8::Local<v8::Value>* argv);
572
+ v8::Local<v8::Value> MakeCallback(v8::Local<v8::Object> target,
573
+ v8::Local<v8::String> symbol,
574
+ int argc,
575
+ v8::Local<v8::Value>* argv);
576
+ v8::Local<v8::Value> MakeCallback(v8::Local<v8::Object> target,
577
+ const char* method,
578
+ int argc,
579
+ v8::Local<v8::Value>* argv);
580
+
581
+ // === AsyncResource ===========================================================
582
+
583
+ class AsyncResource {
584
+ public:
585
+ AsyncResource(
586
+ v8::Local<v8::String> name
587
+ , v8::Local<v8::Object> resource = New<v8::Object>()) {
588
+ #if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
589
+ v8::Isolate* isolate = v8::Isolate::GetCurrent();
590
+
591
+ if (resource.IsEmpty()) {
592
+ resource = New<v8::Object>();
593
+ }
594
+
595
+ context = node::EmitAsyncInit(isolate, resource, name);
596
+ #endif
597
+ }
598
+
599
+ AsyncResource(
600
+ const char* name
601
+ , v8::Local<v8::Object> resource = New<v8::Object>()) {
602
+ #if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
603
+ v8::Isolate* isolate = v8::Isolate::GetCurrent();
604
+
605
+ if (resource.IsEmpty()) {
606
+ resource = New<v8::Object>();
607
+ }
608
+
609
+ v8::Local<v8::String> name_string =
610
+ New<v8::String>(name).ToLocalChecked();
611
+ context = node::EmitAsyncInit(isolate, resource, name_string);
612
+ #endif
613
+ }
614
+
615
+ ~AsyncResource() {
616
+ #if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
617
+ v8::Isolate* isolate = v8::Isolate::GetCurrent();
618
+ node::EmitAsyncDestroy(isolate, context);
619
+ #endif
620
+ }
621
+
622
+ inline MaybeLocal<v8::Value> runInAsyncScope(
623
+ v8::Local<v8::Object> target
624
+ , v8::Local<v8::Function> func
625
+ , int argc
626
+ , v8::Local<v8::Value>* argv) {
627
+ #if NODE_MODULE_VERSION < NODE_9_0_MODULE_VERSION
628
+ return MakeCallback(target, func, argc, argv);
629
+ #else
630
+ return node::MakeCallback(
631
+ v8::Isolate::GetCurrent(), target, func, argc, argv, context);
632
+ #endif
633
+ }
634
+
635
+ inline MaybeLocal<v8::Value> runInAsyncScope(
636
+ v8::Local<v8::Object> target
637
+ , v8::Local<v8::String> symbol
638
+ , int argc
639
+ , v8::Local<v8::Value>* argv) {
640
+ #if NODE_MODULE_VERSION < NODE_9_0_MODULE_VERSION
641
+ return MakeCallback(target, symbol, argc, argv);
642
+ #else
643
+ return node::MakeCallback(
644
+ v8::Isolate::GetCurrent(), target, symbol, argc, argv, context);
645
+ #endif
646
+ }
647
+
648
+ inline MaybeLocal<v8::Value> runInAsyncScope(
649
+ v8::Local<v8::Object> target
650
+ , const char* method
651
+ , int argc
652
+ , v8::Local<v8::Value>* argv) {
653
+ #if NODE_MODULE_VERSION < NODE_9_0_MODULE_VERSION
654
+ return MakeCallback(target, method, argc, argv);
655
+ #else
656
+ return node::MakeCallback(
657
+ v8::Isolate::GetCurrent(), target, method, argc, argv, context);
658
+ #endif
659
+ }
660
+
661
+ private:
662
+ NAN_DISALLOW_ASSIGN_COPY_MOVE(AsyncResource)
663
+ #if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
664
+ node::async_context context;
665
+ #endif
666
+ };
667
+
668
+ inline uv_loop_t* GetCurrentEventLoop() {
669
+ #if NODE_MAJOR_VERSION >= 10 || \
670
+ NODE_MAJOR_VERSION == 9 && NODE_MINOR_VERSION >= 3 || \
671
+ NODE_MAJOR_VERSION == 8 && NODE_MINOR_VERSION >= 10
672
+ return node::GetCurrentEventLoop(v8::Isolate::GetCurrent());
673
+ #else
674
+ return uv_default_loop();
675
+ #endif
676
+ }
677
+
678
+ //============ =================================================================
679
+
680
+ /* node 0.12 */
681
+ #if NODE_MODULE_VERSION >= NODE_0_12_MODULE_VERSION
682
+ inline
683
+ void SetCounterFunction(v8::CounterLookupCallback cb) {
684
+ v8::Isolate::GetCurrent()->SetCounterFunction(cb);
685
+ }
686
+
687
+ inline
688
+ void SetCreateHistogramFunction(v8::CreateHistogramCallback cb) {
689
+ v8::Isolate::GetCurrent()->SetCreateHistogramFunction(cb);
690
+ }
691
+
692
+ inline
693
+ void SetAddHistogramSampleFunction(v8::AddHistogramSampleCallback cb) {
694
+ v8::Isolate::GetCurrent()->SetAddHistogramSampleFunction(cb);
695
+ }
696
+
697
+ #if defined(V8_MAJOR_VERSION) && \
698
+ (V8_MAJOR_VERSION > 12 || \
699
+ (V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) && \
700
+ V8_MINOR_VERSION >= 7))
701
+ NAN_DEPRECATED inline bool IdleNotification(int) {
702
+ return true;
703
+ }
704
+ # elif defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
705
+ (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
706
+ NAN_DEPRECATED inline bool IdleNotification(int idle_time_in_ms) {
707
+ return v8::Isolate::GetCurrent()->IdleNotificationDeadline(
708
+ idle_time_in_ms * 0.001);
709
+ }
710
+ # else
711
+ NAN_DEPRECATED inline bool IdleNotification(int idle_time_in_ms) {
712
+ return v8::Isolate::GetCurrent()->IdleNotification(idle_time_in_ms);
713
+ }
714
+ #endif
715
+
716
+ inline void LowMemoryNotification() {
717
+ v8::Isolate::GetCurrent()->LowMemoryNotification();
718
+ }
719
+
720
+ inline void ContextDisposedNotification() {
721
+ v8::Isolate::GetCurrent()->ContextDisposedNotification();
722
+ }
723
+ #else
724
+ inline
725
+ void SetCounterFunction(v8::CounterLookupCallback cb) {
726
+ v8::V8::SetCounterFunction(cb);
727
+ }
728
+
729
+ inline
730
+ void SetCreateHistogramFunction(v8::CreateHistogramCallback cb) {
731
+ v8::V8::SetCreateHistogramFunction(cb);
732
+ }
733
+
734
+ inline
735
+ void SetAddHistogramSampleFunction(v8::AddHistogramSampleCallback cb) {
736
+ v8::V8::SetAddHistogramSampleFunction(cb);
737
+ }
738
+
739
+ inline bool IdleNotification(int idle_time_in_ms) {
740
+ return v8::V8::IdleNotification(idle_time_in_ms);
741
+ }
742
+
743
+ inline void LowMemoryNotification() {
744
+ v8::V8::LowMemoryNotification();
745
+ }
746
+
747
+ inline void ContextDisposedNotification() {
748
+ v8::V8::ContextDisposedNotification();
749
+ }
750
+ #endif
751
+
752
+ #if (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION) // Node 0.12
753
+ inline v8::Local<v8::Primitive> Undefined() {
754
+ # if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
755
+ EscapableHandleScope scope;
756
+ return scope.Escape(New(v8::Undefined(v8::Isolate::GetCurrent())));
757
+ # else
758
+ return v8::Undefined(v8::Isolate::GetCurrent());
759
+ # endif
760
+ }
761
+
762
+ inline v8::Local<v8::Primitive> Null() {
763
+ # if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
764
+ EscapableHandleScope scope;
765
+ return scope.Escape(New(v8::Null(v8::Isolate::GetCurrent())));
766
+ # else
767
+ return v8::Null(v8::Isolate::GetCurrent());
768
+ # endif
769
+ }
770
+
771
+ inline v8::Local<v8::Boolean> True() {
772
+ # if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
773
+ EscapableHandleScope scope;
774
+ return scope.Escape(New(v8::True(v8::Isolate::GetCurrent())));
775
+ # else
776
+ return v8::True(v8::Isolate::GetCurrent());
777
+ # endif
778
+ }
779
+
780
+ inline v8::Local<v8::Boolean> False() {
781
+ # if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
782
+ EscapableHandleScope scope;
783
+ return scope.Escape(New(v8::False(v8::Isolate::GetCurrent())));
784
+ # else
785
+ return v8::False(v8::Isolate::GetCurrent());
786
+ # endif
787
+ }
788
+
789
+ inline v8::Local<v8::String> EmptyString() {
790
+ return v8::String::Empty(v8::Isolate::GetCurrent());
791
+ }
792
+
793
+ inline int AdjustExternalMemory(int bc) {
794
+ return static_cast<int>(
795
+ v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory(bc));
796
+ }
797
+
798
+ inline void SetTemplate(
799
+ v8::Local<v8::Template> templ
800
+ , const char *name
801
+ , v8::Local<v8::Data> value) {
802
+ templ->Set(v8::Isolate::GetCurrent(), name, value);
803
+ }
804
+
805
+ inline void SetTemplate(
806
+ v8::Local<v8::Template> templ
807
+ , v8::Local<v8::String> name
808
+ , v8::Local<v8::Data> value
809
+ , v8::PropertyAttribute attributes) {
810
+ templ->Set(name, value, attributes);
811
+ }
812
+
813
+ inline v8::Local<v8::Context> GetCurrentContext() {
814
+ return v8::Isolate::GetCurrent()->GetCurrentContext();
815
+ }
816
+
817
+ inline void* GetInternalFieldPointer(
818
+ v8::Local<v8::Object> object
819
+ , int index) {
820
+ return object->GetAlignedPointerFromInternalField(index);
821
+ }
822
+
823
+ inline void SetInternalFieldPointer(
824
+ v8::Local<v8::Object> object
825
+ , int index
826
+ , void* value) {
827
+ object->SetAlignedPointerInInternalField(index, value);
828
+ }
829
+
830
+ # define NAN_GC_CALLBACK(name) \
831
+ void name(v8::Isolate *isolate, v8::GCType type, v8::GCCallbackFlags flags)
832
+
833
+ #if NODE_MODULE_VERSION <= NODE_4_0_MODULE_VERSION
834
+ typedef v8::Isolate::GCEpilogueCallback GCEpilogueCallback;
835
+ typedef v8::Isolate::GCPrologueCallback GCPrologueCallback;
836
+ #else
837
+ typedef v8::Isolate::GCCallback GCEpilogueCallback;
838
+ typedef v8::Isolate::GCCallback GCPrologueCallback;
839
+ #endif
840
+
841
+ inline void AddGCEpilogueCallback(
842
+ GCEpilogueCallback callback
843
+ , v8::GCType gc_type_filter = v8::kGCTypeAll) {
844
+ v8::Isolate::GetCurrent()->AddGCEpilogueCallback(callback, gc_type_filter);
845
+ }
846
+
847
+ inline void RemoveGCEpilogueCallback(
848
+ GCEpilogueCallback callback) {
849
+ v8::Isolate::GetCurrent()->RemoveGCEpilogueCallback(callback);
850
+ }
851
+
852
+ inline void AddGCPrologueCallback(
853
+ GCPrologueCallback callback
854
+ , v8::GCType gc_type_filter = v8::kGCTypeAll) {
855
+ v8::Isolate::GetCurrent()->AddGCPrologueCallback(callback, gc_type_filter);
856
+ }
857
+
858
+ inline void RemoveGCPrologueCallback(
859
+ GCPrologueCallback callback) {
860
+ v8::Isolate::GetCurrent()->RemoveGCPrologueCallback(callback);
861
+ }
862
+
863
+ inline void GetHeapStatistics(
864
+ v8::HeapStatistics *heap_statistics) {
865
+ v8::Isolate::GetCurrent()->GetHeapStatistics(heap_statistics);
866
+ }
867
+
868
+ # define X(NAME) \
869
+ inline v8::Local<v8::Value> NAME(const char *msg) { \
870
+ EscapableHandleScope scope; \
871
+ return scope.Escape(v8::Exception::NAME(New(msg).ToLocalChecked())); \
872
+ } \
873
+ \
874
+ inline \
875
+ v8::Local<v8::Value> NAME(v8::Local<v8::String> msg) { \
876
+ return v8::Exception::NAME(msg); \
877
+ } \
878
+ \
879
+ inline void Throw ## NAME(const char *msg) { \
880
+ HandleScope scope; \
881
+ v8::Isolate::GetCurrent()->ThrowException( \
882
+ v8::Exception::NAME(New(msg).ToLocalChecked())); \
883
+ } \
884
+ \
885
+ inline void Throw ## NAME(v8::Local<v8::String> msg) { \
886
+ HandleScope scope; \
887
+ v8::Isolate::GetCurrent()->ThrowException( \
888
+ v8::Exception::NAME(msg)); \
889
+ }
890
+
891
+ X(Error)
892
+ X(RangeError)
893
+ X(ReferenceError)
894
+ X(SyntaxError)
895
+ X(TypeError)
896
+
897
+ # undef X
898
+
899
+ inline void ThrowError(v8::Local<v8::Value> error) {
900
+ v8::Isolate::GetCurrent()->ThrowException(error);
901
+ }
902
+
903
+ inline MaybeLocal<v8::Object> NewBuffer(
904
+ char *data
905
+ , size_t length
906
+ #if NODE_MODULE_VERSION > IOJS_2_0_MODULE_VERSION
907
+ , node::Buffer::FreeCallback callback
908
+ #else
909
+ , node::smalloc::FreeCallback callback
910
+ #endif
911
+ , void *hint
912
+ ) {
913
+ // arbitrary buffer lengths requires
914
+ // NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
915
+ assert(length <= imp::kMaxLength && "too large buffer");
916
+ #if NODE_MODULE_VERSION > IOJS_2_0_MODULE_VERSION
917
+ return node::Buffer::New(
918
+ v8::Isolate::GetCurrent(), data, length, callback, hint);
919
+ #else
920
+ return node::Buffer::New(v8::Isolate::GetCurrent(), data, length, callback,
921
+ hint);
922
+ #endif
923
+ }
924
+
925
+ inline MaybeLocal<v8::Object> CopyBuffer(
926
+ const char *data
927
+ , uint32_t size
928
+ ) {
929
+ // arbitrary buffer lengths requires
930
+ // NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
931
+ assert(size <= imp::kMaxLength && "too large buffer");
932
+ #if NODE_MODULE_VERSION > IOJS_2_0_MODULE_VERSION
933
+ return node::Buffer::Copy(
934
+ v8::Isolate::GetCurrent(), data, size);
935
+ #else
936
+ return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
937
+ #endif
938
+ }
939
+
940
+ inline MaybeLocal<v8::Object> NewBuffer(uint32_t size) {
941
+ // arbitrary buffer lengths requires
942
+ // NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
943
+ assert(size <= imp::kMaxLength && "too large buffer");
944
+ #if NODE_MODULE_VERSION > IOJS_2_0_MODULE_VERSION
945
+ return node::Buffer::New(
946
+ v8::Isolate::GetCurrent(), size);
947
+ #else
948
+ return node::Buffer::New(v8::Isolate::GetCurrent(), size);
949
+ #endif
950
+ }
951
+
952
+ inline MaybeLocal<v8::Object> NewBuffer(
953
+ char* data
954
+ , uint32_t size
955
+ ) {
956
+ // arbitrary buffer lengths requires
957
+ // NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
958
+ assert(size <= imp::kMaxLength && "too large buffer");
959
+ #if NODE_MODULE_VERSION > IOJS_2_0_MODULE_VERSION
960
+ return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
961
+ #else
962
+ return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
963
+ #endif
964
+ }
965
+
966
+ #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
967
+ (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
968
+ inline MaybeLocal<v8::String>
969
+ NewOneByteString(const uint8_t * value, int length = -1) {
970
+ return v8::String::NewFromOneByte(v8::Isolate::GetCurrent(), value,
971
+ v8::NewStringType::kNormal, length);
972
+ }
973
+
974
+ inline MaybeLocal<BoundScript> CompileScript(
975
+ v8::Local<v8::String> s
976
+ , const v8::ScriptOrigin& origin
977
+ ) {
978
+ v8::Isolate *isolate = v8::Isolate::GetCurrent();
979
+ v8::EscapableHandleScope scope(isolate);
980
+ v8::ScriptCompiler::Source source(s, origin);
981
+ return scope.Escape(
982
+ v8::ScriptCompiler::Compile(isolate->GetCurrentContext(), &source)
983
+ .FromMaybe(v8::Local<BoundScript>()));
984
+ }
985
+
986
+ inline MaybeLocal<BoundScript> CompileScript(
987
+ v8::Local<v8::String> s
988
+ ) {
989
+ v8::Isolate *isolate = v8::Isolate::GetCurrent();
990
+ v8::EscapableHandleScope scope(isolate);
991
+ v8::ScriptCompiler::Source source(s);
992
+ return scope.Escape(
993
+ v8::ScriptCompiler::Compile(isolate->GetCurrentContext(), &source)
994
+ .FromMaybe(v8::Local<BoundScript>()));
995
+ }
996
+
997
+ inline MaybeLocal<v8::Value> RunScript(
998
+ v8::Local<UnboundScript> script
999
+ ) {
1000
+ v8::Isolate *isolate = v8::Isolate::GetCurrent();
1001
+ v8::EscapableHandleScope scope(isolate);
1002
+ return scope.Escape(script->BindToCurrentContext()
1003
+ ->Run(isolate->GetCurrentContext())
1004
+ .FromMaybe(v8::Local<v8::Value>()));
1005
+ }
1006
+
1007
+ inline MaybeLocal<v8::Value> RunScript(
1008
+ v8::Local<BoundScript> script
1009
+ ) {
1010
+ v8::Isolate *isolate = v8::Isolate::GetCurrent();
1011
+ v8::EscapableHandleScope scope(isolate);
1012
+ return scope.Escape(script->Run(isolate->GetCurrentContext())
1013
+ .FromMaybe(v8::Local<v8::Value>()));
1014
+ }
1015
+ #else
1016
+ inline MaybeLocal<v8::String>
1017
+ NewOneByteString(const uint8_t * value, int length = -1) {
1018
+ return v8::String::NewFromOneByte(v8::Isolate::GetCurrent(), value,
1019
+ v8::String::kNormalString, length);
1020
+ }
1021
+
1022
+ inline MaybeLocal<BoundScript> CompileScript(
1023
+ v8::Local<v8::String> s
1024
+ , const v8::ScriptOrigin& origin
1025
+ ) {
1026
+ v8::ScriptCompiler::Source source(s, origin);
1027
+ return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
1028
+ }
1029
+
1030
+ inline MaybeLocal<BoundScript> CompileScript(
1031
+ v8::Local<v8::String> s
1032
+ ) {
1033
+ v8::ScriptCompiler::Source source(s);
1034
+ return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
1035
+ }
1036
+
1037
+ inline MaybeLocal<v8::Value> RunScript(
1038
+ v8::Local<UnboundScript> script
1039
+ ) {
1040
+ EscapableHandleScope scope;
1041
+ return scope.Escape(script->BindToCurrentContext()->Run());
1042
+ }
1043
+
1044
+ inline MaybeLocal<v8::Value> RunScript(
1045
+ v8::Local<BoundScript> script
1046
+ ) {
1047
+ return script->Run();
1048
+ }
1049
+ #endif
1050
+
1051
+ NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
1052
+ v8::Local<v8::Object> target
1053
+ , v8::Local<v8::Function> func
1054
+ , int argc
1055
+ , v8::Local<v8::Value>* argv) {
1056
+ #if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
1057
+ EscapableHandleScope scope;
1058
+ return scope.Escape(New(node::MakeCallback(
1059
+ v8::Isolate::GetCurrent(), target, func, argc, argv)));
1060
+ #else
1061
+ # if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
1062
+ AsyncResource res("nan:makeCallback");
1063
+ return res.runInAsyncScope(target, func, argc, argv)
1064
+ .FromMaybe(v8::Local<v8::Value>());
1065
+ # else
1066
+ return node::MakeCallback(
1067
+ v8::Isolate::GetCurrent(), target, func, argc, argv);
1068
+ # endif // NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
1069
+ #endif // NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
1070
+ }
1071
+
1072
+ NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
1073
+ v8::Local<v8::Object> target
1074
+ , v8::Local<v8::String> symbol
1075
+ , int argc
1076
+ , v8::Local<v8::Value>* argv) {
1077
+ #if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
1078
+ EscapableHandleScope scope;
1079
+ return scope.Escape(New(node::MakeCallback(
1080
+ v8::Isolate::GetCurrent(), target, symbol, argc, argv)));
1081
+ #else
1082
+ # if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
1083
+ AsyncResource res("nan:makeCallback");
1084
+ return res.runInAsyncScope(target, symbol, argc, argv)
1085
+ .FromMaybe(v8::Local<v8::Value>());
1086
+ # else
1087
+ return node::MakeCallback(
1088
+ v8::Isolate::GetCurrent(), target, symbol, argc, argv);
1089
+ # endif // NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
1090
+ #endif // NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
1091
+ }
1092
+
1093
+ NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
1094
+ v8::Local<v8::Object> target
1095
+ , const char* method
1096
+ , int argc
1097
+ , v8::Local<v8::Value>* argv) {
1098
+ #if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
1099
+ EscapableHandleScope scope;
1100
+ return scope.Escape(New(node::MakeCallback(
1101
+ v8::Isolate::GetCurrent(), target, method, argc, argv)));
1102
+ #else
1103
+ # if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
1104
+ AsyncResource res("nan:makeCallback");
1105
+ return res.runInAsyncScope(target, method, argc, argv)
1106
+ .FromMaybe(v8::Local<v8::Value>());
1107
+ # else
1108
+ return node::MakeCallback(
1109
+ v8::Isolate::GetCurrent(), target, method, argc, argv);
1110
+ # endif // NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
1111
+ #endif // NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
1112
+ }
1113
+
1114
+ inline void FatalException(const TryCatch& try_catch) {
1115
+ node::FatalException(v8::Isolate::GetCurrent(), try_catch.try_catch_);
1116
+ }
1117
+
1118
+ inline v8::Local<v8::Value> ErrnoException(
1119
+ int errorno
1120
+ , const char* syscall = NULL
1121
+ , const char* message = NULL
1122
+ , const char* path = NULL) {
1123
+ return node::ErrnoException(v8::Isolate::GetCurrent(), errorno, syscall,
1124
+ message, path);
1125
+ }
1126
+
1127
+ NAN_DEPRECATED inline v8::Local<v8::Value> NanErrnoException(
1128
+ int errorno
1129
+ , const char* syscall = NULL
1130
+ , const char* message = NULL
1131
+ , const char* path = NULL) {
1132
+ return ErrnoException(errorno, syscall, message, path);
1133
+ }
1134
+
1135
+ template<typename T>
1136
+ inline void SetIsolateData(
1137
+ v8::Isolate *isolate
1138
+ , T *data
1139
+ ) {
1140
+ isolate->SetData(0, data);
1141
+ }
1142
+
1143
+ template<typename T>
1144
+ inline T *GetIsolateData(
1145
+ v8::Isolate *isolate
1146
+ ) {
1147
+ return static_cast<T*>(isolate->GetData(0));
1148
+ }
1149
+
1150
+ class Utf8String {
1151
+ public:
1152
+ inline explicit Utf8String(v8::Local<v8::Value> from) :
1153
+ length_(0), str_(str_st_) {
1154
+ HandleScope scope;
1155
+ if (!from.IsEmpty()) {
1156
+ #if NODE_MAJOR_VERSION >= 10
1157
+ v8::Local<v8::Context> context = GetCurrentContext();
1158
+ v8::Local<v8::String> string =
1159
+ from->ToString(context).FromMaybe(v8::Local<v8::String>());
1160
+ #else
1161
+ v8::Local<v8::String> string = from->ToString();
1162
+ #endif
1163
+ if (!string.IsEmpty()) {
1164
+ size_t len = 3 * string->Length() + 1;
1165
+ assert(len <= INT_MAX);
1166
+ if (len > sizeof (str_st_)) {
1167
+ str_ = static_cast<char*>(malloc(len));
1168
+ assert(str_ != 0);
1169
+ }
1170
+ const int flags =
1171
+ v8::String::NO_NULL_TERMINATION | imp::kReplaceInvalidUtf8;
1172
+ #if NODE_MAJOR_VERSION >= 11
1173
+ length_ = string->WriteUtf8(v8::Isolate::GetCurrent(), str_,
1174
+ static_cast<int>(len), 0, flags);
1175
+ #else
1176
+ // See https://github.com/nodejs/nan/issues/832.
1177
+ // Disable the warning as there is no way around it.
1178
+ #ifdef _MSC_VER
1179
+ #pragma warning(push)
1180
+ #pragma warning(disable : 4996)
1181
+ #endif
1182
+ #ifdef __GNUC__
1183
+ #pragma GCC diagnostic push
1184
+ #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
1185
+ #endif
1186
+ length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
1187
+ #ifdef __GNUC__
1188
+ #pragma GCC diagnostic pop
1189
+ #endif
1190
+ #ifdef _MSC_VER
1191
+ #pragma warning(pop)
1192
+ #endif
1193
+ #endif // NODE_MAJOR_VERSION < 11
1194
+ str_[length_] = '\0';
1195
+ }
1196
+ }
1197
+ }
1198
+
1199
+ inline int length() const {
1200
+ return length_;
1201
+ }
1202
+
1203
+ inline char* operator*() { return str_; }
1204
+ inline const char* operator*() const { return str_; }
1205
+
1206
+ inline ~Utf8String() {
1207
+ if (str_ != str_st_) {
1208
+ free(str_);
1209
+ }
1210
+ }
1211
+
1212
+ private:
1213
+ NAN_DISALLOW_ASSIGN_COPY_MOVE(Utf8String)
1214
+
1215
+ int length_;
1216
+ char *str_;
1217
+ char str_st_[1024];
1218
+ };
1219
+
1220
+ #else // Node 0.8 and 0.10
1221
+ inline v8::Local<v8::Primitive> Undefined() {
1222
+ EscapableHandleScope scope;
1223
+ return scope.Escape(New(v8::Undefined()));
1224
+ }
1225
+
1226
+ inline v8::Local<v8::Primitive> Null() {
1227
+ EscapableHandleScope scope;
1228
+ return scope.Escape(New(v8::Null()));
1229
+ }
1230
+
1231
+ inline v8::Local<v8::Boolean> True() {
1232
+ EscapableHandleScope scope;
1233
+ return scope.Escape(New(v8::True()));
1234
+ }
1235
+
1236
+ inline v8::Local<v8::Boolean> False() {
1237
+ EscapableHandleScope scope;
1238
+ return scope.Escape(New(v8::False()));
1239
+ }
1240
+
1241
+ inline v8::Local<v8::String> EmptyString() {
1242
+ return v8::String::Empty();
1243
+ }
1244
+
1245
+ inline int AdjustExternalMemory(int bc) {
1246
+ return static_cast<int>(v8::V8::AdjustAmountOfExternalAllocatedMemory(bc));
1247
+ }
1248
+
1249
+ inline void SetTemplate(
1250
+ v8::Local<v8::Template> templ
1251
+ , const char *name
1252
+ , v8::Local<v8::Data> value) {
1253
+ templ->Set(name, value);
1254
+ }
1255
+
1256
+ inline void SetTemplate(
1257
+ v8::Local<v8::Template> templ
1258
+ , v8::Local<v8::String> name
1259
+ , v8::Local<v8::Data> value
1260
+ , v8::PropertyAttribute attributes) {
1261
+ templ->Set(name, value, attributes);
1262
+ }
1263
+
1264
+ inline v8::Local<v8::Context> GetCurrentContext() {
1265
+ return v8::Context::GetCurrent();
1266
+ }
1267
+
1268
+ inline void* GetInternalFieldPointer(
1269
+ v8::Local<v8::Object> object
1270
+ , int index) {
1271
+ return object->GetPointerFromInternalField(index);
1272
+ }
1273
+
1274
+ inline void SetInternalFieldPointer(
1275
+ v8::Local<v8::Object> object
1276
+ , int index
1277
+ , void* value) {
1278
+ object->SetPointerInInternalField(index, value);
1279
+ }
1280
+
1281
+ # define NAN_GC_CALLBACK(name) \
1282
+ void name(v8::GCType type, v8::GCCallbackFlags flags)
1283
+
1284
+ inline void AddGCEpilogueCallback(
1285
+ v8::GCEpilogueCallback callback
1286
+ , v8::GCType gc_type_filter = v8::kGCTypeAll) {
1287
+ v8::V8::AddGCEpilogueCallback(callback, gc_type_filter);
1288
+ }
1289
+ inline void RemoveGCEpilogueCallback(
1290
+ v8::GCEpilogueCallback callback) {
1291
+ v8::V8::RemoveGCEpilogueCallback(callback);
1292
+ }
1293
+ inline void AddGCPrologueCallback(
1294
+ v8::GCPrologueCallback callback
1295
+ , v8::GCType gc_type_filter = v8::kGCTypeAll) {
1296
+ v8::V8::AddGCPrologueCallback(callback, gc_type_filter);
1297
+ }
1298
+ inline void RemoveGCPrologueCallback(
1299
+ v8::GCPrologueCallback callback) {
1300
+ v8::V8::RemoveGCPrologueCallback(callback);
1301
+ }
1302
+ inline void GetHeapStatistics(
1303
+ v8::HeapStatistics *heap_statistics) {
1304
+ v8::V8::GetHeapStatistics(heap_statistics);
1305
+ }
1306
+
1307
+ # define X(NAME) \
1308
+ inline v8::Local<v8::Value> NAME(const char *msg) { \
1309
+ EscapableHandleScope scope; \
1310
+ return scope.Escape(v8::Exception::NAME(New(msg).ToLocalChecked())); \
1311
+ } \
1312
+ \
1313
+ inline \
1314
+ v8::Local<v8::Value> NAME(v8::Local<v8::String> msg) { \
1315
+ return v8::Exception::NAME(msg); \
1316
+ } \
1317
+ \
1318
+ inline void Throw ## NAME(const char *msg) { \
1319
+ HandleScope scope; \
1320
+ v8::ThrowException(v8::Exception::NAME(New(msg).ToLocalChecked())); \
1321
+ } \
1322
+ \
1323
+ inline \
1324
+ void Throw ## NAME(v8::Local<v8::String> errmsg) { \
1325
+ HandleScope scope; \
1326
+ v8::ThrowException(v8::Exception::NAME(errmsg)); \
1327
+ }
1328
+
1329
+ X(Error)
1330
+ X(RangeError)
1331
+ X(ReferenceError)
1332
+ X(SyntaxError)
1333
+ X(TypeError)
1334
+
1335
+ # undef X
1336
+
1337
+ inline void ThrowError(v8::Local<v8::Value> error) {
1338
+ v8::ThrowException(error);
1339
+ }
1340
+
1341
+ inline MaybeLocal<v8::Object> NewBuffer(
1342
+ char *data
1343
+ , size_t length
1344
+ , node::Buffer::free_callback callback
1345
+ , void *hint
1346
+ ) {
1347
+ EscapableHandleScope scope;
1348
+ // arbitrary buffer lengths requires
1349
+ // NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
1350
+ assert(length <= imp::kMaxLength && "too large buffer");
1351
+ return scope.Escape(
1352
+ New(node::Buffer::New(data, length, callback, hint)->handle_));
1353
+ }
1354
+
1355
+ inline MaybeLocal<v8::Object> CopyBuffer(
1356
+ const char *data
1357
+ , uint32_t size
1358
+ ) {
1359
+ EscapableHandleScope scope;
1360
+ // arbitrary buffer lengths requires
1361
+ // NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
1362
+ assert(size <= imp::kMaxLength && "too large buffer");
1363
+ #if NODE_MODULE_VERSION >= NODE_0_10_MODULE_VERSION
1364
+ return scope.Escape(New(node::Buffer::New(data, size)->handle_));
1365
+ #else
1366
+ return scope.Escape(
1367
+ New(node::Buffer::New(const_cast<char *>(data), size)->handle_));
1368
+ #endif
1369
+ }
1370
+
1371
+ inline MaybeLocal<v8::Object> NewBuffer(uint32_t size) {
1372
+ // arbitrary buffer lengths requires
1373
+ // NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
1374
+ EscapableHandleScope scope;
1375
+ assert(size <= imp::kMaxLength && "too large buffer");
1376
+ return scope.Escape(New(node::Buffer::New(size)->handle_));
1377
+ }
1378
+
1379
+ inline void FreeData(char *data, void *hint) {
1380
+ (void) hint; // unused
1381
+ delete[] data;
1382
+ }
1383
+
1384
+ inline MaybeLocal<v8::Object> NewBuffer(
1385
+ char* data
1386
+ , uint32_t size
1387
+ ) {
1388
+ EscapableHandleScope scope;
1389
+ // arbitrary buffer lengths requires
1390
+ // NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
1391
+ assert(size <= imp::kMaxLength && "too large buffer");
1392
+ return scope.Escape(
1393
+ New(node::Buffer::New(data, size, FreeData, NULL)->handle_));
1394
+ }
1395
+
1396
+ namespace imp {
1397
+ inline void
1398
+ widenString(std::vector<uint16_t> *ws, const uint8_t *s, int l) {
1399
+ size_t len = static_cast<size_t>(l);
1400
+ if (l < 0) {
1401
+ len = strlen(reinterpret_cast<const char*>(s));
1402
+ }
1403
+ assert(len <= INT_MAX && "string too long");
1404
+ ws->resize(len);
1405
+ std::copy(s, s + len, ws->begin()); // NOLINT(build/include_what_you_use)
1406
+ }
1407
+ } // end of namespace imp
1408
+
1409
+ inline MaybeLocal<v8::String>
1410
+ NewOneByteString(const uint8_t * value, int length = -1) {
1411
+ std::vector<uint16_t> wideString; // NOLINT(build/include_what_you_use)
1412
+ imp::widenString(&wideString, value, length);
1413
+ return v8::String::New(wideString.data(),
1414
+ static_cast<int>(wideString.size()));
1415
+ }
1416
+
1417
+ inline MaybeLocal<BoundScript> CompileScript(
1418
+ v8::Local<v8::String> s
1419
+ , const v8::ScriptOrigin& origin
1420
+ ) {
1421
+ return v8::Script::Compile(s, const_cast<v8::ScriptOrigin *>(&origin));
1422
+ }
1423
+
1424
+ inline MaybeLocal<BoundScript> CompileScript(
1425
+ v8::Local<v8::String> s
1426
+ ) {
1427
+ return v8::Script::Compile(s);
1428
+ }
1429
+
1430
+ inline
1431
+ MaybeLocal<v8::Value> RunScript(v8::Local<v8::Script> script) {
1432
+ return script->Run();
1433
+ }
1434
+
1435
+ inline v8::Local<v8::Value> MakeCallback(
1436
+ v8::Local<v8::Object> target
1437
+ , v8::Local<v8::Function> func
1438
+ , int argc
1439
+ , v8::Local<v8::Value>* argv) {
1440
+ v8::HandleScope scope;
1441
+ return scope.Close(New(node::MakeCallback(target, func, argc, argv)));
1442
+ }
1443
+
1444
+ inline v8::Local<v8::Value> MakeCallback(
1445
+ v8::Local<v8::Object> target
1446
+ , v8::Local<v8::String> symbol
1447
+ , int argc
1448
+ , v8::Local<v8::Value>* argv) {
1449
+ v8::HandleScope scope;
1450
+ return scope.Close(New(node::MakeCallback(target, symbol, argc, argv)));
1451
+ }
1452
+
1453
+ inline v8::Local<v8::Value> MakeCallback(
1454
+ v8::Local<v8::Object> target
1455
+ , const char* method
1456
+ , int argc
1457
+ , v8::Local<v8::Value>* argv) {
1458
+ v8::HandleScope scope;
1459
+ return scope.Close(New(node::MakeCallback(target, method, argc, argv)));
1460
+ }
1461
+
1462
+ inline void FatalException(const TryCatch& try_catch) {
1463
+ node::FatalException(const_cast<v8::TryCatch &>(try_catch.try_catch_));
1464
+ }
1465
+
1466
+ inline v8::Local<v8::Value> ErrnoException(
1467
+ int errorno
1468
+ , const char* syscall = NULL
1469
+ , const char* message = NULL
1470
+ , const char* path = NULL) {
1471
+ return node::ErrnoException(errorno, syscall, message, path);
1472
+ }
1473
+
1474
+ NAN_DEPRECATED inline v8::Local<v8::Value> NanErrnoException(
1475
+ int errorno
1476
+ , const char* syscall = NULL
1477
+ , const char* message = NULL
1478
+ , const char* path = NULL) {
1479
+ return ErrnoException(errorno, syscall, message, path);
1480
+ }
1481
+
1482
+
1483
+ template<typename T>
1484
+ inline void SetIsolateData(
1485
+ v8::Isolate *isolate
1486
+ , T *data
1487
+ ) {
1488
+ isolate->SetData(data);
1489
+ }
1490
+
1491
+ template<typename T>
1492
+ inline T *GetIsolateData(
1493
+ v8::Isolate *isolate
1494
+ ) {
1495
+ return static_cast<T*>(isolate->GetData());
1496
+ }
1497
+
1498
+ class Utf8String {
1499
+ public:
1500
+ inline explicit Utf8String(v8::Local<v8::Value> from) :
1501
+ length_(0), str_(str_st_) {
1502
+ v8::HandleScope scope;
1503
+ if (!from.IsEmpty()) {
1504
+ v8::Local<v8::String> string = from->ToString();
1505
+ if (!string.IsEmpty()) {
1506
+ size_t len = 3 * string->Length() + 1;
1507
+ assert(len <= INT_MAX);
1508
+ if (len > sizeof (str_st_)) {
1509
+ str_ = static_cast<char*>(malloc(len));
1510
+ assert(str_ != 0);
1511
+ }
1512
+ const int flags =
1513
+ v8::String::NO_NULL_TERMINATION | imp::kReplaceInvalidUtf8;
1514
+ length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
1515
+ str_[length_] = '\0';
1516
+ }
1517
+ }
1518
+ }
1519
+
1520
+ inline int length() const {
1521
+ return length_;
1522
+ }
1523
+
1524
+ inline char* operator*() { return str_; }
1525
+ inline const char* operator*() const { return str_; }
1526
+
1527
+ inline ~Utf8String() {
1528
+ if (str_ != str_st_) {
1529
+ free(str_);
1530
+ }
1531
+ }
1532
+
1533
+ private:
1534
+ NAN_DISALLOW_ASSIGN_COPY_MOVE(Utf8String)
1535
+
1536
+ int length_;
1537
+ char *str_;
1538
+ char str_st_[1024];
1539
+ };
1540
+
1541
+ #endif // NODE_MODULE_VERSION
1542
+
1543
+ typedef void (*FreeCallback)(char *data, void *hint);
1544
+
1545
+ typedef const FunctionCallbackInfo<v8::Value>& NAN_METHOD_ARGS_TYPE;
1546
+ typedef void NAN_METHOD_RETURN_TYPE;
1547
+
1548
+ typedef const PropertyCallbackInfo<v8::Value>& NAN_GETTER_ARGS_TYPE;
1549
+ typedef void NAN_GETTER_RETURN_TYPE;
1550
+
1551
+ typedef const PropertyCallbackInfo<void>& NAN_SETTER_ARGS_TYPE;
1552
+ typedef void NAN_SETTER_RETURN_TYPE;
1553
+
1554
+ typedef const PropertyCallbackInfo<v8::Value>&
1555
+ NAN_PROPERTY_GETTER_ARGS_TYPE;
1556
+ #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 12 || \
1557
+ (V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION > 4))
1558
+ typedef v8::Intercepted NAN_PROPERTY_GETTER_RETURN_TYPE;
1559
+ #else
1560
+ typedef void NAN_PROPERTY_GETTER_RETURN_TYPE;
1561
+ #endif
1562
+
1563
+ #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 12 || \
1564
+ (V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION > 4))
1565
+ typedef const PropertyCallbackInfo<void>&
1566
+ NAN_PROPERTY_SETTER_ARGS_TYPE;
1567
+ typedef v8::Intercepted NAN_PROPERTY_SETTER_RETURN_TYPE;
1568
+ #else
1569
+ typedef const PropertyCallbackInfo<v8::Value>&
1570
+ NAN_PROPERTY_SETTER_ARGS_TYPE;
1571
+ typedef void NAN_PROPERTY_SETTER_RETURN_TYPE;
1572
+ #endif
1573
+
1574
+ typedef const PropertyCallbackInfo<v8::Array>&
1575
+ NAN_PROPERTY_ENUMERATOR_ARGS_TYPE;
1576
+ typedef void NAN_PROPERTY_ENUMERATOR_RETURN_TYPE;
1577
+
1578
+ typedef const PropertyCallbackInfo<v8::Boolean>&
1579
+ NAN_PROPERTY_DELETER_ARGS_TYPE;
1580
+
1581
+ #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 12 || \
1582
+ (V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION > 4))
1583
+ typedef v8::Intercepted NAN_PROPERTY_DELETER_RETURN_TYPE;
1584
+ #else
1585
+ typedef void NAN_PROPERTY_DELETER_RETURN_TYPE;
1586
+ #endif
1587
+
1588
+
1589
+ typedef const PropertyCallbackInfo<v8::Integer>&
1590
+ NAN_PROPERTY_QUERY_ARGS_TYPE;
1591
+ #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 12 || \
1592
+ (V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION > 4))
1593
+ typedef v8::Intercepted NAN_PROPERTY_QUERY_RETURN_TYPE;
1594
+ #else
1595
+ typedef void NAN_PROPERTY_QUERY_RETURN_TYPE;
1596
+ #endif
1597
+
1598
+ typedef const PropertyCallbackInfo<v8::Value>& NAN_INDEX_GETTER_ARGS_TYPE;
1599
+ #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 12 || \
1600
+ (V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION > 4))
1601
+ typedef v8::Intercepted NAN_INDEX_GETTER_RETURN_TYPE;
1602
+ #else
1603
+ typedef void NAN_INDEX_GETTER_RETURN_TYPE;
1604
+ #endif
1605
+
1606
+
1607
+ #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 12 || \
1608
+ (V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION > 4))
1609
+ typedef const PropertyCallbackInfo<void>& NAN_INDEX_SETTER_ARGS_TYPE;
1610
+ typedef v8::Intercepted NAN_INDEX_SETTER_RETURN_TYPE;
1611
+ #else
1612
+ typedef const PropertyCallbackInfo<v8::Value>& NAN_INDEX_SETTER_ARGS_TYPE;
1613
+ typedef void NAN_INDEX_SETTER_RETURN_TYPE;
1614
+ #endif
1615
+
1616
+ typedef const PropertyCallbackInfo<v8::Array>&
1617
+ NAN_INDEX_ENUMERATOR_ARGS_TYPE;
1618
+ #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 12 || \
1619
+ (V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION > 4))
1620
+ typedef v8::Intercepted NAN_INDEX_ENUMERATOR_RETURN_TYPE;
1621
+ #else
1622
+ typedef void NAN_INDEX_ENUMERATOR_RETURN_TYPE;
1623
+ #endif
1624
+
1625
+ typedef const PropertyCallbackInfo<v8::Boolean>&
1626
+ NAN_INDEX_DELETER_ARGS_TYPE;
1627
+ #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 12 || \
1628
+ (V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION > 4))
1629
+ typedef v8::Intercepted NAN_INDEX_DELETER_RETURN_TYPE;
1630
+ #else
1631
+ typedef void NAN_INDEX_DELETER_RETURN_TYPE;
1632
+ #endif
1633
+
1634
+ typedef const PropertyCallbackInfo<v8::Integer>&
1635
+ NAN_INDEX_QUERY_ARGS_TYPE;
1636
+ #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 12 || \
1637
+ (V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION > 4))
1638
+ typedef v8::Intercepted NAN_INDEX_QUERY_RETURN_TYPE;
1639
+ #else
1640
+ typedef void NAN_INDEX_QUERY_RETURN_TYPE;
1641
+ #endif
1642
+
1643
+ #define NAN_METHOD(name) \
1644
+ Nan::NAN_METHOD_RETURN_TYPE name(Nan::NAN_METHOD_ARGS_TYPE info)
1645
+ #define NAN_GETTER(name) \
1646
+ Nan::NAN_GETTER_RETURN_TYPE name( \
1647
+ v8::Local<v8::String> property \
1648
+ , Nan::NAN_GETTER_ARGS_TYPE info)
1649
+ #define NAN_SETTER(name) \
1650
+ Nan::NAN_SETTER_RETURN_TYPE name( \
1651
+ v8::Local<v8::String> property \
1652
+ , v8::Local<v8::Value> value \
1653
+ , Nan::NAN_SETTER_ARGS_TYPE info)
1654
+ #define NAN_PROPERTY_GETTER(name) \
1655
+ Nan::NAN_PROPERTY_GETTER_RETURN_TYPE name( \
1656
+ v8::Local<v8::String> property \
1657
+ , Nan::NAN_PROPERTY_GETTER_ARGS_TYPE info)
1658
+ #define NAN_PROPERTY_SETTER(name) \
1659
+ Nan::NAN_PROPERTY_SETTER_RETURN_TYPE name( \
1660
+ v8::Local<v8::String> property \
1661
+ , v8::Local<v8::Value> value \
1662
+ , Nan::NAN_PROPERTY_SETTER_ARGS_TYPE info)
1663
+ #define NAN_PROPERTY_ENUMERATOR(name) \
1664
+ Nan::NAN_PROPERTY_ENUMERATOR_RETURN_TYPE name( \
1665
+ Nan::NAN_PROPERTY_ENUMERATOR_ARGS_TYPE info)
1666
+ #define NAN_PROPERTY_DELETER(name) \
1667
+ Nan::NAN_PROPERTY_DELETER_RETURN_TYPE name( \
1668
+ v8::Local<v8::String> property \
1669
+ , Nan::NAN_PROPERTY_DELETER_ARGS_TYPE info)
1670
+ #define NAN_PROPERTY_QUERY(name) \
1671
+ Nan::NAN_PROPERTY_QUERY_RETURN_TYPE name( \
1672
+ v8::Local<v8::String> property \
1673
+ , Nan::NAN_PROPERTY_QUERY_ARGS_TYPE info)
1674
+ # define NAN_INDEX_GETTER(name) \
1675
+ Nan::NAN_INDEX_GETTER_RETURN_TYPE name( \
1676
+ uint32_t index \
1677
+ , Nan::NAN_INDEX_GETTER_ARGS_TYPE info)
1678
+ #define NAN_INDEX_SETTER(name) \
1679
+ Nan::NAN_INDEX_SETTER_RETURN_TYPE name( \
1680
+ uint32_t index \
1681
+ , v8::Local<v8::Value> value \
1682
+ , Nan::NAN_INDEX_SETTER_ARGS_TYPE info)
1683
+ #define NAN_INDEX_ENUMERATOR(name) \
1684
+ Nan::NAN_INDEX_ENUMERATOR_RETURN_TYPE \
1685
+ name(Nan::NAN_INDEX_ENUMERATOR_ARGS_TYPE info)
1686
+ #define NAN_INDEX_DELETER(name) \
1687
+ Nan::NAN_INDEX_DELETER_RETURN_TYPE name( \
1688
+ uint32_t index \
1689
+ , Nan::NAN_INDEX_DELETER_ARGS_TYPE info)
1690
+ #define NAN_INDEX_QUERY(name) \
1691
+ Nan::NAN_INDEX_QUERY_RETURN_TYPE name( \
1692
+ uint32_t index \
1693
+ , Nan::NAN_INDEX_QUERY_ARGS_TYPE info)
1694
+
1695
+ class Callback {
1696
+ public:
1697
+ Callback() {}
1698
+
1699
+ explicit Callback(const v8::Local<v8::Function> &fn) : handle_(fn) {}
1700
+
1701
+ ~Callback() {
1702
+ handle_.Reset();
1703
+ }
1704
+
1705
+ bool operator==(const Callback &other) const {
1706
+ return handle_ == other.handle_;
1707
+ }
1708
+
1709
+ bool operator!=(const Callback &other) const {
1710
+ return !operator==(other);
1711
+ }
1712
+
1713
+ inline
1714
+ v8::Local<v8::Function> operator*() const { return GetFunction(); }
1715
+
1716
+ NAN_DEPRECATED inline v8::Local<v8::Value> operator()(
1717
+ v8::Local<v8::Object> target
1718
+ , int argc = 0
1719
+ , v8::Local<v8::Value> argv[] = 0) const {
1720
+ #if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
1721
+ v8::Isolate *isolate = v8::Isolate::GetCurrent();
1722
+ # if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
1723
+ AsyncResource async("nan:Callback:operator()");
1724
+ return Call_(isolate, target, argc, argv, &async)
1725
+ .FromMaybe(v8::Local<v8::Value>());
1726
+ # else
1727
+ return Call_(isolate, target, argc, argv);
1728
+ # endif // NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
1729
+ #else
1730
+ return Call_(target, argc, argv);
1731
+ #endif // NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
1732
+ }
1733
+
1734
+ NAN_DEPRECATED inline v8::Local<v8::Value> operator()(
1735
+ int argc = 0
1736
+ , v8::Local<v8::Value> argv[] = 0) const {
1737
+ #if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
1738
+ v8::Isolate *isolate = v8::Isolate::GetCurrent();
1739
+ v8::EscapableHandleScope scope(isolate);
1740
+ # if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
1741
+ AsyncResource async("nan:Callback:operator()");
1742
+ return scope.Escape(Call_(isolate, isolate->GetCurrentContext()->Global(),
1743
+ argc, argv, &async)
1744
+ .FromMaybe(v8::Local<v8::Value>()));
1745
+ # else
1746
+ return scope.Escape(
1747
+ Call_(isolate, isolate->GetCurrentContext()->Global(), argc, argv));
1748
+ # endif // NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
1749
+ #else
1750
+ v8::HandleScope scope;
1751
+ return scope.Close(Call_(v8::Context::GetCurrent()->Global(), argc, argv));
1752
+ #endif // NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
1753
+ }
1754
+
1755
+ inline MaybeLocal<v8::Value> operator()(
1756
+ AsyncResource* resource
1757
+ , int argc = 0
1758
+ , v8::Local<v8::Value> argv[] = 0) const {
1759
+ return this->Call(argc, argv, resource);
1760
+ }
1761
+
1762
+ inline MaybeLocal<v8::Value> operator()(
1763
+ AsyncResource* resource
1764
+ , v8::Local<v8::Object> target
1765
+ , int argc = 0
1766
+ , v8::Local<v8::Value> argv[] = 0) const {
1767
+ return this->Call(target, argc, argv, resource);
1768
+ }
1769
+
1770
+ // TODO(kkoopa): remove
1771
+ inline void SetFunction(const v8::Local<v8::Function> &fn) {
1772
+ Reset(fn);
1773
+ }
1774
+
1775
+ inline void Reset(const v8::Local<v8::Function> &fn) {
1776
+ handle_.Reset(fn);
1777
+ }
1778
+
1779
+ inline void Reset() {
1780
+ handle_.Reset();
1781
+ }
1782
+
1783
+ inline v8::Local<v8::Function> GetFunction() const {
1784
+ return New(handle_);
1785
+ }
1786
+
1787
+ inline bool IsEmpty() const {
1788
+ return handle_.IsEmpty();
1789
+ }
1790
+
1791
+ // Deprecated: For async callbacks Use the versions that accept an
1792
+ // AsyncResource. If this callback does not correspond to an async resource,
1793
+ // that is, it is a synchronous function call on a non-empty JS stack, you
1794
+ // should Nan::Call instead.
1795
+ NAN_DEPRECATED inline v8::Local<v8::Value>
1796
+ Call(v8::Local<v8::Object> target
1797
+ , int argc
1798
+ , v8::Local<v8::Value> argv[]) const {
1799
+ #if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
1800
+ v8::Isolate *isolate = v8::Isolate::GetCurrent();
1801
+ # if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
1802
+ AsyncResource async("nan:Callback:Call");
1803
+ return Call_(isolate, target, argc, argv, &async)
1804
+ .FromMaybe(v8::Local<v8::Value>());
1805
+ # else
1806
+ return Call_(isolate, target, argc, argv);
1807
+ # endif // NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
1808
+ #else
1809
+ return Call_(target, argc, argv);
1810
+ #endif
1811
+ }
1812
+
1813
+ // Deprecated: For async callbacks Use the versions that accept an
1814
+ // AsyncResource. If this callback does not correspond to an async resource,
1815
+ // that is, it is a synchronous function call on a non-empty JS stack, you
1816
+ // should Nan::Call instead.
1817
+ NAN_DEPRECATED inline v8::Local<v8::Value>
1818
+ Call(int argc, v8::Local<v8::Value> argv[]) const {
1819
+ #if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
1820
+ v8::Isolate *isolate = v8::Isolate::GetCurrent();
1821
+ v8::EscapableHandleScope scope(isolate);
1822
+ # if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
1823
+ AsyncResource async("nan:Callback:Call");
1824
+ return scope.Escape(Call_(isolate, isolate->GetCurrentContext()->Global(),
1825
+ argc, argv, &async)
1826
+ .FromMaybe(v8::Local<v8::Value>()));
1827
+ # else
1828
+ return scope.Escape(
1829
+ Call_(isolate, isolate->GetCurrentContext()->Global(), argc, argv));
1830
+ # endif // NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
1831
+ #else
1832
+ v8::HandleScope scope;
1833
+ return scope.Close(Call_(v8::Context::GetCurrent()->Global(), argc, argv));
1834
+ #endif
1835
+ }
1836
+
1837
+ inline MaybeLocal<v8::Value>
1838
+ Call(v8::Local<v8::Object> target
1839
+ , int argc
1840
+ , v8::Local<v8::Value> argv[]
1841
+ , AsyncResource* resource) const {
1842
+ #if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
1843
+ v8::Isolate* isolate = v8::Isolate::GetCurrent();
1844
+ return Call_(isolate, target, argc, argv, resource);
1845
+ #elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
1846
+ v8::Isolate *isolate = v8::Isolate::GetCurrent();
1847
+ return Call_(isolate, target, argc, argv);
1848
+ #else
1849
+ return Call_(target, argc, argv);
1850
+ #endif
1851
+ }
1852
+
1853
+ inline MaybeLocal<v8::Value>
1854
+ Call(int argc, v8::Local<v8::Value> argv[], AsyncResource* resource) const {
1855
+ #if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
1856
+ v8::Isolate* isolate = v8::Isolate::GetCurrent();
1857
+ return Call(isolate->GetCurrentContext()->Global(), argc, argv, resource);
1858
+ #elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
1859
+ v8::Isolate *isolate = v8::Isolate::GetCurrent();
1860
+ v8::EscapableHandleScope scope(isolate);
1861
+ return scope.Escape(
1862
+ Call_(isolate, isolate->GetCurrentContext()->Global(), argc, argv));
1863
+ #else
1864
+ v8::HandleScope scope;
1865
+ return scope.Close(Call_(v8::Context::GetCurrent()->Global(), argc, argv));
1866
+ #endif
1867
+ }
1868
+
1869
+ private:
1870
+ NAN_DISALLOW_ASSIGN_COPY_MOVE(Callback)
1871
+ Persistent<v8::Function> handle_;
1872
+
1873
+ #if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
1874
+ MaybeLocal<v8::Value> Call_(v8::Isolate *isolate
1875
+ , v8::Local<v8::Object> target
1876
+ , int argc
1877
+ , v8::Local<v8::Value> argv[]
1878
+ , AsyncResource* resource) const {
1879
+ EscapableHandleScope scope;
1880
+ v8::Local<v8::Function> func = New(handle_);
1881
+ auto maybe = resource->runInAsyncScope(target, func, argc, argv);
1882
+ v8::Local<v8::Value> local;
1883
+ if (!maybe.ToLocal(&local)) return MaybeLocal<v8::Value>();
1884
+ return scope.Escape(local);
1885
+ }
1886
+ #elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
1887
+ v8::Local<v8::Value> Call_(v8::Isolate *isolate
1888
+ , v8::Local<v8::Object> target
1889
+ , int argc
1890
+ , v8::Local<v8::Value> argv[]) const {
1891
+ EscapableHandleScope scope;
1892
+
1893
+ v8::Local<v8::Function> callback = New(handle_);
1894
+ # if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
1895
+ return scope.Escape(New(node::MakeCallback(
1896
+ isolate
1897
+ , target
1898
+ , callback
1899
+ , argc
1900
+ , argv
1901
+ )));
1902
+ # else
1903
+ return scope.Escape(node::MakeCallback(
1904
+ isolate
1905
+ , target
1906
+ , callback
1907
+ , argc
1908
+ , argv
1909
+ ));
1910
+ # endif
1911
+ }
1912
+ #else
1913
+ v8::Local<v8::Value> Call_(v8::Local<v8::Object> target
1914
+ , int argc
1915
+ , v8::Local<v8::Value> argv[]) const {
1916
+ EscapableHandleScope scope;
1917
+
1918
+ v8::Local<v8::Function> callback = New(handle_);
1919
+ return scope.Escape(New(node::MakeCallback(
1920
+ target
1921
+ , callback
1922
+ , argc
1923
+ , argv
1924
+ )));
1925
+ }
1926
+ #endif
1927
+ };
1928
+
1929
+ inline MaybeLocal<v8::Value> Call(
1930
+ const Nan::Callback& callback
1931
+ , v8::Local<v8::Object> recv
1932
+ , int argc
1933
+ , v8::Local<v8::Value> argv[]) {
1934
+ return Call(*callback, recv, argc, argv);
1935
+ }
1936
+
1937
+ inline MaybeLocal<v8::Value> Call(
1938
+ const Nan::Callback& callback
1939
+ , int argc
1940
+ , v8::Local<v8::Value> argv[]) {
1941
+ #if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
1942
+ v8::Isolate* isolate = v8::Isolate::GetCurrent();
1943
+ v8::EscapableHandleScope scope(isolate);
1944
+ return scope.Escape(
1945
+ Call(*callback, isolate->GetCurrentContext()->Global(), argc, argv)
1946
+ .FromMaybe(v8::Local<v8::Value>()));
1947
+ #else
1948
+ EscapableHandleScope scope;
1949
+ return scope.Escape(
1950
+ Call(*callback, v8::Context::GetCurrent()->Global(), argc, argv)
1951
+ .FromMaybe(v8::Local<v8::Value>()));
1952
+ #endif
1953
+ }
1954
+
1955
+ inline MaybeLocal<v8::Value> Call(
1956
+ v8::Local<v8::String> symbol
1957
+ , v8::Local<v8::Object> recv
1958
+ , int argc
1959
+ , v8::Local<v8::Value> argv[]) {
1960
+ EscapableHandleScope scope;
1961
+ v8::Local<v8::Value> fn_v =
1962
+ Get(recv, symbol).FromMaybe(v8::Local<v8::Value>());
1963
+ if (fn_v.IsEmpty() || !fn_v->IsFunction()) return v8::Local<v8::Value>();
1964
+ v8::Local<v8::Function> fn = fn_v.As<v8::Function>();
1965
+ return scope.Escape(
1966
+ Call(fn, recv, argc, argv).FromMaybe(v8::Local<v8::Value>()));
1967
+ }
1968
+
1969
+ inline MaybeLocal<v8::Value> Call(
1970
+ const char* method
1971
+ , v8::Local<v8::Object> recv
1972
+ , int argc
1973
+ , v8::Local<v8::Value> argv[]) {
1974
+ EscapableHandleScope scope;
1975
+ v8::Local<v8::String> method_string =
1976
+ New<v8::String>(method).ToLocalChecked();
1977
+ return scope.Escape(
1978
+ Call(method_string, recv, argc, argv).FromMaybe(v8::Local<v8::Value>()));
1979
+ }
1980
+
1981
+ /* abstract */ class AsyncWorker {
1982
+ public:
1983
+ explicit AsyncWorker(Callback *callback_,
1984
+ const char* resource_name = "nan:AsyncWorker")
1985
+ : callback(callback_), errmsg_(NULL) {
1986
+ request.data = this;
1987
+
1988
+ HandleScope scope;
1989
+ v8::Local<v8::Object> obj = New<v8::Object>();
1990
+ persistentHandle.Reset(obj);
1991
+ async_resource = new AsyncResource(resource_name, obj);
1992
+ }
1993
+
1994
+ virtual ~AsyncWorker() {
1995
+ HandleScope scope;
1996
+
1997
+ if (!persistentHandle.IsEmpty())
1998
+ persistentHandle.Reset();
1999
+ delete callback;
2000
+ delete[] errmsg_;
2001
+ delete async_resource;
2002
+ }
2003
+
2004
+ virtual void WorkComplete() {
2005
+ HandleScope scope;
2006
+
2007
+ if (errmsg_ == NULL)
2008
+ HandleOKCallback();
2009
+ else
2010
+ HandleErrorCallback();
2011
+ delete callback;
2012
+ callback = NULL;
2013
+ }
2014
+
2015
+ inline void SaveToPersistent(
2016
+ const char *key, const v8::Local<v8::Value> &value) {
2017
+ HandleScope scope;
2018
+ Set(New(persistentHandle), New(key).ToLocalChecked(), value).FromJust();
2019
+ }
2020
+
2021
+ inline void SaveToPersistent(
2022
+ const v8::Local<v8::String> &key, const v8::Local<v8::Value> &value) {
2023
+ HandleScope scope;
2024
+ Set(New(persistentHandle), key, value).FromJust();
2025
+ }
2026
+
2027
+ inline void SaveToPersistent(
2028
+ uint32_t index, const v8::Local<v8::Value> &value) {
2029
+ HandleScope scope;
2030
+ Set(New(persistentHandle), index, value).FromJust();
2031
+ }
2032
+
2033
+ inline v8::Local<v8::Value> GetFromPersistent(const char *key) const {
2034
+ EscapableHandleScope scope;
2035
+ return scope.Escape(
2036
+ Get(New(persistentHandle), New(key).ToLocalChecked())
2037
+ .FromMaybe(v8::Local<v8::Value>()));
2038
+ }
2039
+
2040
+ inline v8::Local<v8::Value>
2041
+ GetFromPersistent(const v8::Local<v8::String> &key) const {
2042
+ EscapableHandleScope scope;
2043
+ return scope.Escape(
2044
+ Get(New(persistentHandle), key)
2045
+ .FromMaybe(v8::Local<v8::Value>()));
2046
+ }
2047
+
2048
+ inline v8::Local<v8::Value> GetFromPersistent(uint32_t index) const {
2049
+ EscapableHandleScope scope;
2050
+ return scope.Escape(
2051
+ Get(New(persistentHandle), index)
2052
+ .FromMaybe(v8::Local<v8::Value>()));
2053
+ }
2054
+
2055
+ virtual void Execute() = 0;
2056
+
2057
+ uv_work_t request;
2058
+
2059
+ virtual void Destroy() {
2060
+ delete this;
2061
+ }
2062
+
2063
+ protected:
2064
+ Persistent<v8::Object> persistentHandle;
2065
+ Callback *callback;
2066
+ AsyncResource *async_resource;
2067
+
2068
+ virtual void HandleOKCallback() {
2069
+ HandleScope scope;
2070
+
2071
+ callback->Call(0, NULL, async_resource);
2072
+ }
2073
+
2074
+ virtual void HandleErrorCallback() {
2075
+ HandleScope scope;
2076
+
2077
+ v8::Local<v8::Value> argv[] = {
2078
+ v8::Exception::Error(New<v8::String>(ErrorMessage()).ToLocalChecked())
2079
+ };
2080
+ callback->Call(1, argv, async_resource);
2081
+ }
2082
+
2083
+ void SetErrorMessage(const char *msg) {
2084
+ delete[] errmsg_;
2085
+
2086
+ size_t size = strlen(msg) + 1;
2087
+ errmsg_ = new char[size];
2088
+ memcpy(errmsg_, msg, size);
2089
+ }
2090
+
2091
+ const char* ErrorMessage() const {
2092
+ return errmsg_;
2093
+ }
2094
+
2095
+ private:
2096
+ NAN_DISALLOW_ASSIGN_COPY_MOVE(AsyncWorker)
2097
+ char *errmsg_;
2098
+ };
2099
+
2100
+ /* abstract */ class AsyncBareProgressWorkerBase : public AsyncWorker {
2101
+ public:
2102
+ explicit AsyncBareProgressWorkerBase(
2103
+ Callback *callback_,
2104
+ const char* resource_name = "nan:AsyncBareProgressWorkerBase")
2105
+ : AsyncWorker(callback_, resource_name) {
2106
+ uv_async_init(
2107
+ GetCurrentEventLoop()
2108
+ , &async
2109
+ , AsyncProgress_
2110
+ );
2111
+ async.data = this;
2112
+ }
2113
+
2114
+ virtual ~AsyncBareProgressWorkerBase() {
2115
+ }
2116
+
2117
+ virtual void WorkProgress() = 0;
2118
+
2119
+ virtual void Destroy() {
2120
+ uv_close(reinterpret_cast<uv_handle_t*>(&async), AsyncClose_);
2121
+ }
2122
+
2123
+ private:
2124
+ inline static NAUV_WORK_CB(AsyncProgress_) {
2125
+ AsyncBareProgressWorkerBase *worker =
2126
+ static_cast<AsyncBareProgressWorkerBase*>(async->data);
2127
+ worker->WorkProgress();
2128
+ }
2129
+
2130
+ inline static void AsyncClose_(uv_handle_t* handle) {
2131
+ AsyncBareProgressWorkerBase *worker =
2132
+ static_cast<AsyncBareProgressWorkerBase*>(handle->data);
2133
+ delete worker;
2134
+ }
2135
+
2136
+ protected:
2137
+ uv_async_t async;
2138
+ };
2139
+
2140
+ template<class T>
2141
+ /* abstract */
2142
+ class AsyncBareProgressWorker : public AsyncBareProgressWorkerBase {
2143
+ public:
2144
+ explicit AsyncBareProgressWorker(
2145
+ Callback *callback_,
2146
+ const char* resource_name = "nan:AsyncBareProgressWorker")
2147
+ : AsyncBareProgressWorkerBase(callback_, resource_name) {
2148
+ uv_mutex_init(&async_lock);
2149
+ }
2150
+
2151
+ virtual ~AsyncBareProgressWorker() {
2152
+ uv_mutex_destroy(&async_lock);
2153
+ }
2154
+
2155
+ class ExecutionProgress {
2156
+ friend class AsyncBareProgressWorker;
2157
+ public:
2158
+ void Signal() const {
2159
+ uv_mutex_lock(&that_->async_lock);
2160
+ uv_async_send(&that_->async);
2161
+ uv_mutex_unlock(&that_->async_lock);
2162
+ }
2163
+
2164
+ void Send(const T* data, size_t count) const {
2165
+ that_->SendProgress_(data, count);
2166
+ }
2167
+
2168
+ private:
2169
+ explicit ExecutionProgress(AsyncBareProgressWorker *that) : that_(that) {}
2170
+ NAN_DISALLOW_ASSIGN_COPY_MOVE(ExecutionProgress)
2171
+ AsyncBareProgressWorker* const that_;
2172
+ };
2173
+
2174
+ virtual void Execute(const ExecutionProgress& progress) = 0;
2175
+ virtual void HandleProgressCallback(const T *data, size_t size) = 0;
2176
+
2177
+ protected:
2178
+ uv_mutex_t async_lock;
2179
+
2180
+ private:
2181
+ void Execute() /*final override*/ {
2182
+ ExecutionProgress progress(this);
2183
+ Execute(progress);
2184
+ }
2185
+
2186
+ virtual void SendProgress_(const T *data, size_t count) = 0;
2187
+ };
2188
+
2189
+ template<class T>
2190
+ /* abstract */
2191
+ class AsyncProgressWorkerBase : public AsyncBareProgressWorker<T> {
2192
+ public:
2193
+ explicit AsyncProgressWorkerBase(
2194
+ Callback *callback_,
2195
+ const char* resource_name = "nan:AsyncProgressWorkerBase")
2196
+ : AsyncBareProgressWorker<T>(callback_, resource_name), asyncdata_(NULL),
2197
+ asyncsize_(0) {
2198
+ }
2199
+
2200
+ virtual ~AsyncProgressWorkerBase() {
2201
+ delete[] asyncdata_;
2202
+ }
2203
+
2204
+ void WorkProgress() {
2205
+ uv_mutex_lock(&this->async_lock);
2206
+ T *data = asyncdata_;
2207
+ size_t size = asyncsize_;
2208
+ asyncdata_ = NULL;
2209
+ asyncsize_ = 0;
2210
+ uv_mutex_unlock(&this->async_lock);
2211
+
2212
+ // Don't send progress events after we've already completed.
2213
+ if (this->callback) {
2214
+ this->HandleProgressCallback(data, size);
2215
+ }
2216
+ delete[] data;
2217
+ }
2218
+
2219
+ private:
2220
+ void SendProgress_(const T *data, size_t count) {
2221
+ T *new_data = new T[count];
2222
+ std::copy(data, data + count, new_data);
2223
+
2224
+ uv_mutex_lock(&this->async_lock);
2225
+ T *old_data = asyncdata_;
2226
+ asyncdata_ = new_data;
2227
+ asyncsize_ = count;
2228
+ uv_async_send(&this->async);
2229
+ uv_mutex_unlock(&this->async_lock);
2230
+
2231
+ delete[] old_data;
2232
+ }
2233
+
2234
+ T *asyncdata_;
2235
+ size_t asyncsize_;
2236
+ };
2237
+
2238
+ // This ensures compatibility to the previous un-templated AsyncProgressWorker
2239
+ // class definition.
2240
+ typedef AsyncProgressWorkerBase<char> AsyncProgressWorker;
2241
+
2242
+ template<class T>
2243
+ /* abstract */
2244
+ class AsyncBareProgressQueueWorker : public AsyncBareProgressWorkerBase {
2245
+ public:
2246
+ explicit AsyncBareProgressQueueWorker(
2247
+ Callback *callback_,
2248
+ const char* resource_name = "nan:AsyncBareProgressQueueWorker")
2249
+ : AsyncBareProgressWorkerBase(callback_, resource_name) {
2250
+ }
2251
+
2252
+ virtual ~AsyncBareProgressQueueWorker() {
2253
+ }
2254
+
2255
+ class ExecutionProgress {
2256
+ friend class AsyncBareProgressQueueWorker;
2257
+ public:
2258
+ void Send(const T* data, size_t count) const {
2259
+ that_->SendProgress_(data, count);
2260
+ }
2261
+
2262
+ private:
2263
+ explicit ExecutionProgress(AsyncBareProgressQueueWorker *that)
2264
+ : that_(that) {}
2265
+ NAN_DISALLOW_ASSIGN_COPY_MOVE(ExecutionProgress)
2266
+ AsyncBareProgressQueueWorker* const that_;
2267
+ };
2268
+
2269
+ virtual void Execute(const ExecutionProgress& progress) = 0;
2270
+ virtual void HandleProgressCallback(const T *data, size_t size) = 0;
2271
+
2272
+ private:
2273
+ void Execute() /*final override*/ {
2274
+ ExecutionProgress progress(this);
2275
+ Execute(progress);
2276
+ }
2277
+
2278
+ virtual void SendProgress_(const T *data, size_t count) = 0;
2279
+ };
2280
+
2281
+ template<class T>
2282
+ /* abstract */
2283
+ class AsyncProgressQueueWorker : public AsyncBareProgressQueueWorker<T> {
2284
+ public:
2285
+ explicit AsyncProgressQueueWorker(
2286
+ Callback *callback_,
2287
+ const char* resource_name = "nan:AsyncProgressQueueWorker")
2288
+ : AsyncBareProgressQueueWorker<T>(callback_) {
2289
+ uv_mutex_init(&async_lock);
2290
+ }
2291
+
2292
+ virtual ~AsyncProgressQueueWorker() {
2293
+ uv_mutex_lock(&async_lock);
2294
+
2295
+ while (!asyncdata_.empty()) {
2296
+ std::pair<T*, size_t> &datapair = asyncdata_.front();
2297
+ T *data = datapair.first;
2298
+
2299
+ asyncdata_.pop();
2300
+
2301
+ delete[] data;
2302
+ }
2303
+
2304
+ uv_mutex_unlock(&async_lock);
2305
+ uv_mutex_destroy(&async_lock);
2306
+ }
2307
+
2308
+ void WorkComplete() {
2309
+ WorkProgress();
2310
+ AsyncWorker::WorkComplete();
2311
+ }
2312
+
2313
+ void WorkProgress() {
2314
+ uv_mutex_lock(&async_lock);
2315
+
2316
+ while (!asyncdata_.empty()) {
2317
+ std::pair<T*, size_t> &datapair = asyncdata_.front();
2318
+
2319
+ T *data = datapair.first;
2320
+ size_t size = datapair.second;
2321
+
2322
+ asyncdata_.pop();
2323
+ uv_mutex_unlock(&async_lock);
2324
+
2325
+ // Don't send progress events after we've already completed.
2326
+ if (this->callback) {
2327
+ this->HandleProgressCallback(data, size);
2328
+ }
2329
+
2330
+ delete[] data;
2331
+
2332
+ uv_mutex_lock(&async_lock);
2333
+ }
2334
+
2335
+ uv_mutex_unlock(&async_lock);
2336
+ }
2337
+
2338
+ private:
2339
+ void SendProgress_(const T *data, size_t count) {
2340
+ T *new_data = new T[count];
2341
+ std::copy(data, data + count, new_data);
2342
+
2343
+ uv_mutex_lock(&async_lock);
2344
+ asyncdata_.push(std::pair<T*, size_t>(new_data, count));
2345
+ uv_mutex_unlock(&async_lock);
2346
+
2347
+ uv_async_send(&this->async);
2348
+ }
2349
+
2350
+ uv_mutex_t async_lock;
2351
+ std::queue<std::pair<T*, size_t> > asyncdata_;
2352
+ };
2353
+
2354
+ inline void AsyncExecute (uv_work_t* req) {
2355
+ AsyncWorker *worker = static_cast<AsyncWorker*>(req->data);
2356
+ worker->Execute();
2357
+ }
2358
+
2359
+ /* uv_after_work_cb has 1 argument before node-v0.9.4 and
2360
+ * 2 arguments since node-v0.9.4
2361
+ * https://github.com/libuv/libuv/commit/92fb84b751e18f032c02609467f44bfe927b80c5
2362
+ */
2363
+ inline void AsyncExecuteComplete(uv_work_t *req) {
2364
+ AsyncWorker* worker = static_cast<AsyncWorker*>(req->data);
2365
+ worker->WorkComplete();
2366
+ worker->Destroy();
2367
+ }
2368
+ inline void AsyncExecuteComplete (uv_work_t* req, int status) {
2369
+ AsyncExecuteComplete(req);
2370
+ }
2371
+
2372
+ inline void AsyncQueueWorker (AsyncWorker* worker) {
2373
+ uv_queue_work(
2374
+ GetCurrentEventLoop()
2375
+ , &worker->request
2376
+ , AsyncExecute
2377
+ , AsyncExecuteComplete
2378
+ );
2379
+ }
2380
+
2381
+ namespace imp {
2382
+
2383
+ inline
2384
+ ExternalOneByteStringResource const*
2385
+ GetExternalResource(v8::Local<v8::String> str) {
2386
+ #if NODE_MODULE_VERSION < ATOM_0_21_MODULE_VERSION
2387
+ return str->GetExternalAsciiStringResource();
2388
+ #else
2389
+ return str->GetExternalOneByteStringResource();
2390
+ #endif
2391
+ }
2392
+
2393
+ inline
2394
+ bool
2395
+ IsExternal(v8::Local<v8::String> str) {
2396
+ #if NODE_MODULE_VERSION < ATOM_0_21_MODULE_VERSION
2397
+ return str->IsExternalAscii();
2398
+ #else
2399
+ return str->IsExternalOneByte();
2400
+ #endif
2401
+ }
2402
+
2403
+ } // end of namespace imp
2404
+
2405
+ enum Encoding {ASCII, UTF8, BASE64, UCS2, BINARY, HEX, BUFFER};
2406
+
2407
+ #if NODE_MODULE_VERSION < NODE_0_10_MODULE_VERSION
2408
+ # include "nan_string_bytes.h" // NOLINT(build/include)
2409
+ #endif
2410
+
2411
+ inline v8::Local<v8::Value> Encode(
2412
+ const void *buf, size_t len, enum Encoding encoding = BINARY) {
2413
+ #if (NODE_MODULE_VERSION >= ATOM_0_21_MODULE_VERSION)
2414
+ v8::Isolate* isolate = v8::Isolate::GetCurrent();
2415
+ node::encoding node_enc = static_cast<node::encoding>(encoding);
2416
+
2417
+ if (encoding == UCS2) {
2418
+ return node::Encode(
2419
+ isolate
2420
+ , reinterpret_cast<const uint16_t *>(buf)
2421
+ , len / 2);
2422
+ } else {
2423
+ return node::Encode(
2424
+ isolate
2425
+ , reinterpret_cast<const char *>(buf)
2426
+ , len
2427
+ , node_enc);
2428
+ }
2429
+ #elif (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION)
2430
+ return node::Encode(
2431
+ v8::Isolate::GetCurrent()
2432
+ , buf, len
2433
+ , static_cast<node::encoding>(encoding));
2434
+ #else
2435
+ # if NODE_MODULE_VERSION >= NODE_0_10_MODULE_VERSION
2436
+ return node::Encode(buf, len, static_cast<node::encoding>(encoding));
2437
+ # else
2438
+ return imp::Encode(reinterpret_cast<const char*>(buf), len, encoding);
2439
+ # endif
2440
+ #endif
2441
+ }
2442
+
2443
+ inline ssize_t DecodeBytes(
2444
+ v8::Local<v8::Value> val, enum Encoding encoding = BINARY) {
2445
+ #if (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION)
2446
+ return node::DecodeBytes(
2447
+ v8::Isolate::GetCurrent()
2448
+ , val
2449
+ , static_cast<node::encoding>(encoding));
2450
+ #else
2451
+ # if (NODE_MODULE_VERSION < NODE_0_10_MODULE_VERSION)
2452
+ if (encoding == BUFFER) {
2453
+ return node::DecodeBytes(val, node::BINARY);
2454
+ }
2455
+ # endif
2456
+ return node::DecodeBytes(val, static_cast<node::encoding>(encoding));
2457
+ #endif
2458
+ }
2459
+
2460
+ inline ssize_t DecodeWrite(
2461
+ char *buf
2462
+ , size_t len
2463
+ , v8::Local<v8::Value> val
2464
+ , enum Encoding encoding = BINARY) {
2465
+ #if (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION)
2466
+ return node::DecodeWrite(
2467
+ v8::Isolate::GetCurrent()
2468
+ , buf
2469
+ , len
2470
+ , val
2471
+ , static_cast<node::encoding>(encoding));
2472
+ #else
2473
+ # if (NODE_MODULE_VERSION < NODE_0_10_MODULE_VERSION)
2474
+ if (encoding == BUFFER) {
2475
+ return node::DecodeWrite(buf, len, val, node::BINARY);
2476
+ }
2477
+ # endif
2478
+ return node::DecodeWrite(
2479
+ buf
2480
+ , len
2481
+ , val
2482
+ , static_cast<node::encoding>(encoding));
2483
+ #endif
2484
+ }
2485
+
2486
+ inline void SetPrototypeTemplate(
2487
+ v8::Local<v8::FunctionTemplate> templ
2488
+ , const char *name
2489
+ , v8::Local<v8::Data> value
2490
+ ) {
2491
+ HandleScope scope;
2492
+ SetTemplate(templ->PrototypeTemplate(), name, value);
2493
+ }
2494
+
2495
+ inline void SetPrototypeTemplate(
2496
+ v8::Local<v8::FunctionTemplate> templ
2497
+ , v8::Local<v8::String> name
2498
+ , v8::Local<v8::Data> value
2499
+ , v8::PropertyAttribute attributes
2500
+ ) {
2501
+ HandleScope scope;
2502
+ SetTemplate(templ->PrototypeTemplate(), name, value, attributes);
2503
+ }
2504
+
2505
+ inline void SetInstanceTemplate(
2506
+ v8::Local<v8::FunctionTemplate> templ
2507
+ , const char *name
2508
+ , v8::Local<v8::Data> value
2509
+ ) {
2510
+ HandleScope scope;
2511
+ SetTemplate(templ->InstanceTemplate(), name, value);
2512
+ }
2513
+
2514
+ inline void SetInstanceTemplate(
2515
+ v8::Local<v8::FunctionTemplate> templ
2516
+ , v8::Local<v8::String> name
2517
+ , v8::Local<v8::Data> value
2518
+ , v8::PropertyAttribute attributes
2519
+ ) {
2520
+ HandleScope scope;
2521
+ SetTemplate(templ->InstanceTemplate(), name, value, attributes);
2522
+ }
2523
+
2524
+ namespace imp {
2525
+
2526
+ // Note(@agnat): Helper to distinguish different receiver types. The first
2527
+ // version deals with receivers derived from v8::Template. The second version
2528
+ // handles everything else. The final argument only serves as discriminator and
2529
+ // is unused.
2530
+ template <typename T>
2531
+ inline
2532
+ void
2533
+ SetMethodAux(T recv,
2534
+ v8::Local<v8::String> name,
2535
+ v8::Local<v8::FunctionTemplate> tpl,
2536
+ v8::Template *) {
2537
+ recv->Set(name, tpl);
2538
+ }
2539
+
2540
+ template <typename T>
2541
+ inline
2542
+ void
2543
+ SetMethodAux(T recv,
2544
+ v8::Local<v8::String> name,
2545
+ v8::Local<v8::FunctionTemplate> tpl,
2546
+ ...) {
2547
+ Set(recv, name, GetFunction(tpl).ToLocalChecked());
2548
+ }
2549
+
2550
+ } // end of namespace imp
2551
+
2552
+ template <typename T, template <typename> class HandleType>
2553
+ inline void SetMethod(
2554
+ HandleType<T> recv
2555
+ , const char *name
2556
+ , FunctionCallback callback
2557
+ , v8::Local<v8::Value> data = v8::Local<v8::Value>()) {
2558
+ HandleScope scope;
2559
+ v8::Local<v8::FunctionTemplate> t = New<v8::FunctionTemplate>(callback, data);
2560
+ v8::Local<v8::String> fn_name = New(name).ToLocalChecked();
2561
+ t->SetClassName(fn_name);
2562
+ // Note(@agnat): Pass an empty T* as discriminator. See note on
2563
+ // SetMethodAux(...) above
2564
+ imp::SetMethodAux(recv, fn_name, t, static_cast<T*>(0));
2565
+ }
2566
+
2567
+ inline void SetPrototypeMethod(
2568
+ v8::Local<v8::FunctionTemplate> recv
2569
+ , const char* name
2570
+ , FunctionCallback callback
2571
+ , v8::Local<v8::Value> data = v8::Local<v8::Value>()) {
2572
+ HandleScope scope;
2573
+ v8::Local<v8::FunctionTemplate> t = New<v8::FunctionTemplate>(
2574
+ callback
2575
+ , data
2576
+ , New<v8::Signature>(recv));
2577
+ v8::Local<v8::String> fn_name = New(name).ToLocalChecked();
2578
+ recv->PrototypeTemplate()->Set(fn_name, t);
2579
+ t->SetClassName(fn_name);
2580
+ }
2581
+
2582
+ //=== Accessors and Such =======================================================
2583
+
2584
+ NAN_DEPRECATED inline void SetAccessor(
2585
+ v8::Local<v8::ObjectTemplate> tpl
2586
+ , v8::Local<v8::String> name
2587
+ , GetterCallback getter
2588
+ , SetterCallback setter
2589
+ , v8::Local<v8::Value> data
2590
+ , v8::AccessControl settings
2591
+ , v8::PropertyAttribute attribute
2592
+ , imp::Sig signature) {
2593
+ HandleScope scope;
2594
+
2595
+ imp::NativeGetter getter_ =
2596
+ imp::GetterCallbackWrapper;
2597
+ imp::NativeSetter setter_ =
2598
+ setter ? imp::SetterCallbackWrapper : 0;
2599
+
2600
+ v8::Local<v8::ObjectTemplate> otpl = New<v8::ObjectTemplate>();
2601
+ otpl->SetInternalFieldCount(imp::kAccessorFieldCount);
2602
+ v8::Local<v8::Object> obj = NewInstance(otpl).ToLocalChecked();
2603
+
2604
+ obj->SetInternalField(
2605
+ imp::kGetterIndex
2606
+ , New<v8::External>(reinterpret_cast<void *>(getter)));
2607
+
2608
+ if (setter != 0) {
2609
+ obj->SetInternalField(
2610
+ imp::kSetterIndex
2611
+ , New<v8::External>(reinterpret_cast<void *>(setter)));
2612
+ }
2613
+
2614
+ if (!data.IsEmpty()) {
2615
+ obj->SetInternalField(imp::kDataIndex, data);
2616
+ }
2617
+
2618
+ #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 12 || (V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 5))
2619
+ tpl->SetNativeDataProperty(
2620
+ #else
2621
+ tpl->SetAccessor(
2622
+ #endif
2623
+ name
2624
+ , getter_
2625
+ , setter_
2626
+ , obj
2627
+ #if !defined(V8_MAJOR_VERSION) || V8_MAJOR_VERSION < 12
2628
+ , settings
2629
+ #endif
2630
+ , attribute
2631
+ #if (NODE_MODULE_VERSION < NODE_16_0_MODULE_VERSION)
2632
+ , signature
2633
+ #endif
2634
+ );
2635
+ }
2636
+
2637
+ inline void SetAccessor(
2638
+ v8::Local<v8::ObjectTemplate> tpl
2639
+ , v8::Local<v8::String> name
2640
+ , GetterCallback getter
2641
+ , SetterCallback setter = 0
2642
+ , v8::Local<v8::Value> data = v8::Local<v8::Value>()
2643
+ , v8::AccessControl settings = v8::DEFAULT
2644
+ , v8::PropertyAttribute attribute = v8::None) {
2645
+ HandleScope scope;
2646
+
2647
+ imp::NativeGetter getter_ =
2648
+ imp::GetterCallbackWrapper;
2649
+ imp::NativeSetter setter_ =
2650
+ setter ? imp::SetterCallbackWrapper : 0;
2651
+
2652
+ v8::Local<v8::ObjectTemplate> otpl = New<v8::ObjectTemplate>();
2653
+ otpl->SetInternalFieldCount(imp::kAccessorFieldCount);
2654
+ v8::Local<v8::Object> obj = NewInstance(otpl).ToLocalChecked();
2655
+
2656
+ obj->SetInternalField(
2657
+ imp::kGetterIndex
2658
+ , New<v8::External>(reinterpret_cast<void *>(getter)));
2659
+
2660
+ if (setter != 0) {
2661
+ obj->SetInternalField(
2662
+ imp::kSetterIndex
2663
+ , New<v8::External>(reinterpret_cast<void *>(setter)));
2664
+ }
2665
+
2666
+ if (!data.IsEmpty()) {
2667
+ obj->SetInternalField(imp::kDataIndex, data);
2668
+ }
2669
+
2670
+ #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 12 || (V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 5))
2671
+ tpl->SetNativeDataProperty(
2672
+ #else
2673
+ tpl->SetAccessor(
2674
+ #endif
2675
+ name
2676
+ , getter_
2677
+ , setter_
2678
+ , obj
2679
+ #if !defined(V8_MAJOR_VERSION) || V8_MAJOR_VERSION < 12
2680
+ , settings
2681
+ #endif
2682
+ , attribute
2683
+ );
2684
+ }
2685
+
2686
+ inline bool SetAccessor(
2687
+ v8::Local<v8::Object> obj
2688
+ , v8::Local<v8::String> name
2689
+ , GetterCallback getter
2690
+ , SetterCallback setter = 0
2691
+ , v8::Local<v8::Value> data = v8::Local<v8::Value>()
2692
+ , v8::AccessControl settings = v8::DEFAULT
2693
+ , v8::PropertyAttribute attribute = v8::None) {
2694
+ HandleScope scope;
2695
+
2696
+ imp::NativeGetter getter_ =
2697
+ imp::GetterCallbackWrapper;
2698
+ imp::NativeSetter setter_ =
2699
+ setter ? imp::SetterCallbackWrapper : 0;
2700
+
2701
+ v8::Local<v8::ObjectTemplate> otpl = New<v8::ObjectTemplate>();
2702
+ otpl->SetInternalFieldCount(imp::kAccessorFieldCount);
2703
+ v8::Local<v8::Object> dataobj = NewInstance(otpl).ToLocalChecked();
2704
+
2705
+ dataobj->SetInternalField(
2706
+ imp::kGetterIndex
2707
+ , New<v8::External>(reinterpret_cast<void *>(getter)));
2708
+
2709
+ if (!data.IsEmpty()) {
2710
+ dataobj->SetInternalField(imp::kDataIndex, data);
2711
+ }
2712
+
2713
+ if (setter) {
2714
+ dataobj->SetInternalField(
2715
+ imp::kSetterIndex
2716
+ , New<v8::External>(reinterpret_cast<void *>(setter)));
2717
+ }
2718
+
2719
+ #if (NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION)
2720
+ #if defined(V8_MAJOR_VERSION) && \
2721
+ (V8_MAJOR_VERSION > 12 || \
2722
+ (V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) && \
2723
+ V8_MINOR_VERSION >= 5))
2724
+ return obj->SetNativeDataProperty(
2725
+ GetCurrentContext()
2726
+ , name
2727
+ , getter_
2728
+ , setter_
2729
+ , dataobj
2730
+ , attribute).FromMaybe(false);
2731
+ #else
2732
+ return obj->SetAccessor(
2733
+ GetCurrentContext()
2734
+ , name
2735
+ , getter_
2736
+ , setter_
2737
+ , dataobj
2738
+ , settings
2739
+ , attribute).FromMaybe(false);
2740
+ #endif
2741
+ #else
2742
+ return obj->SetAccessor(
2743
+ name
2744
+ , getter_
2745
+ , setter_
2746
+ , dataobj
2747
+ , settings
2748
+ , attribute);
2749
+ #endif
2750
+ }
2751
+
2752
+ inline void SetNamedPropertyHandler(
2753
+ v8::Local<v8::ObjectTemplate> tpl
2754
+ , PropertyGetterCallback getter
2755
+ , PropertySetterCallback setter = 0
2756
+ , PropertyQueryCallback query = 0
2757
+ , PropertyDeleterCallback deleter = 0
2758
+ , PropertyEnumeratorCallback enumerator = 0
2759
+ , v8::Local<v8::Value> data = v8::Local<v8::Value>()) {
2760
+ HandleScope scope;
2761
+
2762
+ imp::NativePropertyGetter getter_ =
2763
+ imp::PropertyGetterCallbackWrapper;
2764
+ imp::NativePropertySetter setter_ =
2765
+ setter ? imp::PropertySetterCallbackWrapper : 0;
2766
+ imp::NativePropertyQuery query_ =
2767
+ query ? imp::PropertyQueryCallbackWrapper : 0;
2768
+ imp::NativePropertyDeleter *deleter_ =
2769
+ deleter ? imp::PropertyDeleterCallbackWrapper : 0;
2770
+ imp::NativePropertyEnumerator enumerator_ =
2771
+ enumerator ? imp::PropertyEnumeratorCallbackWrapper : 0;
2772
+
2773
+ v8::Local<v8::ObjectTemplate> otpl = New<v8::ObjectTemplate>();
2774
+ otpl->SetInternalFieldCount(imp::kPropertyFieldCount);
2775
+ v8::Local<v8::Object> obj = NewInstance(otpl).ToLocalChecked();
2776
+ obj->SetInternalField(
2777
+ imp::kPropertyGetterIndex
2778
+ , New<v8::External>(reinterpret_cast<void *>(getter)));
2779
+
2780
+ if (setter) {
2781
+ obj->SetInternalField(
2782
+ imp::kPropertySetterIndex
2783
+ , New<v8::External>(reinterpret_cast<void *>(setter)));
2784
+ }
2785
+
2786
+ if (query) {
2787
+ obj->SetInternalField(
2788
+ imp::kPropertyQueryIndex
2789
+ , New<v8::External>(reinterpret_cast<void *>(query)));
2790
+ }
2791
+
2792
+ if (deleter) {
2793
+ obj->SetInternalField(
2794
+ imp::kPropertyDeleterIndex
2795
+ , New<v8::External>(reinterpret_cast<void *>(deleter)));
2796
+ }
2797
+
2798
+ if (enumerator) {
2799
+ obj->SetInternalField(
2800
+ imp::kPropertyEnumeratorIndex
2801
+ , New<v8::External>(reinterpret_cast<void *>(enumerator)));
2802
+ }
2803
+
2804
+ if (!data.IsEmpty()) {
2805
+ obj->SetInternalField(imp::kDataIndex, data);
2806
+ }
2807
+
2808
+ #if NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION
2809
+ tpl->SetHandler(v8::NamedPropertyHandlerConfiguration(
2810
+ getter_, setter_, query_, deleter_, enumerator_, obj));
2811
+ #else
2812
+ tpl->SetNamedPropertyHandler(
2813
+ getter_
2814
+ , setter_
2815
+ , query_
2816
+ , deleter_
2817
+ , enumerator_
2818
+ , obj);
2819
+ #endif
2820
+ }
2821
+
2822
+ inline void SetIndexedPropertyHandler(
2823
+ v8::Local<v8::ObjectTemplate> tpl
2824
+ , IndexGetterCallback getter
2825
+ , IndexSetterCallback setter = 0
2826
+ , IndexQueryCallback query = 0
2827
+ , IndexDeleterCallback deleter = 0
2828
+ , IndexEnumeratorCallback enumerator = 0
2829
+ , v8::Local<v8::Value> data = v8::Local<v8::Value>()) {
2830
+ HandleScope scope;
2831
+
2832
+ imp::NativeIndexGetter getter_ =
2833
+ imp::IndexGetterCallbackWrapper;
2834
+ imp::NativeIndexSetter setter_ =
2835
+ setter ? imp::IndexSetterCallbackWrapper : 0;
2836
+ imp::NativeIndexQuery query_ =
2837
+ query ? imp::IndexQueryCallbackWrapper : 0;
2838
+ imp::NativeIndexDeleter deleter_ =
2839
+ deleter ? imp::IndexDeleterCallbackWrapper : 0;
2840
+ imp::NativeIndexEnumerator enumerator_ =
2841
+ enumerator ? imp::IndexEnumeratorCallbackWrapper : 0;
2842
+
2843
+ v8::Local<v8::ObjectTemplate> otpl = New<v8::ObjectTemplate>();
2844
+ otpl->SetInternalFieldCount(imp::kIndexPropertyFieldCount);
2845
+ v8::Local<v8::Object> obj = NewInstance(otpl).ToLocalChecked();
2846
+ obj->SetInternalField(
2847
+ imp::kIndexPropertyGetterIndex
2848
+ , New<v8::External>(reinterpret_cast<void *>(getter)));
2849
+
2850
+ if (setter) {
2851
+ obj->SetInternalField(
2852
+ imp::kIndexPropertySetterIndex
2853
+ , New<v8::External>(reinterpret_cast<void *>(setter)));
2854
+ }
2855
+
2856
+ if (query) {
2857
+ obj->SetInternalField(
2858
+ imp::kIndexPropertyQueryIndex
2859
+ , New<v8::External>(reinterpret_cast<void *>(query)));
2860
+ }
2861
+
2862
+ if (deleter) {
2863
+ obj->SetInternalField(
2864
+ imp::kIndexPropertyDeleterIndex
2865
+ , New<v8::External>(reinterpret_cast<void *>(deleter)));
2866
+ }
2867
+
2868
+ if (enumerator) {
2869
+ obj->SetInternalField(
2870
+ imp::kIndexPropertyEnumeratorIndex
2871
+ , New<v8::External>(reinterpret_cast<void *>(enumerator)));
2872
+ }
2873
+
2874
+ if (!data.IsEmpty()) {
2875
+ obj->SetInternalField(imp::kDataIndex, data);
2876
+ }
2877
+
2878
+ #if NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION
2879
+ tpl->SetHandler(v8::IndexedPropertyHandlerConfiguration(
2880
+ getter_, setter_, query_, deleter_, enumerator_, obj));
2881
+ #else
2882
+ tpl->SetIndexedPropertyHandler(
2883
+ getter_
2884
+ , setter_
2885
+ , query_
2886
+ , deleter_
2887
+ , enumerator_
2888
+ , obj);
2889
+ #endif
2890
+ }
2891
+
2892
+ inline void SetCallHandler(
2893
+ v8::Local<v8::FunctionTemplate> tpl
2894
+ , FunctionCallback callback
2895
+ , v8::Local<v8::Value> data = v8::Local<v8::Value>()) {
2896
+ HandleScope scope;
2897
+
2898
+ v8::Local<v8::ObjectTemplate> otpl = New<v8::ObjectTemplate>();
2899
+ otpl->SetInternalFieldCount(imp::kFunctionFieldCount);
2900
+ v8::Local<v8::Object> obj = NewInstance(otpl).ToLocalChecked();
2901
+
2902
+ obj->SetInternalField(
2903
+ imp::kFunctionIndex
2904
+ , New<v8::External>(reinterpret_cast<void *>(callback)));
2905
+
2906
+ if (!data.IsEmpty()) {
2907
+ obj->SetInternalField(imp::kDataIndex, data);
2908
+ }
2909
+
2910
+ tpl->SetCallHandler(imp::FunctionCallbackWrapper, obj);
2911
+ }
2912
+
2913
+
2914
+ inline void SetCallAsFunctionHandler(
2915
+ v8::Local<v8::ObjectTemplate> tpl,
2916
+ FunctionCallback callback,
2917
+ v8::Local<v8::Value> data = v8::Local<v8::Value>()) {
2918
+ HandleScope scope;
2919
+
2920
+ v8::Local<v8::ObjectTemplate> otpl = New<v8::ObjectTemplate>();
2921
+ otpl->SetInternalFieldCount(imp::kFunctionFieldCount);
2922
+ v8::Local<v8::Object> obj = NewInstance(otpl).ToLocalChecked();
2923
+
2924
+ obj->SetInternalField(
2925
+ imp::kFunctionIndex
2926
+ , New<v8::External>(reinterpret_cast<void *>(callback)));
2927
+
2928
+ if (!data.IsEmpty()) {
2929
+ obj->SetInternalField(imp::kDataIndex, data);
2930
+ }
2931
+
2932
+ tpl->SetCallAsFunctionHandler(imp::FunctionCallbackWrapper, obj);
2933
+ }
2934
+
2935
+ //=== Weak Persistent Handling =================================================
2936
+
2937
+ #include "nan_weak.h" // NOLINT(build/include)
2938
+
2939
+ //=== ObjectWrap ===============================================================
2940
+
2941
+ #include "nan_object_wrap.h" // NOLINT(build/include)
2942
+
2943
+ //=== HiddenValue/Private ======================================================
2944
+
2945
+ #include "nan_private.h" // NOLINT(build/include)
2946
+
2947
+ //=== Export ==================================================================
2948
+
2949
+ inline
2950
+ void
2951
+ Export(ADDON_REGISTER_FUNCTION_ARGS_TYPE target, const char *name,
2952
+ FunctionCallback f) {
2953
+ HandleScope scope;
2954
+
2955
+ Set(target, New<v8::String>(name).ToLocalChecked(),
2956
+ GetFunction(New<v8::FunctionTemplate>(f)).ToLocalChecked());
2957
+ }
2958
+
2959
+ //=== Tap Reverse Binding =====================================================
2960
+
2961
+ struct Tap {
2962
+ explicit Tap(v8::Local<v8::Value> t) : t_() {
2963
+ HandleScope scope;
2964
+
2965
+ t_.Reset(To<v8::Object>(t).ToLocalChecked());
2966
+ }
2967
+
2968
+ ~Tap() { t_.Reset(); } // not sure if necessary
2969
+
2970
+ inline void plan(int i) {
2971
+ HandleScope scope;
2972
+ v8::Local<v8::Value> arg = New(i);
2973
+ Call("plan", New(t_), 1, &arg);
2974
+ }
2975
+
2976
+ inline void ok(bool isOk, const char *msg = NULL) {
2977
+ HandleScope scope;
2978
+ v8::Local<v8::Value> args[2];
2979
+ args[0] = New(isOk);
2980
+ if (msg) args[1] = New(msg).ToLocalChecked();
2981
+ Call("ok", New(t_), msg ? 2 : 1, args);
2982
+ }
2983
+
2984
+ inline void pass(const char * msg = NULL) {
2985
+ HandleScope scope;
2986
+ v8::Local<v8::Value> hmsg;
2987
+ if (msg) hmsg = New(msg).ToLocalChecked();
2988
+ Call("pass", New(t_), msg ? 1 : 0, &hmsg);
2989
+ }
2990
+
2991
+ inline void end() {
2992
+ HandleScope scope;
2993
+ Call("end", New(t_), 0, NULL);
2994
+ }
2995
+
2996
+ private:
2997
+ Persistent<v8::Object> t_;
2998
+ };
2999
+
3000
+ #define NAN_STRINGIZE2(x) #x
3001
+ #define NAN_STRINGIZE(x) NAN_STRINGIZE2(x)
3002
+ #define NAN_TEST_EXPRESSION(expression) \
3003
+ ( expression ), __FILE__ ":" NAN_STRINGIZE(__LINE__) ": " #expression
3004
+
3005
+ #define NAN_EXPORT(target, function) Export(target, #function, function)
3006
+
3007
+ #undef TYPE_CHECK
3008
+
3009
+ //=== Generic Maybefication ===================================================
3010
+
3011
+ namespace imp {
3012
+
3013
+ template <typename T> struct Maybefier;
3014
+
3015
+ template <typename T> struct Maybefier<v8::Local<T> > {
3016
+ inline static MaybeLocal<T> convert(v8::Local<T> v) {
3017
+ return v;
3018
+ }
3019
+ };
3020
+
3021
+ template <typename T> struct Maybefier<MaybeLocal<T> > {
3022
+ inline static MaybeLocal<T> convert(MaybeLocal<T> v) {
3023
+ return v;
3024
+ }
3025
+ };
3026
+
3027
+ } // end of namespace imp
3028
+
3029
+ template <typename T, template <typename> class MaybeMaybe>
3030
+ inline MaybeLocal<T>
3031
+ MakeMaybe(MaybeMaybe<T> v) {
3032
+ return imp::Maybefier<MaybeMaybe<T> >::convert(v);
3033
+ }
3034
+
3035
+ //=== TypedArrayContents =======================================================
3036
+
3037
+ #include "nan_typedarray_contents.h" // NOLINT(build/include)
3038
+
3039
+ //=== JSON =====================================================================
3040
+
3041
+ #include "nan_json.h" // NOLINT(build/include)
3042
+
3043
+ //=== ScriptOrigin =============================================================
3044
+
3045
+ #include "nan_scriptorigin.h" // NOLINT(build/include)
3046
+
3047
+ } // end of namespace Nan
3048
+
3049
+ #endif // NAN_H_