@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,296 +0,0 @@
1
- ## Persistent references
2
-
3
- An object reference that is independent of any `HandleScope` is a _persistent_ reference. Where a `Local` handle only lives as long as the `HandleScope` in which it was allocated, a `Persistent` handle remains valid until it is explicitly disposed.
4
-
5
- Due to the evolution of the V8 API, it is necessary for NAN to provide a wrapper implementation of the `Persistent` classes to supply compatibility across the V8 versions supported.
6
-
7
- - <a href="#api_nan_persistent_base"><b><code>Nan::PersistentBase & v8::PersistentBase</code></b></a>
8
- - <a href="#api_nan_non_copyable_persistent_traits"><b><code>Nan::NonCopyablePersistentTraits & v8::NonCopyablePersistentTraits</code></b></a>
9
- - <a href="#api_nan_copyable_persistent_traits"><b><code>Nan::CopyablePersistentTraits & v8::CopyablePersistentTraits</code></b></a>
10
- - <a href="#api_nan_persistent"><b><code>Nan::Persistent</code></b></a>
11
- - <a href="#api_nan_global"><b><code>Nan::Global</code></b></a>
12
- - <a href="#api_nan_weak_callback_info"><b><code>Nan::WeakCallbackInfo</code></b></a>
13
- - <a href="#api_nan_weak_callback_type"><b><code>Nan::WeakCallbackType</code></b></a>
14
-
15
- Also see the V8 Embedders Guide section on [Handles and Garbage Collection](https://v8.dev/docs/embed#handles-and-garbage-collection).
16
-
17
- <a name="api_nan_persistent_base"></a>
18
- ### Nan::PersistentBase & v8::PersistentBase
19
-
20
- A persistent handle contains a reference to a storage cell in V8 which holds an object value and which is updated by the garbage collector whenever the object is moved. A new storage cell can be created using the constructor or `Nan::PersistentBase::Reset()`. Existing handles can be disposed using an argument-less `Nan::PersistentBase::Reset()`.
21
-
22
- Definition:
23
-
24
- _(note: this is implemented as `Nan::PersistentBase` for older versions of V8 and the native `v8::PersistentBase` is used for newer versions of V8)_
25
-
26
- ```c++
27
- template<typename T> class PersistentBase {
28
- public:
29
- /**
30
- * If non-empty, destroy the underlying storage cell
31
- */
32
- void Reset();
33
-
34
- /**
35
- * If non-empty, destroy the underlying storage cell and create a new one with
36
- * the contents of another if it is also non-empty
37
- */
38
- template<typename S> void Reset(const v8::Local<S> &other);
39
-
40
- /**
41
- * If non-empty, destroy the underlying storage cell and create a new one with
42
- * the contents of another if it is also non-empty
43
- */
44
- template<typename S> void Reset(const PersistentBase<S> &other);
45
-
46
- /** Returns true if the handle is empty. */
47
- bool IsEmpty() const;
48
-
49
- /**
50
- * If non-empty, destroy the underlying storage cell
51
- * IsEmpty() will return true after this call.
52
- */
53
- void Empty();
54
-
55
- template<typename S> bool operator==(const PersistentBase<S> &that);
56
-
57
- template<typename S> bool operator==(const v8::Local<S> &that);
58
-
59
- template<typename S> bool operator!=(const PersistentBase<S> &that);
60
-
61
- template<typename S> bool operator!=(const v8::Local<S> &that);
62
-
63
- /**
64
- * Install a finalization callback on this object.
65
- * NOTE: There is no guarantee as to *when* or even *if* the callback is
66
- * invoked. The invocation is performed solely on a best effort basis.
67
- * As always, GC-based finalization should *not* be relied upon for any
68
- * critical form of resource management! At the moment you can either
69
- * specify a parameter for the callback or the location of two internal
70
- * fields in the dying object.
71
- */
72
- template<typename P>
73
- void SetWeak(P *parameter,
74
- typename WeakCallbackInfo<P>::Callback callback,
75
- WeakCallbackType type);
76
-
77
- void ClearWeak();
78
-
79
- /**
80
- * Marks the reference to this object independent. Garbage collector is free
81
- * to ignore any object groups containing this object. Weak callback for an
82
- * independent handle should not assume that it will be preceded by a global
83
- * GC prologue callback or followed by a global GC epilogue callback.
84
- */
85
- void MarkIndependent() const;
86
-
87
- bool IsIndependent() const;
88
-
89
- /** Checks if the handle holds the only reference to an object. */
90
- bool IsNearDeath() const;
91
-
92
- /** Returns true if the handle's reference is weak. */
93
- bool IsWeak() const
94
- };
95
- ```
96
-
97
- See the V8 documentation for [`PersistentBase`](https://v8docs.nodesource.com/node-8.16/d4/dca/classv8_1_1_persistent_base.html) for further information.
98
-
99
- **Tip:** To get a `v8::Local` reference to the original object back from a `PersistentBase` or `Persistent` object:
100
-
101
- ```c++
102
- v8::Local<v8::Object> object = Nan::New(persistent);
103
- ```
104
-
105
- <a name="api_nan_non_copyable_persistent_traits"></a>
106
- ### Nan::NonCopyablePersistentTraits & v8::NonCopyablePersistentTraits
107
-
108
- Default traits for `Nan::Persistent`. This class does not allow use of the a copy constructor or assignment operator. At present `kResetInDestructor` is not set, but that will change in a future version.
109
-
110
- Definition:
111
-
112
- _(note: this is implemented as `Nan::NonCopyablePersistentTraits` for older versions of V8 and the native `v8::NonCopyablePersistentTraits` is used for newer versions of V8)_
113
-
114
- ```c++
115
- template<typename T> class NonCopyablePersistentTraits {
116
- public:
117
- typedef Persistent<T, NonCopyablePersistentTraits<T> > NonCopyablePersistent;
118
-
119
- static const bool kResetInDestructor = false;
120
-
121
- template<typename S, typename M>
122
- static void Copy(const Persistent<S, M> &source,
123
- NonCopyablePersistent *dest);
124
-
125
- template<typename O> static void Uncompilable();
126
- };
127
- ```
128
-
129
- See the V8 documentation for [`NonCopyablePersistentTraits`](https://v8docs.nodesource.com/node-8.16/de/d73/classv8_1_1_non_copyable_persistent_traits.html) for further information.
130
-
131
- <a name="api_nan_copyable_persistent_traits"></a>
132
- ### Nan::CopyablePersistentTraits & v8::CopyablePersistentTraits
133
-
134
- A helper class of traits to allow copying and assignment of `Persistent`. This will clone the contents of storage cell, but not any of the flags, etc..
135
-
136
- Definition:
137
-
138
- _(note: this is implemented as `Nan::CopyablePersistentTraits` for older versions of V8 and the native `v8::NonCopyablePersistentTraits` is used for newer versions of V8)_
139
-
140
- ```c++
141
- template<typename T>
142
- class CopyablePersistentTraits {
143
- public:
144
- typedef Persistent<T, CopyablePersistentTraits<T> > CopyablePersistent;
145
-
146
- static const bool kResetInDestructor = true;
147
-
148
- template<typename S, typename M>
149
- static void Copy(const Persistent<S, M> &source,
150
- CopyablePersistent *dest);
151
- };
152
- ```
153
-
154
- See the V8 documentation for [`CopyablePersistentTraits`](https://v8docs.nodesource.com/node-8.16/da/d5c/structv8_1_1_copyable_persistent_traits.html) for further information.
155
-
156
- <a name="api_nan_persistent"></a>
157
- ### Nan::Persistent
158
-
159
- A type of `PersistentBase` which allows copy and assignment. Copy, assignment and destructor behavior is controlled by the traits class `M`.
160
-
161
- Definition:
162
-
163
- ```c++
164
- template<typename T, typename M = NonCopyablePersistentTraits<T> >
165
- class Persistent;
166
-
167
- template<typename T, typename M> class Persistent : public PersistentBase<T> {
168
- public:
169
- /**
170
- * A Persistent with no storage cell.
171
- */
172
- Persistent();
173
-
174
- /**
175
- * Construct a Persistent from a v8::Local. When the v8::Local is non-empty, a
176
- * new storage cell is created pointing to the same object, and no flags are
177
- * set.
178
- */
179
- template<typename S> Persistent(v8::Local<S> that);
180
-
181
- /**
182
- * Construct a Persistent from a Persistent. When the Persistent is non-empty,
183
- * a new storage cell is created pointing to the same object, and no flags are
184
- * set.
185
- */
186
- Persistent(const Persistent &that);
187
-
188
- /**
189
- * The copy constructors and assignment operator create a Persistent exactly
190
- * as the Persistent constructor, but the Copy function from the traits class
191
- * is called, allowing the setting of flags based on the copied Persistent.
192
- */
193
- Persistent &operator=(const Persistent &that);
194
-
195
- template <typename S, typename M2>
196
- Persistent &operator=(const Persistent<S, M2> &that);
197
-
198
- /**
199
- * The destructor will dispose the Persistent based on the kResetInDestructor
200
- * flags in the traits class. Since not calling dispose can result in a
201
- * memory leak, it is recommended to always set this flag.
202
- */
203
- ~Persistent();
204
- };
205
- ```
206
-
207
- See the V8 documentation for [`Persistent`](https://v8docs.nodesource.com/node-8.16/d2/d78/classv8_1_1_persistent.html) for further information.
208
-
209
- <a name="api_nan_global"></a>
210
- ### Nan::Global
211
-
212
- A type of `PersistentBase` which has move semantics.
213
-
214
- ```c++
215
- template<typename T> class Global : public PersistentBase<T> {
216
- public:
217
- /**
218
- * A Global with no storage cell.
219
- */
220
- Global();
221
-
222
- /**
223
- * Construct a Global from a v8::Local. When the v8::Local is non-empty, a new
224
- * storage cell is created pointing to the same object, and no flags are set.
225
- */
226
- template<typename S> Global(v8::Local<S> that);
227
- /**
228
- * Construct a Global from a PersistentBase. When the Persistent is non-empty,
229
- * a new storage cell is created pointing to the same object, and no flags are
230
- * set.
231
- */
232
- template<typename S> Global(const PersistentBase<S> &that);
233
-
234
- /**
235
- * Pass allows returning globals from functions, etc.
236
- */
237
- Global Pass();
238
- };
239
- ```
240
-
241
- See the V8 documentation for [`Global`](https://v8docs.nodesource.com/node-8.16/d5/d40/classv8_1_1_global.html) for further information.
242
-
243
- <a name="api_nan_weak_callback_info"></a>
244
- ### Nan::WeakCallbackInfo
245
-
246
- `Nan::WeakCallbackInfo` is used as an argument when setting a persistent reference as weak. You may need to free any external resources attached to the object. It is a mirror of `v8:WeakCallbackInfo` as found in newer versions of V8.
247
-
248
- Definition:
249
-
250
- ```c++
251
- template<typename T> class WeakCallbackInfo {
252
- public:
253
- typedef void (*Callback)(const WeakCallbackInfo<T>& data);
254
-
255
- v8::Isolate *GetIsolate() const;
256
-
257
- /**
258
- * Get the parameter that was associated with the weak handle.
259
- */
260
- T *GetParameter() const;
261
-
262
- /**
263
- * Get pointer from internal field, index can be 0 or 1.
264
- */
265
- void *GetInternalField(int index) const;
266
- };
267
- ```
268
-
269
- Example usage:
270
-
271
- ```c++
272
- void weakCallback(const WeakCallbackInfo<int> &data) {
273
- int *parameter = data.GetParameter();
274
- delete parameter;
275
- }
276
-
277
- Persistent<v8::Object> obj;
278
- int *data = new int(0);
279
- obj.SetWeak(data, callback, WeakCallbackType::kParameter);
280
- ```
281
-
282
- See the V8 documentation for [`WeakCallbackInfo`](https://v8docs.nodesource.com/node-8.16/d8/d06/classv8_1_1_weak_callback_info.html) for further information.
283
-
284
- <a name="api_nan_weak_callback_type"></a>
285
- ### Nan::WeakCallbackType
286
-
287
- Represents the type of a weak callback.
288
- A weak callback of type `kParameter` makes the supplied parameter to `Nan::PersistentBase::SetWeak` available through `WeakCallbackInfo::GetParameter`.
289
- A weak callback of type `kInternalFields` uses up to two internal fields at indices 0 and 1 on the `Nan::PersistentBase<v8::Object>` being made weak.
290
- Note that only `v8::Object`s and derivatives can have internal fields.
291
-
292
- Definition:
293
-
294
- ```c++
295
- enum class WeakCallbackType { kParameter, kInternalFields };
296
- ```
@@ -1,73 +0,0 @@
1
- ## Scopes
2
-
3
- A _local handle_ is a pointer to an object. All V8 objects are accessed using handles, they are necessary because of the way the V8 garbage collector works.
4
-
5
- A handle scope can be thought of as a container for any number of handles. When you've finished with your handles, instead of deleting each one individually you can simply delete their scope.
6
-
7
- The creation of `HandleScope` objects is different across the supported versions of V8. Therefore, NAN provides its own implementations that can be used safely across these.
8
-
9
- - <a href="#api_nan_handle_scope"><b><code>Nan::HandleScope</code></b></a>
10
- - <a href="#api_nan_escapable_handle_scope"><b><code>Nan::EscapableHandleScope</code></b></a>
11
-
12
- Also see the V8 Embedders Guide section on [Handles and Garbage Collection](https://github.com/v8/v8/wiki/Embedder%27s%20Guide#handles-and-garbage-collection).
13
-
14
- <a name="api_nan_handle_scope"></a>
15
- ### Nan::HandleScope
16
-
17
- A simple wrapper around [`v8::HandleScope`](https://v8docs.nodesource.com/node-8.16/d3/d95/classv8_1_1_handle_scope.html).
18
-
19
- Definition:
20
-
21
- ```c++
22
- class Nan::HandleScope {
23
- public:
24
- Nan::HandleScope();
25
- static int NumberOfHandles();
26
- };
27
- ```
28
-
29
- Allocate a new `Nan::HandleScope` whenever you are creating new V8 JavaScript objects. Note that an implicit `HandleScope` is created for you on JavaScript-accessible methods so you do not need to insert one yourself.
30
-
31
- Example:
32
-
33
- ```c++
34
- // new object is created, it needs a new scope:
35
- void Pointless() {
36
- Nan::HandleScope scope;
37
- v8::Local<v8::Object> obj = Nan::New<v8::Object>();
38
- }
39
-
40
- // JavaScript-accessible method already has a HandleScope
41
- NAN_METHOD(Pointless2) {
42
- v8::Local<v8::Object> obj = Nan::New<v8::Object>();
43
- }
44
- ```
45
-
46
- <a name="api_nan_escapable_handle_scope"></a>
47
- ### Nan::EscapableHandleScope
48
-
49
- Similar to [`Nan::HandleScope`](#api_nan_handle_scope) but should be used in cases where a function needs to return a V8 JavaScript type that has been created within it.
50
-
51
- Definition:
52
-
53
- ```c++
54
- class Nan::EscapableHandleScope {
55
- public:
56
- Nan::EscapableHandleScope();
57
- static int NumberOfHandles();
58
- template<typename T> v8::Local<T> Escape(v8::Local<T> value);
59
- }
60
- ```
61
-
62
- Use `Escape(value)` to return the object.
63
-
64
- Example:
65
-
66
- ```c++
67
- v8::Local<v8::Object> EmptyObj() {
68
- Nan::EscapableHandleScope scope;
69
- v8::Local<v8::Object> obj = Nan::New<v8::Object>();
70
- return scope.Escape(obj);
71
- }
72
- ```
73
-
@@ -1,58 +0,0 @@
1
- ## Script
2
-
3
- NAN provides `v8::Script` helpers as the API has changed over the supported versions of V8.
4
-
5
- - <a href="#api_nan_compile_script"><b><code>Nan::CompileScript()</code></b></a>
6
- - <a href="#api_nan_run_script"><b><code>Nan::RunScript()</code></b></a>
7
- - <a href="#api_nan_script_origin"><b><code>Nan::ScriptOrigin</code></b></a>
8
-
9
-
10
- <a name="api_nan_compile_script"></a>
11
- ### Nan::CompileScript()
12
-
13
- A wrapper around [`v8::ScriptCompiler::Compile()`](https://v8docs.nodesource.com/node-8.16/da/da5/classv8_1_1_script_compiler.html#a93f5072a0db55d881b969e9fc98e564b).
14
-
15
- Note that `Nan::BoundScript` is an alias for `v8::Script`.
16
-
17
- Signature:
18
-
19
- ```c++
20
- Nan::MaybeLocal<Nan::BoundScript> Nan::CompileScript(
21
- v8::Local<v8::String> s,
22
- const v8::ScriptOrigin& origin);
23
- Nan::MaybeLocal<Nan::BoundScript> Nan::CompileScript(v8::Local<v8::String> s);
24
- ```
25
-
26
-
27
- <a name="api_nan_run_script"></a>
28
- ### Nan::RunScript()
29
-
30
- Calls `script->Run()` or `script->BindToCurrentContext()->Run(Nan::GetCurrentContext())`.
31
-
32
- Note that `Nan::BoundScript` is an alias for `v8::Script` and `Nan::UnboundScript` is an alias for `v8::UnboundScript` where available and `v8::Script` on older versions of V8.
33
-
34
- Signature:
35
-
36
- ```c++
37
- Nan::MaybeLocal<v8::Value> Nan::RunScript(v8::Local<Nan::UnboundScript> script)
38
- Nan::MaybeLocal<v8::Value> Nan::RunScript(v8::Local<Nan::BoundScript> script)
39
- ```
40
-
41
- <a name="api_nan_script_origin"></a>
42
- ### Nan::ScriptOrigin
43
-
44
- A class transparently extending [`v8::ScriptOrigin`](https://v8docs.nodesource.com/node-16.0/db/d84/classv8_1_1_script_origin.html#pub-methods)
45
- to provide backwards compatibility. Only the listed methods are guaranteed to
46
- be available on all versions of Node.
47
-
48
- Declaration:
49
-
50
- ```c++
51
- class Nan::ScriptOrigin : public v8::ScriptOrigin {
52
- public:
53
- ScriptOrigin(v8::Local<v8::Value> name, v8::Local<v8::Integer> line = v8::Local<v8::Integer>(), v8::Local<v8::Integer> column = v8::Local<v8::Integer>())
54
- v8::Local<v8::Value> ResourceName() const;
55
- v8::Local<v8::Integer> ResourceLineOffset() const;
56
- v8::Local<v8::Integer> ResourceColumnOffset() const;
57
- }
58
- ```
@@ -1,62 +0,0 @@
1
- ## Strings & Bytes
2
-
3
- Miscellaneous string & byte encoding and decoding functionality provided for compatibility across supported versions of V8 and Node. Implemented by NAN to ensure that all encoding types are supported, even for older versions of Node where they are missing.
4
-
5
- - <a href="#api_nan_encoding"><b><code>Nan::Encoding</code></b></a>
6
- - <a href="#api_nan_encode"><b><code>Nan::Encode()</code></b></a>
7
- - <a href="#api_nan_decode_bytes"><b><code>Nan::DecodeBytes()</code></b></a>
8
- - <a href="#api_nan_decode_write"><b><code>Nan::DecodeWrite()</code></b></a>
9
-
10
-
11
- <a name="api_nan_encoding"></a>
12
- ### Nan::Encoding
13
-
14
- An enum representing the supported encoding types. A copy of `node::encoding` that is consistent across versions of Node.
15
-
16
- Definition:
17
-
18
- ```c++
19
- enum Nan::Encoding { ASCII, UTF8, BASE64, UCS2, BINARY, HEX, BUFFER }
20
- ```
21
-
22
-
23
- <a name="api_nan_encode"></a>
24
- ### Nan::Encode()
25
-
26
- A wrapper around `node::Encode()` that provides a consistent implementation across supported versions of Node.
27
-
28
- Signature:
29
-
30
- ```c++
31
- v8::Local<v8::Value> Nan::Encode(const void *buf,
32
- size_t len,
33
- enum Nan::Encoding encoding = BINARY);
34
- ```
35
-
36
-
37
- <a name="api_nan_decode_bytes"></a>
38
- ### Nan::DecodeBytes()
39
-
40
- A wrapper around `node::DecodeBytes()` that provides a consistent implementation across supported versions of Node.
41
-
42
- Signature:
43
-
44
- ```c++
45
- ssize_t Nan::DecodeBytes(v8::Local<v8::Value> val,
46
- enum Nan::Encoding encoding = BINARY);
47
- ```
48
-
49
-
50
- <a name="api_nan_decode_write"></a>
51
- ### Nan::DecodeWrite()
52
-
53
- A wrapper around `node::DecodeWrite()` that provides a consistent implementation across supported versions of Node.
54
-
55
- Signature:
56
-
57
- ```c++
58
- ssize_t Nan::DecodeWrite(char *buf,
59
- size_t len,
60
- v8::Local<v8::Value> val,
61
- enum Nan::Encoding encoding = BINARY);
62
- ```
@@ -1,199 +0,0 @@
1
- ## V8 internals
2
-
3
- The hooks to access V8 internals—including GC and statistics—are different across the supported versions of V8, therefore NAN provides its own hooks that call the appropriate V8 methods.
4
-
5
- - <a href="#api_nan_gc_callback"><b><code>NAN_GC_CALLBACK()</code></b></a>
6
- - <a href="#api_nan_add_gc_epilogue_callback"><b><code>Nan::AddGCEpilogueCallback()</code></b></a>
7
- - <a href="#api_nan_remove_gc_epilogue_callback"><b><code>Nan::RemoveGCEpilogueCallback()</code></b></a>
8
- - <a href="#api_nan_add_gc_prologue_callback"><b><code>Nan::AddGCPrologueCallback()</code></b></a>
9
- - <a href="#api_nan_remove_gc_prologue_callback"><b><code>Nan::RemoveGCPrologueCallback()</code></b></a>
10
- - <a href="#api_nan_get_heap_statistics"><b><code>Nan::GetHeapStatistics()</code></b></a>
11
- - <a href="#api_nan_set_counter_function"><b><code>Nan::SetCounterFunction()</code></b></a>
12
- - <a href="#api_nan_set_create_histogram_function"><b><code>Nan::SetCreateHistogramFunction()</code></b></a>
13
- - <a href="#api_nan_set_add_histogram_sample_function"><b><code>Nan::SetAddHistogramSampleFunction()</code></b></a>
14
- - <a href="#api_nan_idle_notification"><del><b><code>Nan::IdleNotification()</code></b></del></a>
15
- - <a href="#api_nan_low_memory_notification"><b><code>Nan::LowMemoryNotification()</code></b></a>
16
- - <a href="#api_nan_context_disposed_notification"><b><code>Nan::ContextDisposedNotification()</code></b></a>
17
- - <a href="#api_nan_get_internal_field_pointer"><b><code>Nan::GetInternalFieldPointer()</code></b></a>
18
- - <a href="#api_nan_set_internal_field_pointer"><b><code>Nan::SetInternalFieldPointer()</code></b></a>
19
- - <a href="#api_nan_adjust_external_memory"><b><code>Nan::AdjustExternalMemory()</code></b></a>
20
-
21
-
22
- <a name="api_nan_gc_callback"></a>
23
- ### NAN_GC_CALLBACK(callbackname)
24
-
25
- Use `NAN_GC_CALLBACK` to declare your callbacks for `Nan::AddGCPrologueCallback()` and `Nan::AddGCEpilogueCallback()`. Your new method receives the arguments `v8::GCType type` and `v8::GCCallbackFlags flags`.
26
-
27
- ```c++
28
- static Nan::Persistent<Function> callback;
29
-
30
- NAN_GC_CALLBACK(gcPrologueCallback) {
31
- v8::Local<Value> argv[] = { Nan::New("prologue").ToLocalChecked() };
32
- Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(callback), 1, argv);
33
- }
34
-
35
- NAN_METHOD(Hook) {
36
- callback.Reset(To<Function>(args[0]).ToLocalChecked());
37
- Nan::AddGCPrologueCallback(gcPrologueCallback);
38
- info.GetReturnValue().Set(info.Holder());
39
- }
40
- ```
41
-
42
- <a name="api_nan_add_gc_epilogue_callback"></a>
43
- ### Nan::AddGCEpilogueCallback()
44
-
45
- Signature:
46
-
47
- ```c++
48
- void Nan::AddGCEpilogueCallback(v8::Isolate::GCEpilogueCallback callback, v8::GCType gc_type_filter = v8::kGCTypeAll)
49
- ```
50
-
51
- Calls V8's [`AddGCEpilogueCallback()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a580f976e4290cead62c2fc4dd396be3e).
52
-
53
- <a name="api_nan_remove_gc_epilogue_callback"></a>
54
- ### Nan::RemoveGCEpilogueCallback()
55
-
56
- Signature:
57
-
58
- ```c++
59
- void Nan::RemoveGCEpilogueCallback(v8::Isolate::GCEpilogueCallback callback)
60
- ```
61
-
62
- Calls V8's [`RemoveGCEpilogueCallback()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#adca9294555a3908e9f23c7bb0f0f284c).
63
-
64
- <a name="api_nan_add_gc_prologue_callback"></a>
65
- ### Nan::AddGCPrologueCallback()
66
-
67
- Signature:
68
-
69
- ```c++
70
- void Nan::AddGCPrologueCallback(v8::Isolate::GCPrologueCallback, v8::GCType gc_type_filter callback)
71
- ```
72
-
73
- Calls V8's [`AddGCPrologueCallback()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a6dbef303603ebdb03da6998794ea05b8).
74
-
75
- <a name="api_nan_remove_gc_prologue_callback"></a>
76
- ### Nan::RemoveGCPrologueCallback()
77
-
78
- Signature:
79
-
80
- ```c++
81
- void Nan::RemoveGCPrologueCallback(v8::Isolate::GCPrologueCallback callback)
82
- ```
83
-
84
- Calls V8's [`RemoveGCPrologueCallback()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a5f72c7cda21415ce062bbe5c58abe09e).
85
-
86
- <a name="api_nan_get_heap_statistics"></a>
87
- ### Nan::GetHeapStatistics()
88
-
89
- Signature:
90
-
91
- ```c++
92
- void Nan::GetHeapStatistics(v8::HeapStatistics *heap_statistics)
93
- ```
94
-
95
- Calls V8's [`GetHeapStatistics()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a5593ac74687b713095c38987e5950b34).
96
-
97
- <a name="api_nan_set_counter_function"></a>
98
- ### Nan::SetCounterFunction()
99
-
100
- Signature:
101
-
102
- ```c++
103
- void Nan::SetCounterFunction(v8::CounterLookupCallback cb)
104
- ```
105
-
106
- Calls V8's [`SetCounterFunction()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a045d7754e62fa0ec72ae6c259b29af94).
107
-
108
- <a name="api_nan_set_create_histogram_function"></a>
109
- ### Nan::SetCreateHistogramFunction()
110
-
111
- Signature:
112
-
113
- ```c++
114
- void Nan::SetCreateHistogramFunction(v8::CreateHistogramCallback cb)
115
- ```
116
-
117
- Calls V8's [`SetCreateHistogramFunction()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a542d67e85089cb3f92aadf032f99e732).
118
-
119
- <a name="api_nan_set_add_histogram_sample_function"></a>
120
- ### Nan::SetAddHistogramSampleFunction()
121
-
122
- Signature:
123
-
124
- ```c++
125
- void Nan::SetAddHistogramSampleFunction(v8::AddHistogramSampleCallback cb)
126
- ```
127
-
128
- Calls V8's [`SetAddHistogramSampleFunction()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#aeb420b690bc2c216882d6fdd00ddd3ea).
129
-
130
- <a name="api_nan_idle_notification"></a>
131
- ### <del>Nan::IdleNotification()</del>
132
-
133
- Signature:
134
-
135
- ```c++
136
- NAN_DEPRECATED bool Nan::IdleNotification(int idle_time_in_ms)
137
- ```
138
-
139
- Calls V8's [`IdleNotification()` or `IdleNotificationDeadline()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#ad6a2a02657f5425ad460060652a5a118) depending on V8 version. Removed in V8 12.7.41.
140
-
141
- <a name="api_nan_low_memory_notification"></a>
142
- ### Nan::LowMemoryNotification()
143
-
144
- Signature:
145
-
146
- ```c++
147
- void Nan::LowMemoryNotification()
148
- ```
149
-
150
- Calls V8's [`LowMemoryNotification()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a24647f61d6b41f69668094bdcd6ea91f).
151
-
152
- <a name="api_nan_context_disposed_notification"></a>
153
- ### Nan::ContextDisposedNotification()
154
-
155
- Signature:
156
-
157
- ```c++
158
- void Nan::ContextDisposedNotification()
159
- ```
160
-
161
- Calls V8's [`ContextDisposedNotification()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#ad7f5dc559866343fe6cd8db1f134d48b).
162
-
163
- <a name="api_nan_get_internal_field_pointer"></a>
164
- ### Nan::GetInternalFieldPointer()
165
-
166
- Gets a pointer to the internal field with at `index` from a V8 `Object` handle.
167
-
168
- Signature:
169
-
170
- ```c++
171
- void* Nan::GetInternalFieldPointer(v8::Local<v8::Object> object, int index)
172
- ```
173
-
174
- Calls the Object's [`GetAlignedPointerFromInternalField()` or `GetPointerFromInternalField()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#a580ea84afb26c005d6762eeb9e3c308f) depending on the version of V8.
175
-
176
- <a name="api_nan_set_internal_field_pointer"></a>
177
- ### Nan::SetInternalFieldPointer()
178
-
179
- Sets the value of the internal field at `index` on a V8 `Object` handle.
180
-
181
- Signature:
182
-
183
- ```c++
184
- void Nan::SetInternalFieldPointer(v8::Local<v8::Object> object, int index, void* value)
185
- ```
186
-
187
- Calls the Object's [`SetAlignedPointerInInternalField()` or `SetPointerInInternalField()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#ab3c57184263cf29963ef0017bec82281) depending on the version of V8.
188
-
189
- <a name="api_nan_adjust_external_memory"></a>
190
- ### Nan::AdjustExternalMemory()
191
-
192
- Signature:
193
-
194
- ```c++
195
- int Nan::AdjustExternalMemory(int bytesChange)
196
- ```
197
-
198
- Calls V8's [`AdjustAmountOfExternalAllocatedMemory()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#ae1a59cac60409d3922582c4af675473e).
199
-