@cloudbase/manager-node 4.3.3 → 4.4.0

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.
Files changed (215) hide show
  1. package/lib/function/index.js +85 -12
  2. package/lib/utils/index.js +39 -1
  3. package/package.json +1 -1
  4. package/types/function/index.d.ts +38 -12
  5. package/types/interfaces/function.interface.d.ts +33 -0
  6. package/types/utils/index.d.ts +9 -0
  7. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/.ready +0 -0
  8. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/.travis.yml +0 -103
  9. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/ISSUE_TEMPLATE.md +0 -8
  10. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/LICENSE +0 -22
  11. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/Readme.md +0 -78
  12. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/binding.gyp +0 -21
  13. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/fsevents.cc +0 -88
  14. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/fsevents.js +0 -108
  15. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/install.js +0 -13
  16. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/package.json +0 -34
  17. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/vfs.js +0 -76
  18. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.eslintrc.js +0 -20
  19. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.prettierrc +0 -4
  20. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.ready +0 -0
  21. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/CHANGELOG.md +0 -310
  22. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/LICENSE +0 -21
  23. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/README.md +0 -344
  24. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/husky.js +0 -15
  25. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/checkGitDirEnv.js +0 -13
  26. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/debug.js +0 -8
  27. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/getConf.js +0 -15
  28. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/bin.js +0 -48
  29. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/getScript.js +0 -106
  30. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/gitRevParse.js +0 -29
  31. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/index.js +0 -151
  32. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/is.js +0 -24
  33. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/runner/bin.js +0 -16
  34. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/runner/index.js +0 -84
  35. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/upgrader/bin.js +0 -8
  36. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/upgrader/index.js +0 -65
  37. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/package.json +0 -114
  38. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/run.js +0 -14
  39. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/.github/workflows/ci.yml +0 -52
  40. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/.ready +0 -0
  41. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/CHANGELOG.md +0 -577
  42. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/CMakeLists.txt +0 -138
  43. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/LICENSE.md +0 -9
  44. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/README.md +0 -455
  45. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/asyncworker.md +0 -146
  46. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/buffers.md +0 -54
  47. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/callback.md +0 -76
  48. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/converters.md +0 -41
  49. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/errors.md +0 -226
  50. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/json.md +0 -62
  51. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/maybe_types.md +0 -583
  52. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/methods.md +0 -672
  53. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/new.md +0 -147
  54. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/node_misc.md +0 -123
  55. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/object_wrappers.md +0 -263
  56. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/persistent.md +0 -296
  57. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/scopes.md +0 -73
  58. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/script.md +0 -58
  59. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/string_bytes.md +0 -62
  60. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/v8_internals.md +0 -199
  61. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/v8_misc.md +0 -85
  62. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/include_dirs.js +0 -1
  63. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan.h +0 -3049
  64. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks.h +0 -128
  65. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks_12_inl.h +0 -676
  66. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks_pre_12_inl.h +0 -520
  67. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters.h +0 -72
  68. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters_43_inl.h +0 -68
  69. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters_pre_43_inl.h +0 -42
  70. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_define_own_property_helper.h +0 -29
  71. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_implementation_12_inl.h +0 -430
  72. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_implementation_pre_12_inl.h +0 -263
  73. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_json.h +0 -166
  74. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_maybe_43_inl.h +0 -356
  75. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_maybe_pre_43_inl.h +0 -268
  76. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_new.h +0 -340
  77. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_object_wrap.h +0 -156
  78. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_persistent_12_inl.h +0 -132
  79. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_persistent_pre_12_inl.h +0 -242
  80. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_private.h +0 -73
  81. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_scriptorigin.h +0 -95
  82. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_string_bytes.h +0 -305
  83. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_typedarray_contents.h +0 -96
  84. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_weak.h +0 -437
  85. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/package.json +0 -38
  86. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/1to2.js +0 -412
  87. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/README.md +0 -14
  88. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/package.json +0 -19
  89. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/.ready +0 -0
  90. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/.release-please-manifest.json +0 -3
  91. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CHANGELOG.md +0 -1053
  92. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CODE_OF_CONDUCT.md +0 -4
  93. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CONTRIBUTING.md +0 -34
  94. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/LICENSE +0 -24
  95. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/README.md +0 -273
  96. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/SECURITY.md +0 -2
  97. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/addon.gypi +0 -204
  98. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/bin/node-gyp.js +0 -138
  99. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/eslint.config.js +0 -3
  100. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/.release-please-manifest.json +0 -3
  101. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/LICENSE +0 -28
  102. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/data/ninja/build.ninja +0 -4
  103. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +0 -12
  104. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp +0 -8
  105. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp.bat +0 -5
  106. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp_main.py +0 -45
  107. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +0 -365
  108. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +0 -206
  109. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +0 -1272
  110. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +0 -1547
  111. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +0 -59
  112. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +0 -152
  113. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +0 -270
  114. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +0 -574
  115. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +0 -704
  116. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/common.py +0 -709
  117. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +0 -173
  118. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +0 -169
  119. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +0 -113
  120. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +0 -55
  121. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
  122. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +0 -805
  123. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +0 -1172
  124. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +0 -1319
  125. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +0 -128
  126. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +0 -104
  127. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +0 -462
  128. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +0 -89
  129. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +0 -56
  130. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +0 -2745
  131. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +0 -3976
  132. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +0 -44
  133. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +0 -2965
  134. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +0 -67
  135. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +0 -1391
  136. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +0 -26
  137. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/input.py +0 -3112
  138. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +0 -99
  139. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +0 -767
  140. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +0 -1260
  141. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +0 -174
  142. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +0 -61
  143. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +0 -373
  144. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +0 -1939
  145. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +0 -54
  146. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +0 -303
  147. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +0 -3196
  148. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +0 -65
  149. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE +0 -3
  150. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +0 -177
  151. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.BSD +0 -23
  152. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +0 -15
  153. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +0 -108
  154. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +0 -252
  155. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +0 -83
  156. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +0 -359
  157. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +0 -61
  158. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +0 -192
  159. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/markers.py +0 -252
  160. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +0 -825
  161. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/py.typed +0 -0
  162. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +0 -90
  163. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +0 -1030
  164. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/tags.py +0 -553
  165. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/utils.py +0 -172
  166. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/version.py +0 -563
  167. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pyproject.toml +0 -115
  168. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/release-please-config.json +0 -11
  169. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/test_gyp.py +0 -261
  170. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/Find-VisualStudio.cs +0 -250
  171. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/build.js +0 -230
  172. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/clean.js +0 -15
  173. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/configure.js +0 -328
  174. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/create-config-gypi.js +0 -153
  175. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/download.js +0 -39
  176. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-node-directory.js +0 -63
  177. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-python.js +0 -310
  178. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-visualstudio.js +0 -600
  179. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/install.js +0 -415
  180. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/list.js +0 -26
  181. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/log.js +0 -168
  182. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/node-gyp.js +0 -188
  183. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/process-release.js +0 -146
  184. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/rebuild.js +0 -12
  185. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/remove.js +0 -43
  186. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/util.js +0 -81
  187. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/macOS_Catalina_acid_test.sh +0 -21
  188. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/package.json +0 -52
  189. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/release-please-config.json +0 -40
  190. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/.prettierrc +0 -4
  191. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/.ready +0 -0
  192. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/CHANGELOG.md +0 -286
  193. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/LICENSE +0 -21
  194. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/README.md +0 -457
  195. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/index.js +0 -52
  196. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/lib/checkGrowl.js +0 -24
  197. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/lib/utils.js +0 -515
  198. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/balloon.js +0 -156
  199. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/growl.js +0 -76
  200. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/notificationcenter.js +0 -100
  201. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/notifysend.js +0 -94
  202. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/toaster.js +0 -100
  203. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/package.json +0 -72
  204. 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
  205. 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
  206. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/PkgInfo +0 -1
  207. 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
  208. 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
  209. 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
  210. 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
  211. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/notifu/notifu.exe +0 -0
  212. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/notifu/notifu64.exe +0 -0
  213. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/snoreToast/LICENSE +0 -165
  214. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/snoreToast/SnoreToast.exe +0 -0
  215. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/terminal-notifier-LICENSE +0 -9
@@ -83,6 +83,7 @@ class FunctionService {
83
83
  this.environment = environment;
84
84
  this.scfService = new utils_1.CloudService(environment.cloudBaseContext, 'scf', '2018-04-16');
85
85
  this.vpcService = new utils_1.CloudService(environment.cloudBaseContext, 'vpc', '2017-03-12');
86
+ this.tcbService = new utils_1.CloudService(environment.cloudBaseContext, 'tcb', '2018-06-08');
86
87
  }
87
88
  /**
88
89
  * 增量更新函数代码
@@ -314,21 +315,30 @@ class FunctionService {
314
315
  }
315
316
  /**
316
317
  * 获取函数日志
318
+ * @deprecated 请使用 getFunctionLogsV2 代替
317
319
  * @param {{
318
- * name: string
319
- * offset: number
320
- * limit: number
321
- * order: string
322
- * orderBy: string
323
- * startTime: string
324
- * endTime: string
325
- * requestId: string
326
- * }} options
327
- * @returns {Promise<IFunctionLogRes>}
328
- */
320
+ * name: string
321
+ * offset: number
322
+ * limit: number
323
+ * order: string
324
+ * orderBy: string
325
+ * startTime: string
326
+ * endTime: string
327
+ * requestId: string
328
+ * }} options
329
+ * @returns {Promise<IFunctionLogRes>}
330
+ */
329
331
  async getFunctionLogs(options) {
330
- const { name, offset = 0, limit = 10, order, orderBy, startTime, endTime, requestId } = options;
332
+ let { name, offset = 0, limit = 10, order, orderBy, startTime, endTime, requestId } = options;
331
333
  const { namespace } = this.getFunctionConfig();
334
+ if (startTime && !endTime) {
335
+ // 自动补 endTime 为 startTime + 1d
336
+ endTime = (0, utils_1.formatTimeByMs)(new Date(startTime).getTime() + 24 * 3600 * 1000);
337
+ }
338
+ if (endTime && !startTime) {
339
+ // 自动补 startTime 为 endTime - 1d
340
+ startTime = (0, utils_1.formatTimeByMs)(new Date(endTime).getTime() - 24 * 3600 * 1000);
341
+ }
332
342
  const params = {
333
343
  Namespace: namespace,
334
344
  FunctionName: name,
@@ -344,6 +354,63 @@ class FunctionService {
344
354
  return res;
345
355
  }
346
356
  /**
357
+ * 获取函数日志 ID 列表
358
+ * @param {{
359
+ * name: string
360
+ * offset: number
361
+ * limit: number
362
+ * startTime: string
363
+ * endTime: string
364
+ * requestId: string
365
+ * qualifier: string
366
+ * }} options
367
+ * @returns {Promise<IFunctionLogResV2>}
368
+ */
369
+ async getFunctionLogsV2(options) {
370
+ let { name, offset = 0, limit = 10, startTime, endTime, requestId, qualifier } = options;
371
+ const { env } = this.getFunctionConfig();
372
+ ({ startTime, endTime } = (0, utils_1.getCompleteTimeRange)({
373
+ startTime,
374
+ endTime
375
+ }));
376
+ const params = {
377
+ EnvId: env,
378
+ FunctionName: name,
379
+ Offset: offset,
380
+ Limit: limit,
381
+ StartTime: startTime,
382
+ EndTime: endTime,
383
+ LogRequestId: requestId,
384
+ Qualifier: qualifier || "$LATEST" // 云函数版本,不传则用 $LATEST
385
+ };
386
+ const res = await this.tcbService.request('GetFunctionLogs', params);
387
+ return res;
388
+ }
389
+ /**
390
+ * 根据函数日志 ID 查询日志详情
391
+ * @param {{
392
+ * startTime: string
393
+ * endTime: string
394
+ * logRequestId: string
395
+ * }} options
396
+ * @returns {Promise<IFunctionLogRes>}
397
+ */
398
+ async getFunctionLogDetail(options) {
399
+ let { logRequestId, startTime, endTime } = options;
400
+ ({ startTime, endTime } = (0, utils_1.getCompleteTimeRange)({
401
+ startTime,
402
+ endTime
403
+ }));
404
+ const params = {
405
+ StartTime: startTime,
406
+ LogRequestId: logRequestId,
407
+ EndTime: endTime
408
+ };
409
+ console.log("params", params);
410
+ const res = await this.tcbService.request('GetFunctionLogDetail', params);
411
+ return res;
412
+ }
413
+ /**
347
414
  * 更新云函数配置
348
415
  * @param {ICloudFunction} func 云函数配置
349
416
  * @returns {Promise<IResponseInfo>}
@@ -957,6 +1024,12 @@ __decorate([
957
1024
  __decorate([
958
1025
  (0, utils_1.preLazy)()
959
1026
  ], FunctionService.prototype, "getFunctionLogs", null);
1027
+ __decorate([
1028
+ (0, utils_1.preLazy)()
1029
+ ], FunctionService.prototype, "getFunctionLogsV2", null);
1030
+ __decorate([
1031
+ (0, utils_1.preLazy)()
1032
+ ], FunctionService.prototype, "getFunctionLogDetail", null);
960
1033
  __decorate([
961
1034
  (0, utils_1.preLazy)()
962
1035
  ], FunctionService.prototype, "updateFunctionConfig", null);
@@ -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.getCompleteTimeRange = 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,41 @@ 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;
241
+ const getCompleteTimeRange = (timeRange) => {
242
+ let { startTime, endTime } = timeRange;
243
+ if (!startTime && !endTime) {
244
+ // 都不传则 startTime 为当前时间,endTime 为 startTime + 1d
245
+ const curTime = new Date().getTime();
246
+ startTime = (0, exports.formatTimeByMs)(curTime);
247
+ endTime = (0, exports.formatTimeByMs)(curTime + 24 * 3600 * 1000);
248
+ }
249
+ if (startTime && !endTime) {
250
+ // 自动补 endTime 为 startTime + 1d
251
+ endTime = (0, exports.formatTimeByMs)(new Date(startTime).getTime() + 24 * 3600 * 1000);
252
+ }
253
+ if (endTime && !startTime) {
254
+ // 自动补 startTime 为 endTime - 1d
255
+ startTime = (0, exports.formatTimeByMs)(new Date(endTime).getTime() - 24 * 3600 * 1000);
256
+ }
257
+ return {
258
+ startTime,
259
+ endTime
260
+ };
261
+ };
262
+ exports.getCompleteTimeRange = getCompleteTimeRange;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/manager-node",
3
- "version": "4.3.3",
3
+ "version": "4.4.0",
4
4
  "description": "The node manage service api for cloudbase.",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -1,5 +1,5 @@
1
1
  import { Environment } from '../environment';
2
- import { IResponseInfo, ICloudFunction, IFunctionLogOptions, ICloudFunctionTrigger, IFunctionInvokeRes, IFunctionLogRes, IFunctionDownloadUrlRes } from '../interfaces';
2
+ import { IResponseInfo, ICloudFunction, IFunctionLogOptions, ICloudFunctionTrigger, IFunctionInvokeRes, IFunctionLogRes, IFunctionDownloadUrlRes, IFunctionLogDetailOptions, IFunctionLogDetailRes, IFunctionLogOptionsV2, IFunctionLogResV2 } from '../interfaces';
3
3
  import { IFunctionInfo } from './types';
4
4
  export interface IFunctionCode {
5
5
  func: ICloudFunction;
@@ -177,6 +177,7 @@ export declare class FunctionService {
177
177
  private environment;
178
178
  private vpcService;
179
179
  private scfService;
180
+ private tcbService;
180
181
  constructor(environment: Environment);
181
182
  /**
182
183
  * 增量更新函数代码
@@ -228,20 +229,45 @@ export declare class FunctionService {
228
229
  getFunctionDetail(name: string, codeSecret?: string): Promise<IFunctionInfo>;
229
230
  /**
230
231
  * 获取函数日志
232
+ * @deprecated 请使用 getFunctionLogsV2 代替
231
233
  * @param {{
232
- * name: string
233
- * offset: number
234
- * limit: number
235
- * order: string
236
- * orderBy: string
237
- * startTime: string
238
- * endTime: string
239
- * requestId: string
240
- * }} options
241
- * @returns {Promise<IFunctionLogRes>}
242
- */
234
+ * name: string
235
+ * offset: number
236
+ * limit: number
237
+ * order: string
238
+ * orderBy: string
239
+ * startTime: string
240
+ * endTime: string
241
+ * requestId: string
242
+ * }} options
243
+ * @returns {Promise<IFunctionLogRes>}
244
+ */
243
245
  getFunctionLogs(options: IFunctionLogOptions): Promise<IFunctionLogRes>;
244
246
  /**
247
+ * 获取函数日志 ID 列表
248
+ * @param {{
249
+ * name: string
250
+ * offset: number
251
+ * limit: number
252
+ * startTime: string
253
+ * endTime: string
254
+ * requestId: string
255
+ * qualifier: string
256
+ * }} options
257
+ * @returns {Promise<IFunctionLogResV2>}
258
+ */
259
+ getFunctionLogsV2(options: IFunctionLogOptionsV2): Promise<IFunctionLogResV2>;
260
+ /**
261
+ * 根据函数日志 ID 查询日志详情
262
+ * @param {{
263
+ * startTime: string
264
+ * endTime: string
265
+ * logRequestId: string
266
+ * }} options
267
+ * @returns {Promise<IFunctionLogRes>}
268
+ */
269
+ getFunctionLogDetail(options: IFunctionLogDetailOptions): Promise<IFunctionLogDetailRes>;
270
+ /**
245
271
  * 更新云函数配置
246
272
  * @param {ICloudFunction} func 云函数配置
247
273
  * @returns {Promise<IResponseInfo>}
@@ -43,6 +43,20 @@ export interface IFunctionLogOptions {
43
43
  endTime?: string;
44
44
  requestId?: string;
45
45
  }
46
+ export interface IFunctionLogOptionsV2 {
47
+ name: string;
48
+ offset?: number;
49
+ limit?: number;
50
+ startTime?: string;
51
+ endTime?: string;
52
+ requestId?: string;
53
+ qualifier?: string;
54
+ }
55
+ export interface IFunctionLogDetailOptions {
56
+ endTime?: string;
57
+ logRequestId: string;
58
+ startTime?: string;
59
+ }
46
60
  export interface IFunctionInvokeRes {
47
61
  RequestId: string;
48
62
  Log: string;
@@ -58,6 +72,25 @@ export interface IFunctionLogRes {
58
72
  Data: [];
59
73
  TotalCount: number;
60
74
  }
75
+ export interface IFunctionLogResV2 {
76
+ RequestId: string;
77
+ LogList: {
78
+ RequestId: string;
79
+ RetCode: number;
80
+ RetryNum: number;
81
+ StartTime: string;
82
+ }[];
83
+ }
84
+ export interface IFunctionLogDetailRes {
85
+ Context: string;
86
+ Duration: number;
87
+ ListOver: boolean;
88
+ LogJson: string;
89
+ MemUsage: number;
90
+ RequestId: string;
91
+ RetMsg: string;
92
+ StartTime: string;
93
+ }
61
94
  export interface IFunctionDownloadUrlRes {
62
95
  Url: string;
63
96
  RequestId: string;
@@ -55,3 +55,12 @@ 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;
60
+ export declare const getCompleteTimeRange: (timeRange: {
61
+ startTime?: string;
62
+ endTime?: string;
63
+ }) => {
64
+ startTime: string;
65
+ endTime: string;
66
+ };
@@ -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 [![NPM](https://nodei.co/npm/fsevents.png)](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)