@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,96 +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_TYPEDARRAY_CONTENTS_H_
10
- #define NAN_TYPEDARRAY_CONTENTS_H_
11
-
12
- template<typename T>
13
- class TypedArrayContents {
14
- public:
15
- inline explicit TypedArrayContents(v8::Local<v8::Value> from) :
16
- length_(0), data_(NULL) {
17
- HandleScope scope;
18
-
19
- size_t length = 0;
20
- void* data = NULL;
21
-
22
- #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
23
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
24
-
25
- if (from->IsArrayBufferView()) {
26
- v8::Local<v8::ArrayBufferView> array =
27
- v8::Local<v8::ArrayBufferView>::Cast(from);
28
-
29
- const size_t byte_length = array->ByteLength();
30
- const ptrdiff_t byte_offset = array->ByteOffset();
31
- v8::Local<v8::ArrayBuffer> buffer = array->Buffer();
32
-
33
- length = byte_length / sizeof(T);
34
- // Actually it's 7.9 here but this would lead to ABI issues with Node.js 13
35
- // using 7.8 till 13.2.0.
36
- #if (V8_MAJOR_VERSION >= 8)
37
- data = static_cast<char*>(buffer->GetBackingStore()->Data()) + byte_offset;
38
- #else
39
- data = static_cast<char*>(buffer->GetContents().Data()) + byte_offset;
40
- #endif
41
- }
42
-
43
- #else
44
-
45
- if (from->IsObject() && !from->IsNull()) {
46
- v8::Local<v8::Object> array = v8::Local<v8::Object>::Cast(from);
47
-
48
- MaybeLocal<v8::Value> buffer = Get(array,
49
- New<v8::String>("buffer").ToLocalChecked());
50
- MaybeLocal<v8::Value> byte_length = Get(array,
51
- New<v8::String>("byteLength").ToLocalChecked());
52
- MaybeLocal<v8::Value> byte_offset = Get(array,
53
- New<v8::String>("byteOffset").ToLocalChecked());
54
-
55
- if (!buffer.IsEmpty() &&
56
- !byte_length.IsEmpty() && byte_length.ToLocalChecked()->IsUint32() &&
57
- !byte_offset.IsEmpty() && byte_offset.ToLocalChecked()->IsUint32()) {
58
- data = array->GetIndexedPropertiesExternalArrayData();
59
- if(data) {
60
- length = byte_length.ToLocalChecked()->Uint32Value() / sizeof(T);
61
- }
62
- }
63
- }
64
-
65
- #endif
66
-
67
- #if defined(_MSC_VER) && _MSC_VER >= 1900 || __cplusplus >= 201103L
68
- assert(reinterpret_cast<uintptr_t>(data) % alignof (T) == 0);
69
- #elif defined(_MSC_VER) && _MSC_VER >= 1600 || defined(__GNUC__)
70
- assert(reinterpret_cast<uintptr_t>(data) % __alignof(T) == 0);
71
- #else
72
- assert(reinterpret_cast<uintptr_t>(data) % sizeof (T) == 0);
73
- #endif
74
-
75
- length_ = length;
76
- data_ = static_cast<T*>(data);
77
- }
78
-
79
- inline size_t length() const { return length_; }
80
- inline T* operator*() { return data_; }
81
- inline const T* operator*() const { return data_; }
82
-
83
- private:
84
- NAN_DISALLOW_ASSIGN_COPY_MOVE(TypedArrayContents)
85
-
86
- //Disable heap allocation
87
- void *operator new(size_t size);
88
- void operator delete(void *, size_t) {
89
- abort();
90
- }
91
-
92
- size_t length_;
93
- T* data_;
94
- };
95
-
96
- #endif // NAN_TYPEDARRAY_CONTENTS_H_
@@ -1,437 +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_WEAK_H_
10
- #define NAN_WEAK_H_
11
-
12
- static const int kInternalFieldsInWeakCallback = 2;
13
- static const int kNoInternalFieldIndex = -1;
14
-
15
- #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
16
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
17
- # define NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ \
18
- v8::WeakCallbackInfo<WeakCallbackInfo<T> > const&
19
- # define NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ \
20
- NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_
21
- # define NAN_WEAK_PARAMETER_CALLBACK_SIG_ NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_
22
- # define NAN_WEAK_TWOFIELD_CALLBACK_SIG_ NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_
23
- #elif NODE_MODULE_VERSION > IOJS_1_1_MODULE_VERSION
24
- # define NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ \
25
- v8::PhantomCallbackData<WeakCallbackInfo<T> > const&
26
- # define NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ \
27
- NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_
28
- # define NAN_WEAK_PARAMETER_CALLBACK_SIG_ NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_
29
- # define NAN_WEAK_TWOFIELD_CALLBACK_SIG_ NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_
30
- #elif NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION
31
- # define NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ \
32
- v8::PhantomCallbackData<WeakCallbackInfo<T> > const&
33
- # define NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ \
34
- v8::InternalFieldsCallbackData<WeakCallbackInfo<T>, void> const&
35
- # define NAN_WEAK_PARAMETER_CALLBACK_SIG_ NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_
36
- # define NAN_WEAK_TWOFIELD_CALLBACK_SIG_ NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_
37
- #elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
38
- # define NAN_WEAK_CALLBACK_DATA_TYPE_ \
39
- v8::WeakCallbackData<S, WeakCallbackInfo<T> > const&
40
- # define NAN_WEAK_CALLBACK_SIG_ NAN_WEAK_CALLBACK_DATA_TYPE_
41
- #else
42
- # define NAN_WEAK_CALLBACK_DATA_TYPE_ void *
43
- # define NAN_WEAK_CALLBACK_SIG_ \
44
- v8::Persistent<v8::Value>, NAN_WEAK_CALLBACK_DATA_TYPE_
45
- #endif
46
-
47
- template<typename T>
48
- class WeakCallbackInfo {
49
- public:
50
- typedef void (*Callback)(const WeakCallbackInfo<T>& data);
51
- WeakCallbackInfo(
52
- Persistent<v8::Value> *persistent
53
- , Callback callback
54
- , void *parameter
55
- , void *field1 = 0
56
- , void *field2 = 0) :
57
- callback_(callback), isolate_(0), parameter_(parameter) {
58
- std::memcpy(&persistent_, persistent, sizeof (v8::Persistent<v8::Value>));
59
- internal_fields_[0] = field1;
60
- internal_fields_[1] = field2;
61
- }
62
- inline v8::Isolate *GetIsolate() const { return isolate_; }
63
- inline T *GetParameter() const { return static_cast<T*>(parameter_); }
64
- inline void *GetInternalField(int index) const {
65
- assert((index == 0 || index == 1) && "internal field index out of bounds");
66
- if (index == 0) {
67
- return internal_fields_[0];
68
- } else {
69
- return internal_fields_[1];
70
- }
71
- }
72
-
73
- private:
74
- NAN_DISALLOW_ASSIGN_COPY_MOVE(WeakCallbackInfo)
75
- Callback callback_;
76
- v8::Isolate *isolate_;
77
- void *parameter_;
78
- void *internal_fields_[kInternalFieldsInWeakCallback];
79
- v8::Persistent<v8::Value> persistent_;
80
- template<typename S, typename M> friend class Persistent;
81
- template<typename S> friend class PersistentBase;
82
- #if NODE_MODULE_VERSION <= NODE_0_12_MODULE_VERSION
83
- # if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
84
- template<typename S>
85
- static void invoke(NAN_WEAK_CALLBACK_SIG_ data);
86
- template<typename S>
87
- static WeakCallbackInfo *unwrap(NAN_WEAK_CALLBACK_DATA_TYPE_ data);
88
- # else
89
- static void invoke(NAN_WEAK_CALLBACK_SIG_ data);
90
- static WeakCallbackInfo *unwrap(NAN_WEAK_CALLBACK_DATA_TYPE_ data);
91
- # endif
92
- #else
93
- # if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
94
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
95
- template<bool isFirstPass>
96
- static void invokeparameter(NAN_WEAK_PARAMETER_CALLBACK_SIG_ data);
97
- template<bool isFirstPass>
98
- static void invoketwofield(NAN_WEAK_TWOFIELD_CALLBACK_SIG_ data);
99
- # else
100
- static void invokeparameter(NAN_WEAK_PARAMETER_CALLBACK_SIG_ data);
101
- static void invoketwofield(NAN_WEAK_TWOFIELD_CALLBACK_SIG_ data);
102
- # endif
103
- static WeakCallbackInfo *unwrapparameter(
104
- NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ data);
105
- static WeakCallbackInfo *unwraptwofield(
106
- NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ data);
107
- #endif
108
- };
109
-
110
-
111
- #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
112
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
113
-
114
- template<typename T>
115
- template<bool isFirstPass>
116
- void
117
- WeakCallbackInfo<T>::invokeparameter(NAN_WEAK_PARAMETER_CALLBACK_SIG_ data) {
118
- WeakCallbackInfo<T> *cbinfo = unwrapparameter(data);
119
- if (isFirstPass) {
120
- cbinfo->persistent_.Reset();
121
- data.SetSecondPassCallback(invokeparameter<false>);
122
- } else {
123
- cbinfo->callback_(*cbinfo);
124
- delete cbinfo;
125
- }
126
- }
127
-
128
- template<typename T>
129
- template<bool isFirstPass>
130
- void
131
- WeakCallbackInfo<T>::invoketwofield(NAN_WEAK_TWOFIELD_CALLBACK_SIG_ data) {
132
- WeakCallbackInfo<T> *cbinfo = unwraptwofield(data);
133
- if (isFirstPass) {
134
- cbinfo->persistent_.Reset();
135
- data.SetSecondPassCallback(invoketwofield<false>);
136
- } else {
137
- cbinfo->callback_(*cbinfo);
138
- delete cbinfo;
139
- }
140
- }
141
-
142
- template<typename T>
143
- WeakCallbackInfo<T> *WeakCallbackInfo<T>::unwrapparameter(
144
- NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ data) {
145
- WeakCallbackInfo<T> *cbinfo =
146
- static_cast<WeakCallbackInfo<T>*>(data.GetParameter());
147
- cbinfo->isolate_ = data.GetIsolate();
148
- return cbinfo;
149
- }
150
-
151
- template<typename T>
152
- WeakCallbackInfo<T> *WeakCallbackInfo<T>::unwraptwofield(
153
- NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ data) {
154
- WeakCallbackInfo<T> *cbinfo =
155
- static_cast<WeakCallbackInfo<T>*>(data.GetInternalField(0));
156
- cbinfo->isolate_ = data.GetIsolate();
157
- return cbinfo;
158
- }
159
-
160
- #undef NAN_WEAK_PARAMETER_CALLBACK_SIG_
161
- #undef NAN_WEAK_TWOFIELD_CALLBACK_SIG_
162
- #undef NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_
163
- #undef NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_
164
- # elif NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION
165
-
166
- template<typename T>
167
- void
168
- WeakCallbackInfo<T>::invokeparameter(NAN_WEAK_PARAMETER_CALLBACK_SIG_ data) {
169
- WeakCallbackInfo<T> *cbinfo = unwrapparameter(data);
170
- cbinfo->persistent_.Reset();
171
- cbinfo->callback_(*cbinfo);
172
- delete cbinfo;
173
- }
174
-
175
- template<typename T>
176
- void
177
- WeakCallbackInfo<T>::invoketwofield(NAN_WEAK_TWOFIELD_CALLBACK_SIG_ data) {
178
- WeakCallbackInfo<T> *cbinfo = unwraptwofield(data);
179
- cbinfo->persistent_.Reset();
180
- cbinfo->callback_(*cbinfo);
181
- delete cbinfo;
182
- }
183
-
184
- template<typename T>
185
- WeakCallbackInfo<T> *WeakCallbackInfo<T>::unwrapparameter(
186
- NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ data) {
187
- WeakCallbackInfo<T> *cbinfo =
188
- static_cast<WeakCallbackInfo<T>*>(data.GetParameter());
189
- cbinfo->isolate_ = data.GetIsolate();
190
- return cbinfo;
191
- }
192
-
193
- template<typename T>
194
- WeakCallbackInfo<T> *WeakCallbackInfo<T>::unwraptwofield(
195
- NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ data) {
196
- WeakCallbackInfo<T> *cbinfo =
197
- static_cast<WeakCallbackInfo<T>*>(data.GetInternalField1());
198
- cbinfo->isolate_ = data.GetIsolate();
199
- return cbinfo;
200
- }
201
-
202
- #undef NAN_WEAK_PARAMETER_CALLBACK_SIG_
203
- #undef NAN_WEAK_TWOFIELD_CALLBACK_SIG_
204
- #undef NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_
205
- #undef NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_
206
- #elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
207
-
208
- template<typename T>
209
- template<typename S>
210
- void WeakCallbackInfo<T>::invoke(NAN_WEAK_CALLBACK_SIG_ data) {
211
- WeakCallbackInfo<T> *cbinfo = unwrap(data);
212
- cbinfo->persistent_.Reset();
213
- cbinfo->callback_(*cbinfo);
214
- delete cbinfo;
215
- }
216
-
217
- template<typename T>
218
- template<typename S>
219
- WeakCallbackInfo<T> *WeakCallbackInfo<T>::unwrap(
220
- NAN_WEAK_CALLBACK_DATA_TYPE_ data) {
221
- void *parameter = data.GetParameter();
222
- WeakCallbackInfo<T> *cbinfo =
223
- static_cast<WeakCallbackInfo<T>*>(parameter);
224
- cbinfo->isolate_ = data.GetIsolate();
225
- return cbinfo;
226
- }
227
-
228
- #undef NAN_WEAK_CALLBACK_SIG_
229
- #undef NAN_WEAK_CALLBACK_DATA_TYPE_
230
- #else
231
-
232
- template<typename T>
233
- void WeakCallbackInfo<T>::invoke(NAN_WEAK_CALLBACK_SIG_ data) {
234
- WeakCallbackInfo<T> *cbinfo = unwrap(data);
235
- cbinfo->persistent_.Dispose();
236
- cbinfo->persistent_.Clear();
237
- cbinfo->callback_(*cbinfo);
238
- delete cbinfo;
239
- }
240
-
241
- template<typename T>
242
- WeakCallbackInfo<T> *WeakCallbackInfo<T>::unwrap(
243
- NAN_WEAK_CALLBACK_DATA_TYPE_ data) {
244
- WeakCallbackInfo<T> *cbinfo =
245
- static_cast<WeakCallbackInfo<T>*>(data);
246
- cbinfo->isolate_ = v8::Isolate::GetCurrent();
247
- return cbinfo;
248
- }
249
-
250
- #undef NAN_WEAK_CALLBACK_SIG_
251
- #undef NAN_WEAK_CALLBACK_DATA_TYPE_
252
- #endif
253
-
254
- #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
255
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
256
- template<typename T, typename M>
257
- template<typename P>
258
- inline void Persistent<T, M>::SetWeak(
259
- P *parameter
260
- , typename WeakCallbackInfo<P>::Callback callback
261
- , WeakCallbackType type) {
262
- WeakCallbackInfo<P> *wcbd;
263
- if (type == WeakCallbackType::kParameter) {
264
- wcbd = new WeakCallbackInfo<P>(
265
- reinterpret_cast<Persistent<v8::Value>*>(this)
266
- , callback
267
- , parameter);
268
- v8::PersistentBase<T>::SetWeak(
269
- wcbd
270
- , WeakCallbackInfo<P>::template invokeparameter<true>
271
- , type);
272
- } else {
273
- v8::Local<v8::Value>* self_v(reinterpret_cast<v8::Local<v8::Value>*>(this));
274
- assert((*self_v)->IsObject());
275
- v8::Local<v8::Object> self((*self_v).As<v8::Object>());
276
- int count = self->InternalFieldCount();
277
- void *internal_fields[kInternalFieldsInWeakCallback] = {0, 0};
278
- for (int i = 0; i < count && i < kInternalFieldsInWeakCallback; i++) {
279
- internal_fields[i] = self->GetAlignedPointerFromInternalField(i);
280
- }
281
- wcbd = new WeakCallbackInfo<P>(
282
- reinterpret_cast<Persistent<v8::Value>*>(this)
283
- , callback
284
- , 0
285
- , internal_fields[0]
286
- , internal_fields[1]);
287
- self->SetAlignedPointerInInternalField(0, wcbd);
288
- v8::PersistentBase<T>::SetWeak(
289
- static_cast<WeakCallbackInfo<P>*>(0)
290
- , WeakCallbackInfo<P>::template invoketwofield<true>
291
- , type);
292
- }
293
- }
294
- #elif NODE_MODULE_VERSION > IOJS_1_1_MODULE_VERSION
295
- template<typename T, typename M>
296
- template<typename P>
297
- inline void Persistent<T, M>::SetWeak(
298
- P *parameter
299
- , typename WeakCallbackInfo<P>::Callback callback
300
- , WeakCallbackType type) {
301
- WeakCallbackInfo<P> *wcbd;
302
- if (type == WeakCallbackType::kParameter) {
303
- wcbd = new WeakCallbackInfo<P>(
304
- reinterpret_cast<Persistent<v8::Value>*>(this)
305
- , callback
306
- , parameter);
307
- v8::PersistentBase<T>::SetPhantom(
308
- wcbd
309
- , WeakCallbackInfo<P>::invokeparameter);
310
- } else {
311
- v8::Local<v8::Value>* self_v(reinterpret_cast<v8::Local<v8::Value>*>(this));
312
- assert((*self_v)->IsObject());
313
- v8::Local<v8::Object> self((*self_v).As<v8::Object>());
314
- int count = self->InternalFieldCount();
315
- void *internal_fields[kInternalFieldsInWeakCallback] = {0, 0};
316
- for (int i = 0; i < count && i < kInternalFieldsInWeakCallback; i++) {
317
- internal_fields[i] = self->GetAlignedPointerFromInternalField(i);
318
- }
319
- wcbd = new WeakCallbackInfo<P>(
320
- reinterpret_cast<Persistent<v8::Value>*>(this)
321
- , callback
322
- , 0
323
- , internal_fields[0]
324
- , internal_fields[1]);
325
- self->SetAlignedPointerInInternalField(0, wcbd);
326
- v8::PersistentBase<T>::SetPhantom(
327
- static_cast<WeakCallbackInfo<P>*>(0)
328
- , WeakCallbackInfo<P>::invoketwofield
329
- , 0
330
- , count > 1 ? 1 : kNoInternalFieldIndex);
331
- }
332
- }
333
- #elif NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION
334
- template<typename T, typename M>
335
- template<typename P>
336
- inline void Persistent<T, M>::SetWeak(
337
- P *parameter
338
- , typename WeakCallbackInfo<P>::Callback callback
339
- , WeakCallbackType type) {
340
- WeakCallbackInfo<P> *wcbd;
341
- if (type == WeakCallbackType::kParameter) {
342
- wcbd = new WeakCallbackInfo<P>(
343
- reinterpret_cast<Persistent<v8::Value>*>(this)
344
- , callback
345
- , parameter);
346
- v8::PersistentBase<T>::SetPhantom(
347
- wcbd
348
- , WeakCallbackInfo<P>::invokeparameter);
349
- } else {
350
- v8::Local<v8::Value>* self_v(reinterpret_cast<v8::Local<v8::Value>*>(this));
351
- assert((*self_v)->IsObject());
352
- v8::Local<v8::Object> self((*self_v).As<v8::Object>());
353
- int count = self->InternalFieldCount();
354
- void *internal_fields[kInternalFieldsInWeakCallback] = {0, 0};
355
- for (int i = 0; i < count && i < kInternalFieldsInWeakCallback; i++) {
356
- internal_fields[i] = self->GetAlignedPointerFromInternalField(i);
357
- }
358
- wcbd = new WeakCallbackInfo<P>(
359
- reinterpret_cast<Persistent<v8::Value>*>(this)
360
- , callback
361
- , 0
362
- , internal_fields[0]
363
- , internal_fields[1]);
364
- self->SetAlignedPointerInInternalField(0, wcbd);
365
- v8::PersistentBase<T>::SetPhantom(
366
- WeakCallbackInfo<P>::invoketwofield
367
- , 0
368
- , count > 1 ? 1 : kNoInternalFieldIndex);
369
- }
370
- }
371
- #elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
372
- template<typename T, typename M>
373
- template<typename P>
374
- inline void Persistent<T, M>::SetWeak(
375
- P *parameter
376
- , typename WeakCallbackInfo<P>::Callback callback
377
- , WeakCallbackType type) {
378
- WeakCallbackInfo<P> *wcbd;
379
- if (type == WeakCallbackType::kParameter) {
380
- wcbd = new WeakCallbackInfo<P>(
381
- reinterpret_cast<Persistent<v8::Value>*>(this)
382
- , callback
383
- , parameter);
384
- v8::PersistentBase<T>::SetWeak(wcbd, WeakCallbackInfo<P>::invoke);
385
- } else {
386
- v8::Local<v8::Value>* self_v(reinterpret_cast<v8::Local<v8::Value>*>(this));
387
- assert((*self_v)->IsObject());
388
- v8::Local<v8::Object> self((*self_v).As<v8::Object>());
389
- int count = self->InternalFieldCount();
390
- void *internal_fields[kInternalFieldsInWeakCallback] = {0, 0};
391
- for (int i = 0; i < count && i < kInternalFieldsInWeakCallback; i++) {
392
- internal_fields[i] = self->GetAlignedPointerFromInternalField(i);
393
- }
394
- wcbd = new WeakCallbackInfo<P>(
395
- reinterpret_cast<Persistent<v8::Value>*>(this)
396
- , callback
397
- , 0
398
- , internal_fields[0]
399
- , internal_fields[1]);
400
- v8::PersistentBase<T>::SetWeak(wcbd, WeakCallbackInfo<P>::invoke);
401
- }
402
- }
403
- #else
404
- template<typename T>
405
- template<typename P>
406
- inline void PersistentBase<T>::SetWeak(
407
- P *parameter
408
- , typename WeakCallbackInfo<P>::Callback callback
409
- , WeakCallbackType type) {
410
- WeakCallbackInfo<P> *wcbd;
411
- if (type == WeakCallbackType::kParameter) {
412
- wcbd = new WeakCallbackInfo<P>(
413
- reinterpret_cast<Persistent<v8::Value>*>(this)
414
- , callback
415
- , parameter);
416
- persistent.MakeWeak(wcbd, WeakCallbackInfo<P>::invoke);
417
- } else {
418
- v8::Local<v8::Value>* self_v(reinterpret_cast<v8::Local<v8::Value>*>(this));
419
- assert((*self_v)->IsObject());
420
- v8::Local<v8::Object> self((*self_v).As<v8::Object>());
421
- int count = self->InternalFieldCount();
422
- void *internal_fields[kInternalFieldsInWeakCallback] = {0, 0};
423
- for (int i = 0; i < count && i < kInternalFieldsInWeakCallback; i++) {
424
- internal_fields[i] = self->GetPointerFromInternalField(i);
425
- }
426
- wcbd = new WeakCallbackInfo<P>(
427
- reinterpret_cast<Persistent<v8::Value>*>(this)
428
- , callback
429
- , 0
430
- , internal_fields[0]
431
- , internal_fields[1]);
432
- persistent.MakeWeak(wcbd, WeakCallbackInfo<P>::invoke);
433
- }
434
- }
435
- #endif
436
-
437
- #endif // NAN_WEAK_H_
@@ -1,38 +0,0 @@
1
- {
2
- "name": "nan",
3
- "version": "2.22.2",
4
- "description": "Native Abstractions for Node.js: C++ header for Node 0.8 -> 22 compatibility",
5
- "main": "include_dirs.js",
6
- "repository": {
7
- "type": "git",
8
- "url": "git://github.com/nodejs/nan.git"
9
- },
10
- "scripts": {
11
- "test": "tap --gc --stderr test/js/*-test.js",
12
- "test:worker": "node --experimental-worker test/tap-as-worker.js --gc --stderr test/js/*-test.js",
13
- "rebuild-tests-2015": "node-gyp rebuild --msvs_version=2015 --directory test",
14
- "rebuild-tests": "node-gyp rebuild --directory test",
15
- "docs": "doc/.build.sh"
16
- },
17
- "contributors": [
18
- "Rod Vagg <r@va.gg> (https://github.com/rvagg)",
19
- "Benjamin Byholm <bbyholm@abo.fi> (https://github.com/kkoopa/)",
20
- "Trevor Norris <trev.norris@gmail.com> (https://github.com/trevnorris)",
21
- "Nathan Rajlich <nathan@tootallnate.net> (https://github.com/TooTallNate)",
22
- "Brett Lawson <brett19@gmail.com> (https://github.com/brett19)",
23
- "Ben Noordhuis <info@bnoordhuis.nl> (https://github.com/bnoordhuis)",
24
- "David Siegel <david@artcom.de> (https://github.com/agnat)",
25
- "Michael Ira Krufky <mkrufky@gmail.com> (https://github.com/mkrufky)"
26
- ],
27
- "devDependencies": {
28
- "bindings": "~1.2.1",
29
- "commander": "^2.8.1",
30
- "glob": "^5.0.14",
31
- "request": "=2.81.0",
32
- "node-gyp": "~v10.3.1",
33
- "readable-stream": "^2.1.4",
34
- "tap": "~0.7.1",
35
- "xtend": "~4.0.0"
36
- },
37
- "license": "MIT"
38
- }