@cloudbase/manager-node 4.3.3 → 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 (213) hide show
  1. package/lib/function/index.js +9 -1
  2. package/lib/utils/index.js +17 -1
  3. package/package.json +1 -1
  4. package/types/utils/index.d.ts +2 -0
  5. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/.ready +0 -0
  6. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/.travis.yml +0 -103
  7. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/ISSUE_TEMPLATE.md +0 -8
  8. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/LICENSE +0 -22
  9. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/Readme.md +0 -78
  10. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/binding.gyp +0 -21
  11. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/fsevents.cc +0 -88
  12. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/fsevents.js +0 -108
  13. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/install.js +0 -13
  14. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/package.json +0 -34
  15. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/vfs.js +0 -76
  16. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.eslintrc.js +0 -20
  17. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.prettierrc +0 -4
  18. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.ready +0 -0
  19. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/CHANGELOG.md +0 -310
  20. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/LICENSE +0 -21
  21. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/README.md +0 -344
  22. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/husky.js +0 -15
  23. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/checkGitDirEnv.js +0 -13
  24. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/debug.js +0 -8
  25. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/getConf.js +0 -15
  26. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/bin.js +0 -48
  27. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/getScript.js +0 -106
  28. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/gitRevParse.js +0 -29
  29. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/index.js +0 -151
  30. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/is.js +0 -24
  31. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/runner/bin.js +0 -16
  32. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/runner/index.js +0 -84
  33. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/upgrader/bin.js +0 -8
  34. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/upgrader/index.js +0 -65
  35. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/package.json +0 -114
  36. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/run.js +0 -14
  37. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/.github/workflows/ci.yml +0 -52
  38. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/.ready +0 -0
  39. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/CHANGELOG.md +0 -577
  40. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/CMakeLists.txt +0 -138
  41. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/LICENSE.md +0 -9
  42. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/README.md +0 -455
  43. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/asyncworker.md +0 -146
  44. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/buffers.md +0 -54
  45. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/callback.md +0 -76
  46. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/converters.md +0 -41
  47. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/errors.md +0 -226
  48. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/json.md +0 -62
  49. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/maybe_types.md +0 -583
  50. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/methods.md +0 -672
  51. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/new.md +0 -147
  52. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/node_misc.md +0 -123
  53. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/object_wrappers.md +0 -263
  54. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/persistent.md +0 -296
  55. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/scopes.md +0 -73
  56. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/script.md +0 -58
  57. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/string_bytes.md +0 -62
  58. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/v8_internals.md +0 -199
  59. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/v8_misc.md +0 -85
  60. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/include_dirs.js +0 -1
  61. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan.h +0 -3049
  62. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks.h +0 -128
  63. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks_12_inl.h +0 -676
  64. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks_pre_12_inl.h +0 -520
  65. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters.h +0 -72
  66. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters_43_inl.h +0 -68
  67. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters_pre_43_inl.h +0 -42
  68. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_define_own_property_helper.h +0 -29
  69. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_implementation_12_inl.h +0 -430
  70. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_implementation_pre_12_inl.h +0 -263
  71. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_json.h +0 -166
  72. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_maybe_43_inl.h +0 -356
  73. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_maybe_pre_43_inl.h +0 -268
  74. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_new.h +0 -340
  75. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_object_wrap.h +0 -156
  76. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_persistent_12_inl.h +0 -132
  77. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_persistent_pre_12_inl.h +0 -242
  78. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_private.h +0 -73
  79. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_scriptorigin.h +0 -95
  80. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_string_bytes.h +0 -305
  81. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_typedarray_contents.h +0 -96
  82. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_weak.h +0 -437
  83. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/package.json +0 -38
  84. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/1to2.js +0 -412
  85. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/README.md +0 -14
  86. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/package.json +0 -19
  87. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/.ready +0 -0
  88. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/.release-please-manifest.json +0 -3
  89. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CHANGELOG.md +0 -1053
  90. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CODE_OF_CONDUCT.md +0 -4
  91. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CONTRIBUTING.md +0 -34
  92. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/LICENSE +0 -24
  93. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/README.md +0 -273
  94. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/SECURITY.md +0 -2
  95. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/addon.gypi +0 -204
  96. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/bin/node-gyp.js +0 -138
  97. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/eslint.config.js +0 -3
  98. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/.release-please-manifest.json +0 -3
  99. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/LICENSE +0 -28
  100. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/data/ninja/build.ninja +0 -4
  101. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +0 -12
  102. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp +0 -8
  103. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp.bat +0 -5
  104. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp_main.py +0 -45
  105. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +0 -365
  106. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +0 -206
  107. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +0 -1272
  108. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +0 -1547
  109. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +0 -59
  110. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +0 -152
  111. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +0 -270
  112. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +0 -574
  113. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +0 -704
  114. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/common.py +0 -709
  115. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +0 -173
  116. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +0 -169
  117. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +0 -113
  118. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +0 -55
  119. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
  120. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +0 -805
  121. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +0 -1172
  122. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +0 -1319
  123. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +0 -128
  124. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +0 -104
  125. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +0 -462
  126. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +0 -89
  127. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +0 -56
  128. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +0 -2745
  129. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +0 -3976
  130. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +0 -44
  131. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +0 -2965
  132. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +0 -67
  133. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +0 -1391
  134. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +0 -26
  135. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/input.py +0 -3112
  136. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +0 -99
  137. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +0 -767
  138. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +0 -1260
  139. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +0 -174
  140. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +0 -61
  141. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +0 -373
  142. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +0 -1939
  143. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +0 -54
  144. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +0 -303
  145. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +0 -3196
  146. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +0 -65
  147. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE +0 -3
  148. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +0 -177
  149. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.BSD +0 -23
  150. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +0 -15
  151. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +0 -108
  152. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +0 -252
  153. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +0 -83
  154. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +0 -359
  155. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +0 -61
  156. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +0 -192
  157. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/markers.py +0 -252
  158. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +0 -825
  159. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/py.typed +0 -0
  160. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +0 -90
  161. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +0 -1030
  162. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/tags.py +0 -553
  163. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/utils.py +0 -172
  164. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/version.py +0 -563
  165. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pyproject.toml +0 -115
  166. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/release-please-config.json +0 -11
  167. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/test_gyp.py +0 -261
  168. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/Find-VisualStudio.cs +0 -250
  169. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/build.js +0 -230
  170. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/clean.js +0 -15
  171. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/configure.js +0 -328
  172. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/create-config-gypi.js +0 -153
  173. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/download.js +0 -39
  174. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-node-directory.js +0 -63
  175. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-python.js +0 -310
  176. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-visualstudio.js +0 -600
  177. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/install.js +0 -415
  178. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/list.js +0 -26
  179. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/log.js +0 -168
  180. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/node-gyp.js +0 -188
  181. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/process-release.js +0 -146
  182. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/rebuild.js +0 -12
  183. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/remove.js +0 -43
  184. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/util.js +0 -81
  185. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/macOS_Catalina_acid_test.sh +0 -21
  186. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/package.json +0 -52
  187. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/release-please-config.json +0 -40
  188. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/.prettierrc +0 -4
  189. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/.ready +0 -0
  190. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/CHANGELOG.md +0 -286
  191. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/LICENSE +0 -21
  192. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/README.md +0 -457
  193. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/index.js +0 -52
  194. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/lib/checkGrowl.js +0 -24
  195. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/lib/utils.js +0 -515
  196. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/balloon.js +0 -156
  197. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/growl.js +0 -76
  198. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/notificationcenter.js +0 -100
  199. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/notifysend.js +0 -94
  200. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/toaster.js +0 -100
  201. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/package.json +0 -72
  202. 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
  203. 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
  204. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/PkgInfo +0 -1
  205. 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
  206. 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
  207. 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
  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/MainMenu.nib +0 -0
  209. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/notifu/notifu.exe +0 -0
  210. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/notifu/notifu64.exe +0 -0
  211. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/snoreToast/LICENSE +0 -165
  212. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/snoreToast/SnoreToast.exe +0 -0
  213. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/terminal-notifier-LICENSE +0 -9
@@ -1,242 +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_PRE_12_INL_H_
10
- #define NAN_PERSISTENT_PRE_12_INL_H_
11
-
12
- template<typename T>
13
- class PersistentBase {
14
- v8::Persistent<T> persistent;
15
- template<typename U>
16
- friend v8::Local<U> New(const PersistentBase<U> &p);
17
- template<typename U, typename M>
18
- friend v8::Local<U> New(const Persistent<U, M> &p);
19
- template<typename U>
20
- friend v8::Local<U> New(const Global<U> &p);
21
- template<typename S> friend class ReturnValue;
22
-
23
- public:
24
- inline PersistentBase() :
25
- persistent() {}
26
-
27
- inline void Reset() {
28
- persistent.Dispose();
29
- persistent.Clear();
30
- }
31
-
32
- template<typename S>
33
- inline void Reset(const v8::Local<S> &other) {
34
- TYPE_CHECK(T, S);
35
-
36
- if (!persistent.IsEmpty()) {
37
- persistent.Dispose();
38
- }
39
-
40
- if (other.IsEmpty()) {
41
- persistent.Clear();
42
- } else {
43
- persistent = v8::Persistent<T>::New(other);
44
- }
45
- }
46
-
47
- template<typename S>
48
- inline void Reset(const PersistentBase<S> &other) {
49
- TYPE_CHECK(T, S);
50
-
51
- if (!persistent.IsEmpty()) {
52
- persistent.Dispose();
53
- }
54
-
55
- if (other.IsEmpty()) {
56
- persistent.Clear();
57
- } else {
58
- persistent = v8::Persistent<T>::New(other.persistent);
59
- }
60
- }
61
-
62
- inline bool IsEmpty() const { return persistent.IsEmpty(); }
63
-
64
- inline void Empty() { persistent.Clear(); }
65
-
66
- template<typename S>
67
- inline bool operator==(const PersistentBase<S> &that) const {
68
- return this->persistent == that.persistent;
69
- }
70
-
71
- template<typename S>
72
- inline bool operator==(const v8::Local<S> &that) const {
73
- return this->persistent == that;
74
- }
75
-
76
- template<typename S>
77
- inline bool operator!=(const PersistentBase<S> &that) const {
78
- return !operator==(that);
79
- }
80
-
81
- template<typename S>
82
- inline bool operator!=(const v8::Local<S> &that) const {
83
- return !operator==(that);
84
- }
85
-
86
- template<typename P>
87
- inline void SetWeak(
88
- P *parameter
89
- , typename WeakCallbackInfo<P>::Callback callback
90
- , WeakCallbackType type);
91
-
92
- inline void ClearWeak() { persistent.ClearWeak(); }
93
-
94
- inline void MarkIndependent() { persistent.MarkIndependent(); }
95
-
96
- inline bool IsIndependent() const { return persistent.IsIndependent(); }
97
-
98
- inline bool IsNearDeath() const { return persistent.IsNearDeath(); }
99
-
100
- inline bool IsWeak() const { return persistent.IsWeak(); }
101
-
102
- private:
103
- inline explicit PersistentBase(v8::Persistent<T> that) :
104
- persistent(that) { }
105
- inline explicit PersistentBase(T *val) : persistent(val) {}
106
- template<typename S, typename M> friend class Persistent;
107
- template<typename S> friend class Global;
108
- friend class ObjectWrap;
109
- };
110
-
111
- template<typename T>
112
- class NonCopyablePersistentTraits {
113
- public:
114
- typedef Persistent<T, NonCopyablePersistentTraits<T> >
115
- NonCopyablePersistent;
116
- static const bool kResetInDestructor = false;
117
- template<typename S, typename M>
118
- inline static void Copy(const Persistent<S, M> &source,
119
- NonCopyablePersistent *dest) {
120
- Uncompilable<v8::Object>();
121
- }
122
-
123
- template<typename O> inline static void Uncompilable() {
124
- TYPE_CHECK(O, v8::Primitive);
125
- }
126
- };
127
-
128
- template<typename T>
129
- struct CopyablePersistentTraits {
130
- typedef Persistent<T, CopyablePersistentTraits<T> > CopyablePersistent;
131
- static const bool kResetInDestructor = true;
132
- template<typename S, typename M>
133
- static inline void Copy(const Persistent<S, M> &source,
134
- CopyablePersistent *dest) {}
135
- };
136
-
137
- template<typename T, typename M> class Persistent :
138
- public PersistentBase<T> {
139
- public:
140
- inline Persistent() {}
141
-
142
- template<typename S> inline Persistent(v8::Handle<S> that)
143
- : PersistentBase<T>(v8::Persistent<T>::New(that)) {
144
- TYPE_CHECK(T, S);
145
- }
146
-
147
- inline Persistent(const Persistent &that) : PersistentBase<T>() {
148
- Copy(that);
149
- }
150
-
151
- template<typename S, typename M2>
152
- inline Persistent(const Persistent<S, M2> &that) :
153
- PersistentBase<T>() {
154
- Copy(that);
155
- }
156
-
157
- inline Persistent &operator=(const Persistent &that) {
158
- Copy(that);
159
- return *this;
160
- }
161
-
162
- template <class S, class M2>
163
- inline Persistent &operator=(const Persistent<S, M2> &that) {
164
- Copy(that);
165
- return *this;
166
- }
167
-
168
- inline ~Persistent() {
169
- if (M::kResetInDestructor) this->Reset();
170
- }
171
-
172
- private:
173
- inline T *operator*() const { return *PersistentBase<T>::persistent; }
174
-
175
- template<typename S, typename M2>
176
- inline void Copy(const Persistent<S, M2> &that) {
177
- TYPE_CHECK(T, S);
178
-
179
- this->Reset();
180
-
181
- if (!that.IsEmpty()) {
182
- this->persistent = v8::Persistent<T>::New(that.persistent);
183
- M::Copy(that, this);
184
- }
185
- }
186
- };
187
-
188
- template<typename T>
189
- class Global : public PersistentBase<T> {
190
- struct RValue {
191
- inline explicit RValue(Global* obj) : object(obj) {}
192
- Global* object;
193
- };
194
-
195
- public:
196
- inline Global() : PersistentBase<T>(0) { }
197
-
198
- template <typename S>
199
- inline Global(v8::Local<S> that) // NOLINT(runtime/explicit)
200
- : PersistentBase<T>(v8::Persistent<T>::New(that)) {
201
- TYPE_CHECK(T, S);
202
- }
203
-
204
- template <typename S>
205
- inline Global(const PersistentBase<S> &that) // NOLINT(runtime/explicit)
206
- : PersistentBase<T>(that) {
207
- TYPE_CHECK(T, S);
208
- }
209
- /**
210
- * Move constructor.
211
- */
212
- inline Global(RValue rvalue) // NOLINT(runtime/explicit)
213
- : PersistentBase<T>(rvalue.object->persistent) {
214
- rvalue.object->Reset();
215
- }
216
- inline ~Global() { this->Reset(); }
217
- /**
218
- * Move via assignment.
219
- */
220
- template<typename S>
221
- inline Global &operator=(Global<S> rhs) {
222
- TYPE_CHECK(T, S);
223
- this->Reset(rhs.persistent);
224
- rhs.Reset();
225
- return *this;
226
- }
227
- /**
228
- * Cast operator for moves.
229
- */
230
- inline operator RValue() { return RValue(this); }
231
- /**
232
- * Pass allows returning uniques from functions, etc.
233
- */
234
- Global Pass() { return Global(RValue(this)); }
235
-
236
- private:
237
- Global(Global &);
238
- void operator=(Global &);
239
- template<typename S> friend class ReturnValue;
240
- };
241
-
242
- #endif // NAN_PERSISTENT_PRE_12_INL_H_
@@ -1,73 +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_PRIVATE_H_
10
- #define NAN_PRIVATE_H_
11
-
12
- inline Maybe<bool>
13
- HasPrivate(v8::Local<v8::Object> object, v8::Local<v8::String> key) {
14
- HandleScope scope;
15
- #if NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION
16
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
17
- v8::Local<v8::Context> context = isolate->GetCurrentContext();
18
- v8::Local<v8::Private> private_key = v8::Private::ForApi(isolate, key);
19
- return object->HasPrivate(context, private_key);
20
- #else
21
- return Just(!object->GetHiddenValue(key).IsEmpty());
22
- #endif
23
- }
24
-
25
- inline MaybeLocal<v8::Value>
26
- GetPrivate(v8::Local<v8::Object> object, v8::Local<v8::String> key) {
27
- #if NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION
28
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
29
- v8::EscapableHandleScope scope(isolate);
30
- v8::Local<v8::Context> context = isolate->GetCurrentContext();
31
- v8::Local<v8::Private> private_key = v8::Private::ForApi(isolate, key);
32
- v8::MaybeLocal<v8::Value> v = object->GetPrivate(context, private_key);
33
- return scope.Escape(v.ToLocalChecked());
34
- #else
35
- EscapableHandleScope scope;
36
- v8::Local<v8::Value> v = object->GetHiddenValue(key);
37
- if (v.IsEmpty()) {
38
- v = Undefined();
39
- }
40
- return scope.Escape(v);
41
- #endif
42
- }
43
-
44
- inline Maybe<bool> SetPrivate(
45
- v8::Local<v8::Object> object,
46
- v8::Local<v8::String> key,
47
- v8::Local<v8::Value> value) {
48
- #if NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION
49
- HandleScope scope;
50
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
51
- v8::Local<v8::Context> context = isolate->GetCurrentContext();
52
- v8::Local<v8::Private> private_key = v8::Private::ForApi(isolate, key);
53
- return object->SetPrivate(context, private_key, value);
54
- #else
55
- return Just(object->SetHiddenValue(key, value));
56
- #endif
57
- }
58
-
59
- inline Maybe<bool> DeletePrivate(
60
- v8::Local<v8::Object> object,
61
- v8::Local<v8::String> key) {
62
- #if NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION
63
- HandleScope scope;
64
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
65
- v8::Local<v8::Private> private_key = v8::Private::ForApi(isolate, key);
66
- return object->DeletePrivate(isolate->GetCurrentContext(), private_key);
67
- #else
68
- return Just(object->DeleteHiddenValue(key));
69
- #endif
70
- }
71
-
72
- #endif // NAN_PRIVATE_H_
73
-
@@ -1,95 +0,0 @@
1
- /*********************************************************************
2
- * NAN - Native Abstractions for Node.js
3
- *
4
- * Copyright (c) 2021 NAN contributors
5
- *
6
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
7
- ********************************************************************/
8
-
9
- #ifndef NAN_SCRIPTORIGIN_H_
10
- #define NAN_SCRIPTORIGIN_H_
11
-
12
- class ScriptOrigin : public v8::ScriptOrigin {
13
- public:
14
-
15
- #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 12 || \
16
- (V8_MAJOR_VERSION == 12 && (defined(V8_MINOR_VERSION) && (V8_MINOR_VERSION > 6\
17
- || (V8_MINOR_VERSION == 6 && defined(V8_BUILD_NUMBER) \
18
- && V8_BUILD_NUMBER >= 175)))))
19
- explicit ScriptOrigin(v8::Local<v8::Value> name) :
20
- v8::ScriptOrigin(name) {}
21
-
22
- ScriptOrigin(v8::Local<v8::Value> name
23
- , v8::Local<v8::Integer> line) :
24
- v8::ScriptOrigin(name
25
- , To<int32_t>(line).FromMaybe(0)) {}
26
-
27
- ScriptOrigin(v8::Local<v8::Value> name
28
- , v8::Local<v8::Integer> line
29
- , v8::Local<v8::Integer> column) :
30
- v8::ScriptOrigin(name
31
- , To<int32_t>(line).FromMaybe(0)
32
- , To<int32_t>(column).FromMaybe(0)) {}
33
- #elif defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 9 || \
34
- (V8_MAJOR_VERSION == 9 && (defined(V8_MINOR_VERSION) && (V8_MINOR_VERSION > 0\
35
- || (V8_MINOR_VERSION == 0 && defined(V8_BUILD_NUMBER) \
36
- && V8_BUILD_NUMBER >= 1)))))
37
- explicit ScriptOrigin(v8::Local<v8::Value> name) :
38
- v8::ScriptOrigin(v8::Isolate::GetCurrent(), name) {}
39
-
40
- ScriptOrigin(v8::Local<v8::Value> name
41
- , v8::Local<v8::Integer> line) :
42
- v8::ScriptOrigin(v8::Isolate::GetCurrent()
43
- , name
44
- , To<int32_t>(line).FromMaybe(0)) {}
45
-
46
- ScriptOrigin(v8::Local<v8::Value> name
47
- , v8::Local<v8::Integer> line
48
- , v8::Local<v8::Integer> column) :
49
- v8::ScriptOrigin(v8::Isolate::GetCurrent()
50
- , name
51
- , To<int32_t>(line).FromMaybe(0)
52
- , To<int32_t>(column).FromMaybe(0)) {}
53
- #elif defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 8 || \
54
- (V8_MAJOR_VERSION == 8 && (defined(V8_MINOR_VERSION) && (V8_MINOR_VERSION > 9\
55
- || (V8_MINOR_VERSION == 9 && defined(V8_BUILD_NUMBER) \
56
- && V8_BUILD_NUMBER >= 45)))))
57
- explicit ScriptOrigin(v8::Local<v8::Value> name) : v8::ScriptOrigin(name) {}
58
-
59
- ScriptOrigin(v8::Local<v8::Value> name
60
- , v8::Local<v8::Integer> line) :
61
- v8::ScriptOrigin(name, To<int32_t>(line).FromMaybe(0)) {}
62
-
63
- ScriptOrigin(v8::Local<v8::Value> name
64
- , v8::Local<v8::Integer> line
65
- , v8::Local<v8::Integer> column) :
66
- v8::ScriptOrigin(name
67
- , To<int32_t>(line).FromMaybe(0)
68
- , To<int32_t>(column).FromMaybe(0)) {}
69
- #else
70
- explicit ScriptOrigin(v8::Local<v8::Value> name) : v8::ScriptOrigin(name) {}
71
-
72
- ScriptOrigin(v8::Local<v8::Value> name
73
- , v8::Local<v8::Integer> line) : v8::ScriptOrigin(name, line) {}
74
-
75
- ScriptOrigin(v8::Local<v8::Value> name
76
- , v8::Local<v8::Integer> line
77
- , v8::Local<v8::Integer> column) :
78
- v8::ScriptOrigin(name, line, column) {}
79
- #endif
80
-
81
- #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 8 || \
82
- (V8_MAJOR_VERSION == 8 && (defined(V8_MINOR_VERSION) && (V8_MINOR_VERSION > 9\
83
- || (V8_MINOR_VERSION == 9 && defined(V8_BUILD_NUMBER) \
84
- && V8_BUILD_NUMBER >= 45)))))
85
- v8::Local<v8::Integer> ResourceLineOffset() const {
86
- return New(LineOffset());
87
- }
88
-
89
- v8::Local<v8::Integer> ResourceColumnOffset() const {
90
- return New(ColumnOffset());
91
- }
92
- #endif
93
- };
94
-
95
- #endif // NAN_SCRIPTORIGIN_H_
@@ -1,305 +0,0 @@
1
- // Copyright Joyent, Inc. and other Node contributors.
2
- //
3
- // Permission is hereby granted, free of charge, to any person obtaining a
4
- // copy of this software and associated documentation files (the
5
- // "Software"), to deal in the Software without restriction, including
6
- // without limitation the rights to use, copy, modify, merge, publish,
7
- // distribute, sublicense, and/or sell copies of the Software, and to permit
8
- // persons to whom the Software is furnished to do so, subject to the
9
- // following conditions:
10
- //
11
- // The above copyright notice and this permission notice shall be included
12
- // in all copies or substantial portions of the Software.
13
- //
14
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15
- // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
17
- // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
18
- // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
19
- // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
20
- // USE OR OTHER DEALINGS IN THE SOFTWARE.
21
-
22
- #ifndef NAN_STRING_BYTES_H_
23
- #define NAN_STRING_BYTES_H_
24
-
25
- // Decodes a v8::Local<v8::String> or Buffer to a raw char*
26
-
27
- namespace imp {
28
-
29
- using v8::Local;
30
- using v8::Object;
31
- using v8::String;
32
- using v8::Value;
33
-
34
-
35
- //// Base 64 ////
36
-
37
- #define base64_encoded_size(size) ((size + 2 - ((size + 2) % 3)) / 3 * 4)
38
-
39
-
40
-
41
- //// HEX ////
42
-
43
- static bool contains_non_ascii_slow(const char* buf, size_t len) {
44
- for (size_t i = 0; i < len; ++i) {
45
- if (buf[i] & 0x80) return true;
46
- }
47
- return false;
48
- }
49
-
50
-
51
- static bool contains_non_ascii(const char* src, size_t len) {
52
- if (len < 16) {
53
- return contains_non_ascii_slow(src, len);
54
- }
55
-
56
- const unsigned bytes_per_word = sizeof(void*);
57
- const unsigned align_mask = bytes_per_word - 1;
58
- const unsigned unaligned = reinterpret_cast<uintptr_t>(src) & align_mask;
59
-
60
- if (unaligned > 0) {
61
- const unsigned n = bytes_per_word - unaligned;
62
- if (contains_non_ascii_slow(src, n)) return true;
63
- src += n;
64
- len -= n;
65
- }
66
-
67
-
68
- #if defined(__x86_64__) || defined(_WIN64)
69
- const uintptr_t mask = 0x8080808080808080ll;
70
- #else
71
- const uintptr_t mask = 0x80808080l;
72
- #endif
73
-
74
- const uintptr_t* srcw = reinterpret_cast<const uintptr_t*>(src);
75
-
76
- for (size_t i = 0, n = len / bytes_per_word; i < n; ++i) {
77
- if (srcw[i] & mask) return true;
78
- }
79
-
80
- const unsigned remainder = len & align_mask;
81
- if (remainder > 0) {
82
- const size_t offset = len - remainder;
83
- if (contains_non_ascii_slow(src + offset, remainder)) return true;
84
- }
85
-
86
- return false;
87
- }
88
-
89
-
90
- static void force_ascii_slow(const char* src, char* dst, size_t len) {
91
- for (size_t i = 0; i < len; ++i) {
92
- dst[i] = src[i] & 0x7f;
93
- }
94
- }
95
-
96
-
97
- static void force_ascii(const char* src, char* dst, size_t len) {
98
- if (len < 16) {
99
- force_ascii_slow(src, dst, len);
100
- return;
101
- }
102
-
103
- const unsigned bytes_per_word = sizeof(void*);
104
- const unsigned align_mask = bytes_per_word - 1;
105
- const unsigned src_unalign = reinterpret_cast<uintptr_t>(src) & align_mask;
106
- const unsigned dst_unalign = reinterpret_cast<uintptr_t>(dst) & align_mask;
107
-
108
- if (src_unalign > 0) {
109
- if (src_unalign == dst_unalign) {
110
- const unsigned unalign = bytes_per_word - src_unalign;
111
- force_ascii_slow(src, dst, unalign);
112
- src += unalign;
113
- dst += unalign;
114
- len -= src_unalign;
115
- } else {
116
- force_ascii_slow(src, dst, len);
117
- return;
118
- }
119
- }
120
-
121
- #if defined(__x86_64__) || defined(_WIN64)
122
- const uintptr_t mask = ~0x8080808080808080ll;
123
- #else
124
- const uintptr_t mask = ~0x80808080l;
125
- #endif
126
-
127
- const uintptr_t* srcw = reinterpret_cast<const uintptr_t*>(src);
128
- uintptr_t* dstw = reinterpret_cast<uintptr_t*>(dst);
129
-
130
- for (size_t i = 0, n = len / bytes_per_word; i < n; ++i) {
131
- dstw[i] = srcw[i] & mask;
132
- }
133
-
134
- const unsigned remainder = len & align_mask;
135
- if (remainder > 0) {
136
- const size_t offset = len - remainder;
137
- force_ascii_slow(src + offset, dst + offset, remainder);
138
- }
139
- }
140
-
141
-
142
- static size_t base64_encode(const char* src,
143
- size_t slen,
144
- char* dst,
145
- size_t dlen) {
146
- // We know how much we'll write, just make sure that there's space.
147
- assert(dlen >= base64_encoded_size(slen) &&
148
- "not enough space provided for base64 encode");
149
-
150
- dlen = base64_encoded_size(slen);
151
-
152
- unsigned a;
153
- unsigned b;
154
- unsigned c;
155
- unsigned i;
156
- unsigned k;
157
- unsigned n;
158
-
159
- static const char table[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
160
- "abcdefghijklmnopqrstuvwxyz"
161
- "0123456789+/";
162
-
163
- i = 0;
164
- k = 0;
165
- n = slen / 3 * 3;
166
-
167
- while (i < n) {
168
- a = src[i + 0] & 0xff;
169
- b = src[i + 1] & 0xff;
170
- c = src[i + 2] & 0xff;
171
-
172
- dst[k + 0] = table[a >> 2];
173
- dst[k + 1] = table[((a & 3) << 4) | (b >> 4)];
174
- dst[k + 2] = table[((b & 0x0f) << 2) | (c >> 6)];
175
- dst[k + 3] = table[c & 0x3f];
176
-
177
- i += 3;
178
- k += 4;
179
- }
180
-
181
- if (n != slen) {
182
- switch (slen - n) {
183
- case 1:
184
- a = src[i + 0] & 0xff;
185
- dst[k + 0] = table[a >> 2];
186
- dst[k + 1] = table[(a & 3) << 4];
187
- dst[k + 2] = '=';
188
- dst[k + 3] = '=';
189
- break;
190
-
191
- case 2:
192
- a = src[i + 0] & 0xff;
193
- b = src[i + 1] & 0xff;
194
- dst[k + 0] = table[a >> 2];
195
- dst[k + 1] = table[((a & 3) << 4) | (b >> 4)];
196
- dst[k + 2] = table[(b & 0x0f) << 2];
197
- dst[k + 3] = '=';
198
- break;
199
- }
200
- }
201
-
202
- return dlen;
203
- }
204
-
205
-
206
- static size_t hex_encode(const char* src, size_t slen, char* dst, size_t dlen) {
207
- // We know how much we'll write, just make sure that there's space.
208
- assert(dlen >= slen * 2 &&
209
- "not enough space provided for hex encode");
210
-
211
- dlen = slen * 2;
212
- for (uint32_t i = 0, k = 0; k < dlen; i += 1, k += 2) {
213
- static const char hex[] = "0123456789abcdef";
214
- uint8_t val = static_cast<uint8_t>(src[i]);
215
- dst[k + 0] = hex[val >> 4];
216
- dst[k + 1] = hex[val & 15];
217
- }
218
-
219
- return dlen;
220
- }
221
-
222
-
223
-
224
- static Local<Value> Encode(const char* buf,
225
- size_t buflen,
226
- enum Encoding encoding) {
227
- assert(buflen <= node::Buffer::kMaxLength);
228
- if (!buflen && encoding != BUFFER)
229
- return New("").ToLocalChecked();
230
-
231
- Local<String> val;
232
- switch (encoding) {
233
- case BUFFER:
234
- return CopyBuffer(buf, buflen).ToLocalChecked();
235
-
236
- case ASCII:
237
- if (contains_non_ascii(buf, buflen)) {
238
- char* out = new char[buflen];
239
- force_ascii(buf, out, buflen);
240
- val = New<String>(out, buflen).ToLocalChecked();
241
- delete[] out;
242
- } else {
243
- val = New<String>(buf, buflen).ToLocalChecked();
244
- }
245
- break;
246
-
247
- case UTF8:
248
- val = New<String>(buf, buflen).ToLocalChecked();
249
- break;
250
-
251
- case BINARY: {
252
- // TODO(isaacs) use ExternalTwoByteString?
253
- const unsigned char *cbuf = reinterpret_cast<const unsigned char*>(buf);
254
- uint16_t * twobytebuf = new uint16_t[buflen];
255
- for (size_t i = 0; i < buflen; i++) {
256
- // XXX is the following line platform independent?
257
- twobytebuf[i] = cbuf[i];
258
- }
259
- val = New<String>(twobytebuf, buflen).ToLocalChecked();
260
- delete[] twobytebuf;
261
- break;
262
- }
263
-
264
- case BASE64: {
265
- size_t dlen = base64_encoded_size(buflen);
266
- char* dst = new char[dlen];
267
-
268
- size_t written = base64_encode(buf, buflen, dst, dlen);
269
- assert(written == dlen);
270
-
271
- val = New<String>(dst, dlen).ToLocalChecked();
272
- delete[] dst;
273
- break;
274
- }
275
-
276
- case UCS2: {
277
- const uint16_t* data = reinterpret_cast<const uint16_t*>(buf);
278
- val = New<String>(data, buflen / 2).ToLocalChecked();
279
- break;
280
- }
281
-
282
- case HEX: {
283
- size_t dlen = buflen * 2;
284
- char* dst = new char[dlen];
285
- size_t written = hex_encode(buf, buflen, dst, dlen);
286
- assert(written == dlen);
287
-
288
- val = New<String>(dst, dlen).ToLocalChecked();
289
- delete[] dst;
290
- break;
291
- }
292
-
293
- default:
294
- assert(0 && "unknown encoding");
295
- break;
296
- }
297
-
298
- return val;
299
- }
300
-
301
- #undef base64_encoded_size
302
-
303
- } // end of namespace imp
304
-
305
- #endif // NAN_STRING_BYTES_H_