@nubjs/nub-darwin-x64 0.2.2 → 0.2.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 (348) hide show
  1. package/bin/nub +0 -0
  2. package/bin/nubx +0 -0
  3. package/package.json +2 -3
  4. package/runtime/addons/nub-native.node +0 -0
  5. package/runtime/cache-evict.mjs +0 -69
  6. package/runtime/compile-cache-restore.mjs +0 -21
  7. package/runtime/floor-builtin.mjs +0 -57
  8. package/runtime/navigator-locks.mjs +0 -242
  9. package/runtime/navigator-shim.mjs +0 -144
  10. package/runtime/node_modules/@js-temporal/polyfill/CHANGELOG.md +0 -453
  11. package/runtime/node_modules/@js-temporal/polyfill/LICENSE +0 -13
  12. package/runtime/node_modules/@js-temporal/polyfill/README.md +0 -90
  13. package/runtime/node_modules/@js-temporal/polyfill/dist/index.cjs +0 -2
  14. package/runtime/node_modules/@js-temporal/polyfill/dist/index.cjs.map +0 -1
  15. package/runtime/node_modules/@js-temporal/polyfill/dist/index.esm.js +0 -2
  16. package/runtime/node_modules/@js-temporal/polyfill/dist/index.esm.js.map +0 -1
  17. package/runtime/node_modules/@js-temporal/polyfill/dist/index.umd.js +0 -2
  18. package/runtime/node_modules/@js-temporal/polyfill/dist/index.umd.js.map +0 -1
  19. package/runtime/node_modules/@js-temporal/polyfill/index.d.cts +0 -1215
  20. package/runtime/node_modules/@js-temporal/polyfill/index.d.ts +0 -1215
  21. package/runtime/node_modules/@js-temporal/polyfill/lib/assert.ts +0 -8
  22. package/runtime/node_modules/@js-temporal/polyfill/lib/bigintmath.ts +0 -39
  23. package/runtime/node_modules/@js-temporal/polyfill/lib/calendar.ts +0 -2424
  24. package/runtime/node_modules/@js-temporal/polyfill/lib/debug.ts +0 -7
  25. package/runtime/node_modules/@js-temporal/polyfill/lib/duration.ts +0 -438
  26. package/runtime/node_modules/@js-temporal/polyfill/lib/durationformat.d.ts +0 -93
  27. package/runtime/node_modules/@js-temporal/polyfill/lib/ecmascript.ts +0 -4973
  28. package/runtime/node_modules/@js-temporal/polyfill/lib/index.ts +0 -34
  29. package/runtime/node_modules/@js-temporal/polyfill/lib/init.ts +0 -43
  30. package/runtime/node_modules/@js-temporal/polyfill/lib/instant.ts +0 -138
  31. package/runtime/node_modules/@js-temporal/polyfill/lib/internaltypes.d.ts +0 -242
  32. package/runtime/node_modules/@js-temporal/polyfill/lib/intl.ts +0 -758
  33. package/runtime/node_modules/@js-temporal/polyfill/lib/intrinsicclass.ts +0 -162
  34. package/runtime/node_modules/@js-temporal/polyfill/lib/legacydate.ts +0 -17
  35. package/runtime/node_modules/@js-temporal/polyfill/lib/math.ts +0 -96
  36. package/runtime/node_modules/@js-temporal/polyfill/lib/now.ts +0 -48
  37. package/runtime/node_modules/@js-temporal/polyfill/lib/plaindate.ts +0 -212
  38. package/runtime/node_modules/@js-temporal/polyfill/lib/plaindatetime.ts +0 -274
  39. package/runtime/node_modules/@js-temporal/polyfill/lib/plainmonthday.ts +0 -110
  40. package/runtime/node_modules/@js-temporal/polyfill/lib/plaintime.ts +0 -154
  41. package/runtime/node_modules/@js-temporal/polyfill/lib/plainyearmonth.ts +0 -157
  42. package/runtime/node_modules/@js-temporal/polyfill/lib/regex.ts +0 -59
  43. package/runtime/node_modules/@js-temporal/polyfill/lib/slots.ts +0 -341
  44. package/runtime/node_modules/@js-temporal/polyfill/lib/temporal.ts +0 -10
  45. package/runtime/node_modules/@js-temporal/polyfill/lib/timeduration.ts +0 -149
  46. package/runtime/node_modules/@js-temporal/polyfill/lib/zoneddatetime.ts +0 -492
  47. package/runtime/node_modules/@js-temporal/polyfill/package.json +0 -143
  48. package/runtime/node_modules/@oxc-project/runtime/CHANGELOG.md +0 -88
  49. package/runtime/node_modules/@oxc-project/runtime/LICENSE +0 -22
  50. package/runtime/node_modules/@oxc-project/runtime/README.md +0 -5
  51. package/runtime/node_modules/@oxc-project/runtime/package.json +0 -1066
  52. package/runtime/node_modules/@oxc-project/runtime/src/helpers/AwaitValue.js +0 -4
  53. package/runtime/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js +0 -4
  54. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecoratedDescriptor.js +0 -9
  55. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs.js +0 -236
  56. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2203.js +0 -184
  57. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2203R.js +0 -191
  58. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2301.js +0 -222
  59. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2305.js +0 -133
  60. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2311.js +0 -124
  61. package/runtime/node_modules/@oxc-project/runtime/src/helpers/arrayLikeToArray.js +0 -6
  62. package/runtime/node_modules/@oxc-project/runtime/src/helpers/arrayWithHoles.js +0 -4
  63. package/runtime/node_modules/@oxc-project/runtime/src/helpers/arrayWithoutHoles.js +0 -5
  64. package/runtime/node_modules/@oxc-project/runtime/src/helpers/assertClassBrand.js +0 -5
  65. package/runtime/node_modules/@oxc-project/runtime/src/helpers/assertThisInitialized.js +0 -5
  66. package/runtime/node_modules/@oxc-project/runtime/src/helpers/asyncGeneratorDelegate.js +0 -24
  67. package/runtime/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js +0 -45
  68. package/runtime/node_modules/@oxc-project/runtime/src/helpers/asyncToGenerator.js +0 -26
  69. package/runtime/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js +0 -5
  70. package/runtime/node_modules/@oxc-project/runtime/src/helpers/callSuper.js +0 -7
  71. package/runtime/node_modules/@oxc-project/runtime/src/helpers/checkInRHS.js +0 -6
  72. package/runtime/node_modules/@oxc-project/runtime/src/helpers/checkPrivateRedeclaration.js +0 -4
  73. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classApplyDescriptorDestructureSet.js +0 -10
  74. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classApplyDescriptorGet.js +0 -4
  75. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classApplyDescriptorSet.js +0 -7
  76. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classCallCheck.js +0 -4
  77. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classCheckPrivateStaticAccess.js +0 -5
  78. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classCheckPrivateStaticFieldDescriptor.js +0 -4
  79. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classExtractFieldDescriptor.js +0 -5
  80. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classNameTDZError.js +0 -4
  81. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldDestructureSet.js +0 -7
  82. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldGet.js +0 -7
  83. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldGet2.js +0 -5
  84. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldInitSpec.js +0 -5
  85. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldLooseBase.js +0 -5
  86. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldLooseKey.js +0 -5
  87. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldSet.js +0 -7
  88. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldSet2.js +0 -5
  89. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateGetter.js +0 -5
  90. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateMethodGet.js +0 -5
  91. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateMethodInitSpec.js +0 -5
  92. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateMethodSet.js +0 -4
  93. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateSetter.js +0 -5
  94. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateFieldDestructureSet.js +0 -7
  95. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateFieldSpecGet.js +0 -7
  96. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateFieldSpecSet.js +0 -7
  97. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateMethodGet.js +0 -5
  98. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateMethodSet.js +0 -4
  99. package/runtime/node_modules/@oxc-project/runtime/src/helpers/construct.js +0 -10
  100. package/runtime/node_modules/@oxc-project/runtime/src/helpers/createClass.js +0 -13
  101. package/runtime/node_modules/@oxc-project/runtime/src/helpers/createForOfIteratorHelper.js +0 -50
  102. package/runtime/node_modules/@oxc-project/runtime/src/helpers/createForOfIteratorHelperLoose.js +0 -19
  103. package/runtime/node_modules/@oxc-project/runtime/src/helpers/createSuper.js +0 -16
  104. package/runtime/node_modules/@oxc-project/runtime/src/helpers/decorate.js +0 -23
  105. package/runtime/node_modules/@oxc-project/runtime/src/helpers/decorateMetadata.js +0 -9
  106. package/runtime/node_modules/@oxc-project/runtime/src/helpers/decorateParam.js +0 -11
  107. package/runtime/node_modules/@oxc-project/runtime/src/helpers/defaults.js +0 -9
  108. package/runtime/node_modules/@oxc-project/runtime/src/helpers/defineAccessor.js +0 -8
  109. package/runtime/node_modules/@oxc-project/runtime/src/helpers/defineEnumerableProperties.js +0 -12
  110. package/runtime/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js +0 -10
  111. package/runtime/node_modules/@oxc-project/runtime/src/helpers/dispose.js +0 -28
  112. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/AwaitValue.js +0 -4
  113. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/OverloadYield.js +0 -4
  114. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecoratedDescriptor.js +0 -9
  115. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs.js +0 -236
  116. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2203.js +0 -184
  117. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2203R.js +0 -191
  118. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2301.js +0 -222
  119. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2305.js +0 -133
  120. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2311.js +0 -124
  121. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/arrayLikeToArray.js +0 -6
  122. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/arrayWithHoles.js +0 -4
  123. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/arrayWithoutHoles.js +0 -5
  124. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/assertClassBrand.js +0 -5
  125. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/assertThisInitialized.js +0 -5
  126. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/asyncGeneratorDelegate.js +0 -24
  127. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/asyncIterator.js +0 -45
  128. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/asyncToGenerator.js +0 -26
  129. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/awaitAsyncGenerator.js +0 -5
  130. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/callSuper.js +0 -7
  131. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/checkInRHS.js +0 -6
  132. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/checkPrivateRedeclaration.js +0 -4
  133. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classApplyDescriptorDestructureSet.js +0 -10
  134. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classApplyDescriptorGet.js +0 -4
  135. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classApplyDescriptorSet.js +0 -7
  136. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classCallCheck.js +0 -4
  137. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classCheckPrivateStaticAccess.js +0 -5
  138. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +0 -4
  139. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classExtractFieldDescriptor.js +0 -5
  140. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classNameTDZError.js +0 -4
  141. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldDestructureSet.js +0 -7
  142. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldGet.js +0 -7
  143. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldGet2.js +0 -5
  144. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldInitSpec.js +0 -5
  145. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldLooseBase.js +0 -5
  146. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldLooseKey.js +0 -5
  147. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldSet.js +0 -7
  148. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldSet2.js +0 -5
  149. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateGetter.js +0 -5
  150. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateMethodGet.js +0 -5
  151. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateMethodInitSpec.js +0 -5
  152. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateMethodSet.js +0 -4
  153. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateSetter.js +0 -5
  154. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateFieldDestructureSet.js +0 -7
  155. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateFieldSpecGet.js +0 -7
  156. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateFieldSpecSet.js +0 -7
  157. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateMethodGet.js +0 -5
  158. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateMethodSet.js +0 -4
  159. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/construct.js +0 -10
  160. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/createClass.js +0 -13
  161. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/createForOfIteratorHelper.js +0 -50
  162. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/createForOfIteratorHelperLoose.js +0 -19
  163. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/createSuper.js +0 -16
  164. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/decorate.js +0 -21
  165. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/decorateMetadata.js +0 -7
  166. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/decorateParam.js +0 -9
  167. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/defaults.js +0 -9
  168. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/defineAccessor.js +0 -8
  169. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/defineEnumerableProperties.js +0 -12
  170. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/defineProperty.js +0 -10
  171. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/dispose.js +0 -28
  172. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/extends.js +0 -10
  173. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/get.js +0 -11
  174. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/getPrototypeOf.js +0 -6
  175. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/identity.js +0 -4
  176. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/importDeferProxy.js +0 -27
  177. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/inherits.js +0 -14
  178. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/inheritsLoose.js +0 -5
  179. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/initializerDefineProperty.js +0 -9
  180. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/initializerWarningHelper.js +0 -4
  181. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/instanceof.js +0 -4
  182. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/interopRequireDefault.js +0 -6
  183. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/interopRequireWildcard.js +0 -27
  184. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/isNativeFunction.js +0 -8
  185. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/isNativeReflectConstruct.js +0 -9
  186. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/iterableToArray.js +0 -4
  187. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/iterableToArrayLimit.js +0 -28
  188. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/jsx.js +0 -22
  189. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/maybeArrayLike.js +0 -9
  190. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/newArrowCheck.js +0 -4
  191. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/nonIterableRest.js +0 -4
  192. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/nonIterableSpread.js +0 -4
  193. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/nullishReceiverError.js +0 -4
  194. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectDestructuringEmpty.js +0 -4
  195. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectSpread.js +0 -14
  196. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectSpread2.js +0 -23
  197. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectWithoutProperties.js +0 -13
  198. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectWithoutPropertiesLoose.js +0 -10
  199. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/package.json +0 -3
  200. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/possibleConstructorReturn.js +0 -8
  201. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/readOnlyError.js +0 -4
  202. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/regeneratorRuntime.js +0 -304
  203. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/set.js +0 -22
  204. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/setFunctionName.js +0 -12
  205. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/setPrototypeOf.js +0 -6
  206. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/skipFirstGeneratorNext.js +0 -7
  207. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/slicedToArray.js +0 -8
  208. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/superPropBase.js +0 -6
  209. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/superPropGet.js +0 -9
  210. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/superPropSet.js +0 -6
  211. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/taggedTemplateLiteral.js +0 -8
  212. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/taggedTemplateLiteralLoose.js +0 -4
  213. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/tdz.js +0 -4
  214. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/temporalRef.js +0 -6
  215. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/temporalUndefined.js +0 -2
  216. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toArray.js +0 -8
  217. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toConsumableArray.js +0 -8
  218. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toPrimitive.js +0 -12
  219. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toPropertyKey.js +0 -7
  220. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toSetter.js +0 -10
  221. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/typeof.js +0 -10
  222. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/unsupportedIterableToArray.js +0 -9
  223. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/using.js +0 -12
  224. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/usingCtx.js +0 -59
  225. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/wrapAsyncGenerator.js +0 -69
  226. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/wrapNativeSuper.js +0 -27
  227. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/wrapRegExp.js +0 -51
  228. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/writeOnlyError.js +0 -4
  229. package/runtime/node_modules/@oxc-project/runtime/src/helpers/extends.js +0 -10
  230. package/runtime/node_modules/@oxc-project/runtime/src/helpers/get.js +0 -11
  231. package/runtime/node_modules/@oxc-project/runtime/src/helpers/getPrototypeOf.js +0 -6
  232. package/runtime/node_modules/@oxc-project/runtime/src/helpers/identity.js +0 -4
  233. package/runtime/node_modules/@oxc-project/runtime/src/helpers/importDeferProxy.js +0 -27
  234. package/runtime/node_modules/@oxc-project/runtime/src/helpers/inherits.js +0 -14
  235. package/runtime/node_modules/@oxc-project/runtime/src/helpers/inheritsLoose.js +0 -5
  236. package/runtime/node_modules/@oxc-project/runtime/src/helpers/initializerDefineProperty.js +0 -9
  237. package/runtime/node_modules/@oxc-project/runtime/src/helpers/initializerWarningHelper.js +0 -4
  238. package/runtime/node_modules/@oxc-project/runtime/src/helpers/instanceof.js +0 -4
  239. package/runtime/node_modules/@oxc-project/runtime/src/helpers/interopRequireDefault.js +0 -6
  240. package/runtime/node_modules/@oxc-project/runtime/src/helpers/interopRequireWildcard.js +0 -27
  241. package/runtime/node_modules/@oxc-project/runtime/src/helpers/isNativeFunction.js +0 -8
  242. package/runtime/node_modules/@oxc-project/runtime/src/helpers/isNativeReflectConstruct.js +0 -9
  243. package/runtime/node_modules/@oxc-project/runtime/src/helpers/iterableToArray.js +0 -4
  244. package/runtime/node_modules/@oxc-project/runtime/src/helpers/iterableToArrayLimit.js +0 -28
  245. package/runtime/node_modules/@oxc-project/runtime/src/helpers/jsx.js +0 -22
  246. package/runtime/node_modules/@oxc-project/runtime/src/helpers/maybeArrayLike.js +0 -9
  247. package/runtime/node_modules/@oxc-project/runtime/src/helpers/newArrowCheck.js +0 -4
  248. package/runtime/node_modules/@oxc-project/runtime/src/helpers/nonIterableRest.js +0 -4
  249. package/runtime/node_modules/@oxc-project/runtime/src/helpers/nonIterableSpread.js +0 -4
  250. package/runtime/node_modules/@oxc-project/runtime/src/helpers/nullishReceiverError.js +0 -4
  251. package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectDestructuringEmpty.js +0 -4
  252. package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectSpread.js +0 -14
  253. package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js +0 -23
  254. package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js +0 -13
  255. package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js +0 -10
  256. package/runtime/node_modules/@oxc-project/runtime/src/helpers/possibleConstructorReturn.js +0 -8
  257. package/runtime/node_modules/@oxc-project/runtime/src/helpers/readOnlyError.js +0 -4
  258. package/runtime/node_modules/@oxc-project/runtime/src/helpers/regeneratorRuntime.js +0 -304
  259. package/runtime/node_modules/@oxc-project/runtime/src/helpers/set.js +0 -22
  260. package/runtime/node_modules/@oxc-project/runtime/src/helpers/setFunctionName.js +0 -12
  261. package/runtime/node_modules/@oxc-project/runtime/src/helpers/setPrototypeOf.js +0 -6
  262. package/runtime/node_modules/@oxc-project/runtime/src/helpers/skipFirstGeneratorNext.js +0 -7
  263. package/runtime/node_modules/@oxc-project/runtime/src/helpers/slicedToArray.js +0 -8
  264. package/runtime/node_modules/@oxc-project/runtime/src/helpers/superPropBase.js +0 -6
  265. package/runtime/node_modules/@oxc-project/runtime/src/helpers/superPropGet.js +0 -9
  266. package/runtime/node_modules/@oxc-project/runtime/src/helpers/superPropSet.js +0 -6
  267. package/runtime/node_modules/@oxc-project/runtime/src/helpers/taggedTemplateLiteral.js +0 -8
  268. package/runtime/node_modules/@oxc-project/runtime/src/helpers/taggedTemplateLiteralLoose.js +0 -4
  269. package/runtime/node_modules/@oxc-project/runtime/src/helpers/tdz.js +0 -4
  270. package/runtime/node_modules/@oxc-project/runtime/src/helpers/temporalRef.js +0 -6
  271. package/runtime/node_modules/@oxc-project/runtime/src/helpers/temporalUndefined.js +0 -2
  272. package/runtime/node_modules/@oxc-project/runtime/src/helpers/toArray.js +0 -8
  273. package/runtime/node_modules/@oxc-project/runtime/src/helpers/toConsumableArray.js +0 -8
  274. package/runtime/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js +0 -12
  275. package/runtime/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js +0 -7
  276. package/runtime/node_modules/@oxc-project/runtime/src/helpers/toSetter.js +0 -10
  277. package/runtime/node_modules/@oxc-project/runtime/src/helpers/typeof.js +0 -10
  278. package/runtime/node_modules/@oxc-project/runtime/src/helpers/unsupportedIterableToArray.js +0 -9
  279. package/runtime/node_modules/@oxc-project/runtime/src/helpers/using.js +0 -12
  280. package/runtime/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js +0 -59
  281. package/runtime/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js +0 -69
  282. package/runtime/node_modules/@oxc-project/runtime/src/helpers/wrapNativeSuper.js +0 -27
  283. package/runtime/node_modules/@oxc-project/runtime/src/helpers/wrapRegExp.js +0 -51
  284. package/runtime/node_modules/@oxc-project/runtime/src/helpers/writeOnlyError.js +0 -4
  285. package/runtime/node_modules/@petamoriken/float16/LICENSE +0 -21
  286. package/runtime/node_modules/@petamoriken/float16/README.md +0 -413
  287. package/runtime/node_modules/@petamoriken/float16/browser/float16.js +0 -1340
  288. package/runtime/node_modules/@petamoriken/float16/browser/float16.mjs +0 -1325
  289. package/runtime/node_modules/@petamoriken/float16/index.d.ts +0 -546
  290. package/runtime/node_modules/@petamoriken/float16/index.v5.6.d.ts +0 -546
  291. package/runtime/node_modules/@petamoriken/float16/index.v5.7.d.ts +0 -555
  292. package/runtime/node_modules/@petamoriken/float16/inspect/node.cjs +0 -25
  293. package/runtime/node_modules/@petamoriken/float16/inspect/node.mjs +0 -23
  294. package/runtime/node_modules/@petamoriken/float16/lib/DataView.cjs +0 -16
  295. package/runtime/node_modules/@petamoriken/float16/lib/Float16Array.cjs +0 -690
  296. package/runtime/node_modules/@petamoriken/float16/lib/_util/arrayIterator.cjs +0 -52
  297. package/runtime/node_modules/@petamoriken/float16/lib/_util/brand.cjs +0 -27
  298. package/runtime/node_modules/@petamoriken/float16/lib/_util/converter.cjs +0 -111
  299. package/runtime/node_modules/@petamoriken/float16/lib/_util/is.cjs +0 -78
  300. package/runtime/node_modules/@petamoriken/float16/lib/_util/messages.cjs +0 -18
  301. package/runtime/node_modules/@petamoriken/float16/lib/_util/primordials.cjs +0 -150
  302. package/runtime/node_modules/@petamoriken/float16/lib/_util/spec.cjs +0 -84
  303. package/runtime/node_modules/@petamoriken/float16/lib/f16round.cjs +0 -10
  304. package/runtime/node_modules/@petamoriken/float16/lib/index.cjs +0 -16
  305. package/runtime/node_modules/@petamoriken/float16/lib/isTypedArray.cjs +0 -11
  306. package/runtime/node_modules/@petamoriken/float16/package.json +0 -115
  307. package/runtime/node_modules/@petamoriken/float16/src/DataView.mjs +0 -35
  308. package/runtime/node_modules/@petamoriken/float16/src/Float16Array.mjs +0 -1194
  309. package/runtime/node_modules/@petamoriken/float16/src/_util/arrayIterator.mjs +0 -86
  310. package/runtime/node_modules/@petamoriken/float16/src/_util/brand.mjs +0 -31
  311. package/runtime/node_modules/@petamoriken/float16/src/_util/converter.mjs +0 -173
  312. package/runtime/node_modules/@petamoriken/float16/src/_util/is.mjs +0 -151
  313. package/runtime/node_modules/@petamoriken/float16/src/_util/messages.mjs +0 -22
  314. package/runtime/node_modules/@petamoriken/float16/src/_util/primordials.mjs +0 -254
  315. package/runtime/node_modules/@petamoriken/float16/src/_util/spec.mjs +0 -137
  316. package/runtime/node_modules/@petamoriken/float16/src/f16round.mjs +0 -10
  317. package/runtime/node_modules/@petamoriken/float16/src/index.mjs +0 -7
  318. package/runtime/node_modules/@petamoriken/float16/src/isTypedArray.mjs +0 -10
  319. package/runtime/node_modules/jsbi/LICENSE +0 -176
  320. package/runtime/node_modules/jsbi/README.md +0 -173
  321. package/runtime/node_modules/jsbi/dist/jsbi-cjs.js +0 -2
  322. package/runtime/node_modules/jsbi/dist/jsbi-cjs.js.map +0 -1
  323. package/runtime/node_modules/jsbi/dist/jsbi-umd.js +0 -2
  324. package/runtime/node_modules/jsbi/dist/jsbi-umd.js.map +0 -1
  325. package/runtime/node_modules/jsbi/dist/jsbi.mjs +0 -2
  326. package/runtime/node_modules/jsbi/dist/jsbi.mjs.map +0 -1
  327. package/runtime/node_modules/jsbi/jsbi.d.ts +0 -43
  328. package/runtime/node_modules/jsbi/package.json +0 -35
  329. package/runtime/node_modules/urlpattern-polyfill/LICENSE +0 -19
  330. package/runtime/node_modules/urlpattern-polyfill/README.md +0 -242
  331. package/runtime/node_modules/urlpattern-polyfill/dist/index.d.ts +0 -9
  332. package/runtime/node_modules/urlpattern-polyfill/dist/types.d.ts +0 -49
  333. package/runtime/node_modules/urlpattern-polyfill/dist/urlpattern.cjs +0 -1
  334. package/runtime/node_modules/urlpattern-polyfill/dist/urlpattern.js +0 -1
  335. package/runtime/node_modules/urlpattern-polyfill/index.cjs +0 -7
  336. package/runtime/node_modules/urlpattern-polyfill/index.js +0 -7
  337. package/runtime/node_modules/urlpattern-polyfill/package.json +0 -149
  338. package/runtime/pnp-bin-run.cjs +0 -91
  339. package/runtime/pnp-util.cjs +0 -62
  340. package/runtime/polyfills.cjs +0 -278
  341. package/runtime/preload-async-hooks.mjs +0 -110
  342. package/runtime/preload-common.cjs +0 -1096
  343. package/runtime/preload.cjs +0 -313
  344. package/runtime/preload.mjs +0 -149
  345. package/runtime/transform-core.mjs +0 -756
  346. package/runtime/version.mjs +0 -12
  347. package/runtime/worker-blob-url.cjs +0 -116
  348. package/runtime/worker-polyfill.mjs +0 -541
@@ -1,62 +0,0 @@
1
- // Shared Yarn PnP ESM-resolution helper, used by BOTH realms that resolve ESM
2
- // imports: the main-thread preload (preload-common.cjs, fast tier) and the
3
- // compat-tier loader worker (preload-async-hooks.mjs). CJS resolution does NOT live
4
- // here — it just strips the `conditions` option and delegates to PnP's own patched
5
- // `_resolveFilename` (see installCjsRequireHooks). ESM is different: PnP does not
6
- // patch the ESM loader, so `import` of a PnP dep must be resolved explicitly, AND it
7
- // must pass the *import* conditions — otherwise a dual package (separate `import` /
8
- // `require` exports) resolves to its CJS build and `import { x }` fails. So we go
9
- // through `pnpapi.resolveRequest` (the only PnP resolver that accepts conditions).
10
- const { readFileSync } = require("node:fs");
11
- const { dirname, join, sep } = require("node:path");
12
- const { fileURLToPath, pathToFileURL } = require("node:url");
13
-
14
- // A directory issuer for resolveRequest: cwd with a trailing separator so PnP treats
15
- // it as a directory. `path.sep` (not a literal "/") keeps it correct on Windows.
16
- const cwdIssuer = () => process.cwd() + sep;
17
-
18
- // Module format of a resolved file. `.mjs`/`.cjs` are unambiguous; a `.js` file
19
- // inherits its nearest package's `type`, read by walking up to package.json via the
20
- // zip-patched `fs` (`.pnp.cjs` patches `fs`, so reads inside `.zip` work in both
21
- // realms). No pnpapi needed. Defaults to "commonjs" if detection fails.
22
- function formatOf(resolvedPath) {
23
- if (resolvedPath.endsWith(".mjs")) return "module";
24
- if (resolvedPath.endsWith(".cjs")) return "commonjs";
25
- let dir = dirname(resolvedPath);
26
- for (let i = 0; i < 16; i++) {
27
- try {
28
- const pj = JSON.parse(readFileSync(join(dir, "package.json"), "utf8"));
29
- return pj.type === "module" ? "module" : "commonjs";
30
- } catch {}
31
- const up = dirname(dir);
32
- if (up === dir) break;
33
- dir = up;
34
- }
35
- return "commonjs";
36
- }
37
-
38
- // Resolve a `specifier` through PnP for a hook `context`, applying the correct
39
- // exports conditions so a dual package resolves to the right build. Returns a Node
40
- // resolve-hook result `{ url, format, shortCircuit }`, or `null` if PnP can't resolve
41
- // it (the caller then delegates). Throwing is also a fall-through signal.
42
- //
43
- // Conditions: trust `context.conditions` when Node populates it (Node 24+/26 for both
44
- // import and require; Node 22.15 for import). But Node 22.15 hands the resolve hook
45
- // an EMPTY `conditions` for a `require()` — so when it's empty, infer the side from
46
- // `importAttributes` (`undefined` ⇒ a require, an object ⇒ an import) and apply the
47
- // matching default. Without this a 22.15 `require()` of a dual package would wrongly
48
- // get the `import` build.
49
- function pnpResolveEsm(api, specifier, context) {
50
- const parentURL = context && context.parentURL;
51
- const issuer = parentURL ? fileURLToPath(parentURL) : cwdIssuer();
52
- let conds = context && context.conditions;
53
- if (!conds || !conds.length) {
54
- const isImport = !!context && context.importAttributes !== undefined;
55
- conds = isImport ? ["node", "import"] : ["node", "require"];
56
- }
57
- const resolved = api.resolveRequest(specifier, issuer, { conditions: new Set(conds) });
58
- if (!resolved) return null;
59
- return { url: pathToFileURL(resolved).href, format: formatOf(resolved), shortCircuit: true };
60
- }
61
-
62
- module.exports = { pnpResolveEsm, cwdIssuer };
@@ -1,278 +0,0 @@
1
- // Polyfill preloads for Nub v0.1 — the shared implementation for BOTH tiers.
2
- //
3
- // This is a CommonJS module with ZERO top-level await so the fast tier
4
- // (Node 22.15+, `--require` CJS preload) can `require()` it synchronously: a
5
- // `require()`-loaded preload keeps Node's synchronous `Module.runMain` CJS entry
6
- // path (top-level `executionAsyncId()===1`, sync exception origin), which the old
7
- // `--import` ESM preload broke (R1). The compat tier (`--import` preload.mjs)
8
- // reuses this same logic via the `installSyncPolyfills` export, then loads the two
9
- // ESM side-effect modules (worker-polyfill, navigator-locks) with dynamic
10
- // `import()` — on the < 22.15 floor `require()` of an ES module is unreliable.
11
- //
12
- // All polyfills feature-detect and bow out if the global is already present.
13
- //
14
- // Node 22.15+ (our floor) already has: navigator, navigator.locks,
15
- // navigator.hardwareConcurrency, WebSocket. No polyfills needed.
16
- //
17
- // Node 24+ adds: URLPattern, RegExp.escape, Error.isError, Promise.try.
18
- // We polyfill those on Node 22.x only.
19
- //
20
- // No Node version ships: Temporal, reportError, browser-shape Worker.
21
- // These need polyfills on all supported versions. (Temporal is a lazy global
22
- // installed by the preload entry, NOT here — see preload.cjs / preload.mjs.)
23
-
24
- const { createRequire } = require("node:module");
25
- const __require = createRequire(__filename);
26
-
27
- // Install every globalThis/prototype polyfill that doesn't depend on loading the
28
- // ESM side-effect modules (worker-polyfill, navigator-locks). Synchronous and
29
- // idempotent — safe to call once per realm. `preloaded` carries the CJS-required
30
- // polyfill packages the preload entry stashed (urlpattern, float16), since the
31
- // resolve hook would otherwise clobber a later import of them.
32
- function installSyncPolyfills(preloaded) {
33
- preloaded = preloaded || {};
34
-
35
- // ── Web Storage: neutralize the throwing localStorage getter ────────
36
- // When nub injects `--experimental-webstorage` on the 22.4–24 band AND the user
37
- // did NOT pass `--localstorage-file`, Node installs a `localStorage` global that
38
- // is a getter THROWING `ERR_INVALID_ARG_VALUE` on ANY access — even
39
- // `typeof localStorage` throws, so feature-detection is impossible and the throw
40
- // can surface before user code expects it. The spawn layer signals this case via
41
- // the internal `__NUB_NEUTRALIZE_LOCALSTORAGE` env var (set iff unflagged ∧
42
- // no user file). Replace the throwing getter with a plain `undefined` value —
43
- // matching Node 25+'s clean shape — so `typeof localStorage === "undefined"` is
44
- // true and no throw occurs; `sessionStorage`, which needs only the flag, keeps
45
- // working. This runs in the preload BEFORE any user code, so the throwing getter
46
- // is never observed. When the user passes `--localstorage-file`, the env var is
47
- // absent and `localStorage` works normally (we do not touch it). We deliberately
48
- // KEEP the env var set so it inherits to the whole process subtree: a `node`- or
49
- // `nub`-spawned grandchild re-inherits the webstorage flag via NODE_OPTIONS and
50
- // would otherwise re-install the throwing getter with no neutralize signal. It's
51
- // an internal `__NUB_*` plumbing var that's explicitly fine to leak to children.
52
- // Neutralization is idempotent — a descendant re-running this preload with the
53
- // var still set just re-defines `localStorage` to undefined again, which is
54
- // harmless. The descriptor is configurable+writable so user code can still assign
55
- // its own `localStorage`.
56
- if (process.env.__NUB_NEUTRALIZE_LOCALSTORAGE) {
57
- try {
58
- Object.defineProperty(globalThis, "localStorage", {
59
- value: undefined,
60
- configurable: true,
61
- writable: true,
62
- enumerable: false,
63
- });
64
- } catch { /* descriptor non-configurable on this runtime: leave Node's behavior */ }
65
- }
66
-
67
- // ── reportError (WinterTC min-common-API, not in any Node) ──────────
68
- // Defined NON-ENUMERABLE so it is invisible to `Object.keys(globalThis)` /
69
- // for-in / structured-clone-of-keys — that invisibility-to-enumeration IS the
70
- // additive contract: code written for vanilla Node must not observe nub's
71
- // injected globals when it enumerates the global object. Node defines its own
72
- // globals non-enumerably for the same reason. Kept writable+configurable so
73
- // user code can still override or delete it, matching Node's global descriptors.
74
- if (typeof globalThis.reportError !== "function") {
75
- Object.defineProperty(globalThis, "reportError", {
76
- value: (err) => {
77
- queueMicrotask(() => {
78
- throw err;
79
- });
80
- },
81
- enumerable: false,
82
- writable: true,
83
- configurable: true,
84
- });
85
- }
86
-
87
- // ── File (global on Node 20+, missing on the 18.x compat floor) ─────
88
- // Node exposes the WHATWG `File` as a global from Node 20; on 18.13–18.x it
89
- // exists only as `node:buffer`'s `File` export. Backfill the global from there
90
- // so worker/messaging code that constructs `new File(...)` works down to the
91
- // floor (polyfill-all-the-way-down). Identity is preserved (same constructor as
92
- // `node:buffer`), so `instanceof` and undici's webidl brand checks hold. Blob is
93
- // already global on 18.x, but the same backfill guards it for completeness.
94
- // Non-enumerable to match Node's own global descriptors (the additive contract:
95
- // invisible to global enumeration).
96
- //
97
- // Node 18 emits a one-time `ExperimentalWarning: buffer.File …` on the FIRST
98
- // `new File(...)` (the constructor, NOT the property read). Without nub the floor
99
- // simply has no `File` global, so backfilling it would newly surface that warning
100
- // when user code first constructs a File. To keep the floor backfill silent we
101
- // force one throwaway construction INSIDE a suppression window: that consumes
102
- // Node's once-per-feature guard (the warning is dropped here) so the user's later
103
- // `new File(...)` is silent.
104
- if (typeof globalThis.File === "undefined" || typeof globalThis.Blob === "undefined") {
105
- const origEmitWarning = process.emitWarning;
106
- process.emitWarning = function (warning, ...rest) {
107
- const opt = rest[0];
108
- const type = opt && typeof opt === "object" ? opt.type : opt;
109
- const msg = typeof warning === "string" ? warning : (warning && warning.message) || "";
110
- if (type === "ExperimentalWarning" && /buffer\.(File|Blob)/.test(msg)) return;
111
- return origEmitWarning.call(this, warning, ...rest);
112
- };
113
- try {
114
- const buffer = require("node:buffer");
115
- const sampleArgs = { File: [[], ""], Blob: [[]] };
116
- for (const name of ["File", "Blob"]) {
117
- const Ctor = buffer[name];
118
- if (typeof globalThis[name] === "undefined" && typeof Ctor === "function") {
119
- Object.defineProperty(globalThis, name, {
120
- value: Ctor,
121
- enumerable: false,
122
- writable: true,
123
- configurable: true,
124
- });
125
- // Trip (and suppress) the experimental-feature warning now, so user code
126
- // never sees it.
127
- try { new Ctor(...sampleArgs[name]); } catch { /* construction shape varies; the warning fires regardless */ }
128
- }
129
- }
130
- } finally {
131
- process.emitWarning = origEmitWarning;
132
- }
133
- }
134
-
135
- // ── MessageEvent.ports → frozen array (WHATWG read-only requirement) ─
136
- // The spec mandates `MessageEvent.ports` be a read-only (frozen) array; Node's
137
- // native MessageEvent returns a mutable array. Wrap the configurable prototype
138
- // getter so every read yields a frozen array, for both a native MessageChannel's
139
- // delivery and nub's worker-side MessageEvents. Idempotent (the wrapper is marked
140
- // so a re-run in the same realm doesn't double-wrap).
141
- if (typeof globalThis.MessageEvent === "function") {
142
- const proto = globalThis.MessageEvent.prototype;
143
- const desc = Object.getOwnPropertyDescriptor(proto, "ports");
144
- if (desc && typeof desc.get === "function" && desc.configurable && !desc.get.__nubFreezesPorts) {
145
- const origGet = desc.get;
146
- const get = function () {
147
- const ports = origGet.call(this);
148
- return Array.isArray(ports) ? Object.freeze(ports) : ports;
149
- };
150
- get.__nubFreezesPorts = true;
151
- Object.defineProperty(proto, "ports", { ...desc, get });
152
- }
153
- }
154
-
155
- // ── URLPattern (native on Node 24+, missing on 22.x) ───────────────
156
- if (typeof globalThis.URLPattern === "undefined") {
157
- const mod = preloaded.urlpattern;
158
- const URLPattern = mod?.URLPattern;
159
- if (URLPattern) globalThis.URLPattern = URLPattern;
160
- }
161
-
162
- // Temporal (in no Node version) is installed as a LAZY global by the preload
163
- // entry after this runs — see preload.cjs / preload.mjs (A37). Touching
164
- // globalThis.Temporal here would defeat that laziness, so we must not.
165
-
166
- // ── Stage 4 polyfills (native on Node 24+, missing on 22.x) ────────
167
-
168
- // RegExp.escape — spec-faithful port of the TC39 proposal (native on Node 24+),
169
- // so the 22.x floor behaves byte-for-byte like native: a leading digit/letter is
170
- // control-escaped, syntax chars are backslashed, control chars use \t\n\v\f\r, and
171
- // the "other punctuators" + whitespace set is hex-escaped. Verified byte-identical
172
- // to Node's native RegExp.escape across every ASCII char + leading/whitespace/
173
- // astral cases (so a concatenated `escape(s)` is safe too, not just
174
- // `new RegExp(escape(s))`). The earlier reduced-fidelity version only escaped the
175
- // syntax chars.
176
- if (typeof RegExp.escape !== "function") {
177
- const SYNTAX = new Set(["^", "$", "\\", ".", "*", "+", "?", "(", ")", "[", "]", "{", "}", "|", "/"]);
178
- const CONTROL = { "\t": "\\t", "\n": "\\n", "\v": "\\v", "\f": "\\f", "\r": "\\r" };
179
- // ASCII "other punctuators" the spec escapes by code, plus SPACE.
180
- const OTHER = new Set([..." ,-=<>#&!%:;@~'\"`"]);
181
- const isWhiteSpace = (cp) =>
182
- cp === 0x09 || cp === 0x0a || cp === 0x0b || cp === 0x0c || cp === 0x0d ||
183
- cp === 0x20 || cp === 0xa0 || cp === 0x1680 || (cp >= 0x2000 && cp <= 0x200a) ||
184
- cp === 0x2028 || cp === 0x2029 || cp === 0x202f || cp === 0x205f || cp === 0x3000 ||
185
- cp === 0xfeff;
186
- const hexEscape = (cp) => {
187
- if (cp <= 0xff) return "\\x" + cp.toString(16).padStart(2, "0");
188
- if (cp <= 0xffff) return "\\u" + cp.toString(16).padStart(4, "0");
189
- const h = cp - 0x10000;
190
- const hi = 0xd800 + (h >> 10);
191
- const lo = 0xdc00 + (h & 0x3ff);
192
- return "\\u" + hi.toString(16).padStart(4, "0") + "\\u" + lo.toString(16).padStart(4, "0");
193
- };
194
- const encode = (ch, cp) =>
195
- SYNTAX.has(ch)
196
- ? "\\" + ch
197
- : CONTROL[ch] ?? ((OTHER.has(ch) || isWhiteSpace(cp)) ? hexEscape(cp) : ch);
198
- RegExp.escape = (s) => {
199
- if (typeof s !== "string") throw new TypeError("RegExp.escape argument must be a string");
200
- const cps = [...s]; // iterate by code point (astral-safe)
201
- let out = "";
202
- for (let i = 0; i < cps.length; i++) {
203
- const ch = cps[i];
204
- const cp = ch.codePointAt(0);
205
- // A leading decimal-digit/ASCII-letter is control-escaped so a preceding `\`
206
- // in a concatenated pattern can't form an escape sequence.
207
- if (i === 0 && ((cp >= 0x30 && cp <= 0x39) || (cp >= 0x41 && cp <= 0x5a) || (cp >= 0x61 && cp <= 0x7a))) {
208
- out += "\\x" + cp.toString(16).padStart(2, "0");
209
- } else {
210
- out += encode(ch, cp);
211
- }
212
- }
213
- return out;
214
- };
215
- }
216
-
217
- // Error.isError (~95% fidelity — cross-realm internal-slot unreachable)
218
- if (typeof Error.isError !== "function") {
219
- Error.isError = (value) => {
220
- if (value == null || typeof value !== "object") return false;
221
- return value instanceof Error;
222
- };
223
- }
224
-
225
- // Promise.try
226
- if (typeof Promise.try !== "function") {
227
- Promise.try = (fn, ...args) => {
228
- return new Promise((resolve) => resolve(fn(...args)));
229
- };
230
- }
231
-
232
- // Float16Array (TC39 Stage 4, native on Node 24+; absent on our 22.x floor).
233
- // Installed from the spec-compliant @petamoriken/float16 polyfill (vendored,
234
- // preloaded by the preload entry). It provides the full TypedArray method
235
- // surface (map/filter/subarray/set/reduce/…) and correct round-to-nearest-even,
236
- // including subnormals — unlike the prior hand-rolled Proxy shim, which had
237
- // ~30 methods missing and truncating/denormal-flushing conversion.
238
- //
239
- // INHERENT userland limitation (not fixable by any JS polyfill): a polyfilled
240
- // Float16Array isn't recognized by `ArrayBuffer.isView()` (it has no V8 internal
241
- // [[TypedArrayName]] slot). Code needing that check should use the polyfill's
242
- // `isFloat16Array`. See wiki/runtime/float16array-polyfill.md.
243
- if (typeof globalThis.Float16Array === "undefined") {
244
- const f16 = preloaded.float16;
245
- if (f16?.Float16Array) {
246
- globalThis.Float16Array = f16.Float16Array;
247
-
248
- if (typeof DataView.prototype.getFloat16 !== "function") {
249
- DataView.prototype.getFloat16 = function (offset, littleEndian) {
250
- return f16.getFloat16(this, offset, littleEndian);
251
- };
252
- DataView.prototype.setFloat16 = function (offset, value, littleEndian) {
253
- f16.setFloat16(this, offset, value, littleEndian);
254
- };
255
- }
256
-
257
- if (typeof Math.f16round !== "function") {
258
- Math.f16round = f16.f16round;
259
- }
260
- }
261
- }
262
- }
263
-
264
- // Load the two ESM side-effect modules — Web Locks (navigator.locks) and the
265
- // browser-shape Worker global — synchronously via `require()`. Valid on the fast
266
- // tier ONLY (Node 22.15+), where require(esm) of these side-effecting ES modules
267
- // works (verified). The compat tier must NOT call this; it loads them with
268
- // dynamic `import()` from preload.mjs instead.
269
- function installEsmPolyfillsSync() {
270
- // ── navigator.locks (native on Node 24+, missing on 22.x) ──────────
271
- if (typeof globalThis.navigator?.locks === "undefined") {
272
- __require("./navigator-locks.mjs");
273
- }
274
- // ── Worker (browser-shape global, not in any Node) ──────────────────
275
- __require("./worker-polyfill.mjs");
276
- }
277
-
278
- module.exports = { installSyncPolyfills, installEsmPolyfillsSync };
@@ -1,110 +0,0 @@
1
- // Nub compat-tier hooks module — Node 18.19 through 22.14.
2
- //
3
- // On Node 22.15+, runtime/preload.mjs registers its hooks synchronously via
4
- // `module.registerHooks({ resolve, load })`. That API didn't exist before 22.15,
5
- // so on 18.19..22.14 the main-thread bootstrap calls
6
- // `module.register('./preload-async-hooks.mjs', parentURL)` instead, which loads
7
- // THIS file into a dedicated loader worker thread and uses its async
8
- // `resolve` / `load` exports. (CommonJS `require()` is augmented separately, on
9
- // the main thread, by preload.mjs's installCjsRequireHooks — `module.register`
10
- // hooks the ESM loader only.)
11
- //
12
- // There is NO logic of its own here: resolution + transpilation come verbatim
13
- // from runtime/transform-core.mjs, the single source of truth shared with the
14
- // fast path. The two tiers can no longer drift — the only difference is the
15
- // async function signatures Node's loader-worker protocol requires (it awaits
16
- // the returned values, so returning the core's synchronous results is fine). The
17
- // worker injects no watch hooks (watch IPC is main-thread only), so the core's
18
- // dependency reporters stay no-ops here, exactly as before the extraction.
19
-
20
- // Floor bootstrap (Node < 22.3/20.16/18.20.4): threads node:module's createRequire
21
- // into transform-core via a MODULE-SCOPE SETTER — never globalThis (brand boundary) —
22
- // because transform-core has no process.getBuiltinModule on the floor. floor-builtin
23
- // calls transform-core's setter during its own evaluation, so importing it FIRST
24
- // (ESM evaluates imports in source order) means the value is threaded before any hook
25
- // in this loader worker fires. No-op where getBuiltinModule exists. This worker runs
26
- // OFF any user loader chain, so floor-builtin's static node:module import never leaks
27
- // — see floor-builtin.mjs. (worker-polyfill is NOT loaded here: this is the dedicated
28
- // loader worker, not a user realm, so it installs no browser globals.)
29
- import "./floor-builtin.mjs";
30
- import {
31
- TRANSPILE_EXTS, PLAIN_JS_EXTS, DATA_EXTS,
32
- extname, resolveSpec, loadTranspile, maybeTranspilePlainJs, loadData, isNodeModules,
33
- } from "./transform-core.mjs";
34
- import { createRequire, isBuiltin } from "node:module";
35
- import { existsSync } from "node:fs";
36
- import { join, dirname } from "node:path";
37
- import { pnpResolveEsm } from "./pnp-util.cjs";
38
-
39
- // Yarn PnP handle for this loader worker. The worker runs in its own thread where
40
- // `.pnp.cjs` was never --require'd, so neither the `pnpapi` builtin nor
41
- // `module.findPnpApi` is installed here (the main-thread preload uses findPnpApi; it
42
- // can't reach across to this realm). So bootstrap PnP for this thread directly: walk
43
- // up from cwd to the `.pnp.cjs` Rust located and require it by absolute path — that
44
- // returns the pnpapi object. nub then resolves PnP specifiers via
45
- // `pnpapi.resolveRequest` (its public, conditions-free resolver), mirroring the main
46
- // thread, so there is no need to register Yarn's `.pnp.loader.mjs` (which deadlocks
47
- // against the fast tier's `module.registerHooks`). `null` when not a PnP run.
48
- const __pnp = (() => {
49
- if (!process.versions.pnp) return null;
50
- const req = createRequire(import.meta.url);
51
- try {
52
- let dir = process.cwd();
53
- for (;;) {
54
- const candidate = join(dir, ".pnp.cjs");
55
- if (existsSync(candidate)) return req(candidate);
56
- const parent = dirname(dir);
57
- if (parent === dir) return null;
58
- dir = parent;
59
- }
60
- } catch { return null; }
61
- })();
62
-
63
- // Node calls this once per worker when the main thread invokes
64
- // `module.register(url, parentURL, { data })`. We accept and ignore the payload
65
- // so future main-thread → worker plumbing is non-breaking. Returning a Promise
66
- // lets the main thread `await register(...)`.
67
- export async function initialize(_data) {}
68
-
69
- // ── Resolve hook ────────────────────────────────────────────────────
70
- export async function resolve(specifier, context, nextResolve) {
71
- const r = resolveSpec(specifier, context.parentURL);
72
- if (r) return r;
73
- // Yarn PnP: resolve deps through PnP's own resolver — identical to the fast tier,
74
- // via the shared helper (resolveRequest with the import conditions + format
75
- // detection), so dual packages resolve to their `import` build.
76
- if (__pnp && !isBuiltin(specifier) && !specifier.startsWith("node:")) {
77
- try {
78
- const res = pnpResolveEsm(__pnp, specifier, context);
79
- if (res) return res;
80
- } catch { /* fall through to Node's resolver */ }
81
- }
82
- return nextResolve(specifier, context);
83
- }
84
-
85
- // ── Load hook ───────────────────────────────────────────────────────
86
- export async function load(url, context, nextLoad) {
87
- const ext = extname(url);
88
- // node_modules deps are NEVER transpiled (the byte-parity boundary). This guard is
89
- // make-or-break now that TRANSPILE_EXTS includes `.js`/`.mjs`/`.cjs`: without it,
90
- // the compat tier would route every dependency `.js` through oxc. (loadTranspile's
91
- // own skip-gate handles the project-source no-op case; this keeps deps off the
92
- // pipeline entirely.) Mirrors the fast-tier sync hook's `!isNodeModules` gate.
93
- if (TRANSPILE_EXTS.has(ext) && !isNodeModules(url)) {
94
- // Module-format + decorator detection inside loadTranspile is a synchronous
95
- // native call (nub's addon), available on every supported Node — no parser
96
- // warm-up needed (the old `await ensureParser()` for the ESM-only oxc-parser
97
- // is gone with the package).
98
- return loadTranspile(url, ext);
99
- }
100
- // Project-source plain JS: transpile ONLY when it carries transformable syntax. A
101
- // no-op plain-JS file returns null and falls through to `nextLoad` — Node's own
102
- // loader handles it byte-identically, preserving every native CJS/ESM behavior.
103
- // node_modules excluded (the byte-parity boundary).
104
- if (PLAIN_JS_EXTS.has(ext) && !isNodeModules(url)) {
105
- const r = maybeTranspilePlainJs(url, ext);
106
- if (r) return r;
107
- }
108
- if (ext in DATA_EXTS) return loadData(url, ext);
109
- return nextLoad(url, context);
110
- }