@cloudbase/manager-node 4.3.3 → 4.4.0
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/lib/function/index.js +85 -12
- package/lib/utils/index.js +39 -1
- package/package.json +1 -1
- package/types/function/index.d.ts +38 -12
- package/types/interfaces/function.interface.d.ts +33 -0
- package/types/utils/index.d.ts +9 -0
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/.ready +0 -0
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/.travis.yml +0 -103
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/ISSUE_TEMPLATE.md +0 -8
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/LICENSE +0 -22
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/Readme.md +0 -78
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/binding.gyp +0 -21
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/fsevents.cc +0 -88
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/fsevents.js +0 -108
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/install.js +0 -13
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/package.json +0 -34
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/vfs.js +0 -76
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.eslintrc.js +0 -20
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.prettierrc +0 -4
- 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 +0 -310
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/LICENSE +0 -21
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/README.md +0 -344
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/husky.js +0 -15
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/checkGitDirEnv.js +0 -13
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/debug.js +0 -8
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/getConf.js +0 -15
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/bin.js +0 -48
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/getScript.js +0 -106
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/gitRevParse.js +0 -29
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/index.js +0 -151
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/is.js +0 -24
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/runner/bin.js +0 -16
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/runner/index.js +0 -84
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/upgrader/bin.js +0 -8
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/upgrader/index.js +0 -65
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/package.json +0 -114
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/run.js +0 -14
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/.github/workflows/ci.yml +0 -52
- 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 +0 -577
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/CMakeLists.txt +0 -138
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/LICENSE.md +0 -9
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/README.md +0 -455
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/asyncworker.md +0 -146
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/buffers.md +0 -54
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/callback.md +0 -76
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/converters.md +0 -41
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/errors.md +0 -226
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/json.md +0 -62
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/maybe_types.md +0 -583
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/methods.md +0 -672
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/new.md +0 -147
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/node_misc.md +0 -123
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/object_wrappers.md +0 -263
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/persistent.md +0 -296
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/scopes.md +0 -73
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/script.md +0 -58
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/string_bytes.md +0 -62
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/v8_internals.md +0 -199
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/v8_misc.md +0 -85
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/include_dirs.js +0 -1
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan.h +0 -3049
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks.h +0 -128
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks_12_inl.h +0 -676
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks_pre_12_inl.h +0 -520
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters.h +0 -72
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters_43_inl.h +0 -68
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters_pre_43_inl.h +0 -42
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_define_own_property_helper.h +0 -29
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_implementation_12_inl.h +0 -430
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_implementation_pre_12_inl.h +0 -263
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_json.h +0 -166
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_maybe_43_inl.h +0 -356
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_maybe_pre_43_inl.h +0 -268
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_new.h +0 -340
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_object_wrap.h +0 -156
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_persistent_12_inl.h +0 -132
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_persistent_pre_12_inl.h +0 -242
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_private.h +0 -73
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_scriptorigin.h +0 -95
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_string_bytes.h +0 -305
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_typedarray_contents.h +0 -96
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_weak.h +0 -437
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/package.json +0 -38
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/1to2.js +0 -412
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/README.md +0 -14
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/package.json +0 -19
- 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 +0 -3
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CHANGELOG.md +0 -1053
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CODE_OF_CONDUCT.md +0 -4
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CONTRIBUTING.md +0 -34
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/LICENSE +0 -24
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/README.md +0 -273
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/SECURITY.md +0 -2
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/addon.gypi +0 -204
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/bin/node-gyp.js +0 -138
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/eslint.config.js +0 -3
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/.release-please-manifest.json +0 -3
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/LICENSE +0 -28
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/data/ninja/build.ninja +0 -4
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +0 -12
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp +0 -8
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp.bat +0 -5
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp_main.py +0 -45
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +0 -365
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +0 -206
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +0 -1272
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +0 -1547
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +0 -59
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +0 -152
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +0 -270
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +0 -574
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +0 -704
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/common.py +0 -709
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +0 -173
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +0 -169
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +0 -113
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +0 -55
- 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 +0 -805
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +0 -1172
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +0 -1319
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +0 -128
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +0 -104
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +0 -462
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +0 -89
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +0 -56
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +0 -2745
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +0 -3976
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +0 -44
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +0 -2965
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +0 -67
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +0 -1391
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +0 -26
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/input.py +0 -3112
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +0 -99
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +0 -767
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +0 -1260
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +0 -174
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +0 -61
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +0 -373
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +0 -1939
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +0 -54
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +0 -303
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +0 -3196
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +0 -65
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE +0 -3
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +0 -177
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.BSD +0 -23
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +0 -15
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +0 -108
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +0 -252
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +0 -83
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +0 -359
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +0 -61
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +0 -192
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/markers.py +0 -252
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +0 -825
- 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 +0 -90
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +0 -1030
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/tags.py +0 -553
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/utils.py +0 -172
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/version.py +0 -563
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pyproject.toml +0 -115
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/release-please-config.json +0 -11
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/test_gyp.py +0 -261
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/Find-VisualStudio.cs +0 -250
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/build.js +0 -230
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/clean.js +0 -15
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/configure.js +0 -328
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/create-config-gypi.js +0 -153
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/download.js +0 -39
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-node-directory.js +0 -63
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-python.js +0 -310
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-visualstudio.js +0 -600
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/install.js +0 -415
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/list.js +0 -26
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/log.js +0 -168
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/node-gyp.js +0 -188
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/process-release.js +0 -146
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/rebuild.js +0 -12
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/remove.js +0 -43
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/util.js +0 -81
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/macOS_Catalina_acid_test.sh +0 -21
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/package.json +0 -52
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/release-please-config.json +0 -40
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/.prettierrc +0 -4
- 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 +0 -286
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/LICENSE +0 -21
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/README.md +0 -457
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/index.js +0 -52
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/lib/checkGrowl.js +0 -24
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/lib/utils.js +0 -515
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/balloon.js +0 -156
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/growl.js +0 -76
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/notificationcenter.js +0 -100
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/notifysend.js +0 -94
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/toaster.js +0 -100
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/package.json +0 -72
- 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
- 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 +0 -1
- 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 +0 -29
- 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 +0 -165
- 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 +0 -9
package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/index.js
DELETED
|
@@ -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;
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "husky",
|
|
3
|
-
"version": "3.1.0",
|
|
4
|
-
"description": "Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)",
|
|
5
|
-
"bin": {
|
|
6
|
-
"husky-run": "./run.js",
|
|
7
|
-
"husky-upgrade": "./lib/upgrader/bin.js"
|
|
8
|
-
},
|
|
9
|
-
"engines": {
|
|
10
|
-
"node": ">=8.6.0"
|
|
11
|
-
},
|
|
12
|
-
"scripts": {
|
|
13
|
-
"test": "npm run lint && jest",
|
|
14
|
-
"install": "node husky install",
|
|
15
|
-
"preuninstall": "node husky uninstall",
|
|
16
|
-
"devinstall": "npm run build && cross-env HUSKY_DEBUG=1 npm run _install -- node_modules/husky && node scripts/dev-fix-path",
|
|
17
|
-
"devuninstall": "npm run build && cross-env HUSKY_DEBUG=1 npm run preuninstall -- node_modules/husky",
|
|
18
|
-
"build": "del-cli lib && tsc",
|
|
19
|
-
"version": "jest -u && git add -A src/installer/__tests__/__snapshots__",
|
|
20
|
-
"postversion": "git push && git push --tags",
|
|
21
|
-
"prepublishOnly": "npm run test && npm run build && pinst --enable && pkg-ok",
|
|
22
|
-
"postpublish": "pinst --disable",
|
|
23
|
-
"lint": "eslint . --ext .js,.ts --ignore-path .gitignore",
|
|
24
|
-
"fix": "npm run lint -- --fix",
|
|
25
|
-
"doc": "markdown-toc -i README.md",
|
|
26
|
-
"postinstall": "opencollective-postinstall || exit 0"
|
|
27
|
-
},
|
|
28
|
-
"repository": {
|
|
29
|
-
"type": "git",
|
|
30
|
-
"url": "git+https://github.com/typicode/husky.git"
|
|
31
|
-
},
|
|
32
|
-
"keywords": [
|
|
33
|
-
"git",
|
|
34
|
-
"hook",
|
|
35
|
-
"hooks",
|
|
36
|
-
"pre-commit",
|
|
37
|
-
"precommit",
|
|
38
|
-
"post-commit",
|
|
39
|
-
"postcommit",
|
|
40
|
-
"pre-push",
|
|
41
|
-
"prepush",
|
|
42
|
-
"post-merge",
|
|
43
|
-
"postmerge",
|
|
44
|
-
"test",
|
|
45
|
-
"lint"
|
|
46
|
-
],
|
|
47
|
-
"author": "Typicode <typicode@gmail.com>",
|
|
48
|
-
"license": "MIT",
|
|
49
|
-
"bugs": {
|
|
50
|
-
"url": "https://github.com/typicode/husky/issues"
|
|
51
|
-
},
|
|
52
|
-
"homepage": "https://github.com/typicode/husky#readme",
|
|
53
|
-
"dependencies": {
|
|
54
|
-
"chalk": "^2.4.2",
|
|
55
|
-
"ci-info": "^2.0.0",
|
|
56
|
-
"cosmiconfig": "^5.2.1",
|
|
57
|
-
"execa": "^1.0.0",
|
|
58
|
-
"get-stdin": "^7.0.0",
|
|
59
|
-
"opencollective-postinstall": "^2.0.2",
|
|
60
|
-
"pkg-dir": "^4.2.0",
|
|
61
|
-
"please-upgrade-node": "^3.2.0",
|
|
62
|
-
"read-pkg": "^5.2.0",
|
|
63
|
-
"run-node": "^1.0.0",
|
|
64
|
-
"slash": "^3.0.0"
|
|
65
|
-
},
|
|
66
|
-
"devDependencies": {
|
|
67
|
-
"@types/ci-info": "^2.0.0",
|
|
68
|
-
"@types/cosmiconfig": "^5.0.3",
|
|
69
|
-
"@types/jest": "^24.0.18",
|
|
70
|
-
"@types/mkdirp": "^0.5.2",
|
|
71
|
-
"@types/node": "^12.7.12",
|
|
72
|
-
"@typescript-eslint/eslint-plugin": "^2.3.3",
|
|
73
|
-
"@typescript-eslint/parser": "^2.3.3",
|
|
74
|
-
"cross-env": "^6.0.3",
|
|
75
|
-
"del": "^5.1.0",
|
|
76
|
-
"del-cli": "^3.0.0",
|
|
77
|
-
"eslint": "^6.5.1",
|
|
78
|
-
"eslint-config-prettier": "^6.4.0",
|
|
79
|
-
"eslint-config-xo-space": "^0.21.0",
|
|
80
|
-
"eslint-plugin-prettier": "^3.1.1",
|
|
81
|
-
"formatree": "^1.0.2",
|
|
82
|
-
"jest": "^24.9.0",
|
|
83
|
-
"markdown-toc": "^1.2.0",
|
|
84
|
-
"mkdirp": "^0.5.1",
|
|
85
|
-
"pinst": "^1.1.1",
|
|
86
|
-
"pkg-ok": "^2.3.1",
|
|
87
|
-
"prettier": "^1.18.2",
|
|
88
|
-
"tempy": "^0.3.0",
|
|
89
|
-
"ts-jest": "^24.1.0",
|
|
90
|
-
"typescript": "^3.6.4"
|
|
91
|
-
},
|
|
92
|
-
"jest": {
|
|
93
|
-
"transform": {
|
|
94
|
-
"^.+\\.tsx?$": "ts-jest"
|
|
95
|
-
},
|
|
96
|
-
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
|
|
97
|
-
"moduleFileExtensions": [
|
|
98
|
-
"ts",
|
|
99
|
-
"tsx",
|
|
100
|
-
"js",
|
|
101
|
-
"jsx",
|
|
102
|
-
"json",
|
|
103
|
-
"node"
|
|
104
|
-
]
|
|
105
|
-
},
|
|
106
|
-
"collective": {
|
|
107
|
-
"type": "opencollective",
|
|
108
|
-
"url": "https://opencollective.com/husky"
|
|
109
|
-
},
|
|
110
|
-
"funding": {
|
|
111
|
-
"type": "opencollective",
|
|
112
|
-
"url": "https://opencollective.com/husky"
|
|
113
|
-
}
|
|
114
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
3
|
-
const pleaseUpgradeNode = require('please-upgrade-node')
|
|
4
|
-
const pkg = require('./package.json')
|
|
5
|
-
|
|
6
|
-
// Node version isn't supported, skip
|
|
7
|
-
pleaseUpgradeNode(pkg, {
|
|
8
|
-
message(requiredVersion) {
|
|
9
|
-
return 'Husky requires Node ' + requiredVersion + ", can't run Git hook."
|
|
10
|
-
}
|
|
11
|
-
})
|
|
12
|
-
|
|
13
|
-
// Node version is supported, continue
|
|
14
|
-
require('./lib/runner/bin')
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
|
|
2
|
-
# https://github.com/actions/setup-node
|
|
3
|
-
# https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
|
|
4
|
-
|
|
5
|
-
name: ci
|
|
6
|
-
on:
|
|
7
|
-
push:
|
|
8
|
-
# branches: [main]
|
|
9
|
-
pull_request:
|
|
10
|
-
# branches: [main]
|
|
11
|
-
workflow_dispatch:
|
|
12
|
-
permissions:
|
|
13
|
-
contents: read
|
|
14
|
-
jobs:
|
|
15
|
-
ci:
|
|
16
|
-
strategy:
|
|
17
|
-
fail-fast: false
|
|
18
|
-
matrix: # TODO: Enable 23.x after nodejs/nan#979 or similar.
|
|
19
|
-
node-version: [22.x, 21.x, 20.x, 19.x, 18.x, 17.x, 16.x]
|
|
20
|
-
os: [windows-latest]
|
|
21
|
-
include:
|
|
22
|
-
- node-version: lts/*
|
|
23
|
-
os: macos-13 # macOS on Intel
|
|
24
|
-
- node-version: lts/*
|
|
25
|
-
os: macos-latest # macOS on arm64
|
|
26
|
-
- node-version: lts/*
|
|
27
|
-
os: ubuntu-latest # Linux on x64
|
|
28
|
-
- node-version: lts/*
|
|
29
|
-
os: ubuntu-24.04-arm # Linux on arm64
|
|
30
|
-
- node-version: lts/*
|
|
31
|
-
os: windows-2025
|
|
32
|
-
- node-version: 14.x
|
|
33
|
-
os: windows-2019
|
|
34
|
-
- node-version: 12.x
|
|
35
|
-
os: windows-2019
|
|
36
|
-
- node-version: 10.x
|
|
37
|
-
os: windows-2019
|
|
38
|
-
- node-version: 8.x
|
|
39
|
-
os: windows-2019
|
|
40
|
-
runs-on: ${{ matrix.os }}
|
|
41
|
-
steps:
|
|
42
|
-
- uses: actions/checkout@v4
|
|
43
|
-
- uses: actions/setup-node@v4
|
|
44
|
-
with:
|
|
45
|
-
node-version: ${{ matrix.node-version }}
|
|
46
|
-
- run: npm install
|
|
47
|
-
# TODO: On Windows Node.js v11 these will fail but `make test` will succeed
|
|
48
|
-
- if: matrix.node-version != '11.x'
|
|
49
|
-
run: |
|
|
50
|
-
npm run-script rebuild-tests
|
|
51
|
-
npm test
|
|
52
|
-
- run: make test
|
|
File without changes
|