@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,457 +0,0 @@
1
- # node-notifier [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]
2
-
3
- Send cross platform native notifications using Node.js. Notification Center for macOS,
4
- `notify-osd`/`libnotify-bin` for Linux, Toasters for Windows 8/10, or taskbar balloons for
5
- earlier Windows versions. Growl is used if none of these requirements are met.
6
- [Works well with Electron](#within-electron-packaging).
7
-
8
- ![macOS Screenshot](https://raw.githubusercontent.com/mikaelbr/node-notifier/master/example/mac.png)
9
- ![Native Windows Screenshot](https://raw.githubusercontent.com/mikaelbr/node-notifier/master/example/windows.png)
10
-
11
- ## Input Example macOS Notification Center
12
-
13
- ![Input Example](https://raw.githubusercontent.com/mikaelbr/node-notifier/master/example/input-example.gif)
14
-
15
- ## Quick Usage
16
-
17
- Show a native notification on macOS, Windows, Linux:
18
-
19
- ```javascript
20
- const notifier = require('node-notifier');
21
- // String
22
- notifier.notify('Message');
23
-
24
- // Object
25
- notifier.notify({
26
- title: 'My notification',
27
- message: 'Hello, there!'
28
- });
29
- ```
30
-
31
- ## Requirements
32
-
33
- - **macOS**: >= 10.8 for native notifications, or Growl if earlier.
34
- - **Linux**: `notify-osd` or `libnotify-bin` installed (Ubuntu should have this by default)
35
- - **Windows**: >= 8, or task bar balloons for Windows < 8. Growl as fallback. Growl takes precedence over Windows balloons.
36
- - **General Fallback**: Growl
37
-
38
- See [documentation and flow chart for reporter choice](./DECISION_FLOW.md).
39
-
40
- ## Install
41
-
42
- ```shell
43
- npm install --save node-notifier
44
- ```
45
-
46
- ## <abbr title="Command Line Interface">CLI</abbr>
47
-
48
- <abbr title="Command Line Interface">CLI</abbr> has moved to separate project:
49
- <https://github.com/mikaelbr/node-notifier-cli>
50
-
51
- ## Cross-Platform Advanced Usage
52
-
53
- Standard usage, with cross-platform fallbacks as defined in the
54
- [reporter flow chart](./DECISION_FLOW.md). All of the options
55
- below will work in some way or another on all platforms.
56
-
57
- ```javascript
58
- const notifier = require('node-notifier');
59
- const path = require('path');
60
-
61
- notifier.notify(
62
- {
63
- title: 'My awesome title',
64
- message: 'Hello from node, Mr. User!',
65
- icon: path.join(__dirname, 'coulson.jpg'), // Absolute path (doesn't work on balloons)
66
- sound: true, // Only Notification Center or Windows Toasters
67
- wait: true // Wait with callback, until user action is taken against notification
68
- },
69
- function(err, response) {
70
- // Response is response from notification
71
- }
72
- );
73
-
74
- notifier.on('click', function(notifierObject, options, event) {
75
- // Triggers if `wait: true` and user clicks notification
76
- });
77
-
78
- notifier.on('timeout', function(notifierObject, options) {
79
- // Triggers if `wait: true` and notification closes
80
- });
81
- ```
82
-
83
- If you want super fine-grained control, you can customize each reporter individually,
84
- allowing you to tune specific options for different systems.
85
-
86
- See below for documentation on each reporter.
87
-
88
- **Example:**
89
-
90
- ```javascript
91
- const NotificationCenter = require('node-notifier/notifiers/notificationcenter');
92
- new NotificationCenter(options).notify();
93
-
94
- const NotifySend = require('node-notifier/notifiers/notifysend');
95
- new NotifySend(options).notify();
96
-
97
- const WindowsToaster = require('node-notifier/notifiers/toaster');
98
- new WindowsToaster(options).notify();
99
-
100
- const Growl = require('node-notifier/notifiers/growl');
101
- new Growl(options).notify();
102
-
103
- const WindowsBalloon = require('node-notifier/notifiers/balloon');
104
- new WindowsBalloon(options).notify();
105
- ```
106
-
107
- Or, if you are using several reporters (or you're lazy):
108
-
109
- ```javascript
110
- // NOTE: Technically, this takes longer to require
111
- const nn = require('node-notifier');
112
-
113
- new nn.NotificationCenter(options).notify();
114
- new nn.NotifySend(options).notify();
115
- new nn.WindowsToaster(options).notify(options);
116
- new nn.WindowsBalloon(options).notify(options);
117
- new nn.Growl(options).notify(options);
118
- ```
119
-
120
- ## Contents
121
-
122
- - [Notification Center documentation](#usage-notificationcenter)
123
- - [Windows Toaster documentation](#usage-windowstoaster)
124
- - [Windows Balloon documentation](#usage-windowsballoon)
125
- - [Growl documentation](#usage-growl)
126
- - [Notify-send documentation](#usage-notifysend)
127
-
128
- ### Usage: `NotificationCenter`
129
-
130
- Same usage and parameter setup as [**`terminal-notifier`**](https://github.com/julienXX/terminal-notifier).
131
-
132
- Native Notification Center requires macOS version 10.8 or higher. If you have
133
- an earlier version, Growl will be the fallback. If Growl isn't installed, an
134
- error will be returned in the callback.
135
-
136
- #### Example
137
-
138
- Because `node-notifier` wraps around [**`terminal-notifier`**](https://github.com/julienXX/terminal-notifier),
139
- you can do anything `terminal-notifier` can, just by passing properties to the `notify`
140
- method.
141
-
142
- For example:
143
-
144
- - if `terminal-notifier` says `-message`, you can do `{message: 'Foo'}`
145
- - if `terminal-notifier` says `-list ALL`, you can do `{list: 'ALL'}`.
146
-
147
- Notification is the primary focus of this module, so listing and activating do work,
148
- but they aren't documented.
149
-
150
- ### All notification options with their defaults:
151
-
152
- ```javascript
153
- const NotificationCenter = require('node-notifier').NotificationCenter;
154
-
155
- var notifier = new NotificationCenter({
156
- withFallback: false, // Use Growl Fallback if <= 10.8
157
- customPath: void 0 // Relative/Absolute path to binary if you want to use your own fork of terminal-notifier
158
- });
159
-
160
- notifier.notify(
161
- {
162
- title: void 0,
163
- subtitle: void 0,
164
- message: void 0,
165
- sound: false, // Case Sensitive string for location of sound file, or use one of macOS' native sounds (see below)
166
- icon: 'Terminal Icon', // Absolute Path to Triggering Icon
167
- contentImage: void 0, // Absolute Path to Attached Image (Content Image)
168
- open: void 0, // URL to open on Click
169
- wait: false, // Wait for User Action against Notification or times out. Same as timeout = 5 seconds
170
-
171
- // New in latest version. See `example/macInput.js` for usage
172
- timeout: 5, // Takes precedence over wait if both are defined.
173
- closeLabel: void 0, // String. Label for cancel button
174
- actions: void 0, // String | Array<String>. Action label or list of labels in case of dropdown
175
- dropdownLabel: void 0, // String. Label to be used if multiple actions
176
- reply: false // Boolean. If notification should take input. Value passed as third argument in callback and event emitter.
177
- },
178
- function(error, response, metadata) {
179
- console.log(response, metadata);
180
- }
181
- );
182
- ```
183
-
184
- ---
185
-
186
- **Note:** The `wait` option is shorthand for `timeout: 5`. This just sets a timeout
187
- for 5 seconds. It does _not_ make the notification sticky!
188
-
189
- Without `wait` or `timeout`, notifications are just fired and forgotten. They don't
190
- wait for any response.
191
-
192
- To make notifications wait for a response (like activation/click), you must define
193
- a `timeout`.
194
-
195
- _Exception:_ If `reply` is defined, it's recommended to set `timeout` to a either
196
- high value, or to nothing at all.
197
-
198
- ---
199
-
200
- **For macOS notifications: `icon`, `contentImage`, and all forms of `reply`/`actions` require macOS 10.9.**
201
-
202
- Sound can be one of these: `Basso`, `Blow`, `Bottle`, `Frog`, `Funk`, `Glass`,
203
- `Hero`, `Morse`, `Ping`, `Pop`, `Purr`, `Sosumi`, `Submarine`, `Tink`.
204
-
205
- If `sound` is simply `true`, `Bottle` is used.
206
-
207
- ---
208
-
209
- **See Also:**
210
-
211
- - [Example: specific Notification Centers](./example/advanced.js)
212
- - [Example: input](./example/macInput.js).
213
-
214
- ---
215
-
216
- **Custom Path clarification**
217
-
218
- `customPath` takes a value of a relative or absolute path to the binary of your
219
- fork/custom version of **`terminal-notifier`**.
220
-
221
- **Example:** `./vendor/mac.noindex/terminal-notifier.app/Contents/MacOS/terminal-notifier`
222
-
223
- **Spotlight clarification**
224
-
225
- `terminal-notifier.app` resides in a `mac.noindex` folder to prevent Spotlight from indexing the app.
226
-
227
- ### Usage: `WindowsToaster`
228
-
229
- **Note:** There are some limitations for images in native Windows 8 notifications:
230
-
231
- - The image must be a PNG image
232
- - The image must be smaller than 1024×1024 px
233
- - The image must be less than 200kb
234
- - The image must be specified using an absolute path
235
-
236
- These limitations are due to the Toast notification system. A good tip is to use
237
- something like `path.join` or `path.delimiter` to keep your paths cross-platform.
238
-
239
- From [mikaelbr/gulp-notify#90 (comment)](https://github.com/mikaelbr/gulp-notify/issues/90#issuecomment-129333034)
240
-
241
- > You can make it work by going to System > Notifications & Actions. The 'toast'
242
- > app needs to have Banners enabled. (You can activate banners by clicking on the
243
- > 'toast' app and setting the 'Show notification banners' to On)
244
-
245
- ---
246
-
247
- **Windows 10 Fall Creators Update (Version 1709) Note:**
248
-
249
- With the Fall Creators Update, Notifications on Windows 10 will only work as
250
- expected if the correct `appID` is specified. Your `appID` must be exactly the same
251
- value that was registered during the installation of your app.
252
-
253
- You can find the ID of your App by searching the registry for the `appID` you
254
- specified at installation of your app. For example: If you use the squirrel
255
- framework, your `appID` will be something like `com.squirrel.your.app`.
256
-
257
- The default behaviour is to have the underlying toaster applicaton as `appId`.
258
- This works as expected, but shows `SnoreToast` as text in the notification.
259
-
260
- [**Snoretoast**](https://github.com/KDE/snoretoast) is used to get native Windows Toasts!
261
-
262
- ```javascript
263
- const WindowsToaster = require('node-notifier').WindowsToaster;
264
-
265
- var notifier = new WindowsToaster({
266
- withFallback: false, // Fallback to Growl or Balloons?
267
- customPath: void 0 // Relative/Absolute path if you want to use your fork of SnoreToast.exe
268
- });
269
-
270
- notifier.notify(
271
- {
272
- title: void 0, // String. Required
273
- message: void 0, // String. Required if remove is not defined
274
- icon: void 0, // String. Absolute path to Icon
275
- sound: false, // Bool | String (as defined by http://msdn.microsoft.com/en-us/library/windows/apps/hh761492.aspx)
276
- wait: false, // Bool. Wait for User Action against Notification or times out
277
- id: void 0, // Number. ID to use for closing notification.
278
- appID: void 0, // String. App.ID and app Name. Defaults to no value, causing SnoreToast text to be visible.
279
- remove: void 0, // Number. Refer to previously created notification to close.
280
- install: void 0 // String (path, application, app id). Creates a shortcut <path> in the start menu which point to the executable <application>, appID used for the notifications.
281
- },
282
- function(error, response) {
283
- console.log(response);
284
- }
285
- );
286
- ```
287
-
288
- ### Usage: `Growl`
289
-
290
- ```javascript
291
- const Growl = require('node-notifier').Growl;
292
-
293
- var notifier = new Growl({
294
- name: 'Growl Name Used', // Defaults as 'Node'
295
- host: 'localhost',
296
- port: 23053
297
- });
298
-
299
- notifier.notify({
300
- title: 'Foo',
301
- message: 'Hello World',
302
- icon: fs.readFileSync(__dirname + '/coulson.jpg'),
303
- wait: false, // Wait for User Action against Notification
304
-
305
- // and other growl options like sticky etc.
306
- sticky: false,
307
- label: void 0,
308
- priority: void 0
309
- });
310
- ```
311
-
312
- See more information about using [growly](https://github.com/theabraham/growly/).
313
-
314
- ### Usage: `WindowsBalloon`
315
-
316
- For earlier versions of Windows, taskbar balloons are used (unless
317
- fallback is activated and Growl is running). The balloons notifier uses a great
318
- project called [**`notifu`**](http://www.paralint.com/projects/notifu/).
319
-
320
- ```javascript
321
- const WindowsBalloon = require('node-notifier').WindowsBalloon;
322
-
323
- var notifier = new WindowsBalloon({
324
- withFallback: false, // Try Windows Toast and Growl first?
325
- customPath: void 0 // Relative/Absolute path if you want to use your fork of notifu
326
- });
327
-
328
- notifier.notify(
329
- {
330
- title: void 0,
331
- message: void 0,
332
- sound: false, // true | false.
333
- time: 5000, // How long to show balloon in ms
334
- wait: false, // Wait for User Action against Notification
335
- type: 'info' // The notification type : info | warn | error
336
- },
337
- function(error, response) {
338
- console.log(response);
339
- }
340
- );
341
- ```
342
-
343
- See full usage on the [project homepage: **`notifu`**](http://www.paralint.com/projects/notifu/).
344
-
345
- ### Usage: `NotifySend`
346
-
347
- **Note:** `notify-send` doesn't support the `wait` flag.
348
-
349
- ```javascript
350
- const NotifySend = require('node-notifier').NotifySend;
351
-
352
- var notifier = new NotifySend();
353
-
354
- notifier.notify({
355
- title: 'Foo',
356
- message: 'Hello World',
357
- icon: __dirname + '/coulson.jpg',
358
-
359
- // .. and other notify-send flags:
360
- urgency: void 0,
361
- time: void 0,
362
- category: void 0,
363
- hint: void 0
364
- });
365
- ```
366
-
367
- See flags and options on the man page [`notify-send(1)`](http://manpages.ubuntu.com/manpages/gutsy/man1/notify-send.1.html)
368
-
369
- ## Thanks to OSS
370
-
371
- `node-notifier` is made possible through Open Source Software.
372
- A very special thanks to all the modules `node-notifier` uses.
373
-
374
- - [`terminal-notifier`](https://github.com/julienXX/terminal-notifier)
375
- - [`Snoretoast`](https://github.com/KDE/snoretoast)
376
- - [`notifu`](http://www.paralint.com/projects/notifu/)
377
- - [`growly`](https://github.com/theabraham/growly/)
378
-
379
- [![NPM downloads][npm-downloads]][npm-url]
380
-
381
- ## Common Issues
382
-
383
- ### Windows: `SnoreToast` text
384
-
385
- See note on "Windows 10 Fall Creators Update" in Windows section.
386
- _**Short answer:** update your `appId`._
387
-
388
- ### Use inside tmux session
389
-
390
- When using `node-notifier` within a tmux session, it can cause a hang in the system.
391
- This can be solved by following the steps described in [this comment](https://github.com/julienXX/terminal-notifier/issues/115#issuecomment-104214742)
392
-
393
- There’s even more info [here](https://github.com/mikaelbr/node-notifier/issues/61#issuecomment-163560801)
394
- <https://github.com/mikaelbr/node-notifier/issues/61#issuecomment-163560801>.
395
-
396
- ### macOS: Custom icon without Terminal icon
397
-
398
- Even if you define an icon in the configuration object for `node-notifier`, you will
399
- see a small Terminal icon in the notification (see the example at the top of this
400
- document).
401
-
402
- This is the way notifications on macOS work. They always show the icon of the
403
- parent application initiating the notification. For `node-notifier`, `terminal-notifier`
404
- is the initiator, and it has the Terminal icon defined as its icon.
405
-
406
- To define your custom icon, you need to fork `terminal-notifier` and build your
407
- custom version with your icon.
408
-
409
- See [Issue #71 for more info](https://github.com/mikaelbr/node-notifier/issues/71)
410
- <https://github.com/mikaelbr/node-notifier/issues/71>.
411
-
412
- ### Within Electron Packaging
413
-
414
- If packaging your Electron app as an `asar`, you will find `node-notifier` will fail to load.
415
-
416
- Due to the way asar works, you cannot execute a binary from within an `asar`.
417
- As a simple solution, when packaging the app into an asar please make sure you
418
- `--unpack` the `vendor/` folder of `node-notifier`, so the module still has access to
419
- the notification binaries.
420
-
421
- You can do so with the following command:
422
-
423
- ```bash
424
- asar pack . app.asar --unpack "./node_modules/node-notifier/vendor/**"
425
- ```
426
-
427
- ### Using with pkg
428
-
429
- For issues using with the pkg module. Check this issue out: https://github.com/mikaelbr/node-notifier/issues/220#issuecomment-425963752
430
-
431
- ### Using Webpack
432
-
433
- When using `node-notifier` inside of `webpack`, you must add the snippet below to your `webpack.config.js`.
434
-
435
- This is necessary because `node-notifier` loads the notifiers from a binary, so it
436
- needs a relative file path. When webpack compiles the modules, it supresses file
437
- directories, causing `node-notifier` to error on certain platforms.
438
-
439
- To fix this, you can configure webpack to keep the relative file directories.
440
- Do so by append the following code to your `webpack.config.js`:
441
-
442
- ```javascript
443
- node: {
444
- __filename: true,
445
- __dirname: true
446
- }
447
- ```
448
-
449
- ## License
450
-
451
- [MIT License](http://en.wikipedia.org/wiki/MIT_License)
452
-
453
- [npm-url]: https://npmjs.org/package/node-notifier
454
- [npm-image]: http://img.shields.io/npm/v/node-notifier.svg?style=flat
455
- [npm-downloads]: http://img.shields.io/npm/dm/node-notifier.svg?style=flat
456
- [travis-url]: http://travis-ci.org/mikaelbr/node-notifier
457
- [travis-image]: http://img.shields.io/travis/mikaelbr/node-notifier.svg?style=flat
@@ -1,52 +0,0 @@
1
- var os = require('os');
2
- var utils = require('./lib/utils');
3
-
4
- // All notifiers
5
- var NotifySend = require('./notifiers/notifysend');
6
- var NotificationCenter = require('./notifiers/notificationcenter');
7
- var WindowsToaster = require('./notifiers/toaster');
8
- var Growl = require('./notifiers/growl');
9
- var WindowsBalloon = require('./notifiers/balloon');
10
-
11
- var options = { withFallback: true };
12
-
13
- var osType = utils.isWSL() ? 'WSL' : os.type();
14
-
15
- switch (osType) {
16
- case 'Linux':
17
- module.exports = new NotifySend(options);
18
- module.exports.Notification = NotifySend;
19
- break;
20
- case 'Darwin':
21
- module.exports = new NotificationCenter(options);
22
- module.exports.Notification = NotificationCenter;
23
- break;
24
- case 'Windows_NT':
25
- if (utils.isLessThanWin8()) {
26
- module.exports = new WindowsBalloon(options);
27
- module.exports.Notification = WindowsBalloon;
28
- } else {
29
- module.exports = new WindowsToaster(options);
30
- module.exports.Notification = WindowsToaster;
31
- }
32
- break;
33
- case 'WSL':
34
- module.exports = new WindowsToaster(options);
35
- module.exports.Notification = WindowsToaster;
36
- break;
37
- default:
38
- if (os.type().match(/BSD$/)) {
39
- module.exports = new NotifySend(options);
40
- module.exports.Notification = NotifySend;
41
- } else {
42
- module.exports = new Growl(options);
43
- module.exports.Notification = Growl;
44
- }
45
- }
46
-
47
- // Expose notifiers to give full control.
48
- module.exports.NotifySend = NotifySend;
49
- module.exports.NotificationCenter = NotificationCenter;
50
- module.exports.WindowsToaster = WindowsToaster;
51
- module.exports.WindowsBalloon = WindowsBalloon;
52
- module.exports.Growl = Growl;
@@ -1,24 +0,0 @@
1
- var net = require('net');
2
-
3
- var hasGrowl = false;
4
- module.exports = function(growlConfig, cb) {
5
- if (typeof cb === 'undefined') {
6
- cb = growlConfig;
7
- growlConfig = {};
8
- }
9
- if (hasGrowl) return cb(null, hasGrowl);
10
- var port = growlConfig.port || 23053;
11
- var host = growlConfig.host || 'localhost';
12
- var socket = net.connect(port, host);
13
- socket.setTimeout(100);
14
-
15
- socket.on('connect', function() {
16
- socket.end();
17
- cb(null, true);
18
- });
19
-
20
- socket.on('error', function() {
21
- socket.end();
22
- cb(null, false);
23
- });
24
- };