@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,356 @@
|
|
|
1
|
+
/*********************************************************************
|
|
2
|
+
* NAN - Native Abstractions for Node.js
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2018 NAN contributors
|
|
5
|
+
*
|
|
6
|
+
* MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
|
|
7
|
+
********************************************************************/
|
|
8
|
+
|
|
9
|
+
#ifndef NAN_MAYBE_43_INL_H_
|
|
10
|
+
#define NAN_MAYBE_43_INL_H_
|
|
11
|
+
|
|
12
|
+
template<typename T>
|
|
13
|
+
using MaybeLocal = v8::MaybeLocal<T>;
|
|
14
|
+
|
|
15
|
+
inline
|
|
16
|
+
MaybeLocal<v8::String> ToDetailString(v8::Local<v8::Value> val) {
|
|
17
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
18
|
+
v8::EscapableHandleScope scope(isolate);
|
|
19
|
+
return scope.Escape(val->ToDetailString(isolate->GetCurrentContext())
|
|
20
|
+
.FromMaybe(v8::Local<v8::String>()));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
inline
|
|
24
|
+
MaybeLocal<v8::Uint32> ToArrayIndex(v8::Local<v8::Value> val) {
|
|
25
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
26
|
+
v8::EscapableHandleScope scope(isolate);
|
|
27
|
+
return scope.Escape(val->ToArrayIndex(isolate->GetCurrentContext())
|
|
28
|
+
.FromMaybe(v8::Local<v8::Uint32>()));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
inline
|
|
32
|
+
Maybe<bool> Equals(v8::Local<v8::Value> a, v8::Local<v8::Value>(b)) {
|
|
33
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
34
|
+
v8::HandleScope scope(isolate);
|
|
35
|
+
return a->Equals(isolate->GetCurrentContext(), b);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
inline
|
|
39
|
+
MaybeLocal<v8::Object> NewInstance(v8::Local<v8::Function> h) {
|
|
40
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
41
|
+
v8::EscapableHandleScope scope(isolate);
|
|
42
|
+
return scope.Escape(h->NewInstance(isolate->GetCurrentContext())
|
|
43
|
+
.FromMaybe(v8::Local<v8::Object>()));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
inline
|
|
47
|
+
MaybeLocal<v8::Object> NewInstance(
|
|
48
|
+
v8::Local<v8::Function> h
|
|
49
|
+
, int argc
|
|
50
|
+
, v8::Local<v8::Value> argv[]) {
|
|
51
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
52
|
+
v8::EscapableHandleScope scope(isolate);
|
|
53
|
+
return scope.Escape(h->NewInstance(isolate->GetCurrentContext(), argc, argv)
|
|
54
|
+
.FromMaybe(v8::Local<v8::Object>()));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
inline
|
|
58
|
+
MaybeLocal<v8::Object> NewInstance(v8::Local<v8::ObjectTemplate> h) {
|
|
59
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
60
|
+
v8::EscapableHandleScope scope(isolate);
|
|
61
|
+
return scope.Escape(h->NewInstance(isolate->GetCurrentContext())
|
|
62
|
+
.FromMaybe(v8::Local<v8::Object>()));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
inline MaybeLocal<v8::Function> GetFunction(
|
|
67
|
+
v8::Local<v8::FunctionTemplate> t) {
|
|
68
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
69
|
+
v8::EscapableHandleScope scope(isolate);
|
|
70
|
+
return scope.Escape(t->GetFunction(isolate->GetCurrentContext())
|
|
71
|
+
.FromMaybe(v8::Local<v8::Function>()));
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
inline Maybe<bool> Set(
|
|
75
|
+
v8::Local<v8::Object> obj
|
|
76
|
+
, v8::Local<v8::Value> key
|
|
77
|
+
, v8::Local<v8::Value> value) {
|
|
78
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
79
|
+
v8::HandleScope scope(isolate);
|
|
80
|
+
return obj->Set(isolate->GetCurrentContext(), key, value);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
inline Maybe<bool> Set(
|
|
84
|
+
v8::Local<v8::Object> obj
|
|
85
|
+
, uint32_t index
|
|
86
|
+
, v8::Local<v8::Value> value) {
|
|
87
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
88
|
+
v8::HandleScope scope(isolate);
|
|
89
|
+
return obj->Set(isolate->GetCurrentContext(), index, value);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
#if NODE_MODULE_VERSION < NODE_4_0_MODULE_VERSION
|
|
93
|
+
#include "nan_define_own_property_helper.h" // NOLINT(build/include)
|
|
94
|
+
#endif
|
|
95
|
+
|
|
96
|
+
inline Maybe<bool> DefineOwnProperty(
|
|
97
|
+
v8::Local<v8::Object> obj
|
|
98
|
+
, v8::Local<v8::String> key
|
|
99
|
+
, v8::Local<v8::Value> value
|
|
100
|
+
, v8::PropertyAttribute attribs = v8::None) {
|
|
101
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
102
|
+
v8::HandleScope scope(isolate);
|
|
103
|
+
#if NODE_MODULE_VERSION >= NODE_4_0_MODULE_VERSION
|
|
104
|
+
return obj->DefineOwnProperty(isolate->GetCurrentContext(), key, value,
|
|
105
|
+
attribs);
|
|
106
|
+
#else
|
|
107
|
+
Maybe<v8::PropertyAttribute> maybeCurrent =
|
|
108
|
+
obj->GetPropertyAttributes(isolate->GetCurrentContext(), key);
|
|
109
|
+
if (maybeCurrent.IsNothing()) {
|
|
110
|
+
return Nothing<bool>();
|
|
111
|
+
}
|
|
112
|
+
v8::PropertyAttribute current = maybeCurrent.FromJust();
|
|
113
|
+
return imp::DefineOwnPropertyHelper(current, obj, key, value, attribs);
|
|
114
|
+
#endif
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
NAN_DEPRECATED inline Maybe<bool> ForceSet(
|
|
118
|
+
v8::Local<v8::Object> obj
|
|
119
|
+
, v8::Local<v8::Value> key
|
|
120
|
+
, v8::Local<v8::Value> value
|
|
121
|
+
, v8::PropertyAttribute attribs = v8::None) {
|
|
122
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
123
|
+
v8::HandleScope scope(isolate);
|
|
124
|
+
#if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
|
125
|
+
return key->IsName()
|
|
126
|
+
? obj->DefineOwnProperty(isolate->GetCurrentContext(),
|
|
127
|
+
key.As<v8::Name>(), value, attribs)
|
|
128
|
+
: Nothing<bool>();
|
|
129
|
+
#else
|
|
130
|
+
return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
|
|
131
|
+
#endif
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
inline MaybeLocal<v8::Value> Get(
|
|
135
|
+
v8::Local<v8::Object> obj
|
|
136
|
+
, v8::Local<v8::Value> key) {
|
|
137
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
138
|
+
v8::EscapableHandleScope scope(isolate);
|
|
139
|
+
return scope.Escape(obj->Get(isolate->GetCurrentContext(), key)
|
|
140
|
+
.FromMaybe(v8::Local<v8::Value>()));
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
inline
|
|
144
|
+
MaybeLocal<v8::Value> Get(v8::Local<v8::Object> obj, uint32_t index) {
|
|
145
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
146
|
+
v8::EscapableHandleScope scope(isolate);
|
|
147
|
+
return scope.Escape(obj->Get(isolate->GetCurrentContext(), index)
|
|
148
|
+
.FromMaybe(v8::Local<v8::Value>()));
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
inline v8::PropertyAttribute GetPropertyAttributes(
|
|
152
|
+
v8::Local<v8::Object> obj
|
|
153
|
+
, v8::Local<v8::Value> key) {
|
|
154
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
155
|
+
v8::HandleScope scope(isolate);
|
|
156
|
+
return obj->GetPropertyAttributes(isolate->GetCurrentContext(), key)
|
|
157
|
+
.FromJust();
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
inline Maybe<bool> Has(
|
|
161
|
+
v8::Local<v8::Object> obj
|
|
162
|
+
, v8::Local<v8::String> key) {
|
|
163
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
164
|
+
v8::HandleScope scope(isolate);
|
|
165
|
+
return obj->Has(isolate->GetCurrentContext(), key);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
inline Maybe<bool> Has(v8::Local<v8::Object> obj, uint32_t index) {
|
|
169
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
170
|
+
v8::HandleScope scope(isolate);
|
|
171
|
+
return obj->Has(isolate->GetCurrentContext(), index);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
inline Maybe<bool> Delete(
|
|
175
|
+
v8::Local<v8::Object> obj
|
|
176
|
+
, v8::Local<v8::String> key) {
|
|
177
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
178
|
+
v8::HandleScope scope(isolate);
|
|
179
|
+
return obj->Delete(isolate->GetCurrentContext(), key);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
inline
|
|
183
|
+
Maybe<bool> Delete(v8::Local<v8::Object> obj, uint32_t index) {
|
|
184
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
185
|
+
v8::HandleScope scope(isolate);
|
|
186
|
+
return obj->Delete(isolate->GetCurrentContext(), index);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
inline
|
|
190
|
+
MaybeLocal<v8::Array> GetPropertyNames(v8::Local<v8::Object> obj) {
|
|
191
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
192
|
+
v8::EscapableHandleScope scope(isolate);
|
|
193
|
+
return scope.Escape(obj->GetPropertyNames(isolate->GetCurrentContext())
|
|
194
|
+
.FromMaybe(v8::Local<v8::Array>()));
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
inline
|
|
198
|
+
MaybeLocal<v8::Array> GetOwnPropertyNames(v8::Local<v8::Object> obj) {
|
|
199
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
200
|
+
v8::EscapableHandleScope scope(isolate);
|
|
201
|
+
return scope.Escape(obj->GetOwnPropertyNames(isolate->GetCurrentContext())
|
|
202
|
+
.FromMaybe(v8::Local<v8::Array>()));
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
inline Maybe<bool> SetPrototype(
|
|
206
|
+
v8::Local<v8::Object> obj
|
|
207
|
+
, v8::Local<v8::Value> prototype) {
|
|
208
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
209
|
+
v8::HandleScope scope(isolate);
|
|
210
|
+
return obj->SetPrototype(isolate->GetCurrentContext(), prototype);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
inline MaybeLocal<v8::String> ObjectProtoToString(
|
|
214
|
+
v8::Local<v8::Object> obj) {
|
|
215
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
216
|
+
v8::EscapableHandleScope scope(isolate);
|
|
217
|
+
return scope.Escape(obj->ObjectProtoToString(isolate->GetCurrentContext())
|
|
218
|
+
.FromMaybe(v8::Local<v8::String>()));
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
inline Maybe<bool> HasOwnProperty(
|
|
222
|
+
v8::Local<v8::Object> obj
|
|
223
|
+
, v8::Local<v8::String> key) {
|
|
224
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
225
|
+
v8::HandleScope scope(isolate);
|
|
226
|
+
return obj->HasOwnProperty(isolate->GetCurrentContext(), key);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
inline Maybe<bool> HasRealNamedProperty(
|
|
230
|
+
v8::Local<v8::Object> obj
|
|
231
|
+
, v8::Local<v8::String> key) {
|
|
232
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
233
|
+
v8::HandleScope scope(isolate);
|
|
234
|
+
return obj->HasRealNamedProperty(isolate->GetCurrentContext(), key);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
inline Maybe<bool> HasRealIndexedProperty(
|
|
238
|
+
v8::Local<v8::Object> obj
|
|
239
|
+
, uint32_t index) {
|
|
240
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
241
|
+
v8::HandleScope scope(isolate);
|
|
242
|
+
return obj->HasRealIndexedProperty(isolate->GetCurrentContext(), index);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
inline Maybe<bool> HasRealNamedCallbackProperty(
|
|
246
|
+
v8::Local<v8::Object> obj
|
|
247
|
+
, v8::Local<v8::String> key) {
|
|
248
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
249
|
+
v8::HandleScope scope(isolate);
|
|
250
|
+
return obj->HasRealNamedCallbackProperty(isolate->GetCurrentContext(), key);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
inline MaybeLocal<v8::Value> GetRealNamedPropertyInPrototypeChain(
|
|
254
|
+
v8::Local<v8::Object> obj
|
|
255
|
+
, v8::Local<v8::String> key) {
|
|
256
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
257
|
+
v8::EscapableHandleScope scope(isolate);
|
|
258
|
+
return scope.Escape(obj->GetRealNamedPropertyInPrototypeChain(
|
|
259
|
+
isolate->GetCurrentContext(), key)
|
|
260
|
+
.FromMaybe(v8::Local<v8::Value>()));
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
inline MaybeLocal<v8::Value> GetRealNamedProperty(
|
|
264
|
+
v8::Local<v8::Object> obj
|
|
265
|
+
, v8::Local<v8::String> key) {
|
|
266
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
267
|
+
v8::EscapableHandleScope scope(isolate);
|
|
268
|
+
return scope.Escape(
|
|
269
|
+
obj->GetRealNamedProperty(isolate->GetCurrentContext(), key)
|
|
270
|
+
.FromMaybe(v8::Local<v8::Value>()));
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
inline MaybeLocal<v8::Value> CallAsFunction(
|
|
274
|
+
v8::Local<v8::Object> obj
|
|
275
|
+
, v8::Local<v8::Object> recv
|
|
276
|
+
, int argc
|
|
277
|
+
, v8::Local<v8::Value> argv[]) {
|
|
278
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
279
|
+
v8::EscapableHandleScope scope(isolate);
|
|
280
|
+
return scope.Escape(
|
|
281
|
+
obj->CallAsFunction(isolate->GetCurrentContext(), recv, argc, argv)
|
|
282
|
+
.FromMaybe(v8::Local<v8::Value>()));
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
inline MaybeLocal<v8::Value> CallAsConstructor(
|
|
286
|
+
v8::Local<v8::Object> obj
|
|
287
|
+
, int argc, v8::Local<v8::Value> argv[]) {
|
|
288
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
289
|
+
v8::EscapableHandleScope scope(isolate);
|
|
290
|
+
return scope.Escape(
|
|
291
|
+
obj->CallAsConstructor(isolate->GetCurrentContext(), argc, argv)
|
|
292
|
+
.FromMaybe(v8::Local<v8::Value>()));
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
inline
|
|
296
|
+
MaybeLocal<v8::String> GetSourceLine(v8::Local<v8::Message> msg) {
|
|
297
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
298
|
+
v8::EscapableHandleScope scope(isolate);
|
|
299
|
+
return scope.Escape(msg->GetSourceLine(isolate->GetCurrentContext())
|
|
300
|
+
.FromMaybe(v8::Local<v8::String>()));
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
inline Maybe<int> GetLineNumber(v8::Local<v8::Message> msg) {
|
|
304
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
305
|
+
v8::HandleScope scope(isolate);
|
|
306
|
+
return msg->GetLineNumber(isolate->GetCurrentContext());
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
inline Maybe<int> GetStartColumn(v8::Local<v8::Message> msg) {
|
|
310
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
311
|
+
v8::HandleScope scope(isolate);
|
|
312
|
+
return msg->GetStartColumn(isolate->GetCurrentContext());
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
inline Maybe<int> GetEndColumn(v8::Local<v8::Message> msg) {
|
|
316
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
317
|
+
v8::HandleScope scope(isolate);
|
|
318
|
+
return msg->GetEndColumn(isolate->GetCurrentContext());
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
inline MaybeLocal<v8::Object> CloneElementAt(
|
|
322
|
+
v8::Local<v8::Array> array
|
|
323
|
+
, uint32_t index) {
|
|
324
|
+
#if (NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION)
|
|
325
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
326
|
+
v8::EscapableHandleScope scope(isolate);
|
|
327
|
+
v8::Local<v8::Context> context = isolate->GetCurrentContext();
|
|
328
|
+
v8::Local<v8::Value> elem;
|
|
329
|
+
v8::Local<v8::Object> obj;
|
|
330
|
+
if (!array->Get(context, index).ToLocal(&elem)) {
|
|
331
|
+
return scope.Escape(obj);
|
|
332
|
+
}
|
|
333
|
+
if (!elem->ToObject(context).ToLocal(&obj)) {
|
|
334
|
+
return scope.Escape(v8::Local<v8::Object>());
|
|
335
|
+
}
|
|
336
|
+
return scope.Escape(obj->Clone());
|
|
337
|
+
#else
|
|
338
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
339
|
+
v8::EscapableHandleScope scope(isolate);
|
|
340
|
+
return scope.Escape(array->CloneElementAt(isolate->GetCurrentContext(), index)
|
|
341
|
+
.FromMaybe(v8::Local<v8::Object>()));
|
|
342
|
+
#endif
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
inline MaybeLocal<v8::Value> Call(
|
|
346
|
+
v8::Local<v8::Function> fun
|
|
347
|
+
, v8::Local<v8::Object> recv
|
|
348
|
+
, int argc
|
|
349
|
+
, v8::Local<v8::Value> argv[]) {
|
|
350
|
+
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
|
351
|
+
v8::EscapableHandleScope scope(isolate);
|
|
352
|
+
return scope.Escape(fun->Call(isolate->GetCurrentContext(), recv, argc, argv)
|
|
353
|
+
.FromMaybe(v8::Local<v8::Value>()));
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
#endif // NAN_MAYBE_43_INL_H_
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
/*********************************************************************
|
|
2
|
+
* NAN - Native Abstractions for Node.js
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2018 NAN contributors
|
|
5
|
+
*
|
|
6
|
+
* MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
|
|
7
|
+
********************************************************************/
|
|
8
|
+
|
|
9
|
+
#ifndef NAN_MAYBE_PRE_43_INL_H_
|
|
10
|
+
#define NAN_MAYBE_PRE_43_INL_H_
|
|
11
|
+
|
|
12
|
+
template<typename T>
|
|
13
|
+
class MaybeLocal {
|
|
14
|
+
public:
|
|
15
|
+
inline MaybeLocal() : val_(v8::Local<T>()) {}
|
|
16
|
+
|
|
17
|
+
template<typename S>
|
|
18
|
+
# if NODE_MODULE_VERSION >= NODE_0_12_MODULE_VERSION
|
|
19
|
+
inline
|
|
20
|
+
MaybeLocal(v8::Local<S> that) : val_(that) {} // NOLINT(runtime/explicit)
|
|
21
|
+
# else
|
|
22
|
+
inline
|
|
23
|
+
MaybeLocal(v8::Local<S> that) : // NOLINT(runtime/explicit)
|
|
24
|
+
val_(*reinterpret_cast<v8::Local<T>*>(&that)) {}
|
|
25
|
+
# endif
|
|
26
|
+
|
|
27
|
+
inline bool IsEmpty() const { return val_.IsEmpty(); }
|
|
28
|
+
|
|
29
|
+
template<typename S>
|
|
30
|
+
inline bool ToLocal(v8::Local<S> *out) const {
|
|
31
|
+
*out = val_;
|
|
32
|
+
return !IsEmpty();
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
inline v8::Local<T> ToLocalChecked() const {
|
|
36
|
+
#if defined(V8_ENABLE_CHECKS)
|
|
37
|
+
assert(!IsEmpty() && "ToLocalChecked is Empty");
|
|
38
|
+
#endif // V8_ENABLE_CHECKS
|
|
39
|
+
return val_;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
template<typename S>
|
|
43
|
+
inline v8::Local<S> FromMaybe(v8::Local<S> default_value) const {
|
|
44
|
+
return IsEmpty() ? default_value : v8::Local<S>(val_);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
private:
|
|
48
|
+
v8::Local<T> val_;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
inline
|
|
52
|
+
MaybeLocal<v8::String> ToDetailString(v8::Handle<v8::Value> val) {
|
|
53
|
+
return MaybeLocal<v8::String>(val->ToDetailString());
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
inline
|
|
57
|
+
MaybeLocal<v8::Uint32> ToArrayIndex(v8::Handle<v8::Value> val) {
|
|
58
|
+
return MaybeLocal<v8::Uint32>(val->ToArrayIndex());
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
inline
|
|
62
|
+
Maybe<bool> Equals(v8::Handle<v8::Value> a, v8::Handle<v8::Value>(b)) {
|
|
63
|
+
return Just<bool>(a->Equals(b));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
inline
|
|
67
|
+
MaybeLocal<v8::Object> NewInstance(v8::Handle<v8::Function> h) {
|
|
68
|
+
return MaybeLocal<v8::Object>(h->NewInstance());
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
inline
|
|
72
|
+
MaybeLocal<v8::Object> NewInstance(
|
|
73
|
+
v8::Local<v8::Function> h
|
|
74
|
+
, int argc
|
|
75
|
+
, v8::Local<v8::Value> argv[]) {
|
|
76
|
+
return MaybeLocal<v8::Object>(h->NewInstance(argc, argv));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
inline
|
|
80
|
+
MaybeLocal<v8::Object> NewInstance(v8::Handle<v8::ObjectTemplate> h) {
|
|
81
|
+
return MaybeLocal<v8::Object>(h->NewInstance());
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
inline
|
|
85
|
+
MaybeLocal<v8::Function> GetFunction(v8::Handle<v8::FunctionTemplate> t) {
|
|
86
|
+
return MaybeLocal<v8::Function>(t->GetFunction());
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
inline Maybe<bool> Set(
|
|
90
|
+
v8::Handle<v8::Object> obj
|
|
91
|
+
, v8::Handle<v8::Value> key
|
|
92
|
+
, v8::Handle<v8::Value> value) {
|
|
93
|
+
return Just<bool>(obj->Set(key, value));
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
inline Maybe<bool> Set(
|
|
97
|
+
v8::Handle<v8::Object> obj
|
|
98
|
+
, uint32_t index
|
|
99
|
+
, v8::Handle<v8::Value> value) {
|
|
100
|
+
return Just<bool>(obj->Set(index, value));
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
#include "nan_define_own_property_helper.h" // NOLINT(build/include)
|
|
104
|
+
|
|
105
|
+
inline Maybe<bool> DefineOwnProperty(
|
|
106
|
+
v8::Handle<v8::Object> obj
|
|
107
|
+
, v8::Handle<v8::String> key
|
|
108
|
+
, v8::Handle<v8::Value> value
|
|
109
|
+
, v8::PropertyAttribute attribs = v8::None) {
|
|
110
|
+
v8::PropertyAttribute current = obj->GetPropertyAttributes(key);
|
|
111
|
+
return imp::DefineOwnPropertyHelper(current, obj, key, value, attribs);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
NAN_DEPRECATED inline Maybe<bool> ForceSet(
|
|
115
|
+
v8::Handle<v8::Object> obj
|
|
116
|
+
, v8::Handle<v8::Value> key
|
|
117
|
+
, v8::Handle<v8::Value> value
|
|
118
|
+
, v8::PropertyAttribute attribs = v8::None) {
|
|
119
|
+
return Just<bool>(obj->ForceSet(key, value, attribs));
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
inline MaybeLocal<v8::Value> Get(
|
|
123
|
+
v8::Handle<v8::Object> obj
|
|
124
|
+
, v8::Handle<v8::Value> key) {
|
|
125
|
+
return MaybeLocal<v8::Value>(obj->Get(key));
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
inline MaybeLocal<v8::Value> Get(
|
|
129
|
+
v8::Handle<v8::Object> obj
|
|
130
|
+
, uint32_t index) {
|
|
131
|
+
return MaybeLocal<v8::Value>(obj->Get(index));
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
inline Maybe<v8::PropertyAttribute> GetPropertyAttributes(
|
|
135
|
+
v8::Handle<v8::Object> obj
|
|
136
|
+
, v8::Handle<v8::Value> key) {
|
|
137
|
+
return Just<v8::PropertyAttribute>(obj->GetPropertyAttributes(key));
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
inline Maybe<bool> Has(
|
|
141
|
+
v8::Handle<v8::Object> obj
|
|
142
|
+
, v8::Handle<v8::String> key) {
|
|
143
|
+
return Just<bool>(obj->Has(key));
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
inline Maybe<bool> Has(
|
|
147
|
+
v8::Handle<v8::Object> obj
|
|
148
|
+
, uint32_t index) {
|
|
149
|
+
return Just<bool>(obj->Has(index));
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
inline Maybe<bool> Delete(
|
|
153
|
+
v8::Handle<v8::Object> obj
|
|
154
|
+
, v8::Handle<v8::String> key) {
|
|
155
|
+
return Just<bool>(obj->Delete(key));
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
inline Maybe<bool> Delete(
|
|
159
|
+
v8::Handle<v8::Object> obj
|
|
160
|
+
, uint32_t index) {
|
|
161
|
+
return Just<bool>(obj->Delete(index));
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
inline
|
|
165
|
+
MaybeLocal<v8::Array> GetPropertyNames(v8::Handle<v8::Object> obj) {
|
|
166
|
+
return MaybeLocal<v8::Array>(obj->GetPropertyNames());
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
inline
|
|
170
|
+
MaybeLocal<v8::Array> GetOwnPropertyNames(v8::Handle<v8::Object> obj) {
|
|
171
|
+
return MaybeLocal<v8::Array>(obj->GetOwnPropertyNames());
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
inline Maybe<bool> SetPrototype(
|
|
175
|
+
v8::Handle<v8::Object> obj
|
|
176
|
+
, v8::Handle<v8::Value> prototype) {
|
|
177
|
+
return Just<bool>(obj->SetPrototype(prototype));
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
inline MaybeLocal<v8::String> ObjectProtoToString(
|
|
181
|
+
v8::Handle<v8::Object> obj) {
|
|
182
|
+
return MaybeLocal<v8::String>(obj->ObjectProtoToString());
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
inline Maybe<bool> HasOwnProperty(
|
|
186
|
+
v8::Handle<v8::Object> obj
|
|
187
|
+
, v8::Handle<v8::String> key) {
|
|
188
|
+
return Just<bool>(obj->HasOwnProperty(key));
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
inline Maybe<bool> HasRealNamedProperty(
|
|
192
|
+
v8::Handle<v8::Object> obj
|
|
193
|
+
, v8::Handle<v8::String> key) {
|
|
194
|
+
return Just<bool>(obj->HasRealNamedProperty(key));
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
inline Maybe<bool> HasRealIndexedProperty(
|
|
198
|
+
v8::Handle<v8::Object> obj
|
|
199
|
+
, uint32_t index) {
|
|
200
|
+
return Just<bool>(obj->HasRealIndexedProperty(index));
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
inline Maybe<bool> HasRealNamedCallbackProperty(
|
|
204
|
+
v8::Handle<v8::Object> obj
|
|
205
|
+
, v8::Handle<v8::String> key) {
|
|
206
|
+
return Just<bool>(obj->HasRealNamedCallbackProperty(key));
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
inline MaybeLocal<v8::Value> GetRealNamedPropertyInPrototypeChain(
|
|
210
|
+
v8::Handle<v8::Object> obj
|
|
211
|
+
, v8::Handle<v8::String> key) {
|
|
212
|
+
return MaybeLocal<v8::Value>(
|
|
213
|
+
obj->GetRealNamedPropertyInPrototypeChain(key));
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
inline MaybeLocal<v8::Value> GetRealNamedProperty(
|
|
217
|
+
v8::Handle<v8::Object> obj
|
|
218
|
+
, v8::Handle<v8::String> key) {
|
|
219
|
+
return MaybeLocal<v8::Value>(obj->GetRealNamedProperty(key));
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
inline MaybeLocal<v8::Value> CallAsFunction(
|
|
223
|
+
v8::Handle<v8::Object> obj
|
|
224
|
+
, v8::Handle<v8::Object> recv
|
|
225
|
+
, int argc
|
|
226
|
+
, v8::Handle<v8::Value> argv[]) {
|
|
227
|
+
return MaybeLocal<v8::Value>(obj->CallAsFunction(recv, argc, argv));
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
inline MaybeLocal<v8::Value> CallAsConstructor(
|
|
231
|
+
v8::Handle<v8::Object> obj
|
|
232
|
+
, int argc
|
|
233
|
+
, v8::Local<v8::Value> argv[]) {
|
|
234
|
+
return MaybeLocal<v8::Value>(obj->CallAsConstructor(argc, argv));
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
inline
|
|
238
|
+
MaybeLocal<v8::String> GetSourceLine(v8::Handle<v8::Message> msg) {
|
|
239
|
+
return MaybeLocal<v8::String>(msg->GetSourceLine());
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
inline Maybe<int> GetLineNumber(v8::Handle<v8::Message> msg) {
|
|
243
|
+
return Just<int>(msg->GetLineNumber());
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
inline Maybe<int> GetStartColumn(v8::Handle<v8::Message> msg) {
|
|
247
|
+
return Just<int>(msg->GetStartColumn());
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
inline Maybe<int> GetEndColumn(v8::Handle<v8::Message> msg) {
|
|
251
|
+
return Just<int>(msg->GetEndColumn());
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
inline MaybeLocal<v8::Object> CloneElementAt(
|
|
255
|
+
v8::Handle<v8::Array> array
|
|
256
|
+
, uint32_t index) {
|
|
257
|
+
return MaybeLocal<v8::Object>(array->CloneElementAt(index));
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
inline MaybeLocal<v8::Value> Call(
|
|
261
|
+
v8::Local<v8::Function> fun
|
|
262
|
+
, v8::Local<v8::Object> recv
|
|
263
|
+
, int argc
|
|
264
|
+
, v8::Local<v8::Value> argv[]) {
|
|
265
|
+
return MaybeLocal<v8::Value>(fun->Call(recv, argc, argv));
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
#endif // NAN_MAYBE_PRE_43_INL_H_
|