@cloudbase/manager-node 4.3.2 → 4.3.4

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 (223) hide show
  1. package/lib/agent/index.js +70 -0
  2. package/lib/agent/type.js +2 -0
  3. package/lib/cloudrun/index.js +4 -36
  4. package/lib/environment.js +5 -0
  5. package/lib/function/index.js +9 -1
  6. package/lib/index.js +3 -0
  7. package/lib/utils/index.js +60 -3
  8. package/package.json +1 -1
  9. package/types/agent/index.d.ts +20 -0
  10. package/types/agent/type.d.ts +22 -0
  11. package/types/cloudrun/index.d.ts +3 -0
  12. package/types/environment.d.ts +3 -0
  13. package/types/index.d.ts +2 -0
  14. package/types/utils/index.d.ts +26 -2
  15. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/.ready +0 -0
  16. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/.travis.yml +0 -103
  17. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/ISSUE_TEMPLATE.md +0 -8
  18. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/LICENSE +0 -22
  19. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/Readme.md +0 -78
  20. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/binding.gyp +0 -21
  21. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/fsevents.cc +0 -88
  22. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/fsevents.js +0 -108
  23. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/install.js +0 -13
  24. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/package.json +0 -34
  25. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/vfs.js +0 -76
  26. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.eslintrc.js +0 -20
  27. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.prettierrc +0 -4
  28. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.ready +0 -0
  29. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/CHANGELOG.md +0 -310
  30. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/LICENSE +0 -21
  31. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/README.md +0 -344
  32. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/husky.js +0 -15
  33. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/checkGitDirEnv.js +0 -13
  34. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/debug.js +0 -8
  35. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/getConf.js +0 -15
  36. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/bin.js +0 -48
  37. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/getScript.js +0 -106
  38. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/gitRevParse.js +0 -29
  39. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/index.js +0 -151
  40. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/is.js +0 -24
  41. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/runner/bin.js +0 -16
  42. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/runner/index.js +0 -84
  43. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/upgrader/bin.js +0 -8
  44. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/upgrader/index.js +0 -65
  45. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/package.json +0 -114
  46. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/run.js +0 -14
  47. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/.github/workflows/ci.yml +0 -52
  48. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/.ready +0 -0
  49. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/CHANGELOG.md +0 -577
  50. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/CMakeLists.txt +0 -138
  51. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/LICENSE.md +0 -9
  52. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/README.md +0 -455
  53. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/asyncworker.md +0 -146
  54. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/buffers.md +0 -54
  55. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/callback.md +0 -76
  56. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/converters.md +0 -41
  57. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/errors.md +0 -226
  58. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/json.md +0 -62
  59. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/maybe_types.md +0 -583
  60. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/methods.md +0 -672
  61. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/new.md +0 -147
  62. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/node_misc.md +0 -123
  63. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/object_wrappers.md +0 -263
  64. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/persistent.md +0 -296
  65. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/scopes.md +0 -73
  66. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/script.md +0 -58
  67. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/string_bytes.md +0 -62
  68. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/v8_internals.md +0 -199
  69. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/v8_misc.md +0 -85
  70. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/include_dirs.js +0 -1
  71. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan.h +0 -3049
  72. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks.h +0 -128
  73. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks_12_inl.h +0 -676
  74. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks_pre_12_inl.h +0 -520
  75. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters.h +0 -72
  76. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters_43_inl.h +0 -68
  77. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters_pre_43_inl.h +0 -42
  78. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_define_own_property_helper.h +0 -29
  79. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_implementation_12_inl.h +0 -430
  80. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_implementation_pre_12_inl.h +0 -263
  81. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_json.h +0 -166
  82. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_maybe_43_inl.h +0 -356
  83. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_maybe_pre_43_inl.h +0 -268
  84. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_new.h +0 -340
  85. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_object_wrap.h +0 -156
  86. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_persistent_12_inl.h +0 -132
  87. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_persistent_pre_12_inl.h +0 -242
  88. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_private.h +0 -73
  89. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_scriptorigin.h +0 -95
  90. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_string_bytes.h +0 -305
  91. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_typedarray_contents.h +0 -96
  92. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_weak.h +0 -437
  93. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/package.json +0 -38
  94. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/1to2.js +0 -412
  95. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/README.md +0 -14
  96. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/package.json +0 -19
  97. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/.ready +0 -0
  98. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/.release-please-manifest.json +0 -3
  99. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CHANGELOG.md +0 -1053
  100. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CODE_OF_CONDUCT.md +0 -4
  101. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CONTRIBUTING.md +0 -34
  102. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/LICENSE +0 -24
  103. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/README.md +0 -273
  104. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/SECURITY.md +0 -2
  105. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/addon.gypi +0 -204
  106. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/bin/node-gyp.js +0 -138
  107. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/eslint.config.js +0 -3
  108. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/.release-please-manifest.json +0 -3
  109. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/LICENSE +0 -28
  110. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/data/ninja/build.ninja +0 -4
  111. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +0 -12
  112. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp +0 -8
  113. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp.bat +0 -5
  114. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp_main.py +0 -45
  115. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +0 -365
  116. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +0 -206
  117. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +0 -1272
  118. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +0 -1547
  119. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +0 -59
  120. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +0 -152
  121. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +0 -270
  122. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +0 -574
  123. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +0 -704
  124. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/common.py +0 -709
  125. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +0 -173
  126. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +0 -169
  127. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +0 -113
  128. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +0 -55
  129. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
  130. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +0 -805
  131. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +0 -1172
  132. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +0 -1319
  133. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +0 -128
  134. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +0 -104
  135. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +0 -462
  136. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +0 -89
  137. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +0 -56
  138. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +0 -2745
  139. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +0 -3976
  140. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +0 -44
  141. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +0 -2965
  142. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +0 -67
  143. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +0 -1391
  144. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +0 -26
  145. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/input.py +0 -3112
  146. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +0 -99
  147. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +0 -767
  148. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +0 -1260
  149. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +0 -174
  150. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +0 -61
  151. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +0 -373
  152. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +0 -1939
  153. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +0 -54
  154. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +0 -303
  155. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +0 -3196
  156. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +0 -65
  157. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE +0 -3
  158. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +0 -177
  159. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.BSD +0 -23
  160. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +0 -15
  161. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +0 -108
  162. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +0 -252
  163. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +0 -83
  164. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +0 -359
  165. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +0 -61
  166. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +0 -192
  167. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/markers.py +0 -252
  168. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +0 -825
  169. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/py.typed +0 -0
  170. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +0 -90
  171. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +0 -1030
  172. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/tags.py +0 -553
  173. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/utils.py +0 -172
  174. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/version.py +0 -563
  175. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pyproject.toml +0 -115
  176. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/release-please-config.json +0 -11
  177. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/test_gyp.py +0 -261
  178. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/Find-VisualStudio.cs +0 -250
  179. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/build.js +0 -230
  180. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/clean.js +0 -15
  181. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/configure.js +0 -328
  182. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/create-config-gypi.js +0 -153
  183. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/download.js +0 -39
  184. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-node-directory.js +0 -63
  185. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-python.js +0 -310
  186. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-visualstudio.js +0 -600
  187. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/install.js +0 -415
  188. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/list.js +0 -26
  189. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/log.js +0 -168
  190. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/node-gyp.js +0 -188
  191. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/process-release.js +0 -146
  192. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/rebuild.js +0 -12
  193. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/remove.js +0 -43
  194. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/util.js +0 -81
  195. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/macOS_Catalina_acid_test.sh +0 -21
  196. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/package.json +0 -52
  197. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/release-please-config.json +0 -40
  198. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/.prettierrc +0 -4
  199. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/.ready +0 -0
  200. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/CHANGELOG.md +0 -286
  201. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/LICENSE +0 -21
  202. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/README.md +0 -457
  203. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/index.js +0 -52
  204. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/lib/checkGrowl.js +0 -24
  205. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/lib/utils.js +0 -515
  206. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/balloon.js +0 -156
  207. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/growl.js +0 -76
  208. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/notificationcenter.js +0 -100
  209. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/notifysend.js +0 -94
  210. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/toaster.js +0 -100
  211. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/package.json +0 -72
  212. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/Info.plist +0 -63
  213. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/MacOS/terminal-notifier +0 -0
  214. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/PkgInfo +0 -1
  215. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/Resources/Terminal.icns +0 -0
  216. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/Resources/en.lproj/Credits.rtf +0 -29
  217. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/Resources/en.lproj/InfoPlist.strings +0 -0
  218. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/Resources/en.lproj/MainMenu.nib +0 -0
  219. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/notifu/notifu.exe +0 -0
  220. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/notifu/notifu64.exe +0 -0
  221. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/snoreToast/LICENSE +0 -165
  222. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/snoreToast/SnoreToast.exe +0 -0
  223. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/terminal-notifier-LICENSE +0 -9
@@ -1,520 +0,0 @@
1
- /*********************************************************************
2
- * NAN - Native Abstractions for Node.js
3
- *
4
- * Copyright (c) 2018 NAN contributors
5
- *
6
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
7
- ********************************************************************/
8
-
9
- #ifndef NAN_CALLBACKS_PRE_12_INL_H_
10
- #define NAN_CALLBACKS_PRE_12_INL_H_
11
-
12
- namespace imp {
13
- template<typename T> class ReturnValueImp;
14
- } // end of namespace imp
15
-
16
- template<typename T>
17
- class ReturnValue {
18
- v8::Isolate *isolate_;
19
- v8::Persistent<T> *value_;
20
- friend class imp::ReturnValueImp<T>;
21
-
22
- public:
23
- template <class S>
24
- explicit inline ReturnValue(v8::Isolate *isolate, v8::Persistent<S> *p) :
25
- isolate_(isolate), value_(p) {}
26
- template <class S>
27
- explicit inline ReturnValue(const ReturnValue<S>& that)
28
- : isolate_(that.isolate_), value_(that.value_) {
29
- TYPE_CHECK(T, S);
30
- }
31
-
32
- // Handle setters
33
- template <typename S> inline void Set(const v8::Local<S> &handle) {
34
- TYPE_CHECK(T, S);
35
- value_->Dispose();
36
- *value_ = v8::Persistent<T>::New(handle);
37
- }
38
-
39
- template <typename S> inline void Set(const Global<S> &handle) {
40
- TYPE_CHECK(T, S);
41
- value_->Dispose();
42
- *value_ = v8::Persistent<T>::New(handle.persistent);
43
- const_cast<Global<S> &>(handle).Reset();
44
- }
45
-
46
- // Fast primitive setters
47
- inline void Set(bool value) {
48
- v8::HandleScope scope;
49
-
50
- TYPE_CHECK(T, v8::Boolean);
51
- value_->Dispose();
52
- *value_ = v8::Persistent<T>::New(v8::Boolean::New(value));
53
- }
54
-
55
- inline void Set(double i) {
56
- v8::HandleScope scope;
57
-
58
- TYPE_CHECK(T, v8::Number);
59
- value_->Dispose();
60
- *value_ = v8::Persistent<T>::New(v8::Number::New(i));
61
- }
62
-
63
- inline void Set(int32_t i) {
64
- v8::HandleScope scope;
65
-
66
- TYPE_CHECK(T, v8::Integer);
67
- value_->Dispose();
68
- *value_ = v8::Persistent<T>::New(v8::Int32::New(i));
69
- }
70
-
71
- inline void Set(uint32_t i) {
72
- v8::HandleScope scope;
73
-
74
- TYPE_CHECK(T, v8::Integer);
75
- value_->Dispose();
76
- *value_ = v8::Persistent<T>::New(v8::Uint32::NewFromUnsigned(i));
77
- }
78
-
79
- // Fast JS primitive setters
80
- inline void SetNull() {
81
- v8::HandleScope scope;
82
-
83
- TYPE_CHECK(T, v8::Primitive);
84
- value_->Dispose();
85
- *value_ = v8::Persistent<T>::New(v8::Null());
86
- }
87
-
88
- inline void SetUndefined() {
89
- v8::HandleScope scope;
90
-
91
- TYPE_CHECK(T, v8::Primitive);
92
- value_->Dispose();
93
- *value_ = v8::Persistent<T>::New(v8::Undefined());
94
- }
95
-
96
- inline void SetEmptyString() {
97
- v8::HandleScope scope;
98
-
99
- TYPE_CHECK(T, v8::String);
100
- value_->Dispose();
101
- *value_ = v8::Persistent<T>::New(v8::String::Empty());
102
- }
103
-
104
- // Convenience getter for isolate
105
- inline v8::Isolate *GetIsolate() const {
106
- return isolate_;
107
- }
108
-
109
- // Pointer setter: Uncompilable to prevent inadvertent misuse.
110
- template<typename S>
111
- inline void Set(S *whatever) { TYPE_CHECK(S*, v8::Primitive); }
112
- };
113
-
114
- template<typename T>
115
- class FunctionCallbackInfo {
116
- const v8::Arguments &args_;
117
- v8::Local<v8::Value> data_;
118
- ReturnValue<T> return_value_;
119
- v8::Persistent<T> retval_;
120
-
121
- public:
122
- explicit inline FunctionCallbackInfo(
123
- const v8::Arguments &args
124
- , v8::Local<v8::Value> data) :
125
- args_(args)
126
- , data_(data)
127
- , return_value_(args.GetIsolate(), &retval_)
128
- , retval_(v8::Persistent<T>::New(v8::Undefined())) {}
129
-
130
- inline ~FunctionCallbackInfo() {
131
- retval_.Dispose();
132
- retval_.Clear();
133
- }
134
-
135
- inline ReturnValue<T> GetReturnValue() const {
136
- return ReturnValue<T>(return_value_);
137
- }
138
-
139
- inline v8::Local<v8::Function> Callee() const { return args_.Callee(); }
140
- inline v8::Local<v8::Value> Data() const { return data_; }
141
- inline v8::Local<v8::Object> Holder() const { return args_.Holder(); }
142
- inline bool IsConstructCall() const { return args_.IsConstructCall(); }
143
- inline int Length() const { return args_.Length(); }
144
- inline v8::Local<v8::Value> operator[](int i) const { return args_[i]; }
145
- inline v8::Local<v8::Object> This() const { return args_.This(); }
146
- inline v8::Isolate *GetIsolate() const { return args_.GetIsolate(); }
147
-
148
-
149
- protected:
150
- static const int kHolderIndex = 0;
151
- static const int kIsolateIndex = 1;
152
- static const int kReturnValueDefaultValueIndex = 2;
153
- static const int kReturnValueIndex = 3;
154
- static const int kDataIndex = 4;
155
- static const int kCalleeIndex = 5;
156
- static const int kContextSaveIndex = 6;
157
- static const int kArgsLength = 7;
158
-
159
- private:
160
- NAN_DISALLOW_ASSIGN_COPY_MOVE(FunctionCallbackInfo)
161
- };
162
-
163
- template<typename T>
164
- class PropertyCallbackInfoBase {
165
- const v8::AccessorInfo &info_;
166
- const v8::Local<v8::Value> data_;
167
-
168
- public:
169
- explicit inline PropertyCallbackInfoBase(
170
- const v8::AccessorInfo &info
171
- , const v8::Local<v8::Value> data) :
172
- info_(info)
173
- , data_(data) {}
174
-
175
- inline v8::Isolate* GetIsolate() const { return info_.GetIsolate(); }
176
- inline v8::Local<v8::Value> Data() const { return data_; }
177
- inline v8::Local<v8::Object> This() const { return info_.This(); }
178
- inline v8::Local<v8::Object> Holder() const { return info_.Holder(); }
179
-
180
- protected:
181
- static const int kHolderIndex = 0;
182
- static const int kIsolateIndex = 1;
183
- static const int kReturnValueDefaultValueIndex = 2;
184
- static const int kReturnValueIndex = 3;
185
- static const int kDataIndex = 4;
186
- static const int kThisIndex = 5;
187
- static const int kArgsLength = 6;
188
-
189
- private:
190
- NAN_DISALLOW_ASSIGN_COPY_MOVE(PropertyCallbackInfoBase)
191
- };
192
-
193
- template<typename T>
194
- class PropertyCallbackInfo : public PropertyCallbackInfoBase<T> {
195
- ReturnValue<T> return_value_;
196
- v8::Persistent<T> retval_;
197
-
198
- public:
199
- explicit inline PropertyCallbackInfo(
200
- const v8::AccessorInfo &info
201
- , const v8::Local<v8::Value> data) :
202
- PropertyCallbackInfoBase<T>(info, data)
203
- , return_value_(info.GetIsolate(), &retval_)
204
- , retval_(v8::Persistent<T>::New(v8::Undefined())) {}
205
-
206
- inline ~PropertyCallbackInfo() {
207
- retval_.Dispose();
208
- retval_.Clear();
209
- }
210
-
211
- inline ReturnValue<T> GetReturnValue() const { return return_value_; }
212
- };
213
-
214
- template<>
215
- class PropertyCallbackInfo<v8::Array> :
216
- public PropertyCallbackInfoBase<v8::Array> {
217
- ReturnValue<v8::Array> return_value_;
218
- v8::Persistent<v8::Array> retval_;
219
-
220
- public:
221
- explicit inline PropertyCallbackInfo(
222
- const v8::AccessorInfo &info
223
- , const v8::Local<v8::Value> data) :
224
- PropertyCallbackInfoBase<v8::Array>(info, data)
225
- , return_value_(info.GetIsolate(), &retval_)
226
- , retval_(v8::Persistent<v8::Array>::New(v8::Local<v8::Array>())) {}
227
-
228
- inline ~PropertyCallbackInfo() {
229
- retval_.Dispose();
230
- retval_.Clear();
231
- }
232
-
233
- inline ReturnValue<v8::Array> GetReturnValue() const {
234
- return return_value_;
235
- }
236
- };
237
-
238
- template<>
239
- class PropertyCallbackInfo<v8::Boolean> :
240
- public PropertyCallbackInfoBase<v8::Boolean> {
241
- ReturnValue<v8::Boolean> return_value_;
242
- v8::Persistent<v8::Boolean> retval_;
243
-
244
- public:
245
- explicit inline PropertyCallbackInfo(
246
- const v8::AccessorInfo &info
247
- , const v8::Local<v8::Value> data) :
248
- PropertyCallbackInfoBase<v8::Boolean>(info, data)
249
- , return_value_(info.GetIsolate(), &retval_)
250
- , retval_(v8::Persistent<v8::Boolean>::New(v8::Local<v8::Boolean>())) {}
251
-
252
- inline ~PropertyCallbackInfo() {
253
- retval_.Dispose();
254
- retval_.Clear();
255
- }
256
-
257
- inline ReturnValue<v8::Boolean> GetReturnValue() const {
258
- return return_value_;
259
- }
260
- };
261
-
262
- template<>
263
- class PropertyCallbackInfo<v8::Integer> :
264
- public PropertyCallbackInfoBase<v8::Integer> {
265
- ReturnValue<v8::Integer> return_value_;
266
- v8::Persistent<v8::Integer> retval_;
267
-
268
- public:
269
- explicit inline PropertyCallbackInfo(
270
- const v8::AccessorInfo &info
271
- , const v8::Local<v8::Value> data) :
272
- PropertyCallbackInfoBase<v8::Integer>(info, data)
273
- , return_value_(info.GetIsolate(), &retval_)
274
- , retval_(v8::Persistent<v8::Integer>::New(v8::Local<v8::Integer>())) {}
275
-
276
- inline ~PropertyCallbackInfo() {
277
- retval_.Dispose();
278
- retval_.Clear();
279
- }
280
-
281
- inline ReturnValue<v8::Integer> GetReturnValue() const {
282
- return return_value_;
283
- }
284
- };
285
-
286
- namespace imp {
287
- template<typename T>
288
- class ReturnValueImp : public ReturnValue<T> {
289
- public:
290
- explicit ReturnValueImp(ReturnValue<T> that) :
291
- ReturnValue<T>(that) {}
292
- inline v8::Handle<T> Value() {
293
- return *ReturnValue<T>::value_;
294
- }
295
- };
296
-
297
- static
298
- v8::Handle<v8::Value> FunctionCallbackWrapper(const v8::Arguments &args) {
299
- v8::Local<v8::Object> obj = args.Data().As<v8::Object>();
300
- FunctionCallback callback = reinterpret_cast<FunctionCallback>(
301
- reinterpret_cast<intptr_t>(
302
- obj->GetInternalField(kFunctionIndex).As<v8::External>()->Value()));
303
- FunctionCallbackInfo<v8::Value>
304
- cbinfo(args, obj->GetInternalField(kDataIndex));
305
- callback(cbinfo);
306
- return ReturnValueImp<v8::Value>(cbinfo.GetReturnValue()).Value();
307
- }
308
-
309
- typedef v8::Handle<v8::Value> (*NativeFunction)(const v8::Arguments &);
310
-
311
- static
312
- v8::Handle<v8::Value> GetterCallbackWrapper(
313
- v8::Local<v8::String> property, const v8::AccessorInfo &info) {
314
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
315
- PropertyCallbackInfo<v8::Value>
316
- cbinfo(info, obj->GetInternalField(kDataIndex));
317
- GetterCallback callback = reinterpret_cast<GetterCallback>(
318
- reinterpret_cast<intptr_t>(
319
- obj->GetInternalField(kGetterIndex).As<v8::External>()->Value()));
320
- callback(property, cbinfo);
321
- return ReturnValueImp<v8::Value>(cbinfo.GetReturnValue()).Value();
322
- }
323
-
324
- typedef v8::Handle<v8::Value> (*NativeGetter)
325
- (v8::Local<v8::String>, const v8::AccessorInfo &);
326
-
327
- static
328
- void SetterCallbackWrapper(
329
- v8::Local<v8::String> property
330
- , v8::Local<v8::Value> value
331
- , const v8::AccessorInfo &info) {
332
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
333
- PropertyCallbackInfo<void>
334
- cbinfo(info, obj->GetInternalField(kDataIndex));
335
- SetterCallback callback = reinterpret_cast<SetterCallback>(
336
- reinterpret_cast<intptr_t>(
337
- obj->GetInternalField(kSetterIndex).As<v8::External>()->Value()));
338
- callback(property, value, cbinfo);
339
- }
340
-
341
- typedef void (*NativeSetter)
342
- (v8::Local<v8::String>, v8::Local<v8::Value>, const v8::AccessorInfo &);
343
-
344
- static
345
- v8::Handle<v8::Value> PropertyGetterCallbackWrapper(
346
- v8::Local<v8::String> property, const v8::AccessorInfo &info) {
347
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
348
- PropertyCallbackInfo<v8::Value>
349
- cbinfo(info, obj->GetInternalField(kDataIndex));
350
- PropertyGetterCallback callback = reinterpret_cast<PropertyGetterCallback>(
351
- reinterpret_cast<intptr_t>(
352
- obj->GetInternalField(kPropertyGetterIndex)
353
- .As<v8::External>()->Value()));
354
- callback(property, cbinfo);
355
- return ReturnValueImp<v8::Value>(cbinfo.GetReturnValue()).Value();
356
- }
357
-
358
- typedef v8::Handle<v8::Value> (*NativePropertyGetter)
359
- (v8::Local<v8::String>, const v8::AccessorInfo &);
360
-
361
- static
362
- v8::Handle<v8::Value> PropertySetterCallbackWrapper(
363
- v8::Local<v8::String> property
364
- , v8::Local<v8::Value> value
365
- , const v8::AccessorInfo &info) {
366
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
367
- PropertyCallbackInfo<v8::Value>
368
- cbinfo(info, obj->GetInternalField(kDataIndex));
369
- PropertySetterCallback callback = reinterpret_cast<PropertySetterCallback>(
370
- reinterpret_cast<intptr_t>(
371
- obj->GetInternalField(kPropertySetterIndex)
372
- .As<v8::External>()->Value()));
373
- callback(property, value, cbinfo);
374
- return ReturnValueImp<v8::Value>(cbinfo.GetReturnValue()).Value();
375
- }
376
-
377
- typedef v8::Handle<v8::Value> (*NativePropertySetter)
378
- (v8::Local<v8::String>, v8::Local<v8::Value>, const v8::AccessorInfo &);
379
-
380
- static
381
- v8::Handle<v8::Array> PropertyEnumeratorCallbackWrapper(
382
- const v8::AccessorInfo &info) {
383
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
384
- PropertyCallbackInfo<v8::Array>
385
- cbinfo(info, obj->GetInternalField(kDataIndex));
386
- PropertyEnumeratorCallback callback =
387
- reinterpret_cast<PropertyEnumeratorCallback>(reinterpret_cast<intptr_t>(
388
- obj->GetInternalField(kPropertyEnumeratorIndex)
389
- .As<v8::External>()->Value()));
390
- callback(cbinfo);
391
- return ReturnValueImp<v8::Array>(cbinfo.GetReturnValue()).Value();
392
- }
393
-
394
- typedef v8::Handle<v8::Array> (*NativePropertyEnumerator)
395
- (const v8::AccessorInfo &);
396
-
397
- static
398
- v8::Handle<v8::Boolean> PropertyDeleterCallbackWrapper(
399
- v8::Local<v8::String> property
400
- , const v8::AccessorInfo &info) {
401
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
402
- PropertyCallbackInfo<v8::Boolean>
403
- cbinfo(info, obj->GetInternalField(kDataIndex));
404
- PropertyDeleterCallback callback = reinterpret_cast<PropertyDeleterCallback>(
405
- reinterpret_cast<intptr_t>(
406
- obj->GetInternalField(kPropertyDeleterIndex)
407
- .As<v8::External>()->Value()));
408
- callback(property, cbinfo);
409
- return ReturnValueImp<v8::Boolean>(cbinfo.GetReturnValue()).Value();
410
- }
411
-
412
- typedef v8::Handle<v8::Boolean> (NativePropertyDeleter)
413
- (v8::Local<v8::String>, const v8::AccessorInfo &);
414
-
415
- static
416
- v8::Handle<v8::Integer> PropertyQueryCallbackWrapper(
417
- v8::Local<v8::String> property, const v8::AccessorInfo &info) {
418
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
419
- PropertyCallbackInfo<v8::Integer>
420
- cbinfo(info, obj->GetInternalField(kDataIndex));
421
- PropertyQueryCallback callback = reinterpret_cast<PropertyQueryCallback>(
422
- reinterpret_cast<intptr_t>(
423
- obj->GetInternalField(kPropertyQueryIndex)
424
- .As<v8::External>()->Value()));
425
- callback(property, cbinfo);
426
- return ReturnValueImp<v8::Integer>(cbinfo.GetReturnValue()).Value();
427
- }
428
-
429
- typedef v8::Handle<v8::Integer> (*NativePropertyQuery)
430
- (v8::Local<v8::String>, const v8::AccessorInfo &);
431
-
432
- static
433
- v8::Handle<v8::Value> IndexGetterCallbackWrapper(
434
- uint32_t index, const v8::AccessorInfo &info) {
435
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
436
- PropertyCallbackInfo<v8::Value>
437
- cbinfo(info, obj->GetInternalField(kDataIndex));
438
- IndexGetterCallback callback = reinterpret_cast<IndexGetterCallback>(
439
- reinterpret_cast<intptr_t>(
440
- obj->GetInternalField(kIndexPropertyGetterIndex)
441
- .As<v8::External>()->Value()));
442
- callback(index, cbinfo);
443
- return ReturnValueImp<v8::Value>(cbinfo.GetReturnValue()).Value();
444
- }
445
-
446
- typedef v8::Handle<v8::Value> (*NativeIndexGetter)
447
- (uint32_t, const v8::AccessorInfo &);
448
-
449
- static
450
- v8::Handle<v8::Value> IndexSetterCallbackWrapper(
451
- uint32_t index
452
- , v8::Local<v8::Value> value
453
- , const v8::AccessorInfo &info) {
454
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
455
- PropertyCallbackInfo<v8::Value>
456
- cbinfo(info, obj->GetInternalField(kDataIndex));
457
- IndexSetterCallback callback = reinterpret_cast<IndexSetterCallback>(
458
- reinterpret_cast<intptr_t>(
459
- obj->GetInternalField(kIndexPropertySetterIndex)
460
- .As<v8::External>()->Value()));
461
- callback(index, value, cbinfo);
462
- return ReturnValueImp<v8::Value>(cbinfo.GetReturnValue()).Value();
463
- }
464
-
465
- typedef v8::Handle<v8::Value> (*NativeIndexSetter)
466
- (uint32_t, v8::Local<v8::Value>, const v8::AccessorInfo &);
467
-
468
- static
469
- v8::Handle<v8::Array> IndexEnumeratorCallbackWrapper(
470
- const v8::AccessorInfo &info) {
471
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
472
- PropertyCallbackInfo<v8::Array>
473
- cbinfo(info, obj->GetInternalField(kDataIndex));
474
- IndexEnumeratorCallback callback = reinterpret_cast<IndexEnumeratorCallback>(
475
- reinterpret_cast<intptr_t>(
476
- obj->GetInternalField(kIndexPropertyEnumeratorIndex)
477
- .As<v8::External>()->Value()));
478
- callback(cbinfo);
479
- return ReturnValueImp<v8::Array>(cbinfo.GetReturnValue()).Value();
480
- }
481
-
482
- typedef v8::Handle<v8::Array> (*NativeIndexEnumerator)
483
- (const v8::AccessorInfo &);
484
-
485
- static
486
- v8::Handle<v8::Boolean> IndexDeleterCallbackWrapper(
487
- uint32_t index, const v8::AccessorInfo &info) {
488
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
489
- PropertyCallbackInfo<v8::Boolean>
490
- cbinfo(info, obj->GetInternalField(kDataIndex));
491
- IndexDeleterCallback callback = reinterpret_cast<IndexDeleterCallback>(
492
- reinterpret_cast<intptr_t>(
493
- obj->GetInternalField(kIndexPropertyDeleterIndex)
494
- .As<v8::External>()->Value()));
495
- callback(index, cbinfo);
496
- return ReturnValueImp<v8::Boolean>(cbinfo.GetReturnValue()).Value();
497
- }
498
-
499
- typedef v8::Handle<v8::Boolean> (*NativeIndexDeleter)
500
- (uint32_t, const v8::AccessorInfo &);
501
-
502
- static
503
- v8::Handle<v8::Integer> IndexQueryCallbackWrapper(
504
- uint32_t index, const v8::AccessorInfo &info) {
505
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
506
- PropertyCallbackInfo<v8::Integer>
507
- cbinfo(info, obj->GetInternalField(kDataIndex));
508
- IndexQueryCallback callback = reinterpret_cast<IndexQueryCallback>(
509
- reinterpret_cast<intptr_t>(
510
- obj->GetInternalField(kIndexPropertyQueryIndex)
511
- .As<v8::External>()->Value()));
512
- callback(index, cbinfo);
513
- return ReturnValueImp<v8::Integer>(cbinfo.GetReturnValue()).Value();
514
- }
515
-
516
- typedef v8::Handle<v8::Integer> (*NativeIndexQuery)
517
- (uint32_t, const v8::AccessorInfo &);
518
- } // end of namespace imp
519
-
520
- #endif // NAN_CALLBACKS_PRE_12_INL_H_
@@ -1,72 +0,0 @@
1
- /*********************************************************************
2
- * NAN - Native Abstractions for Node.js
3
- *
4
- * Copyright (c) 2018 NAN contributors
5
- *
6
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
7
- ********************************************************************/
8
-
9
- #ifndef NAN_CONVERTERS_H_
10
- #define NAN_CONVERTERS_H_
11
-
12
- namespace imp {
13
- template<typename T> struct ToFactoryBase {
14
- typedef MaybeLocal<T> return_t;
15
- };
16
- template<typename T> struct ValueFactoryBase { typedef Maybe<T> return_t; };
17
-
18
- template<typename T> struct ToFactory;
19
-
20
- template<>
21
- struct ToFactory<v8::Function> : ToFactoryBase<v8::Function> {
22
- static inline return_t convert(v8::Local<v8::Value> val) {
23
- if (val.IsEmpty() || !val->IsFunction()) return MaybeLocal<v8::Function>();
24
- return MaybeLocal<v8::Function>(val.As<v8::Function>());
25
- }
26
- };
27
-
28
- #define X(TYPE) \
29
- template<> \
30
- struct ToFactory<v8::TYPE> : ToFactoryBase<v8::TYPE> { \
31
- static inline return_t convert(v8::Local<v8::Value> val); \
32
- };
33
-
34
- X(Boolean)
35
- X(Number)
36
- X(String)
37
- X(Object)
38
- X(Integer)
39
- X(Uint32)
40
- X(Int32)
41
-
42
- #undef X
43
-
44
- #define X(TYPE) \
45
- template<> \
46
- struct ToFactory<TYPE> : ValueFactoryBase<TYPE> { \
47
- static inline return_t convert(v8::Local<v8::Value> val); \
48
- };
49
-
50
- X(bool)
51
- X(double)
52
- X(int64_t)
53
- X(uint32_t)
54
- X(int32_t)
55
-
56
- #undef X
57
- } // end of namespace imp
58
-
59
- template<typename T>
60
- inline
61
- typename imp::ToFactory<T>::return_t To(v8::Local<v8::Value> val) {
62
- return imp::ToFactory<T>::convert(val);
63
- }
64
-
65
- #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
66
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
67
- # include "nan_converters_43_inl.h"
68
- #else
69
- # include "nan_converters_pre_43_inl.h"
70
- #endif
71
-
72
- #endif // NAN_CONVERTERS_H_
@@ -1,68 +0,0 @@
1
- /*********************************************************************
2
- * NAN - Native Abstractions for Node.js
3
- *
4
- * Copyright (c) 2018 NAN contributors
5
- *
6
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
7
- ********************************************************************/
8
-
9
- #ifndef NAN_CONVERTERS_43_INL_H_
10
- #define NAN_CONVERTERS_43_INL_H_
11
-
12
- #define X(TYPE) \
13
- imp::ToFactory<v8::TYPE>::return_t \
14
- imp::ToFactory<v8::TYPE>::convert(v8::Local<v8::Value> val) { \
15
- v8::Isolate *isolate = v8::Isolate::GetCurrent(); \
16
- v8::EscapableHandleScope scope(isolate); \
17
- return scope.Escape( \
18
- val->To ## TYPE(isolate->GetCurrentContext()) \
19
- .FromMaybe(v8::Local<v8::TYPE>())); \
20
- }
21
-
22
- X(Number)
23
- X(String)
24
- X(Object)
25
- X(Integer)
26
- X(Uint32)
27
- X(Int32)
28
- // V8 <= 7.0
29
- #if V8_MAJOR_VERSION < 7 || (V8_MAJOR_VERSION == 7 && V8_MINOR_VERSION == 0)
30
- X(Boolean)
31
- #else
32
- imp::ToFactory<v8::Boolean>::return_t \
33
- imp::ToFactory<v8::Boolean>::convert(v8::Local<v8::Value> val) { \
34
- v8::Isolate *isolate = v8::Isolate::GetCurrent(); \
35
- v8::EscapableHandleScope scope(isolate); \
36
- return scope.Escape(val->ToBoolean(isolate)); \
37
- }
38
- #endif
39
-
40
- #undef X
41
-
42
- #define X(TYPE, NAME) \
43
- imp::ToFactory<TYPE>::return_t \
44
- imp::ToFactory<TYPE>::convert(v8::Local<v8::Value> val) { \
45
- v8::Isolate *isolate = v8::Isolate::GetCurrent(); \
46
- v8::HandleScope scope(isolate); \
47
- return val->NAME ## Value(isolate->GetCurrentContext()); \
48
- }
49
-
50
- X(double, Number)
51
- X(int64_t, Integer)
52
- X(uint32_t, Uint32)
53
- X(int32_t, Int32)
54
- // V8 <= 7.0
55
- #if V8_MAJOR_VERSION < 7 || (V8_MAJOR_VERSION == 7 && V8_MINOR_VERSION == 0)
56
- X(bool, Boolean)
57
- #else
58
- imp::ToFactory<bool>::return_t \
59
- imp::ToFactory<bool>::convert(v8::Local<v8::Value> val) { \
60
- v8::Isolate *isolate = v8::Isolate::GetCurrent(); \
61
- v8::HandleScope scope(isolate); \
62
- return Just<bool>(val->BooleanValue(isolate)); \
63
- }
64
- #endif
65
-
66
- #undef X
67
-
68
- #endif // NAN_CONVERTERS_43_INL_H_
@@ -1,42 +0,0 @@
1
- /*********************************************************************
2
- * NAN - Native Abstractions for Node.js
3
- *
4
- * Copyright (c) 2018 NAN contributors
5
- *
6
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
7
- ********************************************************************/
8
-
9
- #ifndef NAN_CONVERTERS_PRE_43_INL_H_
10
- #define NAN_CONVERTERS_PRE_43_INL_H_
11
-
12
- #define X(TYPE) \
13
- imp::ToFactory<v8::TYPE>::return_t \
14
- imp::ToFactory<v8::TYPE>::convert(v8::Local<v8::Value> val) { \
15
- return val->To ## TYPE(); \
16
- }
17
-
18
- X(Boolean)
19
- X(Number)
20
- X(String)
21
- X(Object)
22
- X(Integer)
23
- X(Uint32)
24
- X(Int32)
25
-
26
- #undef X
27
-
28
- #define X(TYPE, NAME) \
29
- imp::ToFactory<TYPE>::return_t \
30
- imp::ToFactory<TYPE>::convert(v8::Local<v8::Value> val) { \
31
- return Just(val->NAME ## Value()); \
32
- }
33
-
34
- X(bool, Boolean)
35
- X(double, Number)
36
- X(int64_t, Integer)
37
- X(uint32_t, Uint32)
38
- X(int32_t, Int32)
39
-
40
- #undef X
41
-
42
- #endif // NAN_CONVERTERS_PRE_43_INL_H_