@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.
Files changed (213) hide show
  1. package/lib/function/index.js +9 -1
  2. package/lib/utils/index.js +17 -1
  3. package/package.json +1 -1
  4. package/types/utils/index.d.ts +2 -0
  5. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/.ready +0 -0
  6. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/.travis.yml +0 -103
  7. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/ISSUE_TEMPLATE.md +0 -8
  8. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/LICENSE +0 -22
  9. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/Readme.md +0 -78
  10. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/binding.gyp +0 -21
  11. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/fsevents.cc +0 -88
  12. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/fsevents.js +0 -108
  13. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/install.js +0 -13
  14. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/package.json +0 -34
  15. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/vfs.js +0 -76
  16. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.eslintrc.js +0 -20
  17. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.prettierrc +0 -4
  18. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.ready +0 -0
  19. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/CHANGELOG.md +0 -310
  20. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/LICENSE +0 -21
  21. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/README.md +0 -344
  22. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/husky.js +0 -15
  23. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/checkGitDirEnv.js +0 -13
  24. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/debug.js +0 -8
  25. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/getConf.js +0 -15
  26. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/bin.js +0 -48
  27. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/getScript.js +0 -106
  28. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/gitRevParse.js +0 -29
  29. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/index.js +0 -151
  30. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/is.js +0 -24
  31. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/runner/bin.js +0 -16
  32. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/runner/index.js +0 -84
  33. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/upgrader/bin.js +0 -8
  34. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/upgrader/index.js +0 -65
  35. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/package.json +0 -114
  36. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/run.js +0 -14
  37. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/.github/workflows/ci.yml +0 -52
  38. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/.ready +0 -0
  39. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/CHANGELOG.md +0 -577
  40. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/CMakeLists.txt +0 -138
  41. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/LICENSE.md +0 -9
  42. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/README.md +0 -455
  43. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/asyncworker.md +0 -146
  44. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/buffers.md +0 -54
  45. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/callback.md +0 -76
  46. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/converters.md +0 -41
  47. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/errors.md +0 -226
  48. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/json.md +0 -62
  49. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/maybe_types.md +0 -583
  50. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/methods.md +0 -672
  51. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/new.md +0 -147
  52. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/node_misc.md +0 -123
  53. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/object_wrappers.md +0 -263
  54. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/persistent.md +0 -296
  55. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/scopes.md +0 -73
  56. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/script.md +0 -58
  57. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/string_bytes.md +0 -62
  58. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/v8_internals.md +0 -199
  59. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/v8_misc.md +0 -85
  60. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/include_dirs.js +0 -1
  61. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan.h +0 -3049
  62. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks.h +0 -128
  63. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks_12_inl.h +0 -676
  64. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks_pre_12_inl.h +0 -520
  65. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters.h +0 -72
  66. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters_43_inl.h +0 -68
  67. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters_pre_43_inl.h +0 -42
  68. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_define_own_property_helper.h +0 -29
  69. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_implementation_12_inl.h +0 -430
  70. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_implementation_pre_12_inl.h +0 -263
  71. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_json.h +0 -166
  72. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_maybe_43_inl.h +0 -356
  73. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_maybe_pre_43_inl.h +0 -268
  74. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_new.h +0 -340
  75. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_object_wrap.h +0 -156
  76. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_persistent_12_inl.h +0 -132
  77. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_persistent_pre_12_inl.h +0 -242
  78. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_private.h +0 -73
  79. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_scriptorigin.h +0 -95
  80. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_string_bytes.h +0 -305
  81. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_typedarray_contents.h +0 -96
  82. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_weak.h +0 -437
  83. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/package.json +0 -38
  84. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/1to2.js +0 -412
  85. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/README.md +0 -14
  86. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/package.json +0 -19
  87. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/.ready +0 -0
  88. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/.release-please-manifest.json +0 -3
  89. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CHANGELOG.md +0 -1053
  90. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CODE_OF_CONDUCT.md +0 -4
  91. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CONTRIBUTING.md +0 -34
  92. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/LICENSE +0 -24
  93. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/README.md +0 -273
  94. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/SECURITY.md +0 -2
  95. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/addon.gypi +0 -204
  96. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/bin/node-gyp.js +0 -138
  97. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/eslint.config.js +0 -3
  98. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/.release-please-manifest.json +0 -3
  99. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/LICENSE +0 -28
  100. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/data/ninja/build.ninja +0 -4
  101. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +0 -12
  102. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp +0 -8
  103. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp.bat +0 -5
  104. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp_main.py +0 -45
  105. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +0 -365
  106. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +0 -206
  107. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +0 -1272
  108. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +0 -1547
  109. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +0 -59
  110. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +0 -152
  111. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +0 -270
  112. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +0 -574
  113. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +0 -704
  114. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/common.py +0 -709
  115. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +0 -173
  116. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +0 -169
  117. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +0 -113
  118. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +0 -55
  119. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
  120. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +0 -805
  121. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +0 -1172
  122. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +0 -1319
  123. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +0 -128
  124. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +0 -104
  125. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +0 -462
  126. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +0 -89
  127. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +0 -56
  128. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +0 -2745
  129. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +0 -3976
  130. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +0 -44
  131. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +0 -2965
  132. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +0 -67
  133. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +0 -1391
  134. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +0 -26
  135. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/input.py +0 -3112
  136. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +0 -99
  137. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +0 -767
  138. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +0 -1260
  139. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +0 -174
  140. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +0 -61
  141. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +0 -373
  142. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +0 -1939
  143. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +0 -54
  144. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +0 -303
  145. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +0 -3196
  146. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +0 -65
  147. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE +0 -3
  148. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +0 -177
  149. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.BSD +0 -23
  150. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +0 -15
  151. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +0 -108
  152. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +0 -252
  153. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +0 -83
  154. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +0 -359
  155. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +0 -61
  156. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +0 -192
  157. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/markers.py +0 -252
  158. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +0 -825
  159. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/py.typed +0 -0
  160. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +0 -90
  161. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +0 -1030
  162. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/tags.py +0 -553
  163. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/utils.py +0 -172
  164. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/version.py +0 -563
  165. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pyproject.toml +0 -115
  166. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/release-please-config.json +0 -11
  167. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/test_gyp.py +0 -261
  168. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/Find-VisualStudio.cs +0 -250
  169. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/build.js +0 -230
  170. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/clean.js +0 -15
  171. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/configure.js +0 -328
  172. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/create-config-gypi.js +0 -153
  173. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/download.js +0 -39
  174. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-node-directory.js +0 -63
  175. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-python.js +0 -310
  176. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-visualstudio.js +0 -600
  177. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/install.js +0 -415
  178. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/list.js +0 -26
  179. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/log.js +0 -168
  180. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/node-gyp.js +0 -188
  181. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/process-release.js +0 -146
  182. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/rebuild.js +0 -12
  183. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/remove.js +0 -43
  184. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/util.js +0 -81
  185. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/macOS_Catalina_acid_test.sh +0 -21
  186. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/package.json +0 -52
  187. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/release-please-config.json +0 -40
  188. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/.prettierrc +0 -4
  189. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/.ready +0 -0
  190. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/CHANGELOG.md +0 -286
  191. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/LICENSE +0 -21
  192. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/README.md +0 -457
  193. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/index.js +0 -52
  194. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/lib/checkGrowl.js +0 -24
  195. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/lib/utils.js +0 -515
  196. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/balloon.js +0 -156
  197. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/growl.js +0 -76
  198. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/notificationcenter.js +0 -100
  199. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/notifysend.js +0 -94
  200. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/toaster.js +0 -100
  201. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/package.json +0 -72
  202. 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
  203. 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
  204. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/PkgInfo +0 -1
  205. 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
  206. 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
  207. 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
  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/MainMenu.nib +0 -0
  209. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/notifu/notifu.exe +0 -0
  210. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/notifu/notifu64.exe +0 -0
  211. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/snoreToast/LICENSE +0 -165
  212. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/snoreToast/SnoreToast.exe +0 -0
  213. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/terminal-notifier-LICENSE +0 -9
@@ -1,173 +0,0 @@
1
- #!/usr/bin/env python3
2
-
3
- # Copyright (c) 2012 Google Inc. All rights reserved.
4
- # Use of this source code is governed by a BSD-style license that can be
5
- # found in the LICENSE file.
6
-
7
- """Unit tests for the common.py file."""
8
-
9
- import os
10
- import sys
11
- import unittest
12
- from unittest.mock import MagicMock, patch
13
-
14
- import gyp.common
15
-
16
-
17
- class TestTopologicallySorted(unittest.TestCase):
18
- def test_Valid(self):
19
- """Test that sorting works on a valid graph with one possible order."""
20
- graph = {
21
- "a": ["b", "c"],
22
- "b": [],
23
- "c": ["d"],
24
- "d": ["b"],
25
- }
26
-
27
- def GetEdge(node):
28
- return tuple(graph[node])
29
-
30
- assert gyp.common.TopologicallySorted(
31
- graph.keys(), GetEdge) == ["a", "c", "d", "b"]
32
-
33
- def test_Cycle(self):
34
- """Test that an exception is thrown on a cyclic graph."""
35
- graph = {
36
- "a": ["b"],
37
- "b": ["c"],
38
- "c": ["d"],
39
- "d": ["a"],
40
- }
41
-
42
- def GetEdge(node):
43
- return tuple(graph[node])
44
-
45
- self.assertRaises(
46
- gyp.common.CycleError, gyp.common.TopologicallySorted, graph.keys(), GetEdge
47
- )
48
-
49
-
50
- class TestGetFlavor(unittest.TestCase):
51
- """Test that gyp.common.GetFlavor works as intended"""
52
-
53
- original_platform = ""
54
-
55
- def setUp(self):
56
- self.original_platform = sys.platform
57
-
58
- def tearDown(self):
59
- sys.platform = self.original_platform
60
-
61
- def assertFlavor(self, expected, argument, param):
62
- sys.platform = argument
63
- assert expected == gyp.common.GetFlavor(param)
64
-
65
- def test_platform_default(self):
66
- self.assertFlavor("freebsd", "freebsd9", {})
67
- self.assertFlavor("freebsd", "freebsd10", {})
68
- self.assertFlavor("openbsd", "openbsd5", {})
69
- self.assertFlavor("solaris", "sunos5", {})
70
- self.assertFlavor("solaris", "sunos", {})
71
- self.assertFlavor("linux", "linux2", {})
72
- self.assertFlavor("linux", "linux3", {})
73
- self.assertFlavor("linux", "linux", {})
74
-
75
- def test_param(self):
76
- self.assertFlavor("foobar", "linux2", {"flavor": "foobar"})
77
-
78
- class MockCommunicate:
79
- def __init__(self, stdout):
80
- self.stdout = stdout
81
-
82
- def decode(self, encoding):
83
- return self.stdout
84
-
85
- @patch("os.close")
86
- @patch("os.unlink")
87
- @patch("tempfile.mkstemp")
88
- def test_GetCrossCompilerPredefines(self, mock_mkstemp, mock_unlink, mock_close):
89
- mock_close.return_value = None
90
- mock_unlink.return_value = None
91
- mock_mkstemp.return_value = (0, "temp.c")
92
-
93
- def mock_run(env, defines_stdout, expected_cmd):
94
- with patch("subprocess.run") as mock_run:
95
- mock_process = MagicMock()
96
- mock_process.returncode = 0
97
- mock_process.stdout = TestGetFlavor.MockCommunicate(defines_stdout)
98
- mock_run.return_value = mock_process
99
- expected_input = "temp.c" if sys.platform == "win32" else "/dev/null"
100
- with patch.dict(os.environ, env):
101
- defines = gyp.common.GetCrossCompilerPredefines()
102
- flavor = gyp.common.GetFlavor({})
103
- if env.get("CC_target"):
104
- mock_run.assert_called_with(
105
- [
106
- *expected_cmd,
107
- "-dM", "-E", "-x", "c", expected_input
108
- ],
109
- shell=sys.platform == "win32",
110
- capture_output=True, check=True)
111
- return [defines, flavor]
112
-
113
- [defines1, _] = mock_run({}, "", [])
114
- assert defines1 == {}
115
-
116
- [defines2, flavor2] = mock_run(
117
- { "CC_target": "/opt/wasi-sdk/bin/clang" },
118
- "#define __wasm__ 1\n#define __wasi__ 1\n",
119
- ["/opt/wasi-sdk/bin/clang"]
120
- )
121
- assert defines2 == { "__wasm__": "1", "__wasi__": "1" }
122
- assert flavor2 == "wasi"
123
-
124
- [defines3, flavor3] = mock_run(
125
- { "CC_target": "/opt/wasi-sdk/bin/clang --target=wasm32" },
126
- "#define __wasm__ 1\n",
127
- ["/opt/wasi-sdk/bin/clang", "--target=wasm32"]
128
- )
129
- assert defines3 == { "__wasm__": "1" }
130
- assert flavor3 == "wasm"
131
-
132
- [defines4, flavor4] = mock_run(
133
- { "CC_target": "/emsdk/upstream/emscripten/emcc" },
134
- "#define __EMSCRIPTEN__ 1\n",
135
- ["/emsdk/upstream/emscripten/emcc"]
136
- )
137
- assert defines4 == { "__EMSCRIPTEN__": "1" }
138
- assert flavor4 == "emscripten"
139
-
140
- # Test path which include white space
141
- [defines5, flavor5] = mock_run(
142
- {
143
- "CC_target": "\"/Users/Toyo Li/wasi-sdk/bin/clang\" -O3",
144
- "CFLAGS": "--target=wasm32-wasi-threads -pthread"
145
- },
146
- "#define __wasm__ 1\n#define __wasi__ 1\n#define _REENTRANT 1\n",
147
- [
148
- "/Users/Toyo Li/wasi-sdk/bin/clang",
149
- "-O3",
150
- "--target=wasm32-wasi-threads",
151
- "-pthread"
152
- ]
153
- )
154
- assert defines5 == {
155
- "__wasm__": "1",
156
- "__wasi__": "1",
157
- "_REENTRANT": "1"
158
- }
159
- assert flavor5 == "wasi"
160
-
161
- original_sep = os.sep
162
- os.sep = "\\"
163
- [defines6, flavor6] = mock_run(
164
- { "CC_target": "\"C:\\Program Files\\wasi-sdk\\clang.exe\"" },
165
- "#define __wasm__ 1\n#define __wasi__ 1\n",
166
- ["C:/Program Files/wasi-sdk/clang.exe"]
167
- )
168
- os.sep = original_sep
169
- assert defines6 == { "__wasm__": "1", "__wasi__": "1" }
170
- assert flavor6 == "wasi"
171
-
172
- if __name__ == "__main__":
173
- unittest.main()
@@ -1,169 +0,0 @@
1
- # Copyright (c) 2011 Google Inc. All rights reserved.
2
- # Use of this source code is governed by a BSD-style license that can be
3
- # found in the LICENSE file.
4
-
5
- import locale
6
- import os
7
- import re
8
- import sys
9
- from functools import reduce
10
-
11
-
12
- def XmlToString(content, encoding="utf-8", pretty=False):
13
- """ Writes the XML content to disk, touching the file only if it has changed.
14
-
15
- Visual Studio files have a lot of pre-defined structures. This function makes
16
- it easy to represent these structures as Python data structures, instead of
17
- having to create a lot of function calls.
18
-
19
- Each XML element of the content is represented as a list composed of:
20
- 1. The name of the element, a string,
21
- 2. The attributes of the element, a dictionary (optional), and
22
- 3+. The content of the element, if any. Strings are simple text nodes and
23
- lists are child elements.
24
-
25
- Example 1:
26
- <test/>
27
- becomes
28
- ['test']
29
-
30
- Example 2:
31
- <myelement a='value1' b='value2'>
32
- <childtype>This is</childtype>
33
- <childtype>it!</childtype>
34
- </myelement>
35
-
36
- becomes
37
- ['myelement', {'a':'value1', 'b':'value2'},
38
- ['childtype', 'This is'],
39
- ['childtype', 'it!'],
40
- ]
41
-
42
- Args:
43
- content: The structured content to be converted.
44
- encoding: The encoding to report on the first XML line.
45
- pretty: True if we want pretty printing with indents and new lines.
46
-
47
- Returns:
48
- The XML content as a string.
49
- """
50
- # We create a huge list of all the elements of the file.
51
- xml_parts = ['<?xml version="1.0" encoding="%s"?>' % encoding]
52
- if pretty:
53
- xml_parts.append("\n")
54
- _ConstructContentList(xml_parts, content, pretty)
55
-
56
- # Convert it to a string
57
- return "".join(xml_parts)
58
-
59
-
60
- def _ConstructContentList(xml_parts, specification, pretty, level=0):
61
- """ Appends the XML parts corresponding to the specification.
62
-
63
- Args:
64
- xml_parts: A list of XML parts to be appended to.
65
- specification: The specification of the element. See EasyXml docs.
66
- pretty: True if we want pretty printing with indents and new lines.
67
- level: Indentation level.
68
- """
69
- # The first item in a specification is the name of the element.
70
- if pretty:
71
- indentation = " " * level
72
- new_line = "\n"
73
- else:
74
- indentation = ""
75
- new_line = ""
76
- name = specification[0]
77
- if not isinstance(name, str):
78
- raise Exception(
79
- "The first item of an EasyXml specification should be "
80
- "a string. Specification was " + str(specification)
81
- )
82
- xml_parts.append(indentation + "<" + name)
83
-
84
- # Optionally in second position is a dictionary of the attributes.
85
- rest = specification[1:]
86
- if rest and isinstance(rest[0], dict):
87
- for at, val in sorted(rest[0].items()):
88
- xml_parts.append(f' {at}="{_XmlEscape(val, attr=True)}"')
89
- rest = rest[1:]
90
- if rest:
91
- xml_parts.append(">")
92
- all_strings = reduce(lambda x, y: x and isinstance(y, str), rest, True)
93
- multi_line = not all_strings
94
- if multi_line and new_line:
95
- xml_parts.append(new_line)
96
- for child_spec in rest:
97
- # If it's a string, append a text node.
98
- # Otherwise recurse over that child definition
99
- if isinstance(child_spec, str):
100
- xml_parts.append(_XmlEscape(child_spec))
101
- else:
102
- _ConstructContentList(xml_parts, child_spec, pretty, level + 1)
103
- if multi_line and indentation:
104
- xml_parts.append(indentation)
105
- xml_parts.append(f"</{name}>{new_line}")
106
- else:
107
- xml_parts.append("/>%s" % new_line)
108
-
109
-
110
- def WriteXmlIfChanged(content, path, encoding="utf-8", pretty=False,
111
- win32=(sys.platform == "win32")):
112
- """ Writes the XML content to disk, touching the file only if it has changed.
113
-
114
- Args:
115
- content: The structured content to be written.
116
- path: Location of the file.
117
- encoding: The encoding to report on the first line of the XML file.
118
- pretty: True if we want pretty printing with indents and new lines.
119
- """
120
- xml_string = XmlToString(content, encoding, pretty)
121
- if win32 and os.linesep != "\r\n":
122
- xml_string = xml_string.replace("\n", "\r\n")
123
-
124
- try: # getdefaultlocale() was removed in Python 3.11
125
- default_encoding = locale.getdefaultlocale()[1]
126
- except AttributeError:
127
- default_encoding = locale.getencoding()
128
-
129
- if default_encoding and default_encoding.upper() != encoding.upper():
130
- xml_string = xml_string.encode(encoding)
131
-
132
- # Get the old content
133
- try:
134
- with open(path) as file:
135
- existing = file.read()
136
- except OSError:
137
- existing = None
138
-
139
- # It has changed, write it
140
- if existing != xml_string:
141
- with open(path, "wb") as file:
142
- file.write(xml_string)
143
-
144
-
145
- _xml_escape_map = {
146
- '"': "&quot;",
147
- "'": "&apos;",
148
- "<": "&lt;",
149
- ">": "&gt;",
150
- "&": "&amp;",
151
- "\n": "&#xA;",
152
- "\r": "&#xD;",
153
- }
154
-
155
-
156
- _xml_escape_re = re.compile("(%s)" % "|".join(map(re.escape, _xml_escape_map.keys())))
157
-
158
-
159
- def _XmlEscape(value, attr=False):
160
- """ Escape a string for inclusion in XML."""
161
-
162
- def replace(match):
163
- m = match.string[match.start() : match.end()]
164
- # don't replace single quotes in attrs
165
- if attr and m == "'":
166
- return m
167
- return _xml_escape_map[m]
168
-
169
- return _xml_escape_re.sub(replace, value)
@@ -1,113 +0,0 @@
1
- #!/usr/bin/env python3
2
-
3
- # Copyright (c) 2011 Google Inc. All rights reserved.
4
- # Use of this source code is governed by a BSD-style license that can be
5
- # found in the LICENSE file.
6
-
7
- """ Unit tests for the easy_xml.py file. """
8
-
9
- import unittest
10
- from io import StringIO
11
-
12
- from gyp import easy_xml
13
-
14
-
15
- class TestSequenceFunctions(unittest.TestCase):
16
- def setUp(self):
17
- self.stderr = StringIO()
18
-
19
- def test_EasyXml_simple(self):
20
- self.assertEqual(
21
- easy_xml.XmlToString(["test"]),
22
- '<?xml version="1.0" encoding="utf-8"?><test/>',
23
- )
24
-
25
- self.assertEqual(
26
- easy_xml.XmlToString(["test"], encoding="Windows-1252"),
27
- '<?xml version="1.0" encoding="Windows-1252"?><test/>',
28
- )
29
-
30
- def test_EasyXml_simple_with_attributes(self):
31
- self.assertEqual(
32
- easy_xml.XmlToString(["test2", {"a": "value1", "b": "value2"}]),
33
- '<?xml version="1.0" encoding="utf-8"?><test2 a="value1" b="value2"/>',
34
- )
35
-
36
- def test_EasyXml_escaping(self):
37
- original = "<test>'\"\r&\nfoo"
38
- converted = "&lt;test&gt;'&quot;&#xD;&amp;&#xA;foo"
39
- converted_apos = converted.replace("'", "&apos;")
40
- self.assertEqual(
41
- easy_xml.XmlToString(["test3", {"a": original}, original]),
42
- '<?xml version="1.0" encoding="utf-8"?><test3 a="%s">%s</test3>'
43
- % (converted, converted_apos),
44
- )
45
-
46
- def test_EasyXml_pretty(self):
47
- self.assertEqual(
48
- easy_xml.XmlToString(
49
- ["test3", ["GrandParent", ["Parent1", ["Child"]], ["Parent2"]]],
50
- pretty=True,
51
- ),
52
- '<?xml version="1.0" encoding="utf-8"?>\n'
53
- "<test3>\n"
54
- " <GrandParent>\n"
55
- " <Parent1>\n"
56
- " <Child/>\n"
57
- " </Parent1>\n"
58
- " <Parent2/>\n"
59
- " </GrandParent>\n"
60
- "</test3>\n",
61
- )
62
-
63
- def test_EasyXml_complex(self):
64
- # We want to create:
65
- target = (
66
- '<?xml version="1.0" encoding="utf-8"?>'
67
- "<Project>"
68
- '<PropertyGroup Label="Globals">'
69
- "<ProjectGuid>{D2250C20-3A94-4FB9-AF73-11BC5B73884B}</ProjectGuid>"
70
- "<Keyword>Win32Proj</Keyword>"
71
- "<RootNamespace>automated_ui_tests</RootNamespace>"
72
- "</PropertyGroup>"
73
- '<Import Project="$(VCTargetsPath)\\Microsoft.Cpp.props"/>'
74
- "<PropertyGroup "
75
- "Condition=\"'$(Configuration)|$(Platform)'=="
76
- '\'Debug|Win32\'" Label="Configuration">'
77
- "<ConfigurationType>Application</ConfigurationType>"
78
- "<CharacterSet>Unicode</CharacterSet>"
79
- "<SpectreMitigation>SpectreLoadCF</SpectreMitigation>"
80
- "<VCToolsVersion>14.36.32532</VCToolsVersion>"
81
- "</PropertyGroup>"
82
- "</Project>"
83
- )
84
-
85
- xml = easy_xml.XmlToString(
86
- [
87
- "Project",
88
- [
89
- "PropertyGroup",
90
- {"Label": "Globals"},
91
- ["ProjectGuid", "{D2250C20-3A94-4FB9-AF73-11BC5B73884B}"],
92
- ["Keyword", "Win32Proj"],
93
- ["RootNamespace", "automated_ui_tests"],
94
- ],
95
- ["Import", {"Project": "$(VCTargetsPath)\\Microsoft.Cpp.props"}],
96
- [
97
- "PropertyGroup",
98
- {
99
- "Condition": "'$(Configuration)|$(Platform)'=='Debug|Win32'",
100
- "Label": "Configuration",
101
- },
102
- ["ConfigurationType", "Application"],
103
- ["CharacterSet", "Unicode"],
104
- ["SpectreMitigation", "SpectreLoadCF"],
105
- ["VCToolsVersion", "14.36.32532"],
106
- ],
107
- ]
108
- )
109
- self.assertEqual(xml, target)
110
-
111
-
112
- if __name__ == "__main__":
113
- unittest.main()
@@ -1,55 +0,0 @@
1
- #!/usr/bin/env python3
2
- # Copyright (c) 2011 Google Inc. All rights reserved.
3
- # Use of this source code is governed by a BSD-style license that can be
4
- # found in the LICENSE file.
5
-
6
- """These functions are executed via gyp-flock-tool when using the Makefile
7
- generator. Used on systems that don't have a built-in flock."""
8
-
9
- import fcntl
10
- import os
11
- import struct
12
- import subprocess
13
- import sys
14
-
15
-
16
- def main(args):
17
- executor = FlockTool()
18
- executor.Dispatch(args)
19
-
20
-
21
- class FlockTool:
22
- """This class emulates the 'flock' command."""
23
-
24
- def Dispatch(self, args):
25
- """Dispatches a string command to a method."""
26
- if len(args) < 1:
27
- raise Exception("Not enough arguments")
28
-
29
- method = "Exec%s" % self._CommandifyName(args[0])
30
- getattr(self, method)(*args[1:])
31
-
32
- def _CommandifyName(self, name_string):
33
- """Transforms a tool name like copy-info-plist to CopyInfoPlist"""
34
- return name_string.title().replace("-", "")
35
-
36
- def ExecFlock(self, lockfile, *cmd_list):
37
- """Emulates the most basic behavior of Linux's flock(1)."""
38
- # Rely on exception handling to report errors.
39
- # Note that the stock python on SunOS has a bug
40
- # where fcntl.flock(fd, LOCK_EX) always fails
41
- # with EBADF, that's why we use this F_SETLK
42
- # hack instead.
43
- fd = os.open(lockfile, os.O_WRONLY | os.O_NOCTTY | os.O_CREAT, 0o666)
44
- if sys.platform.startswith("aix") or sys.platform == "os400":
45
- # Python on AIX is compiled with LARGEFILE support, which changes the
46
- # struct size.
47
- op = struct.pack("hhIllqq", fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0)
48
- else:
49
- op = struct.pack("hhllhhl", fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0)
50
- fcntl.fcntl(fd, fcntl.F_SETLK, op)
51
- return subprocess.call(cmd_list)
52
-
53
-
54
- if __name__ == "__main__":
55
- sys.exit(main(sys.argv[1:]))