@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/lib/function/index.js
CHANGED
|
@@ -327,8 +327,16 @@ class FunctionService {
|
|
|
327
327
|
* @returns {Promise<IFunctionLogRes>}
|
|
328
328
|
*/
|
|
329
329
|
async getFunctionLogs(options) {
|
|
330
|
-
|
|
330
|
+
let { name, offset = 0, limit = 10, order, orderBy, startTime, endTime, requestId } = options;
|
|
331
331
|
const { namespace } = this.getFunctionConfig();
|
|
332
|
+
if (startTime && !endTime) {
|
|
333
|
+
// 自动补 endTime 为 startTime + 1d
|
|
334
|
+
endTime = (0, utils_1.formatTimeByMs)(new Date(startTime).getTime() + 24 * 3600 * 1000);
|
|
335
|
+
}
|
|
336
|
+
if (endTime && !startTime) {
|
|
337
|
+
// 自动补 startTime 为 endTime - 1d
|
|
338
|
+
startTime = (0, utils_1.formatTimeByMs)(new Date(endTime).getTime() - 24 * 3600 * 1000);
|
|
339
|
+
}
|
|
332
340
|
const params = {
|
|
333
341
|
Namespace: namespace,
|
|
334
342
|
FunctionName: name,
|
package/lib/utils/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.guid6 = void 0;
|
|
20
|
+
exports.formatTimeByMs = exports.formatTimeValue = exports.guid6 = void 0;
|
|
21
21
|
exports.compressToZip = compressToZip;
|
|
22
22
|
exports.downloadAndExtractRemoteZip = downloadAndExtractRemoteZip;
|
|
23
23
|
exports.upload = upload;
|
|
@@ -222,3 +222,19 @@ async function fetchTemplates(types) {
|
|
|
222
222
|
});
|
|
223
223
|
return responseData.data.filter((item) => lodash_1.default.intersection(types, item.funcTypes).length > 0);
|
|
224
224
|
}
|
|
225
|
+
const formatTimeValue = (num) => {
|
|
226
|
+
return num < 10 ? `0${num}` : `${num}`;
|
|
227
|
+
};
|
|
228
|
+
exports.formatTimeValue = formatTimeValue;
|
|
229
|
+
const formatTimeByMs = (ms) => {
|
|
230
|
+
// 毫秒时间戳转换为 2025-07-19 09:00:00这种格式
|
|
231
|
+
const time = new Date(ms);
|
|
232
|
+
const year = time.getFullYear();
|
|
233
|
+
const month = time.getMonth() + 1;
|
|
234
|
+
const date = time.getDate();
|
|
235
|
+
const hour = time.getHours();
|
|
236
|
+
const minute = time.getMinutes();
|
|
237
|
+
const second = time.getSeconds();
|
|
238
|
+
return `${year}-${(0, exports.formatTimeValue)(month)}-${(0, exports.formatTimeValue)(date)} ${(0, exports.formatTimeValue)(hour)}:${(0, exports.formatTimeValue)(minute)}:${(0, exports.formatTimeValue)(second)}`;
|
|
239
|
+
};
|
|
240
|
+
exports.formatTimeByMs = formatTimeByMs;
|
package/package.json
CHANGED
package/types/utils/index.d.ts
CHANGED
|
@@ -55,3 +55,5 @@ export declare function upperCaseObjKey(object: any): any;
|
|
|
55
55
|
* @returns
|
|
56
56
|
*/
|
|
57
57
|
export declare function fetchTemplates(types: ('scfFunc' | 'tcbrFunc' | 'tcbrContainer')[]): Promise<ITemplate[]>;
|
|
58
|
+
export declare const formatTimeValue: (num: any) => string;
|
|
59
|
+
export declare const formatTimeByMs: (ms: number) => string;
|
|
File without changes
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
language: objective-c
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
env:
|
|
5
|
-
global:
|
|
6
|
-
- secure: "gve1nkeKkwFEG1VAT3i+JwYyAdF0gKXwKx0uxbkBTsmm2M+0MDusohQdFLoEIkSIFktXBIDefoa7iGpLKRfG2VsZLpwJgnvnD0HqbnuR+k+W+bu7BHt4CAaR6GTllsDCjyq9zNyhUThzSnf2WNIpOEF5kHspZlbGfawURuUJH/U="
|
|
7
|
-
- secure: "jqVpmWxxBVXu2X8+XJMpKH0cooc2EKz9xKL2znBfYdNafJORSXcFAVbjCX5mZmVDcgIMwDtm2+gIG4P73hzJ2e3S+y2Z9ROJGyXHa3AxUTvXHQsxqzH8coHHqB8vTvfr0t2O5aKfpvpICpSea39r0hzNoMv6Ie5SwBdqj1YY9K0="
|
|
8
|
-
matrix:
|
|
9
|
-
- NODE_VERSION="v13"
|
|
10
|
-
- NODE_VERSION="v12"
|
|
11
|
-
- NODE_VERSION="v11"
|
|
12
|
-
- NODE_VERSION="v10"
|
|
13
|
-
- NODE_VERSION="v9"
|
|
14
|
-
- NODE_VERSION="v8"
|
|
15
|
-
- NODE_VERSION="v7"
|
|
16
|
-
- NODE_VERSION="v6"
|
|
17
|
-
|
|
18
|
-
before_install:
|
|
19
|
-
|
|
20
|
-
- echo $TRAVIS_OS_NAME
|
|
21
|
-
|
|
22
|
-
# commit
|
|
23
|
-
# ------------------------
|
|
24
|
-
# The commit message is used to determine the whether to manually
|
|
25
|
-
# invoke a binary publish
|
|
26
|
-
|
|
27
|
-
- COMMIT_MESSAGE=$(git show -s --format=%B $TRAVIS_COMMIT | tr -d '\n')
|
|
28
|
-
|
|
29
|
-
# node
|
|
30
|
-
# ------------------------
|
|
31
|
-
|
|
32
|
-
- export PATH=./node_modules/.bin/:$PATH
|
|
33
|
-
- rm -rf ~/.nvm && git clone --depth 1 https://github.com/creationix/nvm.git ~/.nvm
|
|
34
|
-
- source ~/.nvm/nvm.sh
|
|
35
|
-
- nvm install $NODE_VERSION
|
|
36
|
-
- nvm use $NODE_VERSION
|
|
37
|
-
- npm install -g npm@3
|
|
38
|
-
- node --version
|
|
39
|
-
- npm --version
|
|
40
|
-
- nvm --version
|
|
41
|
-
|
|
42
|
-
# publish dependencies
|
|
43
|
-
# ------------------------
|
|
44
|
-
|
|
45
|
-
- npm install node-gyp -g
|
|
46
|
-
- npm install aws-sdk
|
|
47
|
-
|
|
48
|
-
install:
|
|
49
|
-
|
|
50
|
-
# in the first instance we build from source to create the initial binary
|
|
51
|
-
# which can then be used to create a package
|
|
52
|
-
|
|
53
|
-
- npm install --build-from-source
|
|
54
|
-
- npm test
|
|
55
|
-
|
|
56
|
-
before_script:
|
|
57
|
-
|
|
58
|
-
# Detemine if a publish is required.
|
|
59
|
-
#
|
|
60
|
-
# a) we are building a tag
|
|
61
|
-
# b) we put [publish binary] in the commit message
|
|
62
|
-
|
|
63
|
-
- PUBLISH_BINARY=false
|
|
64
|
-
|
|
65
|
-
- if [[ $TRAVIS_BRANCH == `git describe --tags --always HEAD` ]]; then PUBLISH_BINARY=true; fi; # a
|
|
66
|
-
- if test "${COMMIT_MESSAGE#*'[publish binary]'}" != "$COMMIT_MESSAGE"; then PUBLISH_BINARY=true; fi; # b
|
|
67
|
-
|
|
68
|
-
# package & publish
|
|
69
|
-
# ------------------------
|
|
70
|
-
|
|
71
|
-
- if [[ $PUBLISH_BINARY == true ]]; then ./node_modules/.bin/node-pre-gyp package publish; fi;
|
|
72
|
-
|
|
73
|
-
# clean-up
|
|
74
|
-
# ------------------------
|
|
75
|
-
|
|
76
|
-
- ./node_modules/.bin/node-pre-gyp clean
|
|
77
|
-
- node-gyp clean
|
|
78
|
-
|
|
79
|
-
script:
|
|
80
|
-
|
|
81
|
-
# validate
|
|
82
|
-
# ------------------------
|
|
83
|
-
# Post publishing a release verify that installing will pull down latest
|
|
84
|
-
# binary from remote host
|
|
85
|
-
|
|
86
|
-
- INSTALL_RESULT=0
|
|
87
|
-
- if [[ $PUBLISH_BINARY == true ]]; then INSTALL_RESULT=$(npm install --fallback-to-build=false > /dev/null)$? || true; fi;
|
|
88
|
-
|
|
89
|
-
- ./node_modules/.bin/node-pre-gyp clean
|
|
90
|
-
|
|
91
|
-
# failure?
|
|
92
|
-
# ------------------------
|
|
93
|
-
# if install returned non zero (errored) then we first unpublish and then
|
|
94
|
-
# call false so travis will bail at this line.
|
|
95
|
-
|
|
96
|
-
- if [[ $INSTALL_RESULT != 0 ]]; then ./node_modules/.bin/node-pre-gyp unpublish; fi;
|
|
97
|
-
- if [[ $INSTALL_RESULT != 0 ]]; then echo "returned $INSTALL_RESULT";false; fi;
|
|
98
|
-
|
|
99
|
-
after_success:
|
|
100
|
-
|
|
101
|
-
# display all published binaries
|
|
102
|
-
|
|
103
|
-
- npm run node-pre-gyp info
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
If you are NOT on OS X and have come here to file an issue about compatibility problems,
|
|
2
|
-
please stop and go to #115 for your answer.
|
|
3
|
-
|
|
4
|
-
You can look through many other similar closed issues as well if you're interested:
|
|
5
|
-
https://github.com/strongloop/fsevents/search?utf8=%E2%9C%93&q=%22notsup%22+OR+%22EBADPLATFORM%22&type=Issues.
|
|
6
|
-
|
|
7
|
-
If you are here to report an issue observed while using this module on OS X, please delete
|
|
8
|
-
all this pre-filled text then go ahead and submit your report.
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
-----------
|
|
3
|
-
|
|
4
|
-
Copyright (C) 2010-2014 Philipp Dunkel
|
|
5
|
-
|
|
6
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
-
in the Software without restriction, including without limitation the rights
|
|
9
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
furnished to do so, subject to the following conditions:
|
|
12
|
-
|
|
13
|
-
The above copyright notice and this permission notice shall be included in
|
|
14
|
-
all copies or substantial portions of the Software.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
-
THE SOFTWARE.
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
# fsevents [](https://nodei.co/npm/fsevents/)
|
|
2
|
-
|
|
3
|
-
Native access to OS X FSEvents in [Node.js](http://nodejs.org/)
|
|
4
|
-
|
|
5
|
-
The FSEvents API in OS X allows applications to register for notifications of
|
|
6
|
-
changes to a given directory tree. It is a very fast and lightweight alternative
|
|
7
|
-
to kqueue.
|
|
8
|
-
|
|
9
|
-
This is a low-level library. For a cross-compatible file watching module that
|
|
10
|
-
uses fsevents, check out [Chokidar](https://www.npmjs.com/package/chokidar).
|
|
11
|
-
|
|
12
|
-
* [Module Site & GitHub](https://github.com/strongloop/fsevents)
|
|
13
|
-
* [NPM Page](https://npmjs.org/package/fsevents)
|
|
14
|
-
|
|
15
|
-
## Installation
|
|
16
|
-
|
|
17
|
-
$ npm install fsevents
|
|
18
|
-
|
|
19
|
-
## Usage
|
|
20
|
-
|
|
21
|
-
```js
|
|
22
|
-
var fsevents = require('fsevents');
|
|
23
|
-
var watcher = fsevents(__dirname);
|
|
24
|
-
watcher.on('fsevent', function(path, flags, id) { }); // RAW Event as emitted by OS-X
|
|
25
|
-
watcher.on('change', function(path, info) { }); // Common Event for all changes
|
|
26
|
-
watcher.start() // To start observation
|
|
27
|
-
watcher.stop() // To end observation
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
### Events
|
|
31
|
-
|
|
32
|
-
* *fsevent* - RAW Event as emitted by OS-X
|
|
33
|
-
* *change* - Common Event for all changes
|
|
34
|
-
* *created* - A File-System-Item has been created
|
|
35
|
-
* *deleted* - A File-System-Item has been deleted
|
|
36
|
-
* *modified* - A File-System-Item has been modified
|
|
37
|
-
* *moved-out* - A File-System-Item has been moved away from this location
|
|
38
|
-
* *moved-in* - A File-System-Item has been moved into this location
|
|
39
|
-
|
|
40
|
-
All events except *fsevent* take an *info* object as the second parameter of the callback. The structure of this object is:
|
|
41
|
-
|
|
42
|
-
```js
|
|
43
|
-
{
|
|
44
|
-
"event": "<event-type>",
|
|
45
|
-
"id": <eventi-id>,
|
|
46
|
-
"path": "<path-that-this-is-about>",
|
|
47
|
-
"type": "<file|directory|symlink>",
|
|
48
|
-
"changes": {
|
|
49
|
-
"inode": true, // Has the iNode Meta-Information changed
|
|
50
|
-
"finder": false, // Has the Finder Meta-Data changed
|
|
51
|
-
"access": false, // Have the access permissions changed
|
|
52
|
-
"xattrs": false // Have the xAttributes changed
|
|
53
|
-
},
|
|
54
|
-
"flags": <raw-flags>
|
|
55
|
-
}
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
## MIT License
|
|
59
|
-
|
|
60
|
-
Copyright (C) 2010-2014 Philipp Dunkel
|
|
61
|
-
|
|
62
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
63
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
64
|
-
in the Software without restriction, including without limitation the rights
|
|
65
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
66
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
67
|
-
furnished to do so, subject to the following conditions:
|
|
68
|
-
|
|
69
|
-
The above copyright notice and this permission notice shall be included in
|
|
70
|
-
all copies or substantial portions of the Software.
|
|
71
|
-
|
|
72
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
73
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
74
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
75
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
76
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
77
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
78
|
-
THE SOFTWARE.
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"targets": [
|
|
3
|
-
{ "target_name": "" }
|
|
4
|
-
],
|
|
5
|
-
"conditions": [
|
|
6
|
-
['OS=="mac"', {
|
|
7
|
-
"targets": [{
|
|
8
|
-
"target_name": "fse",
|
|
9
|
-
"sources": ["fsevents.cc"],
|
|
10
|
-
"xcode_settings": {
|
|
11
|
-
"OTHER_LDFLAGS": [
|
|
12
|
-
"-framework CoreFoundation -framework CoreServices"
|
|
13
|
-
]
|
|
14
|
-
},
|
|
15
|
-
"include_dirs": [
|
|
16
|
-
"<!(node -e \"require('nan')\")"
|
|
17
|
-
]
|
|
18
|
-
}]
|
|
19
|
-
}]
|
|
20
|
-
]
|
|
21
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
** © 2014 by Philipp Dunkel <pip@pipobscure.com>
|
|
3
|
-
** Licensed under MIT License.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
#include "nan.h"
|
|
7
|
-
#include "uv.h"
|
|
8
|
-
#include "v8.h"
|
|
9
|
-
#include "CoreFoundation/CoreFoundation.h"
|
|
10
|
-
#include "CoreServices/CoreServices.h"
|
|
11
|
-
#include <iostream>
|
|
12
|
-
#include <vector>
|
|
13
|
-
|
|
14
|
-
#include "src/storage.cc"
|
|
15
|
-
namespace fse {
|
|
16
|
-
class FSEvents : public Nan::ObjectWrap {
|
|
17
|
-
public:
|
|
18
|
-
explicit FSEvents(const char *path);
|
|
19
|
-
~FSEvents();
|
|
20
|
-
|
|
21
|
-
uv_mutex_t mutex;
|
|
22
|
-
|
|
23
|
-
// async.cc
|
|
24
|
-
uv_async_t async;
|
|
25
|
-
void asyncStart();
|
|
26
|
-
void asyncTrigger();
|
|
27
|
-
void asyncStop();
|
|
28
|
-
|
|
29
|
-
// thread.cc
|
|
30
|
-
uv_thread_t thread;
|
|
31
|
-
CFRunLoopRef threadloop;
|
|
32
|
-
void threadStart();
|
|
33
|
-
static void threadRun(void *ctx);
|
|
34
|
-
void threadStop();
|
|
35
|
-
|
|
36
|
-
// methods.cc - internal
|
|
37
|
-
Nan::AsyncResource async_resource;
|
|
38
|
-
void emitEvent(const char *path, UInt32 flags, UInt64 id);
|
|
39
|
-
|
|
40
|
-
// Common
|
|
41
|
-
CFArrayRef paths;
|
|
42
|
-
std::vector<fse_event*> events;
|
|
43
|
-
static void Initialize(v8::Local<v8::Object> exports);
|
|
44
|
-
|
|
45
|
-
// methods.cc - exposed
|
|
46
|
-
static NAN_METHOD(New);
|
|
47
|
-
static NAN_METHOD(Stop);
|
|
48
|
-
static NAN_METHOD(Start);
|
|
49
|
-
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
using namespace fse;
|
|
54
|
-
|
|
55
|
-
FSEvents::FSEvents(const char *path)
|
|
56
|
-
: async_resource("fsevents:FSEvents") {
|
|
57
|
-
CFStringRef dirs[] = { CFStringCreateWithCString(NULL, path, kCFStringEncodingUTF8) };
|
|
58
|
-
paths = CFArrayCreate(NULL, (const void **)&dirs, 1, NULL);
|
|
59
|
-
threadloop = NULL;
|
|
60
|
-
if (uv_mutex_init(&mutex)) abort();
|
|
61
|
-
}
|
|
62
|
-
FSEvents::~FSEvents() {
|
|
63
|
-
CFRelease(paths);
|
|
64
|
-
uv_mutex_destroy(&mutex);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
#ifndef kFSEventStreamEventFlagItemCreated
|
|
68
|
-
#define kFSEventStreamEventFlagItemCreated 0x00000010
|
|
69
|
-
#endif
|
|
70
|
-
|
|
71
|
-
#include "src/async.cc"
|
|
72
|
-
#include "src/thread.cc"
|
|
73
|
-
#include "src/constants.cc"
|
|
74
|
-
#include "src/methods.cc"
|
|
75
|
-
|
|
76
|
-
void FSEvents::Initialize(v8::Local<v8::Object> exports) {
|
|
77
|
-
v8::Isolate* isolate = exports->GetIsolate();
|
|
78
|
-
v8::Local<v8::Context> context = isolate->GetCurrentContext();
|
|
79
|
-
v8::Local<v8::FunctionTemplate> tpl = Nan::New<v8::FunctionTemplate>(FSEvents::New);
|
|
80
|
-
tpl->SetClassName(Nan::New<v8::String>("FSEvents").ToLocalChecked());
|
|
81
|
-
tpl->InstanceTemplate()->SetInternalFieldCount(1);
|
|
82
|
-
Nan::SetPrototypeTemplate(tpl, "start", Nan::New<v8::FunctionTemplate>(FSEvents::Start));
|
|
83
|
-
Nan::SetPrototypeTemplate(tpl, "stop", Nan::New<v8::FunctionTemplate>(FSEvents::Stop));
|
|
84
|
-
Nan::Set(exports, Nan::New<v8::String>("Constants").ToLocalChecked(), Constants());
|
|
85
|
-
Nan::Set(exports, Nan::New<v8::String>("FSEvents").ToLocalChecked(), tpl->GetFunction(context).ToLocalChecked());
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
NODE_MODULE(fse, FSEvents::Initialize)
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
** © 2014 by Philipp Dunkel <pip@pipobscure.com>
|
|
3
|
-
** Licensed under MIT License.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/* jshint node:true */
|
|
7
|
-
'use strict';
|
|
8
|
-
|
|
9
|
-
if (process.platform !== 'darwin')
|
|
10
|
-
throw new Error('Module \'fsevents\' is not compatible with platform \'' + process.platform + '\'');
|
|
11
|
-
|
|
12
|
-
var Native = require("bindings")("fse");
|
|
13
|
-
|
|
14
|
-
var EventEmitter = require('events').EventEmitter;
|
|
15
|
-
var fs = require('fs');
|
|
16
|
-
var inherits = require('util').inherits;
|
|
17
|
-
|
|
18
|
-
function FSEvents(path, handler) {
|
|
19
|
-
EventEmitter.call(this);
|
|
20
|
-
|
|
21
|
-
Object.defineProperty(this, '_impl', {
|
|
22
|
-
value: new Native.FSEvents(String(path || ''), handler),
|
|
23
|
-
enumerable: false,
|
|
24
|
-
writable: false
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
inherits(FSEvents, EventEmitter);
|
|
29
|
-
proxies(FSEvents, Native.FSEvents);
|
|
30
|
-
|
|
31
|
-
module.exports = watch;
|
|
32
|
-
module.exports.getInfo = getInfo;
|
|
33
|
-
module.exports.FSEvents = Native.FSEvents;
|
|
34
|
-
module.exports.Constants = Native.Constants;
|
|
35
|
-
|
|
36
|
-
var defer = global.setImmediate || process.nextTick;
|
|
37
|
-
|
|
38
|
-
function watch(path) {
|
|
39
|
-
var VFS = require('./vfs');
|
|
40
|
-
var vfs = new VFS(String(path || ''));
|
|
41
|
-
var fse = new FSEvents(vfs.resolvedPath, vfs.wrap(handler));
|
|
42
|
-
EventEmitter.call(fse);
|
|
43
|
-
return fse;
|
|
44
|
-
|
|
45
|
-
function handler(path, flags, id) {
|
|
46
|
-
defer(function() {
|
|
47
|
-
fse.emit('fsevent', path, flags, id);
|
|
48
|
-
var info = getInfo(path, flags);
|
|
49
|
-
info.id = id;
|
|
50
|
-
if (info.event === 'moved') {
|
|
51
|
-
fs.stat(info.path, function(err, stat) {
|
|
52
|
-
info.event = (err || !stat) ? 'moved-out' : 'moved-in';
|
|
53
|
-
fse.emit('change', path, info);
|
|
54
|
-
fse.emit(info.event, path, info);
|
|
55
|
-
});
|
|
56
|
-
} else {
|
|
57
|
-
fse.emit('change', path, info);
|
|
58
|
-
fse.emit(info.event, path, info);
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
function proxies(ctor, target) {
|
|
65
|
-
Object.keys(target.prototype).filter(function(key) {
|
|
66
|
-
return typeof target.prototype[key] === 'function';
|
|
67
|
-
}).forEach(function(key) {
|
|
68
|
-
ctor.prototype[key] = function() {
|
|
69
|
-
this._impl[key].apply(this._impl, arguments);
|
|
70
|
-
return this;
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
function getFileType(flags) {
|
|
76
|
-
if (Native.Constants.kFSEventStreamEventFlagItemIsFile & flags) return 'file';
|
|
77
|
-
if (Native.Constants.kFSEventStreamEventFlagItemIsDir & flags) return 'directory';
|
|
78
|
-
if (Native.Constants.kFSEventStreamEventFlagItemIsSymlink & flags) return 'symlink';
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
function getEventType(flags) {
|
|
82
|
-
if (Native.Constants.kFSEventStreamEventFlagItemRemoved & flags) return 'deleted';
|
|
83
|
-
if (Native.Constants.kFSEventStreamEventFlagItemRenamed & flags) return 'moved';
|
|
84
|
-
if (Native.Constants.kFSEventStreamEventFlagItemCreated & flags) return 'created';
|
|
85
|
-
if (Native.Constants.kFSEventStreamEventFlagItemModified & flags) return 'modified';
|
|
86
|
-
if (Native.Constants.kFSEventStreamEventFlagRootChanged & flags) return 'root-changed';
|
|
87
|
-
|
|
88
|
-
return 'unknown';
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
function getFileChanges(flags) {
|
|
92
|
-
return {
|
|
93
|
-
inode: !! (Native.Constants.kFSEventStreamEventFlagItemInodeMetaMod & flags),
|
|
94
|
-
finder: !! (Native.Constants.kFSEventStreamEventFlagItemFinderInfoMod & flags),
|
|
95
|
-
access: !! (Native.Constants.kFSEventStreamEventFlagItemChangeOwner & flags),
|
|
96
|
-
xattrs: !! (Native.Constants.kFSEventStreamEventFlagItemXattrMod & flags)
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
function getInfo(path, flags) {
|
|
101
|
-
return {
|
|
102
|
-
path: path,
|
|
103
|
-
event: getEventType(flags),
|
|
104
|
-
type: getFileType(flags),
|
|
105
|
-
changes: getFileChanges(flags),
|
|
106
|
-
flags: flags
|
|
107
|
-
};
|
|
108
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const { spawn } = require('child_process');
|
|
2
|
-
|
|
3
|
-
const rebuildIfDarwin = () => {
|
|
4
|
-
if (process.platform !== 'darwin') {
|
|
5
|
-
console.log();
|
|
6
|
-
console.log(`Skipping 'fsevents' build as platform ${process.platform} is not supported`);
|
|
7
|
-
process.exit(0);
|
|
8
|
-
} else {
|
|
9
|
-
spawn('node-gyp', ['rebuild'], { stdio: 'inherit' });
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
rebuildIfDarwin();
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "fsevents",
|
|
3
|
-
"version": "1.2.13",
|
|
4
|
-
"description": "Native Access to Mac OS-X FSEvents",
|
|
5
|
-
"main": "fsevents.js",
|
|
6
|
-
"dependencies": {
|
|
7
|
-
"bindings": "^1.5.0",
|
|
8
|
-
"nan": "^2.12.1"
|
|
9
|
-
},
|
|
10
|
-
"os": [
|
|
11
|
-
"darwin"
|
|
12
|
-
],
|
|
13
|
-
"engines": {
|
|
14
|
-
"node": ">= 4.0"
|
|
15
|
-
},
|
|
16
|
-
"scripts": {
|
|
17
|
-
"test": "node ./test/fsevents.js && node ./test/function.js 2> /dev/null",
|
|
18
|
-
"install": "node install.js"
|
|
19
|
-
},
|
|
20
|
-
"repository": {
|
|
21
|
-
"type": "git",
|
|
22
|
-
"url": "https://github.com/strongloop/fsevents.git"
|
|
23
|
-
},
|
|
24
|
-
"keywords": [
|
|
25
|
-
"fsevents",
|
|
26
|
-
"mac"
|
|
27
|
-
],
|
|
28
|
-
"author": "Philipp Dunkel <pip@pipobscure.com>",
|
|
29
|
-
"license": "MIT",
|
|
30
|
-
"bugs": {
|
|
31
|
-
"url": "https://github.com/strongloop/fsevents/issues"
|
|
32
|
-
},
|
|
33
|
-
"homepage": "https://github.com/strongloop/fsevents"
|
|
34
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
const path = require(`path`);
|
|
2
|
-
|
|
3
|
-
let pnpApi = null;
|
|
4
|
-
try {
|
|
5
|
-
pnpApi = require(`pnpapi`);
|
|
6
|
-
} catch {
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
function getVirtualLookupFn(pnpApi) {
|
|
10
|
-
const reverseMap = new Map();
|
|
11
|
-
|
|
12
|
-
for (const locator of pnpApi.getAllLocators()) {
|
|
13
|
-
const pkg = pnpApi.getPackageInformation(locator);
|
|
14
|
-
console.assert(pkg, `The package information should be available`);
|
|
15
|
-
|
|
16
|
-
const resolvedLocation = pnpApi.resolveVirtual(pkg.packageLocation);
|
|
17
|
-
if (resolvedLocation === null)
|
|
18
|
-
continue;
|
|
19
|
-
|
|
20
|
-
const aliases = reverseMap.get(resolvedLocation) || [resolvedLocation];
|
|
21
|
-
reverseMap.set(resolvedLocation, aliases);
|
|
22
|
-
aliases.push(pkg.packageLocation);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const keys = [...reverseMap.keys()].sort((a, b) => {
|
|
26
|
-
return b.length - a.length;
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
return p => {
|
|
30
|
-
const prefix = keys.find(candidate => p.startsWith(candidate));
|
|
31
|
-
if (typeof prefix === `undefined`)
|
|
32
|
-
return [p];
|
|
33
|
-
|
|
34
|
-
const sub = p.substr(prefix.length);
|
|
35
|
-
return reverseMap.get(prefix).map(alias => {
|
|
36
|
-
return alias + sub;
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
if (pnpApi != null) {
|
|
42
|
-
const resolveVirtualAliases = getVirtualLookupFn(pnpApi);
|
|
43
|
-
|
|
44
|
-
module.exports = class FsePnp {
|
|
45
|
-
constructor(p) {
|
|
46
|
-
this.normalizedPath = path.resolve(p);
|
|
47
|
-
this.resolvedPath = pnpApi.resolveVirtual(this.normalizedPath) || this.normalizedPath;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
transpose(p) {
|
|
51
|
-
if (this.resolvedPath !== null) {
|
|
52
|
-
return this.normalizedPath + p.substr(this.resolvedPath.length);
|
|
53
|
-
} else {
|
|
54
|
-
return p;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
wrap(fn) {
|
|
59
|
-
return (path, ...args) => {
|
|
60
|
-
for (const entry of resolveVirtualAliases(path)) {
|
|
61
|
-
fn(this.transpose(entry), ...args);
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
} else {
|
|
67
|
-
module.exports = class FsePnp {
|
|
68
|
-
constructor(p) {
|
|
69
|
-
this.resolvedPath = p;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
wrap(fn) {
|
|
73
|
-
return fn;
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
"parser": "@typescript-eslint/parser",
|
|
3
|
-
"extends": [
|
|
4
|
-
"xo-space/esnext",
|
|
5
|
-
"plugin:@typescript-eslint/recommended",
|
|
6
|
-
"prettier",
|
|
7
|
-
"prettier/@typescript-eslint"
|
|
8
|
-
],
|
|
9
|
-
"plugins": [
|
|
10
|
-
"@typescript-eslint",
|
|
11
|
-
"prettier"
|
|
12
|
-
],
|
|
13
|
-
"rules": {
|
|
14
|
-
"prettier/prettier": "error"
|
|
15
|
-
},
|
|
16
|
-
"env": {
|
|
17
|
-
"jest": true,
|
|
18
|
-
"node": true,
|
|
19
|
-
}
|
|
20
|
-
}
|
|
File without changes
|