@cloudbase/manager-node 4.3.0 → 4.3.2

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/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/.ready +0 -0
  2. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/.travis.yml +103 -0
  3. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/ISSUE_TEMPLATE.md +8 -0
  4. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/LICENSE +22 -0
  5. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/Readme.md +78 -0
  6. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/binding.gyp +21 -0
  7. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/fsevents.cc +88 -0
  8. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/fsevents.js +108 -0
  9. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/install.js +13 -0
  10. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/package.json +34 -0
  11. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/vfs.js +76 -0
  12. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.eslintrc.js +20 -0
  13. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.prettierrc +4 -0
  14. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.ready +0 -0
  15. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/CHANGELOG.md +310 -0
  16. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/LICENSE +21 -0
  17. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/README.md +344 -0
  18. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/husky.js +15 -0
  19. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/checkGitDirEnv.js +13 -0
  20. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/debug.js +8 -0
  21. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/getConf.js +15 -0
  22. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/bin.js +48 -0
  23. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/getScript.js +106 -0
  24. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/gitRevParse.js +29 -0
  25. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/index.js +151 -0
  26. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/is.js +24 -0
  27. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/runner/bin.js +16 -0
  28. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/runner/index.js +84 -0
  29. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/upgrader/bin.js +8 -0
  30. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/upgrader/index.js +65 -0
  31. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/package.json +114 -0
  32. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/run.js +14 -0
  33. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/.github/workflows/ci.yml +52 -0
  34. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/.ready +0 -0
  35. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/CHANGELOG.md +577 -0
  36. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/CMakeLists.txt +138 -0
  37. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/LICENSE.md +9 -0
  38. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/README.md +455 -0
  39. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/asyncworker.md +146 -0
  40. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/buffers.md +54 -0
  41. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/callback.md +76 -0
  42. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/converters.md +41 -0
  43. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/errors.md +226 -0
  44. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/json.md +62 -0
  45. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/maybe_types.md +583 -0
  46. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/methods.md +672 -0
  47. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/new.md +147 -0
  48. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/node_misc.md +123 -0
  49. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/object_wrappers.md +263 -0
  50. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/persistent.md +296 -0
  51. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/scopes.md +73 -0
  52. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/script.md +58 -0
  53. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/string_bytes.md +62 -0
  54. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/v8_internals.md +199 -0
  55. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/v8_misc.md +85 -0
  56. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/include_dirs.js +1 -0
  57. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan.h +3049 -0
  58. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks.h +128 -0
  59. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks_12_inl.h +676 -0
  60. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks_pre_12_inl.h +520 -0
  61. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters.h +72 -0
  62. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters_43_inl.h +68 -0
  63. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters_pre_43_inl.h +42 -0
  64. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_define_own_property_helper.h +29 -0
  65. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_implementation_12_inl.h +430 -0
  66. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_implementation_pre_12_inl.h +263 -0
  67. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_json.h +166 -0
  68. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_maybe_43_inl.h +356 -0
  69. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_maybe_pre_43_inl.h +268 -0
  70. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_new.h +340 -0
  71. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_object_wrap.h +156 -0
  72. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_persistent_12_inl.h +132 -0
  73. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_persistent_pre_12_inl.h +242 -0
  74. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_private.h +73 -0
  75. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_scriptorigin.h +95 -0
  76. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_string_bytes.h +305 -0
  77. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_typedarray_contents.h +96 -0
  78. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_weak.h +437 -0
  79. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/package.json +38 -0
  80. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/1to2.js +412 -0
  81. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/README.md +14 -0
  82. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/package.json +19 -0
  83. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/.ready +0 -0
  84. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/.release-please-manifest.json +3 -0
  85. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CHANGELOG.md +1053 -0
  86. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CODE_OF_CONDUCT.md +4 -0
  87. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CONTRIBUTING.md +34 -0
  88. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/LICENSE +24 -0
  89. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/README.md +273 -0
  90. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/SECURITY.md +2 -0
  91. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/addon.gypi +204 -0
  92. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/bin/node-gyp.js +138 -0
  93. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/eslint.config.js +3 -0
  94. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/.release-please-manifest.json +3 -0
  95. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/LICENSE +28 -0
  96. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/data/ninja/build.ninja +4 -0
  97. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +12 -0
  98. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp +8 -0
  99. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp.bat +5 -0
  100. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp_main.py +45 -0
  101. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +365 -0
  102. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +206 -0
  103. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +1272 -0
  104. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +1547 -0
  105. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +59 -0
  106. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +152 -0
  107. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +270 -0
  108. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +574 -0
  109. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +704 -0
  110. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/common.py +709 -0
  111. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +173 -0
  112. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +169 -0
  113. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +113 -0
  114. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +55 -0
  115. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
  116. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +805 -0
  117. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +1172 -0
  118. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +1319 -0
  119. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +128 -0
  120. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +104 -0
  121. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +462 -0
  122. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +89 -0
  123. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +56 -0
  124. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +2745 -0
  125. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +3976 -0
  126. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +44 -0
  127. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +2965 -0
  128. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +67 -0
  129. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +1391 -0
  130. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +26 -0
  131. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/input.py +3112 -0
  132. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +99 -0
  133. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +767 -0
  134. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +1260 -0
  135. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +174 -0
  136. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +61 -0
  137. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +373 -0
  138. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +1939 -0
  139. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +54 -0
  140. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +303 -0
  141. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +3196 -0
  142. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +65 -0
  143. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE +3 -0
  144. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +177 -0
  145. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.BSD +23 -0
  146. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +15 -0
  147. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +108 -0
  148. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +252 -0
  149. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +83 -0
  150. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +359 -0
  151. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +61 -0
  152. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +192 -0
  153. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/markers.py +252 -0
  154. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +825 -0
  155. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/py.typed +0 -0
  156. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +90 -0
  157. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +1030 -0
  158. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/tags.py +553 -0
  159. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/utils.py +172 -0
  160. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/version.py +563 -0
  161. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pyproject.toml +115 -0
  162. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/release-please-config.json +11 -0
  163. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/test_gyp.py +261 -0
  164. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/Find-VisualStudio.cs +250 -0
  165. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/build.js +230 -0
  166. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/clean.js +15 -0
  167. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/configure.js +328 -0
  168. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/create-config-gypi.js +153 -0
  169. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/download.js +39 -0
  170. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-node-directory.js +63 -0
  171. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-python.js +310 -0
  172. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-visualstudio.js +600 -0
  173. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/install.js +415 -0
  174. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/list.js +26 -0
  175. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/log.js +168 -0
  176. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/node-gyp.js +188 -0
  177. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/process-release.js +146 -0
  178. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/rebuild.js +12 -0
  179. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/remove.js +43 -0
  180. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/util.js +81 -0
  181. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/macOS_Catalina_acid_test.sh +21 -0
  182. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/package.json +52 -0
  183. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/release-please-config.json +40 -0
  184. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/.prettierrc +4 -0
  185. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/.ready +0 -0
  186. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/CHANGELOG.md +286 -0
  187. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/LICENSE +21 -0
  188. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/README.md +457 -0
  189. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/index.js +52 -0
  190. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/lib/checkGrowl.js +24 -0
  191. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/lib/utils.js +515 -0
  192. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/balloon.js +156 -0
  193. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/growl.js +76 -0
  194. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/notificationcenter.js +100 -0
  195. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/notifysend.js +94 -0
  196. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/toaster.js +100 -0
  197. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/package.json +72 -0
  198. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/Info.plist +63 -0
  199. 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
  200. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/PkgInfo +1 -0
  201. 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
  202. 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 +29 -0
  203. 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
  204. 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
  205. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/notifu/notifu.exe +0 -0
  206. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/notifu/notifu64.exe +0 -0
  207. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/snoreToast/LICENSE +165 -0
  208. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/snoreToast/SnoreToast.exe +0 -0
  209. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/terminal-notifier-LICENSE +9 -0
  210. package/lib/cloudrun/index.js +216 -4
  211. package/lib/utils/index.js +37 -10
  212. package/package.json +1 -1
  213. package/types/cloudrun/index.d.ts +31 -1
@@ -0,0 +1,515 @@
1
+ var shellwords = require('shellwords');
2
+ var cp = require('child_process');
3
+ var semver = require('semver');
4
+ var isWSL = require('is-wsl');
5
+ var path = require('path');
6
+ var url = require('url');
7
+ var os = require('os');
8
+ var fs = require('fs');
9
+
10
+ function clone(obj) {
11
+ return JSON.parse(JSON.stringify(obj));
12
+ }
13
+
14
+ module.exports.clone = clone;
15
+
16
+ var escapeQuotes = function(str) {
17
+ if (typeof str === 'string') {
18
+ return str.replace(/(["$`\\])/g, '\\$1');
19
+ } else {
20
+ return str;
21
+ }
22
+ };
23
+
24
+ var inArray = function(arr, val) {
25
+ return arr.indexOf(val) !== -1;
26
+ };
27
+
28
+ var notifySendFlags = {
29
+ u: 'urgency',
30
+ urgency: 'urgency',
31
+ t: 'expire-time',
32
+ time: 'expire-time',
33
+ timeout: 'expire-time',
34
+ e: 'expire-time',
35
+ expire: 'expire-time',
36
+ 'expire-time': 'expire-time',
37
+ i: 'icon',
38
+ icon: 'icon',
39
+ c: 'category',
40
+ category: 'category',
41
+ subtitle: 'category',
42
+ h: 'hint',
43
+ hint: 'hint'
44
+ };
45
+
46
+ module.exports.command = function(notifier, options, cb) {
47
+ notifier = shellwords.escape(notifier);
48
+ if (process.env.DEBUG && process.env.DEBUG.indexOf('notifier') !== -1) {
49
+ console.info('node-notifier debug info (command):');
50
+ console.info('[notifier path]', notifier);
51
+ console.info('[notifier options]', options.join(' '));
52
+ }
53
+
54
+ return cp.exec(notifier + ' ' + options.join(' '), function(
55
+ error,
56
+ stdout,
57
+ stderr
58
+ ) {
59
+ if (error) return cb(error);
60
+ cb(stderr, stdout);
61
+ });
62
+ };
63
+
64
+ module.exports.fileCommand = function(notifier, options, cb) {
65
+ if (process.env.DEBUG && process.env.DEBUG.indexOf('notifier') !== -1) {
66
+ console.info('node-notifier debug info (fileCommand):');
67
+ console.info('[notifier path]', notifier);
68
+ console.info('[notifier options]', options.join(' '));
69
+ }
70
+
71
+ return cp.execFile(notifier, options, function(error, stdout, stderr) {
72
+ if (error) return cb(error, stdout);
73
+ cb(stderr, stdout);
74
+ });
75
+ };
76
+
77
+ module.exports.fileCommandJson = function(notifier, options, cb) {
78
+ if (process.env.DEBUG && process.env.DEBUG.indexOf('notifier') !== -1) {
79
+ console.info('node-notifier debug info (fileCommandJson):');
80
+ console.info('[notifier path]', notifier);
81
+ console.info('[notifier options]', options.join(' '));
82
+ }
83
+ return cp.execFile(notifier, options, function(error, stdout, stderr) {
84
+ if (error) return cb(error, stdout);
85
+ if (!stdout) return cb(error, {});
86
+
87
+ try {
88
+ var data = JSON.parse(stdout);
89
+ cb(stderr, data);
90
+ } catch (e) {
91
+ cb(e, stdout);
92
+ }
93
+ });
94
+ };
95
+
96
+ module.exports.immediateFileCommand = function(notifier, options, cb) {
97
+ if (process.env.DEBUG && process.env.DEBUG.indexOf('notifier') !== -1) {
98
+ console.info('node-notifier debug info (notifier):');
99
+ console.info('[notifier path]', notifier);
100
+ }
101
+
102
+ notifierExists(notifier, function(_, exists) {
103
+ if (!exists) {
104
+ return cb(new Error('Notifier (' + notifier + ') not found on system.'));
105
+ }
106
+ cp.execFile(notifier, options);
107
+ cb();
108
+ });
109
+ };
110
+
111
+ function notifierExists(notifier, cb) {
112
+ return fs.stat(notifier, function(err, stat) {
113
+ if (!err) return cb(err, stat.isFile());
114
+
115
+ // Check if Windows alias
116
+ if (path.extname(notifier)) {
117
+ // Has extentioon, no need to check more
118
+ return cb(err, false);
119
+ }
120
+
121
+ // Check if there is an exe file in the directory
122
+ return fs.stat(notifier + '.exe', function(err, stat) {
123
+ if (err) return cb(err, false);
124
+ cb(err, stat.isFile());
125
+ });
126
+ });
127
+ }
128
+
129
+ var mapAppIcon = function(options) {
130
+ if (options.appIcon) {
131
+ options.icon = options.appIcon;
132
+ delete options.appIcon;
133
+ }
134
+
135
+ return options;
136
+ };
137
+
138
+ var mapText = function(options) {
139
+ if (options.text) {
140
+ options.message = options.text;
141
+ delete options.text;
142
+ }
143
+
144
+ return options;
145
+ };
146
+
147
+ var mapIconShorthand = function(options) {
148
+ if (options.i) {
149
+ options.icon = options.i;
150
+ delete options.i;
151
+ }
152
+
153
+ return options;
154
+ };
155
+
156
+ module.exports.mapToNotifySend = function(options) {
157
+ options = mapAppIcon(options);
158
+ options = mapText(options);
159
+
160
+ for (var key in options) {
161
+ if (key === 'message' || key === 'title') continue;
162
+ if (options.hasOwnProperty(key) && notifySendFlags[key] !== key) {
163
+ options[notifySendFlags[key]] = options[key];
164
+ delete options[key];
165
+ }
166
+ }
167
+
168
+ return options;
169
+ };
170
+
171
+ module.exports.mapToGrowl = function(options) {
172
+ options = mapAppIcon(options);
173
+ options = mapIconShorthand(options);
174
+ options = mapText(options);
175
+
176
+ if (options.icon && !Buffer.isBuffer(options.icon)) {
177
+ try {
178
+ options.icon = fs.readFileSync(options.icon);
179
+ } catch (ex) {}
180
+ }
181
+
182
+ return options;
183
+ };
184
+
185
+ module.exports.mapToMac = function(options) {
186
+ options = mapIconShorthand(options);
187
+ options = mapText(options);
188
+
189
+ if (options.icon) {
190
+ options.appIcon = options.icon;
191
+ delete options.icon;
192
+ }
193
+
194
+ if (options.sound === true) {
195
+ options.sound = 'Bottle';
196
+ }
197
+
198
+ if (options.sound === false) {
199
+ delete options.sound;
200
+ }
201
+
202
+ if (options.sound && options.sound.indexOf('Notification.') === 0) {
203
+ options.sound = 'Bottle';
204
+ }
205
+
206
+ if (options.wait === true) {
207
+ if (!options.timeout) {
208
+ options.timeout = 5;
209
+ }
210
+ delete options.wait;
211
+ }
212
+
213
+ options.json = true;
214
+ return options;
215
+ };
216
+
217
+ function isArray(arr) {
218
+ return Object.prototype.toString.call(arr) === '[object Array]';
219
+ }
220
+
221
+ function noop() {}
222
+ module.exports.actionJackerDecorator = function(emitter, options, fn, mapper) {
223
+ options = clone(options);
224
+ fn = fn || noop;
225
+
226
+ if (typeof fn !== 'function') {
227
+ throw new TypeError(
228
+ 'The second argument must be a function callback. You have passed ' +
229
+ typeof fn
230
+ );
231
+ }
232
+
233
+ return function(err, data) {
234
+ var resultantData = data;
235
+ var metadata = {};
236
+ // Allow for extra data if resultantData is an object
237
+ if (resultantData && typeof resultantData === 'object') {
238
+ metadata = resultantData;
239
+ resultantData = resultantData.activationType;
240
+ }
241
+
242
+ // Sanitize the data
243
+ if (resultantData) {
244
+ resultantData = resultantData.toLowerCase().trim();
245
+ if (resultantData.match(/^activate|clicked$/)) {
246
+ resultantData = 'activate';
247
+ }
248
+ }
249
+
250
+ fn.apply(emitter, [err, resultantData, metadata]);
251
+ if (!mapper || !resultantData) return;
252
+
253
+ var key = mapper(resultantData);
254
+ if (!key) return;
255
+ emitter.emit(key, emitter, options, metadata);
256
+ };
257
+ };
258
+
259
+ module.exports.constructArgumentList = function(options, extra) {
260
+ var args = [];
261
+ extra = extra || {};
262
+
263
+ // Massive ugly setup. Default args
264
+ var initial = extra.initial || [];
265
+ var keyExtra = extra.keyExtra || '';
266
+ var allowedArguments = extra.allowedArguments || [];
267
+ var noEscape = extra.noEscape !== void 0;
268
+ var checkForAllowed = extra.allowedArguments !== void 0;
269
+ var explicitTrue = !!extra.explicitTrue;
270
+ var keepNewlines = !!extra.keepNewlines;
271
+ var wrapper = extra.wrapper === void 0 ? '"' : extra.wrapper;
272
+
273
+ var escapeFn = function escapeFn(arg) {
274
+ if (isArray(arg)) {
275
+ return removeNewLines(arg.map(escapeFn).join(','));
276
+ }
277
+
278
+ if (!noEscape) {
279
+ arg = escapeQuotes(arg);
280
+ }
281
+ if (typeof arg === 'string' && !keepNewlines) {
282
+ arg = removeNewLines(arg);
283
+ }
284
+ return wrapper + arg + wrapper;
285
+ };
286
+
287
+ initial.forEach(function(val) {
288
+ args.push(escapeFn(val));
289
+ });
290
+ for (var key in options) {
291
+ if (
292
+ options.hasOwnProperty(key) &&
293
+ (!checkForAllowed || inArray(allowedArguments, key))
294
+ ) {
295
+ if (explicitTrue && options[key] === true) {
296
+ args.push('-' + keyExtra + key);
297
+ } else if (explicitTrue && options[key] === false) continue;
298
+ else args.push('-' + keyExtra + key, escapeFn(options[key]));
299
+ }
300
+ }
301
+ return args;
302
+ };
303
+
304
+ function removeNewLines(str) {
305
+ var excapedNewline = process.platform === 'win32' ? '\\r\\n' : '\\n';
306
+ return str.replace(/\r?\n/g, excapedNewline);
307
+ }
308
+
309
+ /*
310
+ ---- Options ----
311
+ [-t] <title string> | Displayed on the first line of the toast.
312
+ [-m] <message string> | Displayed on the remaining lines, wrapped.
313
+ [-p] <image URI> | Display toast with an image, local files only.
314
+ [-w] | Wait for toast to expire or activate.
315
+ [-id] <id> | sets the id for a notification to be able to close it later.
316
+ [-s] <sound URI> | Sets the sound of the notifications, for possible values see http://msdn.microsoft.com/en-us/library/windows/apps/hh761492.aspx.
317
+ [-silent] | Don't play a sound file when showing the notifications.
318
+ [-appID] <App.ID> | Don't create a shortcut but use the provided app id.
319
+ -close <id> | Closes a currently displayed notification, in order to be able to close a notification the parameter -w must be used to create the notification.
320
+ */
321
+ var allowedToasterFlags = [
322
+ 't',
323
+ 'm',
324
+ 'p',
325
+ 'w',
326
+ 'id',
327
+ 's',
328
+ 'silent',
329
+ 'appID',
330
+ 'close',
331
+ 'install'
332
+ ];
333
+ var toasterSoundPrefix = 'Notification.';
334
+ var toasterDefaultSound = 'Notification.Default';
335
+ module.exports.mapToWin8 = function(options) {
336
+ options = mapAppIcon(options);
337
+ options = mapText(options);
338
+
339
+ if (options.icon) {
340
+ if (/^file:\/+/.test(options.icon)) {
341
+ // should parse file protocol URL to path
342
+ options.p = new url.URL(options.icon).pathname
343
+ .replace(/^\/(\w:\/)/, '$1')
344
+ .replace(/\//g, '\\');
345
+ } else {
346
+ options.p = options.icon;
347
+ }
348
+ delete options.icon;
349
+ }
350
+
351
+ if (options.message) {
352
+ // Remove escape char to debug "HRESULT : 0xC00CE508" exception
353
+ options.m = options.message.replace(/\x1b/g, '');
354
+ delete options.message;
355
+ }
356
+
357
+ if (options.title) {
358
+ options.t = options.title;
359
+ delete options.title;
360
+ }
361
+
362
+ if (options.appName) {
363
+ options.appID = options.appName;
364
+ delete options.appName;
365
+ }
366
+
367
+ if (typeof options.remove !== 'undefined') {
368
+ options.close = options.remove;
369
+ delete options.remove;
370
+ }
371
+
372
+ if (options.quiet || options.silent) {
373
+ options.silent = options.quiet || options.silent;
374
+ delete options.quiet;
375
+ }
376
+
377
+ if (typeof options.sound !== 'undefined') {
378
+ options.s = options.sound;
379
+ delete options.sound;
380
+ }
381
+
382
+ if (options.s === false) {
383
+ options.silent = true;
384
+ delete options.s;
385
+ }
386
+
387
+ // Silent takes precedence. Remove sound.
388
+ if (options.s && options.silent) {
389
+ delete options.s;
390
+ }
391
+
392
+ if (options.s === true) {
393
+ options.s = toasterDefaultSound;
394
+ }
395
+
396
+ if (options.s && options.s.indexOf(toasterSoundPrefix) !== 0) {
397
+ options.s = toasterDefaultSound;
398
+ }
399
+
400
+ if (options.wait) {
401
+ options.w = options.wait;
402
+ delete options.wait;
403
+ }
404
+
405
+ for (var key in options) {
406
+ // Check if is allowed. If not, delete!
407
+ if (
408
+ options.hasOwnProperty(key) &&
409
+ allowedToasterFlags.indexOf(key) === -1
410
+ ) {
411
+ delete options[key];
412
+ }
413
+ }
414
+
415
+ return options;
416
+ };
417
+
418
+ module.exports.mapToNotifu = function(options) {
419
+ options = mapAppIcon(options);
420
+ options = mapText(options);
421
+
422
+ if (options.icon) {
423
+ options.i = options.icon;
424
+ delete options.icon;
425
+ }
426
+
427
+ if (options.message) {
428
+ options.m = options.message;
429
+ delete options.message;
430
+ }
431
+
432
+ if (options.title) {
433
+ options.p = options.title;
434
+ delete options.title;
435
+ }
436
+
437
+ if (options.time) {
438
+ options.d = options.time;
439
+ delete options.time;
440
+ }
441
+
442
+ if (options.q !== false) {
443
+ options.q = true;
444
+ } else {
445
+ delete options.q;
446
+ }
447
+
448
+ if (options.quiet === false) {
449
+ delete options.q;
450
+ delete options.quiet;
451
+ }
452
+
453
+ if (options.sound) {
454
+ delete options.q;
455
+ delete options.sound;
456
+ }
457
+
458
+ if (options.t) {
459
+ options.d = options.t;
460
+ delete options.t;
461
+ }
462
+
463
+ if (options.type) {
464
+ options.t = sanitizeNotifuTypeArgument(options.type);
465
+ delete options.type;
466
+ }
467
+
468
+ return options;
469
+ };
470
+
471
+ module.exports.isMac = function() {
472
+ return os.type() === 'Darwin';
473
+ };
474
+
475
+ module.exports.isMountainLion = function() {
476
+ return (
477
+ os.type() === 'Darwin' &&
478
+ semver.satisfies(garanteeSemverFormat(os.release()), '>=12.0.0')
479
+ );
480
+ };
481
+
482
+ module.exports.isWin8 = function() {
483
+ return (
484
+ os.type() === 'Windows_NT' &&
485
+ semver.satisfies(garanteeSemverFormat(os.release()), '>=6.2.9200')
486
+ );
487
+ };
488
+
489
+ module.exports.isWSL = function() {
490
+ return isWSL;
491
+ };
492
+
493
+ module.exports.isLessThanWin8 = function() {
494
+ return (
495
+ os.type() === 'Windows_NT' &&
496
+ semver.satisfies(garanteeSemverFormat(os.release()), '<6.2.9200')
497
+ );
498
+ };
499
+
500
+ function garanteeSemverFormat(version) {
501
+ if (version.split('.').length === 2) {
502
+ version += '.0';
503
+ }
504
+ return version;
505
+ }
506
+
507
+ function sanitizeNotifuTypeArgument(type) {
508
+ if (typeof type === 'string' || type instanceof String) {
509
+ if (type.toLowerCase() === 'info') return 'info';
510
+ if (type.toLowerCase() === 'warn') return 'warn';
511
+ if (type.toLowerCase() === 'error') return 'error';
512
+ }
513
+
514
+ return 'info';
515
+ }
@@ -0,0 +1,156 @@
1
+ /**
2
+ * Wrapper for the notifu 1.6 (http://www.paralint.com/projects/notifu/)
3
+
4
+ Usage
5
+ /t <value> The type of message to display values are:
6
+ info The message is an informational message
7
+ warn The message is an warning message
8
+ error The message is an error message
9
+ /d <value> The number of milliseconds to display (omit or 0 for infinit)
10
+ /p <value> The title (or prompt) of the ballon
11
+ /m <value> The message text
12
+ /i <value> Specify an icon to use ("parent" uses the icon of the parent process)
13
+ /e Enable ballon tips in the registry (for this user only)
14
+ /q Do not play a sound when the tooltip is displayed
15
+ /w Show the tooltip even if the user is in the quiet period that follows his very first login (Windows 7 and up)
16
+ /xp Use IUserNotification interface event when IUserNotification2 is available
17
+
18
+ // Kill codes:
19
+ 2 = Timeout
20
+ 3 = Clicked
21
+ 4 = Closed or faded out
22
+
23
+ */
24
+ var path = require('path');
25
+ var notifier = path.resolve(__dirname, '../vendor/notifu/notifu');
26
+ var checkGrowl = require('../lib/checkGrowl');
27
+ var utils = require('../lib/utils');
28
+ var Toaster = require('./toaster');
29
+ var Growl = require('./growl');
30
+ var os = require('os');
31
+
32
+ var EventEmitter = require('events').EventEmitter;
33
+ var util = require('util');
34
+
35
+ var hasGrowl = void 0;
36
+
37
+ module.exports = WindowsBalloon;
38
+
39
+ function WindowsBalloon(options) {
40
+ options = utils.clone(options || {});
41
+ if (!(this instanceof WindowsBalloon)) {
42
+ return new WindowsBalloon(options);
43
+ }
44
+
45
+ this.options = options;
46
+
47
+ EventEmitter.call(this);
48
+ }
49
+ util.inherits(WindowsBalloon, EventEmitter);
50
+
51
+ function noop() {}
52
+ WindowsBalloon.prototype.notify = function(options, callback) {
53
+ var fallback;
54
+ var notifierOptions = this.options;
55
+ options = utils.clone(options || {});
56
+ callback = callback || noop;
57
+
58
+ if (typeof options === 'string') {
59
+ options = { title: 'node-notifier', message: options };
60
+ }
61
+
62
+ var actionJackedCallback = utils.actionJackerDecorator(
63
+ this,
64
+ options,
65
+ callback,
66
+ function(data) {
67
+ if (data === 'activate') {
68
+ return 'click';
69
+ }
70
+ if (data === 'timeout') {
71
+ return 'timeout';
72
+ }
73
+ return false;
74
+ }
75
+ );
76
+
77
+ if (!!this.options.withFallback && utils.isWin8()) {
78
+ fallback = fallback || new Toaster(notifierOptions);
79
+ return fallback.notify(options, callback);
80
+ }
81
+
82
+ if (
83
+ !!this.options.withFallback &&
84
+ (!utils.isLessThanWin8() || hasGrowl === true)
85
+ ) {
86
+ fallback = fallback || new Growl(notifierOptions);
87
+ return fallback.notify(options, callback);
88
+ }
89
+
90
+ if (!this.options.withFallback || hasGrowl === false) {
91
+ doNotification(options, notifierOptions, actionJackedCallback);
92
+ return this;
93
+ }
94
+
95
+ checkGrowl(notifierOptions, function(_, hasGrowlResult) {
96
+ hasGrowl = hasGrowlResult;
97
+
98
+ if (hasGrowl) {
99
+ fallback = fallback || new Growl(notifierOptions);
100
+ return fallback.notify(options, callback);
101
+ }
102
+
103
+ doNotification(options, notifierOptions, actionJackedCallback);
104
+ });
105
+
106
+ return this;
107
+ };
108
+
109
+ var allowedArguments = ['t', 'd', 'p', 'm', 'i', 'e', 'q', 'w', 'xp'];
110
+
111
+ function doNotification(options, notifierOptions, callback) {
112
+ var is64Bit = os.arch() === 'x64';
113
+ options = options || {};
114
+ options = utils.mapToNotifu(options);
115
+ options.p = options.p || 'Node Notification:';
116
+
117
+ var fullNotifierPath = notifier + (is64Bit ? '64' : '') + '.exe';
118
+ var localNotifier = notifierOptions.customPath || fullNotifierPath;
119
+
120
+ if (!options.m) {
121
+ callback(new Error('Message is required.'));
122
+ return this;
123
+ }
124
+
125
+ var argsList = utils.constructArgumentList(options, {
126
+ wrapper: '',
127
+ noEscape: true,
128
+ explicitTrue: true,
129
+ allowedArguments: allowedArguments
130
+ });
131
+
132
+ if (options.wait) {
133
+ return utils.fileCommand(localNotifier, argsList, function(error, data) {
134
+ var action = fromErrorCodeToAction(error.code);
135
+ if (action === 'error') return callback(error, data);
136
+
137
+ return callback(null, action);
138
+ });
139
+ }
140
+ utils.immediateFileCommand(localNotifier, argsList, callback);
141
+ }
142
+
143
+ function fromErrorCodeToAction(errorCode) {
144
+ switch (errorCode) {
145
+ case 2:
146
+ return 'timeout';
147
+ case 3:
148
+ case 6:
149
+ case 7:
150
+ return 'activate';
151
+ case 4:
152
+ return 'close';
153
+ default:
154
+ return 'error';
155
+ }
156
+ }