@cloudbase/manager-node 4.3.3 → 4.4.0

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 (215) hide show
  1. package/lib/function/index.js +85 -12
  2. package/lib/utils/index.js +39 -1
  3. package/package.json +1 -1
  4. package/types/function/index.d.ts +38 -12
  5. package/types/interfaces/function.interface.d.ts +33 -0
  6. package/types/utils/index.d.ts +9 -0
  7. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/.ready +0 -0
  8. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/.travis.yml +0 -103
  9. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/ISSUE_TEMPLATE.md +0 -8
  10. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/LICENSE +0 -22
  11. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/Readme.md +0 -78
  12. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/binding.gyp +0 -21
  13. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/fsevents.cc +0 -88
  14. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/fsevents.js +0 -108
  15. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/install.js +0 -13
  16. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/package.json +0 -34
  17. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/vfs.js +0 -76
  18. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.eslintrc.js +0 -20
  19. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.prettierrc +0 -4
  20. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.ready +0 -0
  21. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/CHANGELOG.md +0 -310
  22. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/LICENSE +0 -21
  23. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/README.md +0 -344
  24. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/husky.js +0 -15
  25. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/checkGitDirEnv.js +0 -13
  26. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/debug.js +0 -8
  27. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/getConf.js +0 -15
  28. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/bin.js +0 -48
  29. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/getScript.js +0 -106
  30. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/gitRevParse.js +0 -29
  31. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/index.js +0 -151
  32. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/is.js +0 -24
  33. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/runner/bin.js +0 -16
  34. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/runner/index.js +0 -84
  35. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/upgrader/bin.js +0 -8
  36. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/upgrader/index.js +0 -65
  37. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/package.json +0 -114
  38. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/run.js +0 -14
  39. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/.github/workflows/ci.yml +0 -52
  40. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/.ready +0 -0
  41. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/CHANGELOG.md +0 -577
  42. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/CMakeLists.txt +0 -138
  43. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/LICENSE.md +0 -9
  44. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/README.md +0 -455
  45. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/asyncworker.md +0 -146
  46. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/buffers.md +0 -54
  47. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/callback.md +0 -76
  48. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/converters.md +0 -41
  49. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/errors.md +0 -226
  50. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/json.md +0 -62
  51. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/maybe_types.md +0 -583
  52. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/methods.md +0 -672
  53. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/new.md +0 -147
  54. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/node_misc.md +0 -123
  55. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/object_wrappers.md +0 -263
  56. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/persistent.md +0 -296
  57. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/scopes.md +0 -73
  58. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/script.md +0 -58
  59. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/string_bytes.md +0 -62
  60. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/v8_internals.md +0 -199
  61. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/v8_misc.md +0 -85
  62. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/include_dirs.js +0 -1
  63. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan.h +0 -3049
  64. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks.h +0 -128
  65. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks_12_inl.h +0 -676
  66. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks_pre_12_inl.h +0 -520
  67. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters.h +0 -72
  68. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters_43_inl.h +0 -68
  69. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters_pre_43_inl.h +0 -42
  70. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_define_own_property_helper.h +0 -29
  71. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_implementation_12_inl.h +0 -430
  72. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_implementation_pre_12_inl.h +0 -263
  73. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_json.h +0 -166
  74. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_maybe_43_inl.h +0 -356
  75. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_maybe_pre_43_inl.h +0 -268
  76. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_new.h +0 -340
  77. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_object_wrap.h +0 -156
  78. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_persistent_12_inl.h +0 -132
  79. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_persistent_pre_12_inl.h +0 -242
  80. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_private.h +0 -73
  81. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_scriptorigin.h +0 -95
  82. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_string_bytes.h +0 -305
  83. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_typedarray_contents.h +0 -96
  84. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_weak.h +0 -437
  85. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/package.json +0 -38
  86. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/1to2.js +0 -412
  87. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/README.md +0 -14
  88. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/package.json +0 -19
  89. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/.ready +0 -0
  90. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/.release-please-manifest.json +0 -3
  91. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CHANGELOG.md +0 -1053
  92. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CODE_OF_CONDUCT.md +0 -4
  93. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CONTRIBUTING.md +0 -34
  94. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/LICENSE +0 -24
  95. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/README.md +0 -273
  96. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/SECURITY.md +0 -2
  97. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/addon.gypi +0 -204
  98. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/bin/node-gyp.js +0 -138
  99. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/eslint.config.js +0 -3
  100. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/.release-please-manifest.json +0 -3
  101. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/LICENSE +0 -28
  102. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/data/ninja/build.ninja +0 -4
  103. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +0 -12
  104. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp +0 -8
  105. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp.bat +0 -5
  106. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp_main.py +0 -45
  107. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +0 -365
  108. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +0 -206
  109. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +0 -1272
  110. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +0 -1547
  111. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +0 -59
  112. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +0 -152
  113. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +0 -270
  114. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +0 -574
  115. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +0 -704
  116. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/common.py +0 -709
  117. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +0 -173
  118. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +0 -169
  119. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +0 -113
  120. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +0 -55
  121. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
  122. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +0 -805
  123. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +0 -1172
  124. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +0 -1319
  125. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +0 -128
  126. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +0 -104
  127. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +0 -462
  128. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +0 -89
  129. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +0 -56
  130. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +0 -2745
  131. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +0 -3976
  132. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +0 -44
  133. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +0 -2965
  134. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +0 -67
  135. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +0 -1391
  136. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +0 -26
  137. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/input.py +0 -3112
  138. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +0 -99
  139. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +0 -767
  140. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +0 -1260
  141. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +0 -174
  142. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +0 -61
  143. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +0 -373
  144. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +0 -1939
  145. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +0 -54
  146. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +0 -303
  147. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +0 -3196
  148. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +0 -65
  149. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE +0 -3
  150. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +0 -177
  151. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.BSD +0 -23
  152. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +0 -15
  153. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +0 -108
  154. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +0 -252
  155. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +0 -83
  156. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +0 -359
  157. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +0 -61
  158. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +0 -192
  159. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/markers.py +0 -252
  160. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +0 -825
  161. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/py.typed +0 -0
  162. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +0 -90
  163. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +0 -1030
  164. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/tags.py +0 -553
  165. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/utils.py +0 -172
  166. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/version.py +0 -563
  167. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pyproject.toml +0 -115
  168. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/release-please-config.json +0 -11
  169. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/test_gyp.py +0 -261
  170. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/Find-VisualStudio.cs +0 -250
  171. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/build.js +0 -230
  172. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/clean.js +0 -15
  173. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/configure.js +0 -328
  174. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/create-config-gypi.js +0 -153
  175. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/download.js +0 -39
  176. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-node-directory.js +0 -63
  177. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-python.js +0 -310
  178. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-visualstudio.js +0 -600
  179. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/install.js +0 -415
  180. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/list.js +0 -26
  181. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/log.js +0 -168
  182. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/node-gyp.js +0 -188
  183. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/process-release.js +0 -146
  184. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/rebuild.js +0 -12
  185. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/remove.js +0 -43
  186. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/util.js +0 -81
  187. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/macOS_Catalina_acid_test.sh +0 -21
  188. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/package.json +0 -52
  189. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/release-please-config.json +0 -40
  190. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/.prettierrc +0 -4
  191. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/.ready +0 -0
  192. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/CHANGELOG.md +0 -286
  193. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/LICENSE +0 -21
  194. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/README.md +0 -457
  195. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/index.js +0 -52
  196. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/lib/checkGrowl.js +0 -24
  197. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/lib/utils.js +0 -515
  198. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/balloon.js +0 -156
  199. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/growl.js +0 -76
  200. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/notificationcenter.js +0 -100
  201. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/notifysend.js +0 -94
  202. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/toaster.js +0 -100
  203. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/package.json +0 -72
  204. 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
  205. 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
  206. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/PkgInfo +0 -1
  207. 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
  208. 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
  209. 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
  210. 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
  211. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/notifu/notifu.exe +0 -0
  212. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/notifu/notifu64.exe +0 -0
  213. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/snoreToast/LICENSE +0 -165
  214. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/snoreToast/SnoreToast.exe +0 -0
  215. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/terminal-notifier-LICENSE +0 -9
@@ -1,340 +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_NEW_H_
10
- #define NAN_NEW_H_
11
-
12
- namespace imp { // scnr
13
-
14
- // TODO(agnat): Generalize
15
- template <typename T> v8::Local<T> To(v8::Local<v8::Integer> i);
16
-
17
- template <>
18
- inline
19
- v8::Local<v8::Integer>
20
- To<v8::Integer>(v8::Local<v8::Integer> i) {
21
- return Nan::To<v8::Integer>(i).ToLocalChecked();
22
- }
23
-
24
- template <>
25
- inline
26
- v8::Local<v8::Int32>
27
- To<v8::Int32>(v8::Local<v8::Integer> i) {
28
- return Nan::To<v8::Int32>(i).ToLocalChecked();
29
- }
30
-
31
- template <>
32
- inline
33
- v8::Local<v8::Uint32>
34
- To<v8::Uint32>(v8::Local<v8::Integer> i) {
35
- return Nan::To<v8::Uint32>(i).ToLocalChecked();
36
- }
37
-
38
- template <typename T> struct FactoryBase {
39
- typedef v8::Local<T> return_t;
40
- };
41
-
42
- template <typename T> struct MaybeFactoryBase {
43
- typedef MaybeLocal<T> return_t;
44
- };
45
-
46
- template <typename T> struct Factory;
47
-
48
- template <>
49
- struct Factory<v8::Array> : FactoryBase<v8::Array> {
50
- static inline return_t New();
51
- static inline return_t New(int length);
52
- };
53
-
54
- template <>
55
- struct Factory<v8::Boolean> : FactoryBase<v8::Boolean> {
56
- static inline return_t New(bool value);
57
- };
58
-
59
- template <>
60
- struct Factory<v8::BooleanObject> : FactoryBase<v8::BooleanObject> {
61
- static inline return_t New(bool value);
62
- };
63
-
64
- template <>
65
- struct Factory<v8::Context> : FactoryBase<v8::Context> {
66
- static inline
67
- return_t
68
- New( v8::ExtensionConfiguration* extensions = NULL
69
- , v8::Local<v8::ObjectTemplate> tmpl = v8::Local<v8::ObjectTemplate>()
70
- , v8::Local<v8::Value> obj = v8::Local<v8::Value>());
71
- };
72
-
73
- template <>
74
- struct Factory<v8::Date> : MaybeFactoryBase<v8::Date> {
75
- static inline return_t New(double value);
76
- };
77
-
78
- template <>
79
- struct Factory<v8::External> : FactoryBase<v8::External> {
80
- static inline return_t New(void *value);
81
- };
82
-
83
- template <>
84
- struct Factory<v8::Function> : FactoryBase<v8::Function> {
85
- static inline
86
- return_t
87
- New( FunctionCallback callback
88
- , v8::Local<v8::Value> data = v8::Local<v8::Value>());
89
- };
90
-
91
- template <>
92
- struct Factory<v8::FunctionTemplate> : FactoryBase<v8::FunctionTemplate> {
93
- static inline
94
- return_t
95
- New( FunctionCallback callback = NULL
96
- , v8::Local<v8::Value> data = v8::Local<v8::Value>()
97
- , v8::Local<v8::Signature> signature = v8::Local<v8::Signature>());
98
- };
99
-
100
- template <>
101
- struct Factory<v8::Number> : FactoryBase<v8::Number> {
102
- static inline return_t New(double value);
103
- };
104
-
105
- template <>
106
- struct Factory<v8::NumberObject> : FactoryBase<v8::NumberObject> {
107
- static inline return_t New(double value);
108
- };
109
-
110
- template <typename T>
111
- struct IntegerFactory : FactoryBase<T> {
112
- typedef typename FactoryBase<T>::return_t return_t;
113
- static inline return_t New(int32_t value);
114
- static inline return_t New(uint32_t value);
115
- };
116
-
117
- template <>
118
- struct Factory<v8::Integer> : IntegerFactory<v8::Integer> {};
119
-
120
- template <>
121
- struct Factory<v8::Int32> : IntegerFactory<v8::Int32> {};
122
-
123
- template <>
124
- struct Factory<v8::Uint32> : FactoryBase<v8::Uint32> {
125
- static inline return_t New(int32_t value);
126
- static inline return_t New(uint32_t value);
127
- };
128
-
129
- template <>
130
- struct Factory<v8::Object> : FactoryBase<v8::Object> {
131
- static inline return_t New();
132
- };
133
-
134
- template <>
135
- struct Factory<v8::ObjectTemplate> : FactoryBase<v8::ObjectTemplate> {
136
- static inline return_t New();
137
- };
138
-
139
- template <>
140
- struct Factory<v8::RegExp> : MaybeFactoryBase<v8::RegExp> {
141
- static inline return_t New(
142
- v8::Local<v8::String> pattern, v8::RegExp::Flags flags);
143
- };
144
-
145
- template <>
146
- struct Factory<v8::Script> : MaybeFactoryBase<v8::Script> {
147
- static inline return_t New( v8::Local<v8::String> source);
148
- static inline return_t New( v8::Local<v8::String> source
149
- , v8::ScriptOrigin const& origin);
150
- };
151
-
152
- template <>
153
- struct Factory<v8::Signature> : FactoryBase<v8::Signature> {
154
- typedef v8::Local<v8::FunctionTemplate> FTH;
155
- static inline return_t New(FTH receiver = FTH());
156
- };
157
-
158
- template <>
159
- struct Factory<v8::String> : MaybeFactoryBase<v8::String> {
160
- static inline return_t New();
161
- static inline return_t New(const char *value, int length = -1);
162
- static inline return_t New(const uint16_t *value, int length = -1);
163
- static inline return_t New(std::string const& value);
164
-
165
- static inline return_t New(v8::String::ExternalStringResource * value);
166
- static inline return_t New(ExternalOneByteStringResource * value);
167
- };
168
-
169
- template <>
170
- struct Factory<v8::StringObject> : FactoryBase<v8::StringObject> {
171
- static inline return_t New(v8::Local<v8::String> value);
172
- };
173
-
174
- } // end of namespace imp
175
-
176
- #if (NODE_MODULE_VERSION >= 12)
177
-
178
- namespace imp {
179
-
180
- template <>
181
- struct Factory<v8::UnboundScript> : MaybeFactoryBase<v8::UnboundScript> {
182
- static inline return_t New( v8::Local<v8::String> source);
183
- static inline return_t New( v8::Local<v8::String> source
184
- , v8::ScriptOrigin const& origin);
185
- };
186
-
187
- } // end of namespace imp
188
-
189
- # include "nan_implementation_12_inl.h"
190
-
191
- #else // NODE_MODULE_VERSION >= 12
192
-
193
- # include "nan_implementation_pre_12_inl.h"
194
-
195
- #endif
196
-
197
- //=== API ======================================================================
198
-
199
- template <typename T>
200
- typename imp::Factory<T>::return_t
201
- New() {
202
- return imp::Factory<T>::New();
203
- }
204
-
205
- template <typename T, typename A0>
206
- typename imp::Factory<T>::return_t
207
- New(A0 arg0) {
208
- return imp::Factory<T>::New(arg0);
209
- }
210
-
211
- template <typename T, typename A0, typename A1>
212
- typename imp::Factory<T>::return_t
213
- New(A0 arg0, A1 arg1) {
214
- return imp::Factory<T>::New(arg0, arg1);
215
- }
216
-
217
- template <typename T, typename A0, typename A1, typename A2>
218
- typename imp::Factory<T>::return_t
219
- New(A0 arg0, A1 arg1, A2 arg2) {
220
- return imp::Factory<T>::New(arg0, arg1, arg2);
221
- }
222
-
223
- template <typename T, typename A0, typename A1, typename A2, typename A3>
224
- typename imp::Factory<T>::return_t
225
- New(A0 arg0, A1 arg1, A2 arg2, A3 arg3) {
226
- return imp::Factory<T>::New(arg0, arg1, arg2, arg3);
227
- }
228
-
229
- // Note(agnat): When passing overloaded function pointers to template functions
230
- // as generic arguments the compiler needs help in picking the right overload.
231
- // These two functions handle New<Function> and New<FunctionTemplate> with
232
- // all argument variations.
233
-
234
- // v8::Function and v8::FunctionTemplate with one or two arguments
235
- template <typename T>
236
- typename imp::Factory<T>::return_t
237
- New( FunctionCallback callback
238
- , v8::Local<v8::Value> data = v8::Local<v8::Value>()) {
239
- return imp::Factory<T>::New(callback, data);
240
- }
241
-
242
- // v8::Function and v8::FunctionTemplate with three arguments
243
- template <typename T, typename A2>
244
- typename imp::Factory<T>::return_t
245
- New( FunctionCallback callback
246
- , v8::Local<v8::Value> data = v8::Local<v8::Value>()
247
- , A2 a2 = A2()) {
248
- return imp::Factory<T>::New(callback, data, a2);
249
- }
250
-
251
- // Convenience
252
-
253
- #if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
254
- template <typename T> inline v8::Local<T> New(v8::Handle<T> h);
255
- #endif
256
-
257
- #if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
258
- template <typename T, typename M>
259
- inline v8::Local<T> New(v8::Persistent<T, M> const& p);
260
- #else
261
- template <typename T> inline v8::Local<T> New(v8::Persistent<T> const& p);
262
- #endif
263
- template <typename T, typename M>
264
- inline v8::Local<T> New(Persistent<T, M> const& p);
265
- template <typename T>
266
- inline v8::Local<T> New(Global<T> const& p);
267
-
268
- inline
269
- imp::Factory<v8::Boolean>::return_t
270
- New(bool value) {
271
- return New<v8::Boolean>(value);
272
- }
273
-
274
- inline
275
- imp::Factory<v8::Int32>::return_t
276
- New(int32_t value) {
277
- return New<v8::Int32>(value);
278
- }
279
-
280
- inline
281
- imp::Factory<v8::Uint32>::return_t
282
- New(uint32_t value) {
283
- return New<v8::Uint32>(value);
284
- }
285
-
286
- inline
287
- imp::Factory<v8::Number>::return_t
288
- New(double value) {
289
- return New<v8::Number>(value);
290
- }
291
-
292
- inline
293
- imp::Factory<v8::String>::return_t
294
- New(std::string const& value) { // NOLINT(build/include_what_you_use)
295
- return New<v8::String>(value);
296
- }
297
-
298
- inline
299
- imp::Factory<v8::String>::return_t
300
- New(const char * value, int length) {
301
- return New<v8::String>(value, length);
302
- }
303
-
304
- inline
305
- imp::Factory<v8::String>::return_t
306
- New(const uint16_t * value, int length) {
307
- return New<v8::String>(value, length);
308
- }
309
-
310
- inline
311
- imp::Factory<v8::String>::return_t
312
- New(const char * value) {
313
- return New<v8::String>(value);
314
- }
315
-
316
- inline
317
- imp::Factory<v8::String>::return_t
318
- New(const uint16_t * value) {
319
- return New<v8::String>(value);
320
- }
321
-
322
- inline
323
- imp::Factory<v8::String>::return_t
324
- New(v8::String::ExternalStringResource * value) {
325
- return New<v8::String>(value);
326
- }
327
-
328
- inline
329
- imp::Factory<v8::String>::return_t
330
- New(ExternalOneByteStringResource * value) {
331
- return New<v8::String>(value);
332
- }
333
-
334
- inline
335
- imp::Factory<v8::RegExp>::return_t
336
- New(v8::Local<v8::String> pattern, v8::RegExp::Flags flags) {
337
- return New<v8::RegExp>(pattern, flags);
338
- }
339
-
340
- #endif // NAN_NEW_H_
@@ -1,156 +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_OBJECT_WRAP_H_
10
- #define NAN_OBJECT_WRAP_H_
11
-
12
- class ObjectWrap {
13
- public:
14
- ObjectWrap() {
15
- refs_ = 0;
16
- }
17
-
18
-
19
- virtual ~ObjectWrap() {
20
- if (persistent().IsEmpty()) {
21
- return;
22
- }
23
-
24
- persistent().ClearWeak();
25
- persistent().Reset();
26
- }
27
-
28
-
29
- template <class T>
30
- static inline T* Unwrap(v8::Local<v8::Object> object) {
31
- assert(!object.IsEmpty());
32
- assert(object->InternalFieldCount() > 0);
33
- // Cast to ObjectWrap before casting to T. A direct cast from void
34
- // to T won't work right when T has more than one base class.
35
- void* ptr = GetInternalFieldPointer(object, 0);
36
- ObjectWrap* wrap = static_cast<ObjectWrap*>(ptr);
37
- return static_cast<T*>(wrap);
38
- }
39
-
40
-
41
- inline v8::Local<v8::Object> handle() const {
42
- return New(handle_);
43
- }
44
-
45
-
46
- inline Persistent<v8::Object>& persistent() {
47
- return handle_;
48
- }
49
-
50
-
51
- protected:
52
- inline void Wrap(v8::Local<v8::Object> object) {
53
- assert(persistent().IsEmpty());
54
- assert(object->InternalFieldCount() > 0);
55
- SetInternalFieldPointer(object, 0, this);
56
- persistent().Reset(object);
57
- MakeWeak();
58
- }
59
-
60
- #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
61
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
62
-
63
- inline void MakeWeak() {
64
- persistent().v8::PersistentBase<v8::Object>::SetWeak(
65
- this, WeakCallback, v8::WeakCallbackType::kParameter);
66
- #if NODE_MAJOR_VERSION < 10
67
- // FIXME(bnoordhuis) Probably superfluous in older Node.js versions too.
68
- persistent().MarkIndependent();
69
- #endif
70
- }
71
-
72
- #elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
73
-
74
- inline void MakeWeak() {
75
- persistent().v8::PersistentBase<v8::Object>::SetWeak(this, WeakCallback);
76
- persistent().MarkIndependent();
77
- }
78
-
79
- #else
80
-
81
- inline void MakeWeak() {
82
- persistent().persistent.MakeWeak(this, WeakCallback);
83
- persistent().MarkIndependent();
84
- }
85
-
86
- #endif
87
-
88
- /* Ref() marks the object as being attached to an event loop.
89
- * Refed objects will not be garbage collected, even if
90
- * all references are lost.
91
- */
92
- virtual void Ref() {
93
- assert(!persistent().IsEmpty());
94
- persistent().ClearWeak();
95
- refs_++;
96
- }
97
-
98
- /* Unref() marks an object as detached from the event loop. This is its
99
- * default state. When an object with a "weak" reference changes from
100
- * attached to detached state it will be freed. Be careful not to access
101
- * the object after making this call as it might be gone!
102
- * (A "weak reference" means an object that only has a
103
- * persistent handle.)
104
- *
105
- * DO NOT CALL THIS FROM DESTRUCTOR
106
- */
107
- virtual void Unref() {
108
- assert(!persistent().IsEmpty());
109
- assert(!persistent().IsWeak());
110
- assert(refs_ > 0);
111
- if (--refs_ == 0)
112
- MakeWeak();
113
- }
114
-
115
- int refs_; // ro
116
-
117
- private:
118
- NAN_DISALLOW_ASSIGN_COPY_MOVE(ObjectWrap)
119
- #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
120
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
121
-
122
- static void
123
- WeakCallback(v8::WeakCallbackInfo<ObjectWrap> const& info) {
124
- ObjectWrap* wrap = info.GetParameter();
125
- assert(wrap->refs_ == 0);
126
- wrap->handle_.Reset();
127
- delete wrap;
128
- }
129
-
130
- #elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
131
-
132
- static void
133
- WeakCallback(v8::WeakCallbackData<v8::Object, ObjectWrap> const& data) {
134
- ObjectWrap* wrap = data.GetParameter();
135
- assert(wrap->refs_ == 0);
136
- assert(wrap->handle_.IsNearDeath());
137
- wrap->handle_.Reset();
138
- delete wrap;
139
- }
140
-
141
- #else
142
-
143
- static void WeakCallback(v8::Persistent<v8::Value> value, void *data) {
144
- ObjectWrap *wrap = static_cast<ObjectWrap*>(data);
145
- assert(wrap->refs_ == 0);
146
- assert(wrap->handle_.IsNearDeath());
147
- wrap->handle_.Reset();
148
- delete wrap;
149
- }
150
-
151
- #endif
152
- Persistent<v8::Object> handle_;
153
- };
154
-
155
-
156
- #endif // NAN_OBJECT_WRAP_H_
@@ -1,132 +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_PERSISTENT_12_INL_H_
10
- #define NAN_PERSISTENT_12_INL_H_
11
-
12
- template<typename T, typename M> class Persistent :
13
- public v8::Persistent<T, M> {
14
- public:
15
- inline Persistent() : v8::Persistent<T, M>() {}
16
-
17
- template<typename S> inline Persistent(v8::Local<S> that) :
18
- v8::Persistent<T, M>(v8::Isolate::GetCurrent(), that) {}
19
-
20
- template<typename S, typename M2>
21
- inline
22
- Persistent(const v8::Persistent<S, M2> &that) : // NOLINT(runtime/explicit)
23
- v8::Persistent<T, M2>(v8::Isolate::GetCurrent(), that) {}
24
-
25
- inline void Reset() { v8::PersistentBase<T>::Reset(); }
26
-
27
- template <typename S>
28
- inline void Reset(const v8::Local<S> &other) {
29
- v8::PersistentBase<T>::Reset(v8::Isolate::GetCurrent(), other);
30
- }
31
-
32
- template <typename S>
33
- inline void Reset(const v8::PersistentBase<S> &other) {
34
- v8::PersistentBase<T>::Reset(v8::Isolate::GetCurrent(), other);
35
- }
36
-
37
- template<typename P>
38
- inline void SetWeak(
39
- P *parameter
40
- , typename WeakCallbackInfo<P>::Callback callback
41
- , WeakCallbackType type);
42
-
43
- private:
44
- inline T *operator*() const { return *PersistentBase<T>::persistent; }
45
-
46
- template<typename S, typename M2>
47
- inline void Copy(const Persistent<S, M2> &that) {
48
- TYPE_CHECK(T, S);
49
-
50
- this->Reset();
51
-
52
- if (!that.IsEmpty()) {
53
- this->Reset(that);
54
- M::Copy(that, this);
55
- }
56
- }
57
- };
58
-
59
- #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
60
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
61
- template<typename T>
62
- class Global : public v8::Global<T> {
63
- public:
64
- inline Global() : v8::Global<T>() {}
65
-
66
- template<typename S> inline Global(v8::Local<S> that) :
67
- v8::Global<T>(v8::Isolate::GetCurrent(), that) {}
68
-
69
- template<typename S>
70
- inline
71
- Global(const v8::PersistentBase<S> &that) : // NOLINT(runtime/explicit)
72
- v8::Global<S>(v8::Isolate::GetCurrent(), that) {}
73
-
74
- inline void Reset() { v8::PersistentBase<T>::Reset(); }
75
-
76
- template <typename S>
77
- inline void Reset(const v8::Local<S> &other) {
78
- v8::PersistentBase<T>::Reset(v8::Isolate::GetCurrent(), other);
79
- }
80
-
81
- template <typename S>
82
- inline void Reset(const v8::PersistentBase<S> &other) {
83
- v8::PersistentBase<T>::Reset(v8::Isolate::GetCurrent(), other);
84
- }
85
-
86
- template<typename P>
87
- inline void SetWeak(
88
- P *parameter
89
- , typename WeakCallbackInfo<P>::Callback callback
90
- , WeakCallbackType type) {
91
- reinterpret_cast<Persistent<T>*>(this)->SetWeak(
92
- parameter, callback, type);
93
- }
94
- };
95
- #else
96
- template<typename T>
97
- class Global : public v8::UniquePersistent<T> {
98
- public:
99
- inline Global() : v8::UniquePersistent<T>() {}
100
-
101
- template<typename S> inline Global(v8::Local<S> that) :
102
- v8::UniquePersistent<T>(v8::Isolate::GetCurrent(), that) {}
103
-
104
- template<typename S>
105
- inline
106
- Global(const v8::PersistentBase<S> &that) : // NOLINT(runtime/explicit)
107
- v8::UniquePersistent<S>(v8::Isolate::GetCurrent(), that) {}
108
-
109
- inline void Reset() { v8::PersistentBase<T>::Reset(); }
110
-
111
- template <typename S>
112
- inline void Reset(const v8::Local<S> &other) {
113
- v8::PersistentBase<T>::Reset(v8::Isolate::GetCurrent(), other);
114
- }
115
-
116
- template <typename S>
117
- inline void Reset(const v8::PersistentBase<S> &other) {
118
- v8::PersistentBase<T>::Reset(v8::Isolate::GetCurrent(), other);
119
- }
120
-
121
- template<typename P>
122
- inline void SetWeak(
123
- P *parameter
124
- , typename WeakCallbackInfo<P>::Callback callback
125
- , WeakCallbackType type) {
126
- reinterpret_cast<Persistent<T>*>(this)->SetWeak(
127
- parameter, callback, type);
128
- }
129
- };
130
- #endif
131
-
132
- #endif // NAN_PERSISTENT_12_INL_H_