@cloudbase/manager-node 4.3.3 → 4.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/function/index.js +9 -1
- package/lib/utils/index.js +17 -1
- package/package.json +1 -1
- package/types/utils/index.d.ts +2 -0
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/.ready +0 -0
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/.travis.yml +0 -103
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/ISSUE_TEMPLATE.md +0 -8
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/LICENSE +0 -22
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/Readme.md +0 -78
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/binding.gyp +0 -21
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/fsevents.cc +0 -88
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/fsevents.js +0 -108
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/install.js +0 -13
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/package.json +0 -34
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/vfs.js +0 -76
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.eslintrc.js +0 -20
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.prettierrc +0 -4
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.ready +0 -0
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/CHANGELOG.md +0 -310
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/LICENSE +0 -21
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/README.md +0 -344
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/husky.js +0 -15
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/checkGitDirEnv.js +0 -13
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/debug.js +0 -8
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/getConf.js +0 -15
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/bin.js +0 -48
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/getScript.js +0 -106
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/gitRevParse.js +0 -29
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/index.js +0 -151
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/is.js +0 -24
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/runner/bin.js +0 -16
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/runner/index.js +0 -84
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/upgrader/bin.js +0 -8
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/upgrader/index.js +0 -65
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/package.json +0 -114
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/run.js +0 -14
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/.github/workflows/ci.yml +0 -52
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/.ready +0 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/CHANGELOG.md +0 -577
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/CMakeLists.txt +0 -138
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/LICENSE.md +0 -9
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/README.md +0 -455
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/asyncworker.md +0 -146
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/buffers.md +0 -54
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/callback.md +0 -76
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/converters.md +0 -41
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/errors.md +0 -226
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/json.md +0 -62
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/maybe_types.md +0 -583
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/methods.md +0 -672
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/new.md +0 -147
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/node_misc.md +0 -123
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/object_wrappers.md +0 -263
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/persistent.md +0 -296
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/scopes.md +0 -73
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/script.md +0 -58
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/string_bytes.md +0 -62
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/v8_internals.md +0 -199
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/v8_misc.md +0 -85
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/include_dirs.js +0 -1
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan.h +0 -3049
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks.h +0 -128
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks_12_inl.h +0 -676
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks_pre_12_inl.h +0 -520
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters.h +0 -72
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters_43_inl.h +0 -68
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters_pre_43_inl.h +0 -42
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_define_own_property_helper.h +0 -29
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_implementation_12_inl.h +0 -430
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_implementation_pre_12_inl.h +0 -263
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_json.h +0 -166
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_maybe_43_inl.h +0 -356
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_maybe_pre_43_inl.h +0 -268
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_new.h +0 -340
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_object_wrap.h +0 -156
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_persistent_12_inl.h +0 -132
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_persistent_pre_12_inl.h +0 -242
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_private.h +0 -73
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_scriptorigin.h +0 -95
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_string_bytes.h +0 -305
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_typedarray_contents.h +0 -96
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_weak.h +0 -437
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/package.json +0 -38
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/1to2.js +0 -412
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/README.md +0 -14
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/package.json +0 -19
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/.ready +0 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/.release-please-manifest.json +0 -3
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CHANGELOG.md +0 -1053
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CODE_OF_CONDUCT.md +0 -4
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CONTRIBUTING.md +0 -34
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/LICENSE +0 -24
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/README.md +0 -273
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/SECURITY.md +0 -2
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/addon.gypi +0 -204
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/bin/node-gyp.js +0 -138
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/eslint.config.js +0 -3
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/.release-please-manifest.json +0 -3
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/LICENSE +0 -28
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/data/ninja/build.ninja +0 -4
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +0 -12
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp +0 -8
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp.bat +0 -5
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp_main.py +0 -45
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +0 -365
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +0 -206
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +0 -1272
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +0 -1547
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +0 -59
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +0 -152
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +0 -270
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +0 -574
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +0 -704
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/common.py +0 -709
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +0 -173
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +0 -169
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +0 -113
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +0 -55
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +0 -805
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +0 -1172
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +0 -1319
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +0 -128
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +0 -104
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +0 -462
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +0 -89
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +0 -56
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +0 -2745
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +0 -3976
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +0 -44
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +0 -2965
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +0 -67
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +0 -1391
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +0 -26
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/input.py +0 -3112
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +0 -99
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +0 -767
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +0 -1260
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +0 -174
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +0 -61
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +0 -373
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +0 -1939
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +0 -54
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +0 -303
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +0 -3196
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +0 -65
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE +0 -3
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +0 -177
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.BSD +0 -23
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +0 -15
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +0 -108
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +0 -252
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +0 -83
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +0 -359
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +0 -61
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +0 -192
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/markers.py +0 -252
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +0 -825
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/py.typed +0 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +0 -90
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +0 -1030
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/tags.py +0 -553
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/utils.py +0 -172
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/version.py +0 -563
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pyproject.toml +0 -115
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/release-please-config.json +0 -11
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/test_gyp.py +0 -261
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/Find-VisualStudio.cs +0 -250
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/build.js +0 -230
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/clean.js +0 -15
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/configure.js +0 -328
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/create-config-gypi.js +0 -153
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/download.js +0 -39
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-node-directory.js +0 -63
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-python.js +0 -310
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-visualstudio.js +0 -600
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/install.js +0 -415
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/list.js +0 -26
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/log.js +0 -168
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/node-gyp.js +0 -188
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/process-release.js +0 -146
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/rebuild.js +0 -12
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/remove.js +0 -43
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/util.js +0 -81
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/macOS_Catalina_acid_test.sh +0 -21
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/package.json +0 -52
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/release-please-config.json +0 -40
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/.prettierrc +0 -4
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/.ready +0 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/CHANGELOG.md +0 -286
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/LICENSE +0 -21
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/README.md +0 -457
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/index.js +0 -52
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/lib/checkGrowl.js +0 -24
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/lib/utils.js +0 -515
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/balloon.js +0 -156
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/growl.js +0 -76
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/notificationcenter.js +0 -100
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/notifysend.js +0 -94
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/toaster.js +0 -100
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/package.json +0 -72
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/Info.plist +0 -63
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/MacOS/terminal-notifier +0 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/PkgInfo +0 -1
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/Resources/Terminal.icns +0 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/Resources/en.lproj/Credits.rtf +0 -29
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/Resources/en.lproj/InfoPlist.strings +0 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/Resources/en.lproj/MainMenu.nib +0 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/notifu/notifu.exe +0 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/notifu/notifu64.exe +0 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/snoreToast/LICENSE +0 -165
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/snoreToast/SnoreToast.exe +0 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/terminal-notifier-LICENSE +0 -9
package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/lib/utils.js
DELETED
|
@@ -1,515 +0,0 @@
|
|
|
1
|
-
var shellwords = require('shellwords');
|
|
2
|
-
var cp = require('child_process');
|
|
3
|
-
var semver = require('semver');
|
|
4
|
-
var isWSL = require('is-wsl');
|
|
5
|
-
var path = require('path');
|
|
6
|
-
var url = require('url');
|
|
7
|
-
var os = require('os');
|
|
8
|
-
var fs = require('fs');
|
|
9
|
-
|
|
10
|
-
function clone(obj) {
|
|
11
|
-
return JSON.parse(JSON.stringify(obj));
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
module.exports.clone = clone;
|
|
15
|
-
|
|
16
|
-
var escapeQuotes = function(str) {
|
|
17
|
-
if (typeof str === 'string') {
|
|
18
|
-
return str.replace(/(["$`\\])/g, '\\$1');
|
|
19
|
-
} else {
|
|
20
|
-
return str;
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
var inArray = function(arr, val) {
|
|
25
|
-
return arr.indexOf(val) !== -1;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
var notifySendFlags = {
|
|
29
|
-
u: 'urgency',
|
|
30
|
-
urgency: 'urgency',
|
|
31
|
-
t: 'expire-time',
|
|
32
|
-
time: 'expire-time',
|
|
33
|
-
timeout: 'expire-time',
|
|
34
|
-
e: 'expire-time',
|
|
35
|
-
expire: 'expire-time',
|
|
36
|
-
'expire-time': 'expire-time',
|
|
37
|
-
i: 'icon',
|
|
38
|
-
icon: 'icon',
|
|
39
|
-
c: 'category',
|
|
40
|
-
category: 'category',
|
|
41
|
-
subtitle: 'category',
|
|
42
|
-
h: 'hint',
|
|
43
|
-
hint: 'hint'
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
module.exports.command = function(notifier, options, cb) {
|
|
47
|
-
notifier = shellwords.escape(notifier);
|
|
48
|
-
if (process.env.DEBUG && process.env.DEBUG.indexOf('notifier') !== -1) {
|
|
49
|
-
console.info('node-notifier debug info (command):');
|
|
50
|
-
console.info('[notifier path]', notifier);
|
|
51
|
-
console.info('[notifier options]', options.join(' '));
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
return cp.exec(notifier + ' ' + options.join(' '), function(
|
|
55
|
-
error,
|
|
56
|
-
stdout,
|
|
57
|
-
stderr
|
|
58
|
-
) {
|
|
59
|
-
if (error) return cb(error);
|
|
60
|
-
cb(stderr, stdout);
|
|
61
|
-
});
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
module.exports.fileCommand = function(notifier, options, cb) {
|
|
65
|
-
if (process.env.DEBUG && process.env.DEBUG.indexOf('notifier') !== -1) {
|
|
66
|
-
console.info('node-notifier debug info (fileCommand):');
|
|
67
|
-
console.info('[notifier path]', notifier);
|
|
68
|
-
console.info('[notifier options]', options.join(' '));
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
return cp.execFile(notifier, options, function(error, stdout, stderr) {
|
|
72
|
-
if (error) return cb(error, stdout);
|
|
73
|
-
cb(stderr, stdout);
|
|
74
|
-
});
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
module.exports.fileCommandJson = function(notifier, options, cb) {
|
|
78
|
-
if (process.env.DEBUG && process.env.DEBUG.indexOf('notifier') !== -1) {
|
|
79
|
-
console.info('node-notifier debug info (fileCommandJson):');
|
|
80
|
-
console.info('[notifier path]', notifier);
|
|
81
|
-
console.info('[notifier options]', options.join(' '));
|
|
82
|
-
}
|
|
83
|
-
return cp.execFile(notifier, options, function(error, stdout, stderr) {
|
|
84
|
-
if (error) return cb(error, stdout);
|
|
85
|
-
if (!stdout) return cb(error, {});
|
|
86
|
-
|
|
87
|
-
try {
|
|
88
|
-
var data = JSON.parse(stdout);
|
|
89
|
-
cb(stderr, data);
|
|
90
|
-
} catch (e) {
|
|
91
|
-
cb(e, stdout);
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
module.exports.immediateFileCommand = function(notifier, options, cb) {
|
|
97
|
-
if (process.env.DEBUG && process.env.DEBUG.indexOf('notifier') !== -1) {
|
|
98
|
-
console.info('node-notifier debug info (notifier):');
|
|
99
|
-
console.info('[notifier path]', notifier);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
notifierExists(notifier, function(_, exists) {
|
|
103
|
-
if (!exists) {
|
|
104
|
-
return cb(new Error('Notifier (' + notifier + ') not found on system.'));
|
|
105
|
-
}
|
|
106
|
-
cp.execFile(notifier, options);
|
|
107
|
-
cb();
|
|
108
|
-
});
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
function notifierExists(notifier, cb) {
|
|
112
|
-
return fs.stat(notifier, function(err, stat) {
|
|
113
|
-
if (!err) return cb(err, stat.isFile());
|
|
114
|
-
|
|
115
|
-
// Check if Windows alias
|
|
116
|
-
if (path.extname(notifier)) {
|
|
117
|
-
// Has extentioon, no need to check more
|
|
118
|
-
return cb(err, false);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// Check if there is an exe file in the directory
|
|
122
|
-
return fs.stat(notifier + '.exe', function(err, stat) {
|
|
123
|
-
if (err) return cb(err, false);
|
|
124
|
-
cb(err, stat.isFile());
|
|
125
|
-
});
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
var mapAppIcon = function(options) {
|
|
130
|
-
if (options.appIcon) {
|
|
131
|
-
options.icon = options.appIcon;
|
|
132
|
-
delete options.appIcon;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
return options;
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
var mapText = function(options) {
|
|
139
|
-
if (options.text) {
|
|
140
|
-
options.message = options.text;
|
|
141
|
-
delete options.text;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
return options;
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
var mapIconShorthand = function(options) {
|
|
148
|
-
if (options.i) {
|
|
149
|
-
options.icon = options.i;
|
|
150
|
-
delete options.i;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
return options;
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
module.exports.mapToNotifySend = function(options) {
|
|
157
|
-
options = mapAppIcon(options);
|
|
158
|
-
options = mapText(options);
|
|
159
|
-
|
|
160
|
-
for (var key in options) {
|
|
161
|
-
if (key === 'message' || key === 'title') continue;
|
|
162
|
-
if (options.hasOwnProperty(key) && notifySendFlags[key] !== key) {
|
|
163
|
-
options[notifySendFlags[key]] = options[key];
|
|
164
|
-
delete options[key];
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
return options;
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
module.exports.mapToGrowl = function(options) {
|
|
172
|
-
options = mapAppIcon(options);
|
|
173
|
-
options = mapIconShorthand(options);
|
|
174
|
-
options = mapText(options);
|
|
175
|
-
|
|
176
|
-
if (options.icon && !Buffer.isBuffer(options.icon)) {
|
|
177
|
-
try {
|
|
178
|
-
options.icon = fs.readFileSync(options.icon);
|
|
179
|
-
} catch (ex) {}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
return options;
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
module.exports.mapToMac = function(options) {
|
|
186
|
-
options = mapIconShorthand(options);
|
|
187
|
-
options = mapText(options);
|
|
188
|
-
|
|
189
|
-
if (options.icon) {
|
|
190
|
-
options.appIcon = options.icon;
|
|
191
|
-
delete options.icon;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
if (options.sound === true) {
|
|
195
|
-
options.sound = 'Bottle';
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
if (options.sound === false) {
|
|
199
|
-
delete options.sound;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
if (options.sound && options.sound.indexOf('Notification.') === 0) {
|
|
203
|
-
options.sound = 'Bottle';
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
if (options.wait === true) {
|
|
207
|
-
if (!options.timeout) {
|
|
208
|
-
options.timeout = 5;
|
|
209
|
-
}
|
|
210
|
-
delete options.wait;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
options.json = true;
|
|
214
|
-
return options;
|
|
215
|
-
};
|
|
216
|
-
|
|
217
|
-
function isArray(arr) {
|
|
218
|
-
return Object.prototype.toString.call(arr) === '[object Array]';
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
function noop() {}
|
|
222
|
-
module.exports.actionJackerDecorator = function(emitter, options, fn, mapper) {
|
|
223
|
-
options = clone(options);
|
|
224
|
-
fn = fn || noop;
|
|
225
|
-
|
|
226
|
-
if (typeof fn !== 'function') {
|
|
227
|
-
throw new TypeError(
|
|
228
|
-
'The second argument must be a function callback. You have passed ' +
|
|
229
|
-
typeof fn
|
|
230
|
-
);
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
return function(err, data) {
|
|
234
|
-
var resultantData = data;
|
|
235
|
-
var metadata = {};
|
|
236
|
-
// Allow for extra data if resultantData is an object
|
|
237
|
-
if (resultantData && typeof resultantData === 'object') {
|
|
238
|
-
metadata = resultantData;
|
|
239
|
-
resultantData = resultantData.activationType;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
// Sanitize the data
|
|
243
|
-
if (resultantData) {
|
|
244
|
-
resultantData = resultantData.toLowerCase().trim();
|
|
245
|
-
if (resultantData.match(/^activate|clicked$/)) {
|
|
246
|
-
resultantData = 'activate';
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
fn.apply(emitter, [err, resultantData, metadata]);
|
|
251
|
-
if (!mapper || !resultantData) return;
|
|
252
|
-
|
|
253
|
-
var key = mapper(resultantData);
|
|
254
|
-
if (!key) return;
|
|
255
|
-
emitter.emit(key, emitter, options, metadata);
|
|
256
|
-
};
|
|
257
|
-
};
|
|
258
|
-
|
|
259
|
-
module.exports.constructArgumentList = function(options, extra) {
|
|
260
|
-
var args = [];
|
|
261
|
-
extra = extra || {};
|
|
262
|
-
|
|
263
|
-
// Massive ugly setup. Default args
|
|
264
|
-
var initial = extra.initial || [];
|
|
265
|
-
var keyExtra = extra.keyExtra || '';
|
|
266
|
-
var allowedArguments = extra.allowedArguments || [];
|
|
267
|
-
var noEscape = extra.noEscape !== void 0;
|
|
268
|
-
var checkForAllowed = extra.allowedArguments !== void 0;
|
|
269
|
-
var explicitTrue = !!extra.explicitTrue;
|
|
270
|
-
var keepNewlines = !!extra.keepNewlines;
|
|
271
|
-
var wrapper = extra.wrapper === void 0 ? '"' : extra.wrapper;
|
|
272
|
-
|
|
273
|
-
var escapeFn = function escapeFn(arg) {
|
|
274
|
-
if (isArray(arg)) {
|
|
275
|
-
return removeNewLines(arg.map(escapeFn).join(','));
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
if (!noEscape) {
|
|
279
|
-
arg = escapeQuotes(arg);
|
|
280
|
-
}
|
|
281
|
-
if (typeof arg === 'string' && !keepNewlines) {
|
|
282
|
-
arg = removeNewLines(arg);
|
|
283
|
-
}
|
|
284
|
-
return wrapper + arg + wrapper;
|
|
285
|
-
};
|
|
286
|
-
|
|
287
|
-
initial.forEach(function(val) {
|
|
288
|
-
args.push(escapeFn(val));
|
|
289
|
-
});
|
|
290
|
-
for (var key in options) {
|
|
291
|
-
if (
|
|
292
|
-
options.hasOwnProperty(key) &&
|
|
293
|
-
(!checkForAllowed || inArray(allowedArguments, key))
|
|
294
|
-
) {
|
|
295
|
-
if (explicitTrue && options[key] === true) {
|
|
296
|
-
args.push('-' + keyExtra + key);
|
|
297
|
-
} else if (explicitTrue && options[key] === false) continue;
|
|
298
|
-
else args.push('-' + keyExtra + key, escapeFn(options[key]));
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
return args;
|
|
302
|
-
};
|
|
303
|
-
|
|
304
|
-
function removeNewLines(str) {
|
|
305
|
-
var excapedNewline = process.platform === 'win32' ? '\\r\\n' : '\\n';
|
|
306
|
-
return str.replace(/\r?\n/g, excapedNewline);
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
/*
|
|
310
|
-
---- Options ----
|
|
311
|
-
[-t] <title string> | Displayed on the first line of the toast.
|
|
312
|
-
[-m] <message string> | Displayed on the remaining lines, wrapped.
|
|
313
|
-
[-p] <image URI> | Display toast with an image, local files only.
|
|
314
|
-
[-w] | Wait for toast to expire or activate.
|
|
315
|
-
[-id] <id> | sets the id for a notification to be able to close it later.
|
|
316
|
-
[-s] <sound URI> | Sets the sound of the notifications, for possible values see http://msdn.microsoft.com/en-us/library/windows/apps/hh761492.aspx.
|
|
317
|
-
[-silent] | Don't play a sound file when showing the notifications.
|
|
318
|
-
[-appID] <App.ID> | Don't create a shortcut but use the provided app id.
|
|
319
|
-
-close <id> | Closes a currently displayed notification, in order to be able to close a notification the parameter -w must be used to create the notification.
|
|
320
|
-
*/
|
|
321
|
-
var allowedToasterFlags = [
|
|
322
|
-
't',
|
|
323
|
-
'm',
|
|
324
|
-
'p',
|
|
325
|
-
'w',
|
|
326
|
-
'id',
|
|
327
|
-
's',
|
|
328
|
-
'silent',
|
|
329
|
-
'appID',
|
|
330
|
-
'close',
|
|
331
|
-
'install'
|
|
332
|
-
];
|
|
333
|
-
var toasterSoundPrefix = 'Notification.';
|
|
334
|
-
var toasterDefaultSound = 'Notification.Default';
|
|
335
|
-
module.exports.mapToWin8 = function(options) {
|
|
336
|
-
options = mapAppIcon(options);
|
|
337
|
-
options = mapText(options);
|
|
338
|
-
|
|
339
|
-
if (options.icon) {
|
|
340
|
-
if (/^file:\/+/.test(options.icon)) {
|
|
341
|
-
// should parse file protocol URL to path
|
|
342
|
-
options.p = new url.URL(options.icon).pathname
|
|
343
|
-
.replace(/^\/(\w:\/)/, '$1')
|
|
344
|
-
.replace(/\//g, '\\');
|
|
345
|
-
} else {
|
|
346
|
-
options.p = options.icon;
|
|
347
|
-
}
|
|
348
|
-
delete options.icon;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
if (options.message) {
|
|
352
|
-
// Remove escape char to debug "HRESULT : 0xC00CE508" exception
|
|
353
|
-
options.m = options.message.replace(/\x1b/g, '');
|
|
354
|
-
delete options.message;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
if (options.title) {
|
|
358
|
-
options.t = options.title;
|
|
359
|
-
delete options.title;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
if (options.appName) {
|
|
363
|
-
options.appID = options.appName;
|
|
364
|
-
delete options.appName;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
if (typeof options.remove !== 'undefined') {
|
|
368
|
-
options.close = options.remove;
|
|
369
|
-
delete options.remove;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
if (options.quiet || options.silent) {
|
|
373
|
-
options.silent = options.quiet || options.silent;
|
|
374
|
-
delete options.quiet;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
if (typeof options.sound !== 'undefined') {
|
|
378
|
-
options.s = options.sound;
|
|
379
|
-
delete options.sound;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
if (options.s === false) {
|
|
383
|
-
options.silent = true;
|
|
384
|
-
delete options.s;
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
// Silent takes precedence. Remove sound.
|
|
388
|
-
if (options.s && options.silent) {
|
|
389
|
-
delete options.s;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
if (options.s === true) {
|
|
393
|
-
options.s = toasterDefaultSound;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
if (options.s && options.s.indexOf(toasterSoundPrefix) !== 0) {
|
|
397
|
-
options.s = toasterDefaultSound;
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
if (options.wait) {
|
|
401
|
-
options.w = options.wait;
|
|
402
|
-
delete options.wait;
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
for (var key in options) {
|
|
406
|
-
// Check if is allowed. If not, delete!
|
|
407
|
-
if (
|
|
408
|
-
options.hasOwnProperty(key) &&
|
|
409
|
-
allowedToasterFlags.indexOf(key) === -1
|
|
410
|
-
) {
|
|
411
|
-
delete options[key];
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
return options;
|
|
416
|
-
};
|
|
417
|
-
|
|
418
|
-
module.exports.mapToNotifu = function(options) {
|
|
419
|
-
options = mapAppIcon(options);
|
|
420
|
-
options = mapText(options);
|
|
421
|
-
|
|
422
|
-
if (options.icon) {
|
|
423
|
-
options.i = options.icon;
|
|
424
|
-
delete options.icon;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
if (options.message) {
|
|
428
|
-
options.m = options.message;
|
|
429
|
-
delete options.message;
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
if (options.title) {
|
|
433
|
-
options.p = options.title;
|
|
434
|
-
delete options.title;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
if (options.time) {
|
|
438
|
-
options.d = options.time;
|
|
439
|
-
delete options.time;
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
if (options.q !== false) {
|
|
443
|
-
options.q = true;
|
|
444
|
-
} else {
|
|
445
|
-
delete options.q;
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
if (options.quiet === false) {
|
|
449
|
-
delete options.q;
|
|
450
|
-
delete options.quiet;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
if (options.sound) {
|
|
454
|
-
delete options.q;
|
|
455
|
-
delete options.sound;
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
if (options.t) {
|
|
459
|
-
options.d = options.t;
|
|
460
|
-
delete options.t;
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
if (options.type) {
|
|
464
|
-
options.t = sanitizeNotifuTypeArgument(options.type);
|
|
465
|
-
delete options.type;
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
return options;
|
|
469
|
-
};
|
|
470
|
-
|
|
471
|
-
module.exports.isMac = function() {
|
|
472
|
-
return os.type() === 'Darwin';
|
|
473
|
-
};
|
|
474
|
-
|
|
475
|
-
module.exports.isMountainLion = function() {
|
|
476
|
-
return (
|
|
477
|
-
os.type() === 'Darwin' &&
|
|
478
|
-
semver.satisfies(garanteeSemverFormat(os.release()), '>=12.0.0')
|
|
479
|
-
);
|
|
480
|
-
};
|
|
481
|
-
|
|
482
|
-
module.exports.isWin8 = function() {
|
|
483
|
-
return (
|
|
484
|
-
os.type() === 'Windows_NT' &&
|
|
485
|
-
semver.satisfies(garanteeSemverFormat(os.release()), '>=6.2.9200')
|
|
486
|
-
);
|
|
487
|
-
};
|
|
488
|
-
|
|
489
|
-
module.exports.isWSL = function() {
|
|
490
|
-
return isWSL;
|
|
491
|
-
};
|
|
492
|
-
|
|
493
|
-
module.exports.isLessThanWin8 = function() {
|
|
494
|
-
return (
|
|
495
|
-
os.type() === 'Windows_NT' &&
|
|
496
|
-
semver.satisfies(garanteeSemverFormat(os.release()), '<6.2.9200')
|
|
497
|
-
);
|
|
498
|
-
};
|
|
499
|
-
|
|
500
|
-
function garanteeSemverFormat(version) {
|
|
501
|
-
if (version.split('.').length === 2) {
|
|
502
|
-
version += '.0';
|
|
503
|
-
}
|
|
504
|
-
return version;
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
function sanitizeNotifuTypeArgument(type) {
|
|
508
|
-
if (typeof type === 'string' || type instanceof String) {
|
|
509
|
-
if (type.toLowerCase() === 'info') return 'info';
|
|
510
|
-
if (type.toLowerCase() === 'warn') return 'warn';
|
|
511
|
-
if (type.toLowerCase() === 'error') return 'error';
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
return 'info';
|
|
515
|
-
}
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wrapper for the notifu 1.6 (http://www.paralint.com/projects/notifu/)
|
|
3
|
-
|
|
4
|
-
Usage
|
|
5
|
-
/t <value> The type of message to display values are:
|
|
6
|
-
info The message is an informational message
|
|
7
|
-
warn The message is an warning message
|
|
8
|
-
error The message is an error message
|
|
9
|
-
/d <value> The number of milliseconds to display (omit or 0 for infinit)
|
|
10
|
-
/p <value> The title (or prompt) of the ballon
|
|
11
|
-
/m <value> The message text
|
|
12
|
-
/i <value> Specify an icon to use ("parent" uses the icon of the parent process)
|
|
13
|
-
/e Enable ballon tips in the registry (for this user only)
|
|
14
|
-
/q Do not play a sound when the tooltip is displayed
|
|
15
|
-
/w Show the tooltip even if the user is in the quiet period that follows his very first login (Windows 7 and up)
|
|
16
|
-
/xp Use IUserNotification interface event when IUserNotification2 is available
|
|
17
|
-
|
|
18
|
-
// Kill codes:
|
|
19
|
-
2 = Timeout
|
|
20
|
-
3 = Clicked
|
|
21
|
-
4 = Closed or faded out
|
|
22
|
-
|
|
23
|
-
*/
|
|
24
|
-
var path = require('path');
|
|
25
|
-
var notifier = path.resolve(__dirname, '../vendor/notifu/notifu');
|
|
26
|
-
var checkGrowl = require('../lib/checkGrowl');
|
|
27
|
-
var utils = require('../lib/utils');
|
|
28
|
-
var Toaster = require('./toaster');
|
|
29
|
-
var Growl = require('./growl');
|
|
30
|
-
var os = require('os');
|
|
31
|
-
|
|
32
|
-
var EventEmitter = require('events').EventEmitter;
|
|
33
|
-
var util = require('util');
|
|
34
|
-
|
|
35
|
-
var hasGrowl = void 0;
|
|
36
|
-
|
|
37
|
-
module.exports = WindowsBalloon;
|
|
38
|
-
|
|
39
|
-
function WindowsBalloon(options) {
|
|
40
|
-
options = utils.clone(options || {});
|
|
41
|
-
if (!(this instanceof WindowsBalloon)) {
|
|
42
|
-
return new WindowsBalloon(options);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
this.options = options;
|
|
46
|
-
|
|
47
|
-
EventEmitter.call(this);
|
|
48
|
-
}
|
|
49
|
-
util.inherits(WindowsBalloon, EventEmitter);
|
|
50
|
-
|
|
51
|
-
function noop() {}
|
|
52
|
-
WindowsBalloon.prototype.notify = function(options, callback) {
|
|
53
|
-
var fallback;
|
|
54
|
-
var notifierOptions = this.options;
|
|
55
|
-
options = utils.clone(options || {});
|
|
56
|
-
callback = callback || noop;
|
|
57
|
-
|
|
58
|
-
if (typeof options === 'string') {
|
|
59
|
-
options = { title: 'node-notifier', message: options };
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
var actionJackedCallback = utils.actionJackerDecorator(
|
|
63
|
-
this,
|
|
64
|
-
options,
|
|
65
|
-
callback,
|
|
66
|
-
function(data) {
|
|
67
|
-
if (data === 'activate') {
|
|
68
|
-
return 'click';
|
|
69
|
-
}
|
|
70
|
-
if (data === 'timeout') {
|
|
71
|
-
return 'timeout';
|
|
72
|
-
}
|
|
73
|
-
return false;
|
|
74
|
-
}
|
|
75
|
-
);
|
|
76
|
-
|
|
77
|
-
if (!!this.options.withFallback && utils.isWin8()) {
|
|
78
|
-
fallback = fallback || new Toaster(notifierOptions);
|
|
79
|
-
return fallback.notify(options, callback);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
if (
|
|
83
|
-
!!this.options.withFallback &&
|
|
84
|
-
(!utils.isLessThanWin8() || hasGrowl === true)
|
|
85
|
-
) {
|
|
86
|
-
fallback = fallback || new Growl(notifierOptions);
|
|
87
|
-
return fallback.notify(options, callback);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
if (!this.options.withFallback || hasGrowl === false) {
|
|
91
|
-
doNotification(options, notifierOptions, actionJackedCallback);
|
|
92
|
-
return this;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
checkGrowl(notifierOptions, function(_, hasGrowlResult) {
|
|
96
|
-
hasGrowl = hasGrowlResult;
|
|
97
|
-
|
|
98
|
-
if (hasGrowl) {
|
|
99
|
-
fallback = fallback || new Growl(notifierOptions);
|
|
100
|
-
return fallback.notify(options, callback);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
doNotification(options, notifierOptions, actionJackedCallback);
|
|
104
|
-
});
|
|
105
|
-
|
|
106
|
-
return this;
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
var allowedArguments = ['t', 'd', 'p', 'm', 'i', 'e', 'q', 'w', 'xp'];
|
|
110
|
-
|
|
111
|
-
function doNotification(options, notifierOptions, callback) {
|
|
112
|
-
var is64Bit = os.arch() === 'x64';
|
|
113
|
-
options = options || {};
|
|
114
|
-
options = utils.mapToNotifu(options);
|
|
115
|
-
options.p = options.p || 'Node Notification:';
|
|
116
|
-
|
|
117
|
-
var fullNotifierPath = notifier + (is64Bit ? '64' : '') + '.exe';
|
|
118
|
-
var localNotifier = notifierOptions.customPath || fullNotifierPath;
|
|
119
|
-
|
|
120
|
-
if (!options.m) {
|
|
121
|
-
callback(new Error('Message is required.'));
|
|
122
|
-
return this;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
var argsList = utils.constructArgumentList(options, {
|
|
126
|
-
wrapper: '',
|
|
127
|
-
noEscape: true,
|
|
128
|
-
explicitTrue: true,
|
|
129
|
-
allowedArguments: allowedArguments
|
|
130
|
-
});
|
|
131
|
-
|
|
132
|
-
if (options.wait) {
|
|
133
|
-
return utils.fileCommand(localNotifier, argsList, function(error, data) {
|
|
134
|
-
var action = fromErrorCodeToAction(error.code);
|
|
135
|
-
if (action === 'error') return callback(error, data);
|
|
136
|
-
|
|
137
|
-
return callback(null, action);
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
utils.immediateFileCommand(localNotifier, argsList, callback);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
function fromErrorCodeToAction(errorCode) {
|
|
144
|
-
switch (errorCode) {
|
|
145
|
-
case 2:
|
|
146
|
-
return 'timeout';
|
|
147
|
-
case 3:
|
|
148
|
-
case 6:
|
|
149
|
-
case 7:
|
|
150
|
-
return 'activate';
|
|
151
|
-
case 4:
|
|
152
|
-
return 'close';
|
|
153
|
-
default:
|
|
154
|
-
return 'error';
|
|
155
|
-
}
|
|
156
|
-
}
|