@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,13 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const debug_1 = __importDefault(require("./debug"));
7
- function checkGitDirEnv() {
8
- if (process.env.GIT_DIR) {
9
- debug_1.default(`GIT_DIR environment variable is set to '${process.env.GIT_DIR}'`);
10
- debug_1.default(`If you're getting "fatal: not a git repository" errors, you may want to unset GIT_DIR`);
11
- }
12
- }
13
- exports.checkGitDirEnv = checkGitDirEnv;
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- function debug(...args) {
4
- if (['1', 'true'].includes(process.env.HUSKY_DEBUG || '')) {
5
- console.log('husky:debug', ...args);
6
- }
7
- }
8
- exports.default = debug;
@@ -1,15 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const cosmiconfig_1 = __importDefault(require("cosmiconfig"));
7
- function getConf(dir) {
8
- const explorer = cosmiconfig_1.default('husky');
9
- const { config = {} } = explorer.searchSync(dir) || {};
10
- const defaults = {
11
- skipCI: true
12
- };
13
- return Object.assign(Object.assign({}, defaults), config);
14
- }
15
- exports.default = getConf;
@@ -1,48 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const chalk_1 = __importDefault(require("chalk"));
7
- const ci_info_1 = require("ci-info");
8
- const path_1 = __importDefault(require("path"));
9
- const debug_1 = __importDefault(require("../debug"));
10
- const _1 = require("./");
11
- const gitRevParse_1 = __importDefault(require("./gitRevParse"));
12
- const checkGitDirEnv_1 = require("../checkGitDirEnv");
13
- // Debug
14
- debug_1.default(`Current working directory is '${process.cwd()}'`);
15
- debug_1.default(`INIT_CWD environment variable is set to '${process.env.INIT_CWD}'`);
16
- // Action can be "install" or "uninstall"
17
- // huskyDir is ONLY used in dev, don't use this arguments
18
- const [, , action, huskyDir = path_1.default.join(__dirname, '../..')] = process.argv;
19
- // Find Git dir
20
- try {
21
- // Show un/install message
22
- console.log('husky > %s git hooks', action === 'install' ? 'Setting up' : 'Uninstalling');
23
- // Skip install if HUSKY_SKIP_INSTALL=1
24
- if (action === 'install' &&
25
- ['1', 'true'].includes(process.env.HUSKY_SKIP_INSTALL || '')) {
26
- console.log("HUSKY_SKIP_INSTALL environment variable is set to 'true',", 'skipping Git hooks installation.');
27
- process.exit(0);
28
- }
29
- // Check GIT_DIR environment variable
30
- checkGitDirEnv_1.checkGitDirEnv();
31
- // Get top level and git dir
32
- const { topLevel, gitCommonDir } = gitRevParse_1.default();
33
- debug_1.default('Git rev-parse command returned:');
34
- debug_1.default(` --show-top-level: ${topLevel}`);
35
- debug_1.default(` --git-common-dir: ${gitCommonDir}`);
36
- // Install or uninstall
37
- if (action === 'install') {
38
- _1.install(topLevel, gitCommonDir, huskyDir, ci_info_1.isCI);
39
- }
40
- else {
41
- _1.uninstall(gitCommonDir, huskyDir);
42
- }
43
- console.log(`husky > Done`);
44
- }
45
- catch (error) {
46
- console.log(chalk_1.default.red(error.message.trim()));
47
- console.log(chalk_1.default.red(`husky > Failed to ${action}`));
48
- }
@@ -1,106 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const fs_1 = __importDefault(require("fs"));
7
- const os_1 = __importDefault(require("os"));
8
- const path_1 = __importDefault(require("path"));
9
- const slash_1 = __importDefault(require("slash"));
10
- // Used to identify scripts created by Husky
11
- exports.huskyIdentifier = '# husky';
12
- // Experimental
13
- const huskyrc = '~/.huskyrc';
14
- // Render script
15
- const render = ({ createdAt, homepage, node, pkgDirectory, pkgHomepage, platform, runScriptPath, version }) => `#!/bin/sh
16
- ${exports.huskyIdentifier}
17
-
18
- # Hook created by Husky
19
- # Version: ${version}
20
- # At: ${createdAt}
21
- # See: ${homepage}
22
-
23
- # From
24
- # Directory: ${pkgDirectory}
25
- # Homepage: ${pkgHomepage}
26
-
27
- scriptPath="${runScriptPath}.js"
28
- hookName=\`basename "$0"\`
29
- gitParams="$*"
30
-
31
- debug() {
32
- if [ "$\{HUSKY_DEBUG}" = "true" ] || [ "$\{HUSKY_DEBUG}" = "1" ]; then
33
- echo "husky:debug $1"
34
- fi
35
- }
36
-
37
- debug "husky v${version} (created at ${createdAt})"
38
- debug "$hookName hook started"
39
- debug "Current working directory is '\`pwd\`'"
40
-
41
- if [ "$\{HUSKY_SKIP_HOOKS}" = "true" ] || [ "$\{HUSKY_SKIP_HOOKS}" = "1" ]; then
42
- debug "HUSKY_SKIP_HOOKS is set to $\{HUSKY_SKIP_HOOKS}, skipping hook"
43
- exit 0
44
- fi
45
-
46
- if [ "$\{HUSKY_USE_YARN}" = "true" ] || [ "$\{HUSKY_USE_YARN}" = "1" ]; then
47
- debug "Calling husky through Yarn"
48
- yarn husky-run $hookName "$gitParams"
49
- else
50
- ${platform === 'win32'
51
- ? ''
52
- : `
53
- if ! command -v node >/dev/null 2>&1; then
54
- echo "Info: can't find node in PATH, trying to find a node binary on your system"
55
- fi
56
- `}
57
- if [ -f "$scriptPath" ]; then
58
- # if [ -t 1 ]; then
59
- # exec < /dev/tty
60
- # fi
61
- if [ -f ${huskyrc} ]; then
62
- debug "Sourcing '${huskyrc}'"
63
- . ${huskyrc}
64
- fi
65
- ${node} "$scriptPath" $hookName "$gitParams"
66
- else
67
- echo "Can't find Husky, skipping $hookName hook"
68
- echo "You can reinstall it using 'npm install husky --save-dev' or delete this hook"
69
- fi
70
- fi
71
- `;
72
- /**
73
- * @param {string} rootDir - e.g. /home/typicode/project/
74
- * @param {string} huskyDir - e.g. /home/typicode/project/node_modules/husky/
75
- * @param {string} requireRunNodePath - path to run-node resolved by require e.g. /home/typicode/project/node_modules/run-node/run-node
76
- * @param {string} platform - platform husky installer is running on (used to produce win32 specific script)
77
- * @returns {string} script
78
- */
79
- function default_1(rootDir, huskyDir, requireRunNodePath,
80
- // Additional param used for testing only
81
- platform = os_1.default.platform()) {
82
- const runNodePath = slash_1.default(path_1.default.relative(rootDir, requireRunNodePath));
83
- // On Windows do not rely on run-node
84
- const node = platform === 'win32' ? 'node' : runNodePath;
85
- // Env variable
86
- const pkgHomepage = process && process.env && process.env.npm_package_homepage;
87
- const pkgDirectory = process && process.env && process.env.PWD;
88
- // Husky package.json
89
- const { homepage, version } = JSON.parse(fs_1.default.readFileSync(path_1.default.join(__dirname, '../../package.json'), 'utf-8'));
90
- // Path to run.js
91
- const runScriptPath = slash_1.default(path_1.default.join(path_1.default.relative(rootDir, huskyDir), 'run'));
92
- // Created at
93
- const createdAt = new Date().toLocaleString();
94
- // Render script
95
- return render({
96
- createdAt,
97
- homepage,
98
- node,
99
- pkgDirectory,
100
- pkgHomepage,
101
- platform,
102
- runScriptPath,
103
- version
104
- });
105
- }
106
- exports.default = default_1;
@@ -1,29 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const slash_1 = __importDefault(require("slash"));
7
- const execa_1 = __importDefault(require("execa"));
8
- function default_1() {
9
- // https://github.com/typicode/husky/issues/580
10
- // https://github.com/typicode/husky/issues/587
11
- const result = execa_1.default.sync('git', [
12
- 'rev-parse',
13
- '--show-toplevel',
14
- '--git-common-dir'
15
- ]);
16
- const [topLevel, gitCommonDir] = result.stdout
17
- .trim()
18
- .split('\n')
19
- // Normalize for Windows
20
- .map(slash_1.default);
21
- // Git rev-parse returns unknown options as is.
22
- // If we get --absolute-git-dir in the output,
23
- // it probably means that an older version of Git has been used.
24
- if (gitCommonDir === '--git-common-dir') {
25
- throw new Error('Husky requires Git >= 2.13.0, please upgrade Git');
26
- }
27
- return { topLevel, gitCommonDir };
28
- }
29
- exports.default = default_1;
@@ -1,151 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const fs_1 = __importDefault(require("fs"));
7
- const path_1 = __importDefault(require("path"));
8
- const pkg_dir_1 = __importDefault(require("pkg-dir"));
9
- const getConf_1 = __importDefault(require("../getConf"));
10
- const getScript_1 = __importDefault(require("./getScript"));
11
- const is_1 = require("./is");
12
- const debug_1 = __importDefault(require("../debug"));
13
- const hookList = [
14
- 'applypatch-msg',
15
- 'pre-applypatch',
16
- 'post-applypatch',
17
- 'pre-commit',
18
- 'pre-merge-commit',
19
- 'prepare-commit-msg',
20
- 'commit-msg',
21
- 'post-commit',
22
- 'pre-rebase',
23
- 'post-checkout',
24
- 'post-merge',
25
- 'pre-push',
26
- 'pre-receive',
27
- 'update',
28
- 'post-receive',
29
- 'post-update',
30
- 'push-to-checkout',
31
- 'pre-auto-gc',
32
- 'post-rewrite',
33
- 'sendemail-validate'
34
- ];
35
- function writeHook(filename, script) {
36
- fs_1.default.writeFileSync(filename, script, 'utf-8');
37
- fs_1.default.chmodSync(filename, 0o0755);
38
- }
39
- function createHook(filename, script) {
40
- // Get name, used for logging
41
- const name = path_1.default.basename(filename);
42
- // Check if hook exist
43
- if (fs_1.default.existsSync(filename)) {
44
- const hook = fs_1.default.readFileSync(filename, 'utf-8');
45
- // Migrate
46
- if (is_1.isGhooks(hook)) {
47
- console.log(`migrating existing ghooks script: ${name}`);
48
- return writeHook(filename, script);
49
- }
50
- // Migrate
51
- if (is_1.isPreCommit(hook)) {
52
- console.log(`migrating existing pre-commit script: ${name}`);
53
- return writeHook(filename, script);
54
- }
55
- // Update
56
- if (is_1.isHusky(hook) || is_1.isYorkie(hook)) {
57
- return writeHook(filename, script);
58
- }
59
- // Skip
60
- console.log(`skipping existing user hook: ${name}`);
61
- return;
62
- }
63
- // Create hook if it doesn't exist
64
- writeHook(filename, script);
65
- }
66
- function createHooks(filenames, script) {
67
- filenames.forEach((filename) => createHook(filename, script));
68
- }
69
- function canRemove(filename) {
70
- if (fs_1.default.existsSync(filename)) {
71
- const data = fs_1.default.readFileSync(filename, 'utf-8');
72
- return is_1.isHusky(data);
73
- }
74
- return false;
75
- }
76
- function removeHook(filename) {
77
- fs_1.default.unlinkSync(filename);
78
- }
79
- function removeHooks(filenames) {
80
- filenames.filter(canRemove).forEach(removeHook);
81
- }
82
- // This prevents the case where someone would want to debug a node_module that has
83
- // husky as devDependency and run npm install from node_modules directory
84
- function isInNodeModules(dir) {
85
- // INIT_CWD holds the full path you were in when you ran npm install (supported also by yarn and pnpm)
86
- // See https://docs.npmjs.com/cli/run-script
87
- if (process.env.INIT_CWD) {
88
- return process.env.INIT_CWD.indexOf('node_modules') !== -1;
89
- }
90
- // Old technique
91
- return (dir.match(/node_modules/g) || []).length > 1;
92
- }
93
- function getGitHooksDir(gitDir) {
94
- return path_1.default.join(gitDir, 'hooks');
95
- }
96
- function getHooks(gitDir) {
97
- const gitHooksDir = getGitHooksDir(gitDir);
98
- return hookList.map((hookName) => path_1.default.join(gitHooksDir, hookName));
99
- }
100
- /**
101
- * @param topLevel - as returned by git --rev-parse
102
- * @param gitDir - as returned by git --rev-parse
103
- * @param huskyDir - e.g. /home/typicode/project/node_modules/husky/
104
- * @param isCI - true if running in CI
105
- * @param requireRunNodePath - path to run-node resolved by require e.g. /home/typicode/project/node_modules/run-node/run-node
106
- */
107
- // eslint-disable-next-line max-params
108
- function install(topLevel, gitDir, huskyDir, isCI, requireRunNodePath = require.resolve('run-node/run-node')) {
109
- // First directory containing user's package.json
110
- const userPkgDir = pkg_dir_1.default.sync(path_1.default.join(huskyDir, '..'));
111
- if (userPkgDir === undefined) {
112
- console.log("Can't find package.json, skipping Git hooks installation.");
113
- console.log('Please check that your project has a package.json or create it and reinstall husky.');
114
- return;
115
- }
116
- // Get conf from package.json or .huskyrc
117
- const conf = getConf_1.default(userPkgDir);
118
- // Checks
119
- if (isCI && conf.skipCI) {
120
- console.log('CI detected, skipping Git hooks installation.');
121
- return;
122
- }
123
- if (isInNodeModules(huskyDir)) {
124
- console.log('Trying to install from node_modules directory, skipping Git hooks installation.');
125
- return;
126
- }
127
- // Create hooks directory if it doesn't exist
128
- const gitHooksDir = getGitHooksDir(gitDir);
129
- if (!fs_1.default.existsSync(gitHooksDir)) {
130
- fs_1.default.mkdirSync(gitHooksDir);
131
- }
132
- debug_1.default(`Installing hooks in '${gitHooksDir}'`);
133
- const hooks = getHooks(gitDir);
134
- const script = getScript_1.default(topLevel, huskyDir, requireRunNodePath);
135
- createHooks(hooks, script);
136
- }
137
- exports.install = install;
138
- function uninstall(gitDir, huskyDir) {
139
- if (gitDir === null) {
140
- console.log("Can't find resolved .git directory, skipping Git hooks uninstallation.");
141
- return;
142
- }
143
- if (isInNodeModules(huskyDir)) {
144
- console.log('Trying to uninstall from node_modules directory, skipping Git hooks uninstallation.');
145
- return;
146
- }
147
- // Remove hooks
148
- const hooks = getHooks(gitDir);
149
- removeHooks(hooks);
150
- }
151
- exports.uninstall = uninstall;
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const getScript_1 = require("./getScript");
4
- function isHusky(data) {
5
- // Husky v0.14 and prior used #husky as an identifier.
6
- // Just in case some previous hooks weren't correctly uninstalled,
7
- // and for a better transition this will allow v0.15+ to uninstall them as well.
8
- const previousHuskyIdentifier = '#husky';
9
- return (data.indexOf(getScript_1.huskyIdentifier) !== -1 ||
10
- data.indexOf(previousHuskyIdentifier) !== -1);
11
- }
12
- exports.isHusky = isHusky;
13
- function isYorkie(data) {
14
- return data.indexOf('#yorkie') !== -1;
15
- }
16
- exports.isYorkie = isYorkie;
17
- function isGhooks(data) {
18
- return data.indexOf('// Generated by ghooks. Do not edit this file.') !== -1;
19
- }
20
- exports.isGhooks = isGhooks;
21
- function isPreCommit(data) {
22
- return data.indexOf('./node_modules/pre-commit/hook') !== -1;
23
- }
24
- exports.isPreCommit = isPreCommit;
@@ -1,16 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const _1 = __importDefault(require("./"));
7
- const checkGitDirEnv_1 = require("../checkGitDirEnv");
8
- // Check GIT_DIR environment variable
9
- checkGitDirEnv_1.checkGitDirEnv();
10
- // Run hook
11
- _1.default(process.argv)
12
- .then((status) => process.exit(status))
13
- .catch((err) => {
14
- console.log('Husky > unexpected error', err);
15
- process.exit(1);
16
- });
@@ -1,84 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- const execa_1 = __importDefault(require("execa"));
16
- const get_stdin_1 = __importDefault(require("get-stdin"));
17
- const path_1 = __importDefault(require("path"));
18
- const read_pkg_1 = __importDefault(require("read-pkg"));
19
- const debug_1 = __importDefault(require("../debug"));
20
- const getConf_1 = __importDefault(require("../getConf"));
21
- /**
22
- * @param {array} argv - process.argv
23
- * @param {promise} getStdinFn - used for mocking only
24
- */
25
- function run([, scriptPath, hookName = '', HUSKY_GIT_PARAMS], getStdinFn = get_stdin_1.default) {
26
- return __awaiter(this, void 0, void 0, function* () {
27
- // Update CWD
28
- const cwd = path_1.default.resolve(scriptPath.split('node_modules')[0]);
29
- // Debug
30
- debug_1.default(`Changed current working directory to '${cwd}'`);
31
- // In some cases, package.json may not exist
32
- // For example, when switching to gh-page branch
33
- let pkg;
34
- try {
35
- pkg = read_pkg_1.default.sync({ cwd, normalize: false });
36
- }
37
- catch (err) {
38
- if (err.code !== 'ENOENT') {
39
- throw err;
40
- }
41
- }
42
- const config = getConf_1.default(cwd);
43
- const command = config && config.hooks && config.hooks[hookName];
44
- const oldCommand = pkg && pkg.scripts && pkg.scripts[hookName.replace('-', '')];
45
- // Run command
46
- try {
47
- const env = {};
48
- if (HUSKY_GIT_PARAMS) {
49
- env.HUSKY_GIT_PARAMS = HUSKY_GIT_PARAMS;
50
- }
51
- if (['pre-push', 'pre-receive', 'post-receive', 'post-rewrite'].includes(hookName)) {
52
- // Wait for stdin
53
- env.HUSKY_GIT_STDIN = yield getStdinFn();
54
- }
55
- if (oldCommand) {
56
- console.log();
57
- console.log(`Warning: Setting ${hookName} script in package.json > scripts will be deprecated`);
58
- console.log(`Please move it to husky.hooks in package.json, a .huskyrc file, or a husky.config.js file`);
59
- console.log(`Or run ./node_modules/.bin/husky-upgrade for automatic update`);
60
- console.log();
61
- console.log(`See https://github.com/typicode/husky for usage`);
62
- console.log();
63
- }
64
- if (command || oldCommand) {
65
- console.log(`husky > ${hookName} (node ${process.version})`);
66
- execa_1.default.shellSync(command || oldCommand, { cwd, env, stdio: 'inherit' });
67
- }
68
- return 0;
69
- }
70
- catch (err) {
71
- const noVerifyMessage = [
72
- 'commit-msg',
73
- 'pre-commit',
74
- 'pre-rebase',
75
- 'pre-push'
76
- ].includes(hookName)
77
- ? '(add --no-verify to bypass)'
78
- : '(cannot be bypassed with --no-verify due to Git specs)';
79
- console.log(`husky > ${hookName} hook failed ${noVerifyMessage}`);
80
- return err.code;
81
- }
82
- });
83
- }
84
- exports.default = run;
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- var __importDefault = (this && this.__importDefault) || function (mod) {
4
- return (mod && mod.__esModule) ? mod : { "default": mod };
5
- };
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- const index_1 = __importDefault(require("./index"));
8
- index_1.default(process.cwd());
@@ -1,65 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const fs_1 = __importDefault(require("fs"));
7
- const path_1 = __importDefault(require("path"));
8
- const read_pkg_1 = __importDefault(require("read-pkg"));
9
- const hookList = {
10
- applypatchmsg: 'applypatch-msg',
11
- commitmsg: 'commit-msg',
12
- postapplypatch: 'post-applypatch',
13
- postcheckout: 'post-checkout',
14
- postcommit: 'post-commit',
15
- postmerge: 'post-merge',
16
- postreceive: 'post-receive',
17
- postrewrite: 'post-rewrite',
18
- postupdate: 'post-update',
19
- preapplypatch: 'pre-applypatch',
20
- preautogc: 'pre-auto-gc',
21
- precommit: 'pre-commit',
22
- premergecommit: 'pre-merge-commit',
23
- preparecommitmsg: 'prepare-commit-msg',
24
- prepush: 'pre-push',
25
- prerebase: 'pre-rebase',
26
- prereceive: 'pre-receive',
27
- pushtocheckout: 'push-to-checkout',
28
- sendemailvalidate: 'sendemail-validate',
29
- update: 'update'
30
- };
31
- function upgrade(cwd) {
32
- const pkgFile = path_1.default.join(cwd, 'package.json');
33
- if (fs_1.default.existsSync(pkgFile)) {
34
- const pkg = read_pkg_1.default.sync({ cwd, normalize: false });
35
- console.log(`husky > upgrading ${pkgFile}`);
36
- // Don't overwrite 'husky' field if it exists
37
- if (pkg.husky) {
38
- return console.log(`husky field in package.json isn't empty, skipping automatic upgrade`);
39
- }
40
- const hooks = {};
41
- // Find hooks in package.json 'scripts' field
42
- Object.keys(hookList).forEach((name) => {
43
- if (pkg.scripts) {
44
- const script = pkg.scripts[name];
45
- if (script) {
46
- delete pkg.scripts[name];
47
- const newName = hookList[name];
48
- hooks[newName] = script.replace(/\bGIT_PARAMS\b/g, 'HUSKY_GIT_PARAMS');
49
- console.log(`moved scripts.${name} to husky.hooks.${newName}`);
50
- }
51
- }
52
- });
53
- // Move found hooks to 'husky.hooks' field
54
- if (Object.keys(hooks).length) {
55
- pkg.husky = { hooks };
56
- }
57
- else {
58
- console.log('no hooks found');
59
- }
60
- // Update package.json
61
- fs_1.default.writeFileSync(pkgFile, `${JSON.stringify(pkg, null, 2)}\n`, 'utf-8');
62
- console.log(`husky > done`);
63
- }
64
- }
65
- exports.default = upgrade;