@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.
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/.ready +0 -0
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/.travis.yml +103 -0
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/ISSUE_TEMPLATE.md +8 -0
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/LICENSE +22 -0
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/Readme.md +78 -0
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/binding.gyp +21 -0
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/fsevents.cc +88 -0
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/fsevents.js +108 -0
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/install.js +13 -0
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/package.json +34 -0
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/vfs.js +76 -0
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.eslintrc.js +20 -0
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.prettierrc +4 -0
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.ready +0 -0
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/CHANGELOG.md +310 -0
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/LICENSE +21 -0
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/README.md +344 -0
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/husky.js +15 -0
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/checkGitDirEnv.js +13 -0
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/debug.js +8 -0
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/getConf.js +15 -0
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/bin.js +48 -0
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/getScript.js +106 -0
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/gitRevParse.js +29 -0
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/index.js +151 -0
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/is.js +24 -0
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/runner/bin.js +16 -0
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/runner/index.js +84 -0
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/upgrader/bin.js +8 -0
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/upgrader/index.js +65 -0
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/package.json +114 -0
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/run.js +14 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/.github/workflows/ci.yml +52 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/.ready +0 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/CHANGELOG.md +577 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/CMakeLists.txt +138 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/LICENSE.md +9 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/README.md +455 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/asyncworker.md +146 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/buffers.md +54 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/callback.md +76 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/converters.md +41 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/errors.md +226 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/json.md +62 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/maybe_types.md +583 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/methods.md +672 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/new.md +147 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/node_misc.md +123 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/object_wrappers.md +263 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/persistent.md +296 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/scopes.md +73 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/script.md +58 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/string_bytes.md +62 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/v8_internals.md +199 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/v8_misc.md +85 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/include_dirs.js +1 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan.h +3049 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks.h +128 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks_12_inl.h +676 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks_pre_12_inl.h +520 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters.h +72 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters_43_inl.h +68 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters_pre_43_inl.h +42 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_define_own_property_helper.h +29 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_implementation_12_inl.h +430 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_implementation_pre_12_inl.h +263 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_json.h +166 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_maybe_43_inl.h +356 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_maybe_pre_43_inl.h +268 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_new.h +340 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_object_wrap.h +156 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_persistent_12_inl.h +132 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_persistent_pre_12_inl.h +242 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_private.h +73 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_scriptorigin.h +95 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_string_bytes.h +305 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_typedarray_contents.h +96 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_weak.h +437 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/package.json +38 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/1to2.js +412 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/README.md +14 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/package.json +19 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/.ready +0 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/.release-please-manifest.json +3 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CHANGELOG.md +1053 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CODE_OF_CONDUCT.md +4 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CONTRIBUTING.md +34 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/LICENSE +24 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/README.md +273 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/SECURITY.md +2 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/addon.gypi +204 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/bin/node-gyp.js +138 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/eslint.config.js +3 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/.release-please-manifest.json +3 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/LICENSE +28 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/data/ninja/build.ninja +4 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +12 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp +8 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp.bat +5 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp_main.py +45 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +365 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +206 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +1272 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +1547 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +59 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +152 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +270 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +574 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +704 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/common.py +709 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +173 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +169 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +113 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +55 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +805 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +1172 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +1319 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +128 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +104 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +462 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +89 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +56 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +2745 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +3976 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +44 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +2965 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +67 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +1391 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +26 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/input.py +3112 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +99 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +767 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +1260 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +174 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +61 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +373 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +1939 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +54 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +303 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +3196 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +65 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE +3 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +177 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.BSD +23 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +15 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +108 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +252 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +83 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +359 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +61 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +192 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/markers.py +252 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +825 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/py.typed +0 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +90 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +1030 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/tags.py +553 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/utils.py +172 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/version.py +563 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pyproject.toml +115 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/release-please-config.json +11 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/test_gyp.py +261 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/Find-VisualStudio.cs +250 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/build.js +230 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/clean.js +15 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/configure.js +328 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/create-config-gypi.js +153 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/download.js +39 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-node-directory.js +63 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-python.js +310 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-visualstudio.js +600 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/install.js +415 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/list.js +26 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/log.js +168 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/node-gyp.js +188 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/process-release.js +146 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/rebuild.js +12 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/remove.js +43 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/util.js +81 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/macOS_Catalina_acid_test.sh +21 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/package.json +52 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/release-please-config.json +40 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/.prettierrc +4 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/.ready +0 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/CHANGELOG.md +286 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/LICENSE +21 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/README.md +457 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/index.js +52 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/lib/checkGrowl.js +24 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/lib/utils.js +515 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/balloon.js +156 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/growl.js +76 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/notificationcenter.js +100 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/notifysend.js +94 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/toaster.js +100 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/package.json +72 -0
- 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
- 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
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/PkgInfo +1 -0
- 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
- 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
- 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
- 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
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/notifu/notifu.exe +0 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/notifu/notifu64.exe +0 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/snoreToast/LICENSE +165 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/snoreToast/SnoreToast.exe +0 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/terminal-notifier-LICENSE +9 -0
- package/lib/cloudrun/index.js +216 -4
- package/lib/utils/index.js +37 -10
- package/package.json +1 -1
- package/types/cloudrun/index.d.ts +31 -1
|
@@ -0,0 +1,13 @@
|
|
|
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;
|
|
@@ -0,0 +1,15 @@
|
|
|
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;
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
}
|
package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/getScript.js
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
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;
|
package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/gitRevParse.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
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;
|
|
@@ -0,0 +1,151 @@
|
|
|
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;
|
|
@@ -0,0 +1,24 @@
|
|
|
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;
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,84 @@
|
|
|
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;
|
|
@@ -0,0 +1,8 @@
|
|
|
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());
|
|
@@ -0,0 +1,65 @@
|
|
|
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;
|