@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,165 @@
|
|
|
1
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
|
2
|
+
Version 3, 29 June 2007
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
|
5
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
6
|
+
of this license document, but changing it is not allowed.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
This version of the GNU Lesser General Public License incorporates
|
|
10
|
+
the terms and conditions of version 3 of the GNU General Public
|
|
11
|
+
License, supplemented by the additional permissions listed below.
|
|
12
|
+
|
|
13
|
+
0. Additional Definitions.
|
|
14
|
+
|
|
15
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
|
16
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
|
17
|
+
General Public License.
|
|
18
|
+
|
|
19
|
+
"The Library" refers to a covered work governed by this License,
|
|
20
|
+
other than an Application or a Combined Work as defined below.
|
|
21
|
+
|
|
22
|
+
An "Application" is any work that makes use of an interface provided
|
|
23
|
+
by the Library, but which is not otherwise based on the Library.
|
|
24
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
|
25
|
+
of using an interface provided by the Library.
|
|
26
|
+
|
|
27
|
+
A "Combined Work" is a work produced by combining or linking an
|
|
28
|
+
Application with the Library. The particular version of the Library
|
|
29
|
+
with which the Combined Work was made is also called the "Linked
|
|
30
|
+
Version".
|
|
31
|
+
|
|
32
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
|
33
|
+
Corresponding Source for the Combined Work, excluding any source code
|
|
34
|
+
for portions of the Combined Work that, considered in isolation, are
|
|
35
|
+
based on the Application, and not on the Linked Version.
|
|
36
|
+
|
|
37
|
+
The "Corresponding Application Code" for a Combined Work means the
|
|
38
|
+
object code and/or source code for the Application, including any data
|
|
39
|
+
and utility programs needed for reproducing the Combined Work from the
|
|
40
|
+
Application, but excluding the System Libraries of the Combined Work.
|
|
41
|
+
|
|
42
|
+
1. Exception to Section 3 of the GNU GPL.
|
|
43
|
+
|
|
44
|
+
You may convey a covered work under sections 3 and 4 of this License
|
|
45
|
+
without being bound by section 3 of the GNU GPL.
|
|
46
|
+
|
|
47
|
+
2. Conveying Modified Versions.
|
|
48
|
+
|
|
49
|
+
If you modify a copy of the Library, and, in your modifications, a
|
|
50
|
+
facility refers to a function or data to be supplied by an Application
|
|
51
|
+
that uses the facility (other than as an argument passed when the
|
|
52
|
+
facility is invoked), then you may convey a copy of the modified
|
|
53
|
+
version:
|
|
54
|
+
|
|
55
|
+
a) under this License, provided that you make a good faith effort to
|
|
56
|
+
ensure that, in the event an Application does not supply the
|
|
57
|
+
function or data, the facility still operates, and performs
|
|
58
|
+
whatever part of its purpose remains meaningful, or
|
|
59
|
+
|
|
60
|
+
b) under the GNU GPL, with none of the additional permissions of
|
|
61
|
+
this License applicable to that copy.
|
|
62
|
+
|
|
63
|
+
3. Object Code Incorporating Material from Library Header Files.
|
|
64
|
+
|
|
65
|
+
The object code form of an Application may incorporate material from
|
|
66
|
+
a header file that is part of the Library. You may convey such object
|
|
67
|
+
code under terms of your choice, provided that, if the incorporated
|
|
68
|
+
material is not limited to numerical parameters, data structure
|
|
69
|
+
layouts and accessors, or small macros, inline functions and templates
|
|
70
|
+
(ten or fewer lines in length), you do both of the following:
|
|
71
|
+
|
|
72
|
+
a) Give prominent notice with each copy of the object code that the
|
|
73
|
+
Library is used in it and that the Library and its use are
|
|
74
|
+
covered by this License.
|
|
75
|
+
|
|
76
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
|
77
|
+
document.
|
|
78
|
+
|
|
79
|
+
4. Combined Works.
|
|
80
|
+
|
|
81
|
+
You may convey a Combined Work under terms of your choice that,
|
|
82
|
+
taken together, effectively do not restrict modification of the
|
|
83
|
+
portions of the Library contained in the Combined Work and reverse
|
|
84
|
+
engineering for debugging such modifications, if you also do each of
|
|
85
|
+
the following:
|
|
86
|
+
|
|
87
|
+
a) Give prominent notice with each copy of the Combined Work that
|
|
88
|
+
the Library is used in it and that the Library and its use are
|
|
89
|
+
covered by this License.
|
|
90
|
+
|
|
91
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
|
92
|
+
document.
|
|
93
|
+
|
|
94
|
+
c) For a Combined Work that displays copyright notices during
|
|
95
|
+
execution, include the copyright notice for the Library among
|
|
96
|
+
these notices, as well as a reference directing the user to the
|
|
97
|
+
copies of the GNU GPL and this license document.
|
|
98
|
+
|
|
99
|
+
d) Do one of the following:
|
|
100
|
+
|
|
101
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
|
102
|
+
License, and the Corresponding Application Code in a form
|
|
103
|
+
suitable for, and under terms that permit, the user to
|
|
104
|
+
recombine or relink the Application with a modified version of
|
|
105
|
+
the Linked Version to produce a modified Combined Work, in the
|
|
106
|
+
manner specified by section 6 of the GNU GPL for conveying
|
|
107
|
+
Corresponding Source.
|
|
108
|
+
|
|
109
|
+
1) Use a suitable shared library mechanism for linking with the
|
|
110
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
|
111
|
+
a copy of the Library already present on the user's computer
|
|
112
|
+
system, and (b) will operate properly with a modified version
|
|
113
|
+
of the Library that is interface-compatible with the Linked
|
|
114
|
+
Version.
|
|
115
|
+
|
|
116
|
+
e) Provide Installation Information, but only if you would otherwise
|
|
117
|
+
be required to provide such information under section 6 of the
|
|
118
|
+
GNU GPL, and only to the extent that such information is
|
|
119
|
+
necessary to install and execute a modified version of the
|
|
120
|
+
Combined Work produced by recombining or relinking the
|
|
121
|
+
Application with a modified version of the Linked Version. (If
|
|
122
|
+
you use option 4d0, the Installation Information must accompany
|
|
123
|
+
the Minimal Corresponding Source and Corresponding Application
|
|
124
|
+
Code. If you use option 4d1, you must provide the Installation
|
|
125
|
+
Information in the manner specified by section 6 of the GNU GPL
|
|
126
|
+
for conveying Corresponding Source.)
|
|
127
|
+
|
|
128
|
+
5. Combined Libraries.
|
|
129
|
+
|
|
130
|
+
You may place library facilities that are a work based on the
|
|
131
|
+
Library side by side in a single library together with other library
|
|
132
|
+
facilities that are not Applications and are not covered by this
|
|
133
|
+
License, and convey such a combined library under terms of your
|
|
134
|
+
choice, if you do both of the following:
|
|
135
|
+
|
|
136
|
+
a) Accompany the combined library with a copy of the same work based
|
|
137
|
+
on the Library, uncombined with any other library facilities,
|
|
138
|
+
conveyed under the terms of this License.
|
|
139
|
+
|
|
140
|
+
b) Give prominent notice with the combined library that part of it
|
|
141
|
+
is a work based on the Library, and explaining where to find the
|
|
142
|
+
accompanying uncombined form of the same work.
|
|
143
|
+
|
|
144
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
|
145
|
+
|
|
146
|
+
The Free Software Foundation may publish revised and/or new versions
|
|
147
|
+
of the GNU Lesser General Public License from time to time. Such new
|
|
148
|
+
versions will be similar in spirit to the present version, but may
|
|
149
|
+
differ in detail to address new problems or concerns.
|
|
150
|
+
|
|
151
|
+
Each version is given a distinguishing version number. If the
|
|
152
|
+
Library as you received it specifies that a certain numbered version
|
|
153
|
+
of the GNU Lesser General Public License "or any later version"
|
|
154
|
+
applies to it, you have the option of following the terms and
|
|
155
|
+
conditions either of that published version or of any later version
|
|
156
|
+
published by the Free Software Foundation. If the Library as you
|
|
157
|
+
received it does not specify a version number of the GNU Lesser
|
|
158
|
+
General Public License, you may choose any version of the GNU Lesser
|
|
159
|
+
General Public License ever published by the Free Software Foundation.
|
|
160
|
+
|
|
161
|
+
If the Library as you received it specifies that a proxy can decide
|
|
162
|
+
whether future versions of the GNU Lesser General Public License shall
|
|
163
|
+
apply, that proxy's public statement of acceptance of any version is
|
|
164
|
+
permanent authorization for you to choose that version for the
|
|
165
|
+
Library.
|
|
Binary file
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
All the works are available under the MIT license. Except for ‘Terminal.icns’, which is a copy of Apple’s Terminal.app icon and as such is copyright of Apple.
|
|
2
|
+
|
|
3
|
+
Copyright (C) 2012-2016 Eloy Durán eloy.de.enige@gmail.com, Julien Blanchard julien@sideburns.eu
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/lib/cloudrun/index.js
CHANGED
|
@@ -10,6 +10,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CloudRunService = void 0;
|
|
13
|
+
const archiver_1 = __importDefault(require("archiver"));
|
|
14
|
+
const fs_extra_1 = require("fs-extra");
|
|
13
15
|
const path_1 = __importDefault(require("path"));
|
|
14
16
|
const utils_1 = require("../utils");
|
|
15
17
|
/**
|
|
@@ -63,10 +65,7 @@ class CloudRunService {
|
|
|
63
65
|
/**
|
|
64
66
|
* 获取最新版本
|
|
65
67
|
*/
|
|
66
|
-
const cloudRunServerDetailRes = await this.
|
|
67
|
-
EnvId: envConfig.EnvId,
|
|
68
|
-
ServerName: serverName
|
|
69
|
-
});
|
|
68
|
+
const cloudRunServerDetailRes = await this.detail({ serverName });
|
|
70
69
|
const version = (_b = (_a = cloudRunServerDetailRes.OnlineVersionInfos) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.VersionName;
|
|
71
70
|
if (!version) {
|
|
72
71
|
throw new Error('未找到云托管服务版本');
|
|
@@ -131,6 +130,109 @@ class CloudRunService {
|
|
|
131
130
|
ServerName: params.serverName // 要删除的服务名称
|
|
132
131
|
});
|
|
133
132
|
}
|
|
133
|
+
/**
|
|
134
|
+
* 本地代码部署云托管服务
|
|
135
|
+
* @param {Object} params 部署参数
|
|
136
|
+
* @param {string} params.serverName 要部署的服务名称
|
|
137
|
+
* @param {string} params.targetPath 本地代码路径
|
|
138
|
+
* @param {Object} [params.serverConfig] 服务配置项(可选)
|
|
139
|
+
* @param {string[]} [params.serverConfig.OpenAccessTypes] 开放访问类型
|
|
140
|
+
* @param {number} [params.serverConfig.Cpu] CPU规格
|
|
141
|
+
* @param {number} [params.serverConfig.Mem] 内存规格
|
|
142
|
+
* @param {number} [params.serverConfig.MinNum] 最小实例数
|
|
143
|
+
* @param {number} [params.serverConfig.MaxNum] 最大实例数
|
|
144
|
+
* @param {Object} [params.serverConfig.PolicyDetails] 策略详情
|
|
145
|
+
* @param {Object} [params.serverConfig.CustomLogs] 自定义日志配置
|
|
146
|
+
* @param {Object} [params.serverConfig.EnvParams] 环境变量参数
|
|
147
|
+
* @param {number} [params.serverConfig.Port] 端口(函数型服务不允许设置)
|
|
148
|
+
* @param {string} [params.serverConfig.Dockerfile] Dockerfile路径
|
|
149
|
+
* @param {string} [params.serverConfig.BuildDir] 构建目录
|
|
150
|
+
* @param {boolean} [params.serverConfig.InternalAccess] 是否开启内网访问
|
|
151
|
+
* @param {string} [params.serverConfig.InternalDomain] 内网域名
|
|
152
|
+
* @param {string} [params.serverConfig.EntryPoint] 入口文件
|
|
153
|
+
* @param {string} [params.serverConfig.Cmd] 启动命令
|
|
154
|
+
* @returns {Promise<IResponseInfo>} 返回部署操作的响应信息
|
|
155
|
+
*/
|
|
156
|
+
async deploy(params) {
|
|
157
|
+
const { serverName, targetPath = process.cwd(), serverConfig } = params;
|
|
158
|
+
/**
|
|
159
|
+
* 参数校验和默认值设置
|
|
160
|
+
*/
|
|
161
|
+
if (!serverName) {
|
|
162
|
+
throw new Error('Missing required parameters: serviceName');
|
|
163
|
+
}
|
|
164
|
+
// 获取当前环境配置(包含EnvId)
|
|
165
|
+
const envConfig = this.environment.lazyEnvironmentConfig;
|
|
166
|
+
/**
|
|
167
|
+
* 获取部署包上传信息
|
|
168
|
+
*/
|
|
169
|
+
const { UploadUrl: uploadUrl, UploadHeaders: uploadHeaders, PackageName: packageName, PackageVersion: packageVersion } = await this.tcbService.request('DescribeCloudBaseBuildService', {
|
|
170
|
+
EnvId: envConfig.EnvId,
|
|
171
|
+
ServiceName: serverName
|
|
172
|
+
});
|
|
173
|
+
const deployInfo = {
|
|
174
|
+
DeployType: 'package',
|
|
175
|
+
PackageName: packageName,
|
|
176
|
+
PackageVersion: packageVersion
|
|
177
|
+
};
|
|
178
|
+
/**
|
|
179
|
+
* 上传部署包
|
|
180
|
+
*/
|
|
181
|
+
const zipFile = await codeToZip(targetPath, { installDependency: true });
|
|
182
|
+
await upload({
|
|
183
|
+
action: uploadUrl,
|
|
184
|
+
file: zipFile,
|
|
185
|
+
filename: 'file',
|
|
186
|
+
headers: (uploadHeaders || []).reduce((map, item) => {
|
|
187
|
+
map[item.Key] = item.Value;
|
|
188
|
+
return map;
|
|
189
|
+
}, {}) || {},
|
|
190
|
+
method: 'PUT',
|
|
191
|
+
send: (file) => file
|
|
192
|
+
});
|
|
193
|
+
/**
|
|
194
|
+
* 执行部署
|
|
195
|
+
*/
|
|
196
|
+
if (await this._checkFunctionExist(serverName)) {
|
|
197
|
+
// 更新
|
|
198
|
+
const serverDetail = await this.detail({ serverName });
|
|
199
|
+
const _serverConfig = Object.assign(Object.assign(Object.assign({}, ((serverDetail === null || serverDetail === void 0 ? void 0 : serverDetail.ServerConfig) || {})), serverConfig), ((serverDetail === null || serverDetail === void 0 ? void 0 : serverDetail.ServerConfig.Tag) === 'function:' ? { Port: 3000 } : {}) // 函数型不能指定端口,需要固定为3000
|
|
200
|
+
);
|
|
201
|
+
deployInfo.ReleaseType = 'FULL';
|
|
202
|
+
return this._upsertFunction(false, {
|
|
203
|
+
name: serverName,
|
|
204
|
+
deployInfo,
|
|
205
|
+
serverConfig: _serverConfig
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
209
|
+
// 创建
|
|
210
|
+
/**
|
|
211
|
+
* 判断是容器器还是函数型
|
|
212
|
+
*/
|
|
213
|
+
let type = 'function';
|
|
214
|
+
if (serverConfig === null || serverConfig === void 0 ? void 0 : serverConfig.Dockerfile) {
|
|
215
|
+
type = 'container';
|
|
216
|
+
}
|
|
217
|
+
else {
|
|
218
|
+
if (await (0, fs_extra_1.pathExists)(path_1.default.join(targetPath, 'Dockerfile'))) {
|
|
219
|
+
type = 'container';
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
if (type === 'function') {
|
|
223
|
+
deployInfo.BuildPacks = {
|
|
224
|
+
LanguageVersion: '20.18',
|
|
225
|
+
RepoLanguage: 'Node.js'
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
const _serverConfig = Object.assign(Object.assign(Object.assign({ OpenAccessTypes: ['OA', 'PUBLIC'], Cpu: 0, Mem: 0, MinNum: 0, MaxNum: 0, PolicyDetails: [], EnvParams: JSON.stringify({}), InitialDelaySeconds: 0, CustomLogs: '', HasDockerfile: true, CreateTime: '', EnvId: envConfig.EnvId, ServerName: serverName, Port: type === 'container' ? 80 : 3000, Dockerfile: 'Dockerfile', BuildDir: '' }, serverConfig), (type === 'function' ? { Port: 3000 } : {})), { Tag: type === 'container' ? '' : 'function:' });
|
|
229
|
+
return this._upsertFunction(true, {
|
|
230
|
+
name: serverName,
|
|
231
|
+
deployInfo,
|
|
232
|
+
serverConfig: _serverConfig
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
}
|
|
134
236
|
/**
|
|
135
237
|
* 获取云托管服务模板列表
|
|
136
238
|
* @returns {Promise<ITemplate[]>} 返回模板数组
|
|
@@ -138,6 +240,32 @@ class CloudRunService {
|
|
|
138
240
|
async getTemplates() {
|
|
139
241
|
return (0, utils_1.fetchTemplates)(['tcbrFunc', 'tcbrContainer']);
|
|
140
242
|
}
|
|
243
|
+
async _checkFunctionExist(name) {
|
|
244
|
+
try {
|
|
245
|
+
await this.detail({
|
|
246
|
+
serverName: name
|
|
247
|
+
});
|
|
248
|
+
return true;
|
|
249
|
+
}
|
|
250
|
+
catch (e) {
|
|
251
|
+
if (e.code === 'ResourceNotFound' ||
|
|
252
|
+
// 备注:以下条件当 NotFound 处理(已与 fisheryan 确认过)
|
|
253
|
+
(e.code === 'InvalidParameter' && e.original.Message === 'service data illegal')) {
|
|
254
|
+
return false;
|
|
255
|
+
}
|
|
256
|
+
throw e;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
_upsertFunction(isNew, data) {
|
|
260
|
+
const { name, deployInfo, serverConfig } = data;
|
|
261
|
+
const envConfig = this.environment.lazyEnvironmentConfig;
|
|
262
|
+
return this.tcbrService.request(isNew ? 'CreateCloudRunServer' : 'UpdateCloudRunServer', {
|
|
263
|
+
EnvId: envConfig.EnvId,
|
|
264
|
+
ServerName: name,
|
|
265
|
+
DeployInfo: deployInfo,
|
|
266
|
+
ServerConfig: serverConfig
|
|
267
|
+
});
|
|
268
|
+
}
|
|
141
269
|
}
|
|
142
270
|
exports.CloudRunService = CloudRunService;
|
|
143
271
|
__decorate([
|
|
@@ -155,3 +283,87 @@ __decorate([
|
|
|
155
283
|
__decorate([
|
|
156
284
|
(0, utils_1.preLazy)()
|
|
157
285
|
], CloudRunService.prototype, "delete", null);
|
|
286
|
+
__decorate([
|
|
287
|
+
(0, utils_1.preLazy)()
|
|
288
|
+
], CloudRunService.prototype, "deploy", null);
|
|
289
|
+
async function codeToZip(cwd, options) {
|
|
290
|
+
const archive = (0, archiver_1.default)('zip', {
|
|
291
|
+
zlib: { level: 1 } // 保持与之前相同的压缩级别
|
|
292
|
+
});
|
|
293
|
+
const chunks = [];
|
|
294
|
+
const bufferPromise = new Promise((resolve, reject) => {
|
|
295
|
+
archive.on('data', (chunk) => {
|
|
296
|
+
chunks.push(chunk);
|
|
297
|
+
});
|
|
298
|
+
archive.on('end', () => {
|
|
299
|
+
resolve(Buffer.concat(chunks));
|
|
300
|
+
});
|
|
301
|
+
archive.on('error', err => {
|
|
302
|
+
reject(err);
|
|
303
|
+
});
|
|
304
|
+
});
|
|
305
|
+
async function addFilesToArchive(dir, root = false, relativePath = '') {
|
|
306
|
+
const entries = await (0, fs_extra_1.readdir)(dir, { withFileTypes: true });
|
|
307
|
+
for (let entry of entries) {
|
|
308
|
+
const fullPath = path_1.default.join(dir, entry.name);
|
|
309
|
+
const entryRelativePath = path_1.default.join(relativePath, entry.name);
|
|
310
|
+
if (entry.isDirectory()) {
|
|
311
|
+
if (['logs', '.git'].includes(entry.name)) {
|
|
312
|
+
// 忽略 logs 等目录
|
|
313
|
+
continue;
|
|
314
|
+
}
|
|
315
|
+
if (options === null || options === void 0 ? void 0 : options.installDependency) {
|
|
316
|
+
// 忽略 node_modules 等目录
|
|
317
|
+
if (['node_modules'].includes(entry.name)) {
|
|
318
|
+
continue;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
await addFilesToArchive(fullPath, false, entryRelativePath);
|
|
322
|
+
}
|
|
323
|
+
else {
|
|
324
|
+
if (root) {
|
|
325
|
+
// 可以配置忽略指定文件名的文件
|
|
326
|
+
if ([''].includes(entry.name)) {
|
|
327
|
+
continue;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
// 保持与之前相同的文件添加方式,包括相对路径处理
|
|
331
|
+
archive.file(fullPath, { name: entryRelativePath });
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
await addFilesToArchive(path_1.default.resolve(cwd), true);
|
|
336
|
+
await archive.finalize();
|
|
337
|
+
return bufferPromise;
|
|
338
|
+
}
|
|
339
|
+
function upload({ action, file, method = 'POST', headers = {}, withCredentials = false }) {
|
|
340
|
+
return (0, utils_1.fetchStream)(action, {
|
|
341
|
+
method,
|
|
342
|
+
headers,
|
|
343
|
+
body: file,
|
|
344
|
+
credentials: withCredentials ? 'include' : 'same-origin'
|
|
345
|
+
})
|
|
346
|
+
.then(async (response) => {
|
|
347
|
+
const text = await response.text();
|
|
348
|
+
const dataMeta = {
|
|
349
|
+
data: null,
|
|
350
|
+
context: {
|
|
351
|
+
response,
|
|
352
|
+
file
|
|
353
|
+
}
|
|
354
|
+
};
|
|
355
|
+
try {
|
|
356
|
+
dataMeta.data = JSON.parse(text);
|
|
357
|
+
}
|
|
358
|
+
catch (e) {
|
|
359
|
+
// If parsing fails, keep data as null
|
|
360
|
+
}
|
|
361
|
+
if (!response.ok) {
|
|
362
|
+
throw new Error(`${response.status} ${response.statusText} HTTP ERROR`);
|
|
363
|
+
}
|
|
364
|
+
return dataMeta;
|
|
365
|
+
})
|
|
366
|
+
.catch(error => {
|
|
367
|
+
throw error; // 或者可以在这里进行错误转换
|
|
368
|
+
});
|
|
369
|
+
}
|
package/lib/utils/index.js
CHANGED
|
@@ -32,7 +32,6 @@ const crypto_1 = __importDefault(require("crypto"));
|
|
|
32
32
|
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
33
33
|
const lodash_1 = __importDefault(require("lodash"));
|
|
34
34
|
const path_1 = __importDefault(require("path"));
|
|
35
|
-
const stream_1 = require("stream");
|
|
36
35
|
const unzipper_1 = __importDefault(require("unzipper"));
|
|
37
36
|
const constant_1 = require("../constant");
|
|
38
37
|
const http_request_1 = require("./http-request");
|
|
@@ -84,19 +83,47 @@ async function downloadAndExtractRemoteZip(downloadUrl, targetPath) {
|
|
|
84
83
|
if (!downloadResponse.body) {
|
|
85
84
|
throw new Error('下载响应中没有数据流');
|
|
86
85
|
}
|
|
87
|
-
// 将响应数据转为Buffer
|
|
88
|
-
const zipBuffer = Buffer.from(await downloadResponse.arrayBuffer());
|
|
89
86
|
// 创建目标目录
|
|
90
87
|
const dirPath = path_1.default.resolve(targetPath);
|
|
91
88
|
await fs_extra_1.default.ensureDir(dirPath);
|
|
92
|
-
//
|
|
89
|
+
// 使用流式解压,避免大文件内存问题
|
|
93
90
|
await new Promise((resolve, reject) => {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
.pipe(unzipper_1.default.
|
|
98
|
-
.on('
|
|
99
|
-
.on('
|
|
91
|
+
let fileCount = 0;
|
|
92
|
+
let extractedCount = 0;
|
|
93
|
+
downloadResponse
|
|
94
|
+
.body.pipe(unzipper_1.default.Parse())
|
|
95
|
+
.on('error', reject)
|
|
96
|
+
.on('entry', async (entry) => {
|
|
97
|
+
const filePath = path_1.default.join(dirPath, entry.path);
|
|
98
|
+
try {
|
|
99
|
+
// 确保父目录存在(处理嵌套目录情况)
|
|
100
|
+
await fs_extra_1.default.ensureDir(path_1.default.dirname(filePath));
|
|
101
|
+
// 如果是目录则创建,否则写入文件
|
|
102
|
+
if (entry.type === 'Directory') {
|
|
103
|
+
await fs_extra_1.default.ensureDir(filePath);
|
|
104
|
+
extractedCount++;
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
fileCount++;
|
|
108
|
+
entry
|
|
109
|
+
.pipe(fs_extra_1.default.createWriteStream(filePath))
|
|
110
|
+
.on('error', reject)
|
|
111
|
+
.on('finish', () => {
|
|
112
|
+
extractedCount++;
|
|
113
|
+
checkCompletion();
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
catch (err) {
|
|
118
|
+
reject(err);
|
|
119
|
+
}
|
|
120
|
+
})
|
|
121
|
+
.on('close', checkCompletion);
|
|
122
|
+
function checkCompletion() {
|
|
123
|
+
if (fileCount > 0 && fileCount === extractedCount) {
|
|
124
|
+
resolve('');
|
|
125
|
+
}
|
|
126
|
+
}
|
|
100
127
|
});
|
|
101
128
|
}
|
|
102
129
|
function getRuntime() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Environment } from '../environment';
|
|
2
2
|
import { IResponseInfo } from '../interfaces';
|
|
3
|
-
import { CloudrunServerType, ICloudrunDetailResponse, ICloudrunListResponse, ITemplate } from './type';
|
|
3
|
+
import { CloudrunServerType, ICloudrunDetailResponse, ICloudrunListResponse, ICloudrunServerBaseConfig, ITemplate } from './type';
|
|
4
4
|
/**
|
|
5
5
|
* 云托管服务管理类
|
|
6
6
|
* 提供云托管服务的初始化、下载、列表查询和删除等功能
|
|
@@ -73,9 +73,39 @@ export declare class CloudRunService {
|
|
|
73
73
|
delete(params: {
|
|
74
74
|
serverName: string;
|
|
75
75
|
}): Promise<IResponseInfo>;
|
|
76
|
+
/**
|
|
77
|
+
* 本地代码部署云托管服务
|
|
78
|
+
* @param {Object} params 部署参数
|
|
79
|
+
* @param {string} params.serverName 要部署的服务名称
|
|
80
|
+
* @param {string} params.targetPath 本地代码路径
|
|
81
|
+
* @param {Object} [params.serverConfig] 服务配置项(可选)
|
|
82
|
+
* @param {string[]} [params.serverConfig.OpenAccessTypes] 开放访问类型
|
|
83
|
+
* @param {number} [params.serverConfig.Cpu] CPU规格
|
|
84
|
+
* @param {number} [params.serverConfig.Mem] 内存规格
|
|
85
|
+
* @param {number} [params.serverConfig.MinNum] 最小实例数
|
|
86
|
+
* @param {number} [params.serverConfig.MaxNum] 最大实例数
|
|
87
|
+
* @param {Object} [params.serverConfig.PolicyDetails] 策略详情
|
|
88
|
+
* @param {Object} [params.serverConfig.CustomLogs] 自定义日志配置
|
|
89
|
+
* @param {Object} [params.serverConfig.EnvParams] 环境变量参数
|
|
90
|
+
* @param {number} [params.serverConfig.Port] 端口(函数型服务不允许设置)
|
|
91
|
+
* @param {string} [params.serverConfig.Dockerfile] Dockerfile路径
|
|
92
|
+
* @param {string} [params.serverConfig.BuildDir] 构建目录
|
|
93
|
+
* @param {boolean} [params.serverConfig.InternalAccess] 是否开启内网访问
|
|
94
|
+
* @param {string} [params.serverConfig.InternalDomain] 内网域名
|
|
95
|
+
* @param {string} [params.serverConfig.EntryPoint] 入口文件
|
|
96
|
+
* @param {string} [params.serverConfig.Cmd] 启动命令
|
|
97
|
+
* @returns {Promise<IResponseInfo>} 返回部署操作的响应信息
|
|
98
|
+
*/
|
|
99
|
+
deploy(params: {
|
|
100
|
+
serverName: string;
|
|
101
|
+
targetPath: string;
|
|
102
|
+
serverConfig?: Partial<Pick<ICloudrunServerBaseConfig, 'OpenAccessTypes' | 'Cpu' | 'Mem' | 'MinNum' | 'MaxNum' | 'PolicyDetails' | 'CustomLogs' | 'EnvParams' | 'Port' | 'Dockerfile' | 'BuildDir' | 'InternalAccess' | 'InternalDomain' | 'EntryPoint' | 'Cmd'>>;
|
|
103
|
+
}): Promise<IResponseInfo>;
|
|
76
104
|
/**
|
|
77
105
|
* 获取云托管服务模板列表
|
|
78
106
|
* @returns {Promise<ITemplate[]>} 返回模板数组
|
|
79
107
|
*/
|
|
80
108
|
getTemplates(): Promise<ITemplate[]>;
|
|
109
|
+
private _checkFunctionExist;
|
|
110
|
+
private _upsertFunction;
|
|
81
111
|
}
|