@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
package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_implementation_pre_12_inl.h
ADDED
|
@@ -0,0 +1,263 @@
|
|
|
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_IMPLEMENTATION_PRE_12_INL_H_
|
|
10
|
+
#define NAN_IMPLEMENTATION_PRE_12_INL_H_
|
|
11
|
+
|
|
12
|
+
//==============================================================================
|
|
13
|
+
// node v0.10 implementation
|
|
14
|
+
//==============================================================================
|
|
15
|
+
|
|
16
|
+
namespace imp {
|
|
17
|
+
|
|
18
|
+
//=== Array ====================================================================
|
|
19
|
+
|
|
20
|
+
Factory<v8::Array>::return_t
|
|
21
|
+
Factory<v8::Array>::New() {
|
|
22
|
+
return v8::Array::New();
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
Factory<v8::Array>::return_t
|
|
26
|
+
Factory<v8::Array>::New(int length) {
|
|
27
|
+
return v8::Array::New(length);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
//=== Boolean ==================================================================
|
|
31
|
+
|
|
32
|
+
Factory<v8::Boolean>::return_t
|
|
33
|
+
Factory<v8::Boolean>::New(bool value) {
|
|
34
|
+
return v8::Boolean::New(value)->ToBoolean();
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
//=== Boolean Object ===========================================================
|
|
38
|
+
|
|
39
|
+
Factory<v8::BooleanObject>::return_t
|
|
40
|
+
Factory<v8::BooleanObject>::New(bool value) {
|
|
41
|
+
return v8::BooleanObject::New(value).As<v8::BooleanObject>();
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
//=== Context ==================================================================
|
|
45
|
+
|
|
46
|
+
Factory<v8::Context>::return_t
|
|
47
|
+
Factory<v8::Context>::New( v8::ExtensionConfiguration* extensions
|
|
48
|
+
, v8::Local<v8::ObjectTemplate> tmpl
|
|
49
|
+
, v8::Local<v8::Value> obj) {
|
|
50
|
+
v8::Persistent<v8::Context> ctx = v8::Context::New(extensions, tmpl, obj);
|
|
51
|
+
v8::Local<v8::Context> lctx = v8::Local<v8::Context>::New(ctx);
|
|
52
|
+
ctx.Dispose();
|
|
53
|
+
return lctx;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
//=== Date =====================================================================
|
|
57
|
+
|
|
58
|
+
Factory<v8::Date>::return_t
|
|
59
|
+
Factory<v8::Date>::New(double value) {
|
|
60
|
+
return v8::Date::New(value).As<v8::Date>();
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
//=== External =================================================================
|
|
64
|
+
|
|
65
|
+
Factory<v8::External>::return_t
|
|
66
|
+
Factory<v8::External>::New(void * value) {
|
|
67
|
+
return v8::External::New(value);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
//=== Function =================================================================
|
|
71
|
+
|
|
72
|
+
Factory<v8::Function>::return_t
|
|
73
|
+
Factory<v8::Function>::New( FunctionCallback callback
|
|
74
|
+
, v8::Local<v8::Value> data) {
|
|
75
|
+
v8::HandleScope scope;
|
|
76
|
+
|
|
77
|
+
return scope.Close(Factory<v8::FunctionTemplate>::New(
|
|
78
|
+
callback, data, v8::Local<v8::Signature>())
|
|
79
|
+
->GetFunction());
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
//=== FunctionTemplate =========================================================
|
|
84
|
+
|
|
85
|
+
Factory<v8::FunctionTemplate>::return_t
|
|
86
|
+
Factory<v8::FunctionTemplate>::New( FunctionCallback callback
|
|
87
|
+
, v8::Local<v8::Value> data
|
|
88
|
+
, v8::Local<v8::Signature> signature) {
|
|
89
|
+
if (callback) {
|
|
90
|
+
v8::HandleScope scope;
|
|
91
|
+
|
|
92
|
+
v8::Local<v8::ObjectTemplate> tpl = v8::ObjectTemplate::New();
|
|
93
|
+
tpl->SetInternalFieldCount(imp::kFunctionFieldCount);
|
|
94
|
+
v8::Local<v8::Object> obj = tpl->NewInstance();
|
|
95
|
+
|
|
96
|
+
obj->SetInternalField(
|
|
97
|
+
imp::kFunctionIndex
|
|
98
|
+
, v8::External::New(reinterpret_cast<void *>(callback)));
|
|
99
|
+
|
|
100
|
+
v8::Local<v8::Value> val = v8::Local<v8::Value>::New(data);
|
|
101
|
+
|
|
102
|
+
if (!val.IsEmpty()) {
|
|
103
|
+
obj->SetInternalField(imp::kDataIndex, val);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// Note(agnat): Emulate length argument here. Unfortunately, I couldn't find
|
|
107
|
+
// a way. Have at it though...
|
|
108
|
+
return scope.Close(
|
|
109
|
+
v8::FunctionTemplate::New(imp::FunctionCallbackWrapper
|
|
110
|
+
, obj
|
|
111
|
+
, signature));
|
|
112
|
+
} else {
|
|
113
|
+
return v8::FunctionTemplate::New(0, data, signature);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
//=== Number ===================================================================
|
|
118
|
+
|
|
119
|
+
Factory<v8::Number>::return_t
|
|
120
|
+
Factory<v8::Number>::New(double value) {
|
|
121
|
+
return v8::Number::New(value);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
//=== Number Object ============================================================
|
|
125
|
+
|
|
126
|
+
Factory<v8::NumberObject>::return_t
|
|
127
|
+
Factory<v8::NumberObject>::New(double value) {
|
|
128
|
+
return v8::NumberObject::New(value).As<v8::NumberObject>();
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
//=== Integer, Int32 and Uint32 ================================================
|
|
132
|
+
|
|
133
|
+
template <typename T>
|
|
134
|
+
typename IntegerFactory<T>::return_t
|
|
135
|
+
IntegerFactory<T>::New(int32_t value) {
|
|
136
|
+
return To<T>(T::New(value));
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
template <typename T>
|
|
140
|
+
typename IntegerFactory<T>::return_t
|
|
141
|
+
IntegerFactory<T>::New(uint32_t value) {
|
|
142
|
+
return To<T>(T::NewFromUnsigned(value));
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
Factory<v8::Uint32>::return_t
|
|
146
|
+
Factory<v8::Uint32>::New(int32_t value) {
|
|
147
|
+
return To<v8::Uint32>(v8::Uint32::NewFromUnsigned(value));
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
Factory<v8::Uint32>::return_t
|
|
151
|
+
Factory<v8::Uint32>::New(uint32_t value) {
|
|
152
|
+
return To<v8::Uint32>(v8::Uint32::NewFromUnsigned(value));
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
//=== Object ===================================================================
|
|
157
|
+
|
|
158
|
+
Factory<v8::Object>::return_t
|
|
159
|
+
Factory<v8::Object>::New() {
|
|
160
|
+
return v8::Object::New();
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
//=== Object Template ==========================================================
|
|
164
|
+
|
|
165
|
+
Factory<v8::ObjectTemplate>::return_t
|
|
166
|
+
Factory<v8::ObjectTemplate>::New() {
|
|
167
|
+
return v8::ObjectTemplate::New();
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
//=== RegExp ===================================================================
|
|
171
|
+
|
|
172
|
+
Factory<v8::RegExp>::return_t
|
|
173
|
+
Factory<v8::RegExp>::New(
|
|
174
|
+
v8::Local<v8::String> pattern
|
|
175
|
+
, v8::RegExp::Flags flags) {
|
|
176
|
+
return v8::RegExp::New(pattern, flags);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
//=== Script ===================================================================
|
|
180
|
+
|
|
181
|
+
Factory<v8::Script>::return_t
|
|
182
|
+
Factory<v8::Script>::New( v8::Local<v8::String> source) {
|
|
183
|
+
return v8::Script::New(source);
|
|
184
|
+
}
|
|
185
|
+
Factory<v8::Script>::return_t
|
|
186
|
+
Factory<v8::Script>::New( v8::Local<v8::String> source
|
|
187
|
+
, v8::ScriptOrigin const& origin) {
|
|
188
|
+
return v8::Script::New(source, const_cast<v8::ScriptOrigin*>(&origin));
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
//=== Signature ================================================================
|
|
192
|
+
|
|
193
|
+
Factory<v8::Signature>::return_t
|
|
194
|
+
Factory<v8::Signature>::New(Factory<v8::Signature>::FTH receiver) {
|
|
195
|
+
return v8::Signature::New(receiver);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
//=== String ===================================================================
|
|
199
|
+
|
|
200
|
+
Factory<v8::String>::return_t
|
|
201
|
+
Factory<v8::String>::New() {
|
|
202
|
+
return v8::String::Empty();
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
Factory<v8::String>::return_t
|
|
206
|
+
Factory<v8::String>::New(const char * value, int length) {
|
|
207
|
+
return v8::String::New(value, length);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
Factory<v8::String>::return_t
|
|
211
|
+
Factory<v8::String>::New(
|
|
212
|
+
std::string const& value) /* NOLINT(build/include_what_you_use) */ {
|
|
213
|
+
assert(value.size() <= INT_MAX && "string too long");
|
|
214
|
+
return v8::String::New(value.data(), static_cast<int>(value.size()));
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
Factory<v8::String>::return_t
|
|
218
|
+
Factory<v8::String>::New(const uint16_t * value, int length) {
|
|
219
|
+
return v8::String::New(value, length);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
Factory<v8::String>::return_t
|
|
223
|
+
Factory<v8::String>::New(v8::String::ExternalStringResource * value) {
|
|
224
|
+
return v8::String::NewExternal(value);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
Factory<v8::String>::return_t
|
|
228
|
+
Factory<v8::String>::New(v8::String::ExternalAsciiStringResource * value) {
|
|
229
|
+
return v8::String::NewExternal(value);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
//=== String Object ============================================================
|
|
233
|
+
|
|
234
|
+
Factory<v8::StringObject>::return_t
|
|
235
|
+
Factory<v8::StringObject>::New(v8::Local<v8::String> value) {
|
|
236
|
+
return v8::StringObject::New(value).As<v8::StringObject>();
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
} // end of namespace imp
|
|
240
|
+
|
|
241
|
+
//=== Presistents and Handles ==================================================
|
|
242
|
+
|
|
243
|
+
template <typename T>
|
|
244
|
+
inline v8::Local<T> New(v8::Handle<T> h) {
|
|
245
|
+
return v8::Local<T>::New(h);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
template <typename T>
|
|
249
|
+
inline v8::Local<T> New(v8::Persistent<T> const& p) {
|
|
250
|
+
return v8::Local<T>::New(p);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
template <typename T, typename M>
|
|
254
|
+
inline v8::Local<T> New(Persistent<T, M> const& p) {
|
|
255
|
+
return v8::Local<T>::New(p.persistent);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
template <typename T>
|
|
259
|
+
inline v8::Local<T> New(Global<T> const& p) {
|
|
260
|
+
return v8::Local<T>::New(p.persistent);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
#endif // NAN_IMPLEMENTATION_PRE_12_INL_H_
|
|
@@ -0,0 +1,166 @@
|
|
|
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_JSON_H_
|
|
10
|
+
#define NAN_JSON_H_
|
|
11
|
+
|
|
12
|
+
#if NODE_MODULE_VERSION < NODE_0_12_MODULE_VERSION
|
|
13
|
+
#define NAN_JSON_H_NEED_PARSE 1
|
|
14
|
+
#else
|
|
15
|
+
#define NAN_JSON_H_NEED_PARSE 0
|
|
16
|
+
#endif // NODE_MODULE_VERSION < NODE_0_12_MODULE_VERSION
|
|
17
|
+
|
|
18
|
+
#if NODE_MODULE_VERSION >= NODE_7_0_MODULE_VERSION
|
|
19
|
+
#define NAN_JSON_H_NEED_STRINGIFY 0
|
|
20
|
+
#else
|
|
21
|
+
#define NAN_JSON_H_NEED_STRINGIFY 1
|
|
22
|
+
#endif // NODE_MODULE_VERSION >= NODE_7_0_MODULE_VERSION
|
|
23
|
+
|
|
24
|
+
class JSON {
|
|
25
|
+
public:
|
|
26
|
+
JSON() {
|
|
27
|
+
#if NAN_JSON_H_NEED_PARSE + NAN_JSON_H_NEED_STRINGIFY
|
|
28
|
+
Nan::HandleScope scope;
|
|
29
|
+
|
|
30
|
+
Nan::MaybeLocal<v8::Value> maybe_global_json = Nan::Get(
|
|
31
|
+
Nan::GetCurrentContext()->Global(),
|
|
32
|
+
Nan::New("JSON").ToLocalChecked()
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
assert(!maybe_global_json.IsEmpty() && "global JSON is empty");
|
|
36
|
+
v8::Local<v8::Value> val_global_json = maybe_global_json.ToLocalChecked();
|
|
37
|
+
|
|
38
|
+
assert(val_global_json->IsObject() && "global JSON is not an object");
|
|
39
|
+
Nan::MaybeLocal<v8::Object> maybe_obj_global_json =
|
|
40
|
+
Nan::To<v8::Object>(val_global_json);
|
|
41
|
+
|
|
42
|
+
assert(!maybe_obj_global_json.IsEmpty() && "global JSON object is empty");
|
|
43
|
+
v8::Local<v8::Object> global_json = maybe_obj_global_json.ToLocalChecked();
|
|
44
|
+
|
|
45
|
+
#if NAN_JSON_H_NEED_PARSE
|
|
46
|
+
Nan::MaybeLocal<v8::Value> maybe_parse_method = Nan::Get(
|
|
47
|
+
global_json, Nan::New("parse").ToLocalChecked()
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
assert(!maybe_parse_method.IsEmpty() && "JSON.parse is empty");
|
|
51
|
+
v8::Local<v8::Value> parse_method = maybe_parse_method.ToLocalChecked();
|
|
52
|
+
|
|
53
|
+
assert(parse_method->IsFunction() && "JSON.parse is not a function");
|
|
54
|
+
parse_cb_.Reset(parse_method.As<v8::Function>());
|
|
55
|
+
#endif // NAN_JSON_H_NEED_PARSE
|
|
56
|
+
|
|
57
|
+
#if NAN_JSON_H_NEED_STRINGIFY
|
|
58
|
+
Nan::MaybeLocal<v8::Value> maybe_stringify_method = Nan::Get(
|
|
59
|
+
global_json, Nan::New("stringify").ToLocalChecked()
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
assert(!maybe_stringify_method.IsEmpty() && "JSON.stringify is empty");
|
|
63
|
+
v8::Local<v8::Value> stringify_method =
|
|
64
|
+
maybe_stringify_method.ToLocalChecked();
|
|
65
|
+
|
|
66
|
+
assert(
|
|
67
|
+
stringify_method->IsFunction() && "JSON.stringify is not a function"
|
|
68
|
+
);
|
|
69
|
+
stringify_cb_.Reset(stringify_method.As<v8::Function>());
|
|
70
|
+
#endif // NAN_JSON_H_NEED_STRINGIFY
|
|
71
|
+
#endif // NAN_JSON_H_NEED_PARSE + NAN_JSON_H_NEED_STRINGIFY
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
inline
|
|
75
|
+
Nan::MaybeLocal<v8::Value> Parse(v8::Local<v8::String> json_string) {
|
|
76
|
+
Nan::EscapableHandleScope scope;
|
|
77
|
+
#if NAN_JSON_H_NEED_PARSE
|
|
78
|
+
return scope.Escape(parse(json_string));
|
|
79
|
+
#else
|
|
80
|
+
Nan::MaybeLocal<v8::Value> result;
|
|
81
|
+
#if NODE_MODULE_VERSION >= NODE_0_12_MODULE_VERSION && \
|
|
82
|
+
NODE_MODULE_VERSION <= IOJS_2_0_MODULE_VERSION
|
|
83
|
+
result = v8::JSON::Parse(json_string);
|
|
84
|
+
#else
|
|
85
|
+
#if NODE_MODULE_VERSION > NODE_6_0_MODULE_VERSION
|
|
86
|
+
v8::Local<v8::Context> context_or_isolate = Nan::GetCurrentContext();
|
|
87
|
+
#else
|
|
88
|
+
v8::Isolate* context_or_isolate = v8::Isolate::GetCurrent();
|
|
89
|
+
#endif // NODE_MODULE_VERSION > NODE_6_0_MODULE_VERSION
|
|
90
|
+
result = v8::JSON::Parse(context_or_isolate, json_string);
|
|
91
|
+
#endif // NODE_MODULE_VERSION >= NODE_0_12_MODULE_VERSION &&
|
|
92
|
+
// NODE_MODULE_VERSION <= IOJS_2_0_MODULE_VERSION
|
|
93
|
+
if (result.IsEmpty()) return v8::Local<v8::Value>();
|
|
94
|
+
return scope.Escape(result.ToLocalChecked());
|
|
95
|
+
#endif // NAN_JSON_H_NEED_PARSE
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
inline
|
|
99
|
+
Nan::MaybeLocal<v8::String> Stringify(v8::Local<v8::Object> json_object) {
|
|
100
|
+
Nan::EscapableHandleScope scope;
|
|
101
|
+
Nan::MaybeLocal<v8::String> result =
|
|
102
|
+
#if NAN_JSON_H_NEED_STRINGIFY
|
|
103
|
+
Nan::To<v8::String>(stringify(json_object));
|
|
104
|
+
#else
|
|
105
|
+
v8::JSON::Stringify(Nan::GetCurrentContext(), json_object);
|
|
106
|
+
#endif // NAN_JSON_H_NEED_STRINGIFY
|
|
107
|
+
if (result.IsEmpty()) return v8::Local<v8::String>();
|
|
108
|
+
return scope.Escape(result.ToLocalChecked());
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
inline
|
|
112
|
+
Nan::MaybeLocal<v8::String> Stringify(v8::Local<v8::Object> json_object,
|
|
113
|
+
v8::Local<v8::String> gap) {
|
|
114
|
+
Nan::EscapableHandleScope scope;
|
|
115
|
+
Nan::MaybeLocal<v8::String> result =
|
|
116
|
+
#if NAN_JSON_H_NEED_STRINGIFY
|
|
117
|
+
Nan::To<v8::String>(stringify(json_object, gap));
|
|
118
|
+
#else
|
|
119
|
+
v8::JSON::Stringify(Nan::GetCurrentContext(), json_object, gap);
|
|
120
|
+
#endif // NAN_JSON_H_NEED_STRINGIFY
|
|
121
|
+
if (result.IsEmpty()) return v8::Local<v8::String>();
|
|
122
|
+
return scope.Escape(result.ToLocalChecked());
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
private:
|
|
126
|
+
NAN_DISALLOW_ASSIGN_COPY_MOVE(JSON)
|
|
127
|
+
#if NAN_JSON_H_NEED_PARSE
|
|
128
|
+
Nan::Callback parse_cb_;
|
|
129
|
+
#endif // NAN_JSON_H_NEED_PARSE
|
|
130
|
+
#if NAN_JSON_H_NEED_STRINGIFY
|
|
131
|
+
Nan::Callback stringify_cb_;
|
|
132
|
+
#endif // NAN_JSON_H_NEED_STRINGIFY
|
|
133
|
+
|
|
134
|
+
#if NAN_JSON_H_NEED_PARSE
|
|
135
|
+
inline v8::Local<v8::Value> parse(v8::Local<v8::Value> arg) {
|
|
136
|
+
assert(!parse_cb_.IsEmpty() && "parse_cb_ is empty");
|
|
137
|
+
AsyncResource resource("nan:JSON.parse");
|
|
138
|
+
return parse_cb_.Call(1, &arg, &resource).FromMaybe(v8::Local<v8::Value>());
|
|
139
|
+
}
|
|
140
|
+
#endif // NAN_JSON_H_NEED_PARSE
|
|
141
|
+
|
|
142
|
+
#if NAN_JSON_H_NEED_STRINGIFY
|
|
143
|
+
inline v8::Local<v8::Value> stringify(v8::Local<v8::Value> arg) {
|
|
144
|
+
assert(!stringify_cb_.IsEmpty() && "stringify_cb_ is empty");
|
|
145
|
+
AsyncResource resource("nan:JSON.stringify");
|
|
146
|
+
return stringify_cb_.Call(1, &arg, &resource)
|
|
147
|
+
.FromMaybe(v8::Local<v8::Value>());
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
inline v8::Local<v8::Value> stringify(v8::Local<v8::Value> arg,
|
|
151
|
+
v8::Local<v8::String> gap) {
|
|
152
|
+
assert(!stringify_cb_.IsEmpty() && "stringify_cb_ is empty");
|
|
153
|
+
|
|
154
|
+
v8::Local<v8::Value> argv[] = {
|
|
155
|
+
arg,
|
|
156
|
+
Nan::Null(),
|
|
157
|
+
gap
|
|
158
|
+
};
|
|
159
|
+
AsyncResource resource("nan:JSON.stringify");
|
|
160
|
+
return stringify_cb_.Call(3, argv, &resource)
|
|
161
|
+
.FromMaybe(v8::Local<v8::Value>());
|
|
162
|
+
}
|
|
163
|
+
#endif // NAN_JSON_H_NEED_STRINGIFY
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
#endif // NAN_JSON_H_
|