@nubjs/nub-linux-arm64 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/nub +0 -0
- package/package.json +1 -1
- package/runtime/addons/nub-native.node +0 -0
- package/runtime/node_modules/@js-temporal/polyfill/CHANGELOG.md +453 -0
- package/runtime/node_modules/@js-temporal/polyfill/LICENSE +13 -0
- package/runtime/node_modules/@js-temporal/polyfill/README.md +90 -0
- package/runtime/node_modules/@js-temporal/polyfill/dist/index.cjs +2 -0
- package/runtime/node_modules/@js-temporal/polyfill/dist/index.cjs.map +1 -0
- package/runtime/node_modules/@js-temporal/polyfill/dist/index.esm.js +2 -0
- package/runtime/node_modules/@js-temporal/polyfill/dist/index.esm.js.map +1 -0
- package/runtime/node_modules/@js-temporal/polyfill/dist/index.umd.js +2 -0
- package/runtime/node_modules/@js-temporal/polyfill/dist/index.umd.js.map +1 -0
- package/runtime/node_modules/@js-temporal/polyfill/index.d.cts +1215 -0
- package/runtime/node_modules/@js-temporal/polyfill/index.d.ts +1215 -0
- package/runtime/node_modules/@js-temporal/polyfill/lib/assert.ts +8 -0
- package/runtime/node_modules/@js-temporal/polyfill/lib/bigintmath.ts +39 -0
- package/runtime/node_modules/@js-temporal/polyfill/lib/calendar.ts +2424 -0
- package/runtime/node_modules/@js-temporal/polyfill/lib/debug.ts +7 -0
- package/runtime/node_modules/@js-temporal/polyfill/lib/duration.ts +438 -0
- package/runtime/node_modules/@js-temporal/polyfill/lib/durationformat.d.ts +93 -0
- package/runtime/node_modules/@js-temporal/polyfill/lib/ecmascript.ts +4973 -0
- package/runtime/node_modules/@js-temporal/polyfill/lib/index.ts +34 -0
- package/runtime/node_modules/@js-temporal/polyfill/lib/init.ts +43 -0
- package/runtime/node_modules/@js-temporal/polyfill/lib/instant.ts +138 -0
- package/runtime/node_modules/@js-temporal/polyfill/lib/internaltypes.d.ts +242 -0
- package/runtime/node_modules/@js-temporal/polyfill/lib/intl.ts +758 -0
- package/runtime/node_modules/@js-temporal/polyfill/lib/intrinsicclass.ts +162 -0
- package/runtime/node_modules/@js-temporal/polyfill/lib/legacydate.ts +17 -0
- package/runtime/node_modules/@js-temporal/polyfill/lib/math.ts +96 -0
- package/runtime/node_modules/@js-temporal/polyfill/lib/now.ts +48 -0
- package/runtime/node_modules/@js-temporal/polyfill/lib/plaindate.ts +212 -0
- package/runtime/node_modules/@js-temporal/polyfill/lib/plaindatetime.ts +274 -0
- package/runtime/node_modules/@js-temporal/polyfill/lib/plainmonthday.ts +110 -0
- package/runtime/node_modules/@js-temporal/polyfill/lib/plaintime.ts +154 -0
- package/runtime/node_modules/@js-temporal/polyfill/lib/plainyearmonth.ts +157 -0
- package/runtime/node_modules/@js-temporal/polyfill/lib/regex.ts +59 -0
- package/runtime/node_modules/@js-temporal/polyfill/lib/slots.ts +341 -0
- package/runtime/node_modules/@js-temporal/polyfill/lib/temporal.ts +10 -0
- package/runtime/node_modules/@js-temporal/polyfill/lib/timeduration.ts +149 -0
- package/runtime/node_modules/@js-temporal/polyfill/lib/zoneddatetime.ts +492 -0
- package/runtime/node_modules/@js-temporal/polyfill/package.json +143 -0
- package/runtime/node_modules/@oxc-parser/binding-linux-x64-gnu/README.md +3 -0
- package/runtime/node_modules/@oxc-parser/binding-linux-x64-gnu/package.json +42 -0
- package/runtime/node_modules/@oxc-parser/binding-linux-x64-gnu/parser.linux-x64-gnu.node +0 -0
- package/runtime/node_modules/@oxc-project/runtime/CHANGELOG.md +88 -0
- package/runtime/node_modules/@oxc-project/runtime/LICENSE +22 -0
- package/runtime/node_modules/@oxc-project/runtime/README.md +5 -0
- package/runtime/node_modules/@oxc-project/runtime/package.json +1066 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/AwaitValue.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecoratedDescriptor.js +9 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs.js +236 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2203.js +184 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2203R.js +191 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2301.js +222 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2305.js +133 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2311.js +124 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/arrayLikeToArray.js +6 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/arrayWithHoles.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/arrayWithoutHoles.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/assertClassBrand.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/assertThisInitialized.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/asyncGeneratorDelegate.js +24 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js +45 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/asyncToGenerator.js +26 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/callSuper.js +7 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/checkInRHS.js +6 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/checkPrivateRedeclaration.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classApplyDescriptorDestructureSet.js +10 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classApplyDescriptorGet.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classApplyDescriptorSet.js +7 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classCallCheck.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classCheckPrivateStaticAccess.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classCheckPrivateStaticFieldDescriptor.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classExtractFieldDescriptor.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classNameTDZError.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldDestructureSet.js +7 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldGet.js +7 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldGet2.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldInitSpec.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldLooseBase.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldLooseKey.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldSet.js +7 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldSet2.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateGetter.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateMethodGet.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateMethodInitSpec.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateMethodSet.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateSetter.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateFieldDestructureSet.js +7 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateFieldSpecGet.js +7 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateFieldSpecSet.js +7 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateMethodGet.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateMethodSet.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/construct.js +10 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/createClass.js +13 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/createForOfIteratorHelper.js +50 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/createForOfIteratorHelperLoose.js +19 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/createSuper.js +16 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/decorate.js +23 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/decorateMetadata.js +9 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/decorateParam.js +11 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/defaults.js +9 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/defineAccessor.js +8 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/defineEnumerableProperties.js +12 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js +10 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/dispose.js +28 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/AwaitValue.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/OverloadYield.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecoratedDescriptor.js +9 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs.js +236 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2203.js +184 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2203R.js +191 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2301.js +222 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2305.js +133 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2311.js +124 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/arrayLikeToArray.js +6 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/arrayWithHoles.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/arrayWithoutHoles.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/assertClassBrand.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/assertThisInitialized.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/asyncGeneratorDelegate.js +24 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/asyncIterator.js +45 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/asyncToGenerator.js +26 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/awaitAsyncGenerator.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/callSuper.js +7 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/checkInRHS.js +6 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/checkPrivateRedeclaration.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classApplyDescriptorDestructureSet.js +10 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classApplyDescriptorGet.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classApplyDescriptorSet.js +7 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classCallCheck.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classCheckPrivateStaticAccess.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classExtractFieldDescriptor.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classNameTDZError.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldDestructureSet.js +7 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldGet.js +7 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldGet2.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldInitSpec.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldLooseBase.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldLooseKey.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldSet.js +7 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldSet2.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateGetter.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateMethodGet.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateMethodInitSpec.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateMethodSet.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateSetter.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateFieldDestructureSet.js +7 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateFieldSpecGet.js +7 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateFieldSpecSet.js +7 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateMethodGet.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateMethodSet.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/construct.js +10 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/createClass.js +13 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/createForOfIteratorHelper.js +50 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/createForOfIteratorHelperLoose.js +19 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/createSuper.js +16 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/decorate.js +21 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/decorateMetadata.js +7 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/decorateParam.js +9 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/defaults.js +9 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/defineAccessor.js +8 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/defineEnumerableProperties.js +12 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/defineProperty.js +10 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/dispose.js +28 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/extends.js +10 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/get.js +11 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/getPrototypeOf.js +6 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/identity.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/importDeferProxy.js +27 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/inherits.js +14 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/inheritsLoose.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/initializerDefineProperty.js +9 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/initializerWarningHelper.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/instanceof.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/interopRequireDefault.js +6 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/interopRequireWildcard.js +27 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/isNativeFunction.js +8 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/isNativeReflectConstruct.js +9 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/iterableToArray.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/iterableToArrayLimit.js +28 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/jsx.js +22 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/maybeArrayLike.js +9 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/newArrowCheck.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/nonIterableRest.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/nonIterableSpread.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/nullishReceiverError.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectDestructuringEmpty.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectSpread.js +14 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectSpread2.js +23 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectWithoutProperties.js +13 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectWithoutPropertiesLoose.js +10 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/package.json +3 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/possibleConstructorReturn.js +8 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/readOnlyError.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/regeneratorRuntime.js +304 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/set.js +22 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/setFunctionName.js +12 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/setPrototypeOf.js +6 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/skipFirstGeneratorNext.js +7 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/slicedToArray.js +8 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/superPropBase.js +6 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/superPropGet.js +9 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/superPropSet.js +6 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/taggedTemplateLiteral.js +8 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/taggedTemplateLiteralLoose.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/tdz.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/temporalRef.js +6 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/temporalUndefined.js +2 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toArray.js +8 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toConsumableArray.js +8 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toPrimitive.js +12 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toPropertyKey.js +7 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toSetter.js +10 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/typeof.js +10 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/unsupportedIterableToArray.js +9 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/using.js +12 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/usingCtx.js +59 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/wrapAsyncGenerator.js +69 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/wrapNativeSuper.js +27 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/wrapRegExp.js +51 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/writeOnlyError.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/extends.js +10 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/get.js +11 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/getPrototypeOf.js +6 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/identity.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/importDeferProxy.js +27 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/inherits.js +14 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/inheritsLoose.js +5 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/initializerDefineProperty.js +9 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/initializerWarningHelper.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/instanceof.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/interopRequireDefault.js +6 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/interopRequireWildcard.js +27 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/isNativeFunction.js +8 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/isNativeReflectConstruct.js +9 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/iterableToArray.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/iterableToArrayLimit.js +28 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/jsx.js +22 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/maybeArrayLike.js +9 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/newArrowCheck.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/nonIterableRest.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/nonIterableSpread.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/nullishReceiverError.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectDestructuringEmpty.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectSpread.js +14 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js +23 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js +13 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js +10 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/possibleConstructorReturn.js +8 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/readOnlyError.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/regeneratorRuntime.js +304 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/set.js +22 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/setFunctionName.js +12 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/setPrototypeOf.js +6 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/skipFirstGeneratorNext.js +7 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/slicedToArray.js +8 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/superPropBase.js +6 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/superPropGet.js +9 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/superPropSet.js +6 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/taggedTemplateLiteral.js +8 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/taggedTemplateLiteralLoose.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/tdz.js +4 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/temporalRef.js +6 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/temporalUndefined.js +2 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/toArray.js +8 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/toConsumableArray.js +8 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js +12 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js +7 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/toSetter.js +10 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/typeof.js +10 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/unsupportedIterableToArray.js +9 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/using.js +12 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js +59 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js +69 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/wrapNativeSuper.js +27 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/wrapRegExp.js +51 -0
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/writeOnlyError.js +4 -0
- package/runtime/node_modules/@oxc-project/types/LICENSE +22 -0
- package/runtime/node_modules/@oxc-project/types/README.md +3 -0
- package/runtime/node_modules/@oxc-project/types/package.json +26 -0
- package/runtime/node_modules/@oxc-project/types/types.d.ts +1912 -0
- package/runtime/node_modules/@oxc-transform/binding-linux-x64-gnu/README.md +3 -0
- package/runtime/node_modules/@oxc-transform/binding-linux-x64-gnu/package.json +44 -0
- package/runtime/node_modules/@oxc-transform/binding-linux-x64-gnu/transform.linux-x64-gnu.node +0 -0
- package/runtime/node_modules/@petamoriken/float16/LICENSE +21 -0
- package/runtime/node_modules/@petamoriken/float16/README.md +413 -0
- package/runtime/node_modules/@petamoriken/float16/browser/float16.js +1340 -0
- package/runtime/node_modules/@petamoriken/float16/browser/float16.mjs +1325 -0
- package/runtime/node_modules/@petamoriken/float16/index.d.ts +546 -0
- package/runtime/node_modules/@petamoriken/float16/index.v5.6.d.ts +546 -0
- package/runtime/node_modules/@petamoriken/float16/index.v5.7.d.ts +555 -0
- package/runtime/node_modules/@petamoriken/float16/inspect/node.cjs +25 -0
- package/runtime/node_modules/@petamoriken/float16/inspect/node.mjs +23 -0
- package/runtime/node_modules/@petamoriken/float16/lib/DataView.cjs +16 -0
- package/runtime/node_modules/@petamoriken/float16/lib/Float16Array.cjs +690 -0
- package/runtime/node_modules/@petamoriken/float16/lib/_util/arrayIterator.cjs +52 -0
- package/runtime/node_modules/@petamoriken/float16/lib/_util/brand.cjs +27 -0
- package/runtime/node_modules/@petamoriken/float16/lib/_util/converter.cjs +111 -0
- package/runtime/node_modules/@petamoriken/float16/lib/_util/is.cjs +78 -0
- package/runtime/node_modules/@petamoriken/float16/lib/_util/messages.cjs +18 -0
- package/runtime/node_modules/@petamoriken/float16/lib/_util/primordials.cjs +150 -0
- package/runtime/node_modules/@petamoriken/float16/lib/_util/spec.cjs +84 -0
- package/runtime/node_modules/@petamoriken/float16/lib/f16round.cjs +10 -0
- package/runtime/node_modules/@petamoriken/float16/lib/index.cjs +16 -0
- package/runtime/node_modules/@petamoriken/float16/lib/isTypedArray.cjs +11 -0
- package/runtime/node_modules/@petamoriken/float16/package.json +115 -0
- package/runtime/node_modules/@petamoriken/float16/src/DataView.mjs +35 -0
- package/runtime/node_modules/@petamoriken/float16/src/Float16Array.mjs +1194 -0
- package/runtime/node_modules/@petamoriken/float16/src/_util/arrayIterator.mjs +86 -0
- package/runtime/node_modules/@petamoriken/float16/src/_util/brand.mjs +31 -0
- package/runtime/node_modules/@petamoriken/float16/src/_util/converter.mjs +173 -0
- package/runtime/node_modules/@petamoriken/float16/src/_util/is.mjs +151 -0
- package/runtime/node_modules/@petamoriken/float16/src/_util/messages.mjs +22 -0
- package/runtime/node_modules/@petamoriken/float16/src/_util/primordials.mjs +254 -0
- package/runtime/node_modules/@petamoriken/float16/src/_util/spec.mjs +137 -0
- package/runtime/node_modules/@petamoriken/float16/src/f16round.mjs +10 -0
- package/runtime/node_modules/@petamoriken/float16/src/index.mjs +7 -0
- package/runtime/node_modules/@petamoriken/float16/src/isTypedArray.mjs +10 -0
- package/runtime/node_modules/get-tsconfig/LICENSE +21 -0
- package/runtime/node_modules/get-tsconfig/README.md +268 -0
- package/runtime/node_modules/get-tsconfig/dist/index.cjs +7 -0
- package/runtime/node_modules/get-tsconfig/dist/index.d.cts +2116 -0
- package/runtime/node_modules/get-tsconfig/dist/index.d.mts +2116 -0
- package/runtime/node_modules/get-tsconfig/dist/index.mjs +7 -0
- package/runtime/node_modules/get-tsconfig/package.json +46 -0
- package/runtime/node_modules/jsbi/LICENSE +176 -0
- package/runtime/node_modules/jsbi/README.md +173 -0
- package/runtime/node_modules/jsbi/dist/jsbi-cjs.js +2 -0
- package/runtime/node_modules/jsbi/dist/jsbi-cjs.js.map +1 -0
- package/runtime/node_modules/jsbi/dist/jsbi-umd.js +2 -0
- package/runtime/node_modules/jsbi/dist/jsbi-umd.js.map +1 -0
- package/runtime/node_modules/jsbi/dist/jsbi.mjs +2 -0
- package/runtime/node_modules/jsbi/dist/jsbi.mjs.map +1 -0
- package/runtime/node_modules/jsbi/jsbi.d.ts +43 -0
- package/runtime/node_modules/jsbi/package.json +35 -0
- package/runtime/node_modules/oxc-parser/LICENSE +22 -0
- package/runtime/node_modules/oxc-parser/README.md +167 -0
- package/runtime/node_modules/oxc-parser/package.json +153 -0
- package/runtime/node_modules/oxc-parser/src-js/bindings.js +601 -0
- package/runtime/node_modules/oxc-parser/src-js/generated/constants.js +105 -0
- package/runtime/node_modules/oxc-parser/src-js/generated/deserialize/js.js +5862 -0
- package/runtime/node_modules/oxc-parser/src-js/generated/deserialize/js_range.js +6403 -0
- package/runtime/node_modules/oxc-parser/src-js/generated/deserialize/ts.js +6154 -0
- package/runtime/node_modules/oxc-parser/src-js/generated/deserialize/ts_range.js +6723 -0
- package/runtime/node_modules/oxc-parser/src-js/generated/lazy/constructors.js +13875 -0
- package/runtime/node_modules/oxc-parser/src-js/generated/lazy/type_ids.js +191 -0
- package/runtime/node_modules/oxc-parser/src-js/generated/lazy/walk.js +5810 -0
- package/runtime/node_modules/oxc-parser/src-js/generated/visit/keys.js +220 -0
- package/runtime/node_modules/oxc-parser/src-js/generated/visit/type_ids.js +177 -0
- package/runtime/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts +387 -0
- package/runtime/node_modules/oxc-parser/src-js/generated/visit/walk.js +2455 -0
- package/runtime/node_modules/oxc-parser/src-js/index.d.ts +312 -0
- package/runtime/node_modules/oxc-parser/src-js/index.js +108 -0
- package/runtime/node_modules/oxc-parser/src-js/raw-transfer/common.js +301 -0
- package/runtime/node_modules/oxc-parser/src-js/raw-transfer/eager.js +255 -0
- package/runtime/node_modules/oxc-parser/src-js/raw-transfer/lazy-common.js +11 -0
- package/runtime/node_modules/oxc-parser/src-js/raw-transfer/lazy.js +162 -0
- package/runtime/node_modules/oxc-parser/src-js/raw-transfer/node-array.js +365 -0
- package/runtime/node_modules/oxc-parser/src-js/raw-transfer/supported.js +52 -0
- package/runtime/node_modules/oxc-parser/src-js/raw-transfer/visitor.js +127 -0
- package/runtime/node_modules/oxc-parser/src-js/visit/index.js +41 -0
- package/runtime/node_modules/oxc-parser/src-js/visit/visitor.js +405 -0
- package/runtime/node_modules/oxc-parser/src-js/wasm.js +13 -0
- package/runtime/node_modules/oxc-parser/src-js/webcontainer-fallback.cjs +21 -0
- package/runtime/node_modules/oxc-parser/src-js/wrap.js +57 -0
- package/runtime/node_modules/oxc-transform/LICENSE +22 -0
- package/runtime/node_modules/oxc-transform/README.md +84 -0
- package/runtime/node_modules/oxc-transform/browser.js +1 -0
- package/runtime/node_modules/oxc-transform/index.d.ts +658 -0
- package/runtime/node_modules/oxc-transform/index.js +598 -0
- package/runtime/node_modules/oxc-transform/package.json +114 -0
- package/runtime/node_modules/oxc-transform/webcontainer-fallback.cjs +21 -0
- package/runtime/node_modules/resolve-pkg-maps/LICENSE +21 -0
- package/runtime/node_modules/resolve-pkg-maps/README.md +216 -0
- package/runtime/node_modules/resolve-pkg-maps/dist/index.cjs +1 -0
- package/runtime/node_modules/resolve-pkg-maps/dist/index.d.cts +11 -0
- package/runtime/node_modules/resolve-pkg-maps/dist/index.d.mts +11 -0
- package/runtime/node_modules/resolve-pkg-maps/dist/index.mjs +1 -0
- package/runtime/node_modules/resolve-pkg-maps/package.json +42 -0
- package/runtime/node_modules/urlpattern-polyfill/LICENSE +19 -0
- package/runtime/node_modules/urlpattern-polyfill/README.md +242 -0
- package/runtime/node_modules/urlpattern-polyfill/dist/index.d.ts +9 -0
- package/runtime/node_modules/urlpattern-polyfill/dist/types.d.ts +49 -0
- package/runtime/node_modules/urlpattern-polyfill/dist/urlpattern.cjs +1 -0
- package/runtime/node_modules/urlpattern-polyfill/dist/urlpattern.js +1 -0
- package/runtime/node_modules/urlpattern-polyfill/index.cjs +7 -0
- package/runtime/node_modules/urlpattern-polyfill/index.js +7 -0
- package/runtime/node_modules/urlpattern-polyfill/package.json +149 -0
- package/runtime/version.mjs +1 -1
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
/* eslint-disable no-restricted-globals, no-restricted-syntax */
|
|
2
|
+
/* global SharedArrayBuffer */
|
|
3
|
+
|
|
4
|
+
import { CANNOT_CONVERT_UNDEFINED_OR_NULL_TO_OBJECT } from "./messages.mjs";
|
|
5
|
+
|
|
6
|
+
/** @type {<T extends (...args: any) => any>(target: T) => (thisArg: ThisType<T>, ...args: any[]) => any} */
|
|
7
|
+
function uncurryThis(target) {
|
|
8
|
+
return (thisArg, ...args) => {
|
|
9
|
+
return ReflectApply(target, thisArg, args);
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/** @type {(target: any, key: string | symbol) => (thisArg: any, ...args: any[]) => any} */
|
|
14
|
+
function uncurryThisGetter(target, key) {
|
|
15
|
+
return uncurryThis(
|
|
16
|
+
ReflectGetOwnPropertyDescriptor(
|
|
17
|
+
target,
|
|
18
|
+
key
|
|
19
|
+
).get
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Reflect
|
|
24
|
+
export const {
|
|
25
|
+
apply: ReflectApply,
|
|
26
|
+
construct: ReflectConstruct,
|
|
27
|
+
defineProperty: ReflectDefineProperty,
|
|
28
|
+
get: ReflectGet,
|
|
29
|
+
getOwnPropertyDescriptor: ReflectGetOwnPropertyDescriptor,
|
|
30
|
+
getPrototypeOf: ReflectGetPrototypeOf,
|
|
31
|
+
has: ReflectHas,
|
|
32
|
+
ownKeys: ReflectOwnKeys,
|
|
33
|
+
set: ReflectSet,
|
|
34
|
+
setPrototypeOf: ReflectSetPrototypeOf,
|
|
35
|
+
} = Reflect;
|
|
36
|
+
|
|
37
|
+
// Proxy
|
|
38
|
+
export const NativeProxy = Proxy;
|
|
39
|
+
|
|
40
|
+
// Number
|
|
41
|
+
export const {
|
|
42
|
+
EPSILON,
|
|
43
|
+
MAX_SAFE_INTEGER,
|
|
44
|
+
isFinite: NumberIsFinite,
|
|
45
|
+
isNaN: NumberIsNaN,
|
|
46
|
+
} = Number;
|
|
47
|
+
|
|
48
|
+
// Symbol
|
|
49
|
+
export const {
|
|
50
|
+
iterator: SymbolIterator,
|
|
51
|
+
species: SymbolSpecies,
|
|
52
|
+
toStringTag: SymbolToStringTag,
|
|
53
|
+
for: SymbolFor,
|
|
54
|
+
} = Symbol;
|
|
55
|
+
|
|
56
|
+
// Object
|
|
57
|
+
export const NativeObject = Object;
|
|
58
|
+
export const {
|
|
59
|
+
create: ObjectCreate,
|
|
60
|
+
defineProperty: ObjectDefineProperty,
|
|
61
|
+
freeze: ObjectFreeze,
|
|
62
|
+
is: ObjectIs,
|
|
63
|
+
} = NativeObject;
|
|
64
|
+
const ObjectPrototype = NativeObject.prototype;
|
|
65
|
+
/** @type {(object: object, key: PropertyKey) => Function | undefined} */
|
|
66
|
+
export const ObjectPrototype__lookupGetter__ = /** @type {any} */ (ObjectPrototype).__lookupGetter__
|
|
67
|
+
? uncurryThis(/** @type {any} */ (ObjectPrototype).__lookupGetter__)
|
|
68
|
+
: (object, key) => {
|
|
69
|
+
if (object == null) {
|
|
70
|
+
throw NativeTypeError(
|
|
71
|
+
CANNOT_CONVERT_UNDEFINED_OR_NULL_TO_OBJECT
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
let target = NativeObject(object);
|
|
76
|
+
do {
|
|
77
|
+
const descriptor = ReflectGetOwnPropertyDescriptor(target, key);
|
|
78
|
+
if (descriptor !== undefined) {
|
|
79
|
+
if (ObjectHasOwn(descriptor, "get")) {
|
|
80
|
+
return descriptor.get;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
} while ((target = ReflectGetPrototypeOf(target)) !== null);
|
|
86
|
+
};
|
|
87
|
+
/** @type {(object: object, key: PropertyKey) => boolean} */
|
|
88
|
+
export const ObjectHasOwn = /** @type {any} */ (NativeObject).hasOwn ||
|
|
89
|
+
uncurryThis(ObjectPrototype.hasOwnProperty);
|
|
90
|
+
|
|
91
|
+
// Array
|
|
92
|
+
const NativeArray = Array;
|
|
93
|
+
export const ArrayIsArray = NativeArray.isArray;
|
|
94
|
+
const ArrayPrototype = NativeArray.prototype;
|
|
95
|
+
/** @type {(array: ArrayLike<unknown>, separator?: string) => string} */
|
|
96
|
+
export const ArrayPrototypeJoin = uncurryThis(ArrayPrototype.join);
|
|
97
|
+
/** @type {<T>(array: T[], ...items: T[]) => number} */
|
|
98
|
+
export const ArrayPrototypePush = uncurryThis(ArrayPrototype.push);
|
|
99
|
+
/** @type {(array: ArrayLike<unknown>, ...opts: any[]) => string} */
|
|
100
|
+
export const ArrayPrototypeToLocaleString = uncurryThis(
|
|
101
|
+
ArrayPrototype.toLocaleString
|
|
102
|
+
);
|
|
103
|
+
export const NativeArrayPrototypeSymbolIterator = ArrayPrototype[SymbolIterator];
|
|
104
|
+
/** @type {<T>(array: T[]) => IterableIterator<T>} */
|
|
105
|
+
export const ArrayPrototypeSymbolIterator = uncurryThis(NativeArrayPrototypeSymbolIterator);
|
|
106
|
+
|
|
107
|
+
// Math
|
|
108
|
+
export const {
|
|
109
|
+
abs: MathAbs,
|
|
110
|
+
trunc: MathTrunc,
|
|
111
|
+
} = Math;
|
|
112
|
+
|
|
113
|
+
// ArrayBuffer
|
|
114
|
+
export const NativeArrayBuffer = ArrayBuffer;
|
|
115
|
+
export const ArrayBufferIsView = NativeArrayBuffer.isView;
|
|
116
|
+
const ArrayBufferPrototype = NativeArrayBuffer.prototype;
|
|
117
|
+
/** @type {(buffer: ArrayBuffer, begin?: number, end?: number) => number} */
|
|
118
|
+
export const ArrayBufferPrototypeSlice = uncurryThis(ArrayBufferPrototype.slice);
|
|
119
|
+
/** @type {(buffer: ArrayBuffer) => ArrayBuffer} */
|
|
120
|
+
export const ArrayBufferPrototypeGetByteLength = uncurryThisGetter(ArrayBufferPrototype, "byteLength");
|
|
121
|
+
|
|
122
|
+
// SharedArrayBuffer
|
|
123
|
+
export const NativeSharedArrayBuffer = typeof SharedArrayBuffer !== "undefined" ? SharedArrayBuffer : null;
|
|
124
|
+
/** @type {(buffer: SharedArrayBuffer) => SharedArrayBuffer} */
|
|
125
|
+
export const SharedArrayBufferPrototypeGetByteLength = NativeSharedArrayBuffer
|
|
126
|
+
&& uncurryThisGetter(NativeSharedArrayBuffer.prototype, "byteLength");
|
|
127
|
+
|
|
128
|
+
// TypedArray
|
|
129
|
+
/** @typedef {Uint8Array|Uint8ClampedArray|Uint16Array|Uint32Array|Int8Array|Int16Array|Int32Array|Float32Array|Float64Array|BigUint64Array|BigInt64Array} TypedArray */
|
|
130
|
+
/** @type {any} */
|
|
131
|
+
export const TypedArray = ReflectGetPrototypeOf(Uint8Array);
|
|
132
|
+
const TypedArrayFrom = TypedArray.from;
|
|
133
|
+
export const TypedArrayPrototype = TypedArray.prototype;
|
|
134
|
+
export const NativeTypedArrayPrototypeSymbolIterator = TypedArrayPrototype[SymbolIterator];
|
|
135
|
+
/** @type {(typedArray: TypedArray) => IterableIterator<number>} */
|
|
136
|
+
export const TypedArrayPrototypeKeys = uncurryThis(TypedArrayPrototype.keys);
|
|
137
|
+
/** @type {(typedArray: TypedArray) => IterableIterator<number>} */
|
|
138
|
+
export const TypedArrayPrototypeValues = uncurryThis(
|
|
139
|
+
TypedArrayPrototype.values
|
|
140
|
+
);
|
|
141
|
+
/** @type {(typedArray: TypedArray) => IterableIterator<[number, number]>} */
|
|
142
|
+
export const TypedArrayPrototypeEntries = uncurryThis(
|
|
143
|
+
TypedArrayPrototype.entries
|
|
144
|
+
);
|
|
145
|
+
/** @type {(typedArray: TypedArray, array: ArrayLike<number>, offset?: number) => void} */
|
|
146
|
+
export const TypedArrayPrototypeSet = uncurryThis(TypedArrayPrototype.set);
|
|
147
|
+
/** @type {<T extends TypedArray>(typedArray: T) => T} */
|
|
148
|
+
export const TypedArrayPrototypeReverse = uncurryThis(
|
|
149
|
+
TypedArrayPrototype.reverse
|
|
150
|
+
);
|
|
151
|
+
/** @type {<T extends TypedArray>(typedArray: T, value: number, start?: number, end?: number) => T} */
|
|
152
|
+
export const TypedArrayPrototypeFill = uncurryThis(TypedArrayPrototype.fill);
|
|
153
|
+
/** @type {<T extends TypedArray>(typedArray: T, target: number, start: number, end?: number) => T} */
|
|
154
|
+
export const TypedArrayPrototypeCopyWithin = uncurryThis(
|
|
155
|
+
TypedArrayPrototype.copyWithin
|
|
156
|
+
);
|
|
157
|
+
/** @type {<T extends TypedArray>(typedArray: T, compareFn?: (a: number, b: number) => number) => T} */
|
|
158
|
+
export const TypedArrayPrototypeSort = uncurryThis(TypedArrayPrototype.sort);
|
|
159
|
+
/** @type {<T extends TypedArray>(typedArray: T, start?: number, end?: number) => T} */
|
|
160
|
+
export const TypedArrayPrototypeSlice = uncurryThis(TypedArrayPrototype.slice);
|
|
161
|
+
/** @type {<T extends TypedArray>(typedArray: T, start?: number, end?: number) => T} */
|
|
162
|
+
export const TypedArrayPrototypeSubarray = uncurryThis(
|
|
163
|
+
TypedArrayPrototype.subarray
|
|
164
|
+
);
|
|
165
|
+
/** @type {((typedArray: TypedArray) => ArrayBuffer)} */
|
|
166
|
+
export const TypedArrayPrototypeGetBuffer = uncurryThisGetter(
|
|
167
|
+
TypedArrayPrototype,
|
|
168
|
+
"buffer"
|
|
169
|
+
);
|
|
170
|
+
/** @type {((typedArray: TypedArray) => number)} */
|
|
171
|
+
export const TypedArrayPrototypeGetByteOffset = uncurryThisGetter(
|
|
172
|
+
TypedArrayPrototype,
|
|
173
|
+
"byteOffset"
|
|
174
|
+
);
|
|
175
|
+
/** @type {((typedArray: TypedArray) => number)} */
|
|
176
|
+
export const TypedArrayPrototypeGetLength = uncurryThisGetter(
|
|
177
|
+
TypedArrayPrototype,
|
|
178
|
+
"length"
|
|
179
|
+
);
|
|
180
|
+
/** @type {(target: unknown) => string} */
|
|
181
|
+
export const TypedArrayPrototypeGetSymbolToStringTag = uncurryThisGetter(
|
|
182
|
+
TypedArrayPrototype,
|
|
183
|
+
SymbolToStringTag
|
|
184
|
+
);
|
|
185
|
+
|
|
186
|
+
// Uint8Array
|
|
187
|
+
export const NativeUint8Array = Uint8Array;
|
|
188
|
+
|
|
189
|
+
// Uint16Array
|
|
190
|
+
export const NativeUint16Array = Uint16Array;
|
|
191
|
+
/** @type {Uint16ArrayConstructor["from"]} */
|
|
192
|
+
export const Uint16ArrayFrom = (...args) => {
|
|
193
|
+
return ReflectApply(TypedArrayFrom, NativeUint16Array, args);
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
// Uint32Array
|
|
197
|
+
export const NativeUint32Array = Uint32Array;
|
|
198
|
+
|
|
199
|
+
// Float32Array
|
|
200
|
+
export const NativeFloat32Array = Float32Array;
|
|
201
|
+
|
|
202
|
+
// ArrayIterator
|
|
203
|
+
/** @type {any} */
|
|
204
|
+
export const ArrayIteratorPrototype = ReflectGetPrototypeOf([][SymbolIterator]());
|
|
205
|
+
/** @type {<T>(arrayIterator: IterableIterator<T>) => IteratorResult<T>} */
|
|
206
|
+
export const ArrayIteratorPrototypeNext = uncurryThis(ArrayIteratorPrototype.next);
|
|
207
|
+
|
|
208
|
+
// Generator
|
|
209
|
+
/** @type {<T = unknown, TReturn = any, TNext = unknown>(generator: Generator<T, TReturn, TNext>, value?: TNext) => T} */
|
|
210
|
+
export const GeneratorPrototypeNext = uncurryThis((function* () {})().next);
|
|
211
|
+
|
|
212
|
+
// Iterator
|
|
213
|
+
export const IteratorPrototype = ReflectGetPrototypeOf(ArrayIteratorPrototype);
|
|
214
|
+
|
|
215
|
+
// DataView
|
|
216
|
+
const DataViewPrototype = DataView.prototype;
|
|
217
|
+
/** @type {(dataView: DataView, byteOffset: number, littleEndian?: boolean) => number} */
|
|
218
|
+
export const DataViewPrototypeGetUint16 = uncurryThis(
|
|
219
|
+
DataViewPrototype.getUint16
|
|
220
|
+
);
|
|
221
|
+
/** @type {(dataView: DataView, byteOffset: number, value: number, littleEndian?: boolean) => void} */
|
|
222
|
+
export const DataViewPrototypeSetUint16 = uncurryThis(
|
|
223
|
+
DataViewPrototype.setUint16
|
|
224
|
+
);
|
|
225
|
+
|
|
226
|
+
// Error
|
|
227
|
+
export const NativeTypeError = TypeError;
|
|
228
|
+
export const NativeRangeError = RangeError;
|
|
229
|
+
|
|
230
|
+
// WeakSet
|
|
231
|
+
/**
|
|
232
|
+
* Do not construct with arguments to avoid calling the "add" method
|
|
233
|
+
* @type {{new <T extends {}>(): WeakSet<T>}}
|
|
234
|
+
*/
|
|
235
|
+
export const NativeWeakSet = WeakSet;
|
|
236
|
+
const WeakSetPrototype = NativeWeakSet.prototype;
|
|
237
|
+
/** @type {<T extends {}>(set: WeakSet<T>, value: T) => Set<T>} */
|
|
238
|
+
export const WeakSetPrototypeAdd = uncurryThis(WeakSetPrototype.add);
|
|
239
|
+
/** @type {<T extends {}>(set: WeakSet<T>, value: T) => boolean} */
|
|
240
|
+
export const WeakSetPrototypeHas = uncurryThis(WeakSetPrototype.has);
|
|
241
|
+
|
|
242
|
+
// WeakMap
|
|
243
|
+
/**
|
|
244
|
+
* Do not construct with arguments to avoid calling the "set" method
|
|
245
|
+
* @type {{new <K extends {}, V>(): WeakMap<K, V>}}
|
|
246
|
+
*/
|
|
247
|
+
export const NativeWeakMap = WeakMap;
|
|
248
|
+
const WeakMapPrototype = NativeWeakMap.prototype;
|
|
249
|
+
/** @type {<K extends {}, V>(weakMap: WeakMap<K, V>, key: K) => V} */
|
|
250
|
+
export const WeakMapPrototypeGet = uncurryThis(WeakMapPrototype.get);
|
|
251
|
+
/** @type {<K extends {}, V>(weakMap: WeakMap<K, V>, key: K) => boolean} */
|
|
252
|
+
export const WeakMapPrototypeHas = uncurryThis(WeakMapPrototype.has);
|
|
253
|
+
/** @type {<K extends {}, V>(weakMap: WeakMap<K, V>, key: K, value: V) => WeakMap} */
|
|
254
|
+
export const WeakMapPrototypeSet = uncurryThis(WeakMapPrototype.set);
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { isObject, isSharedArrayBuffer } from "./is.mjs";
|
|
2
|
+
import {
|
|
3
|
+
THE_CONSTRUCTOR_PROPERTY_VALUE_IS_NOT_AN_OBJECT,
|
|
4
|
+
THIS_IS_NOT_AN_OBJECT,
|
|
5
|
+
} from "./messages.mjs";
|
|
6
|
+
import {
|
|
7
|
+
ArrayBufferPrototypeSlice,
|
|
8
|
+
MAX_SAFE_INTEGER,
|
|
9
|
+
MathTrunc,
|
|
10
|
+
NativeTypeError,
|
|
11
|
+
NumberIsNaN,
|
|
12
|
+
ObjectIs,
|
|
13
|
+
SymbolSpecies,
|
|
14
|
+
} from "./primordials.mjs";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @see https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
18
|
+
* @param {unknown} target
|
|
19
|
+
* @returns {number}
|
|
20
|
+
*/
|
|
21
|
+
export function ToIntegerOrInfinity(target) {
|
|
22
|
+
const number = +target;
|
|
23
|
+
|
|
24
|
+
if (NumberIsNaN(number) || number === 0) {
|
|
25
|
+
return 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return MathTrunc(number);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @see https://tc39.es/ecma262/#sec-tolength
|
|
33
|
+
* @param {unknown} target
|
|
34
|
+
* @returns {number}
|
|
35
|
+
*/
|
|
36
|
+
export function ToLength(target) {
|
|
37
|
+
const length = ToIntegerOrInfinity(target);
|
|
38
|
+
if (length < 0) {
|
|
39
|
+
return 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return length < MAX_SAFE_INTEGER
|
|
43
|
+
? length
|
|
44
|
+
: MAX_SAFE_INTEGER;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @see https://tc39.es/ecma262/#sec-speciesconstructor
|
|
49
|
+
* @param {object} target
|
|
50
|
+
* @param {{ new(...args: any[]): any; }} defaultConstructor
|
|
51
|
+
* @returns {{ new(...args: any[]): any; }}
|
|
52
|
+
*/
|
|
53
|
+
export function SpeciesConstructor(target, defaultConstructor) {
|
|
54
|
+
if (!isObject(target)) {
|
|
55
|
+
throw NativeTypeError(THIS_IS_NOT_AN_OBJECT);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const constructor = target.constructor;
|
|
59
|
+
if (constructor === undefined) {
|
|
60
|
+
return defaultConstructor;
|
|
61
|
+
}
|
|
62
|
+
if (!isObject(constructor)) {
|
|
63
|
+
throw NativeTypeError(THE_CONSTRUCTOR_PROPERTY_VALUE_IS_NOT_AN_OBJECT);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const species = constructor[SymbolSpecies];
|
|
67
|
+
if (species == null) {
|
|
68
|
+
return defaultConstructor;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return species;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @see https://tc39.es/ecma262/#sec-isdetachedbuffer
|
|
76
|
+
* @param {ArrayBufferLike} buffer
|
|
77
|
+
* @returns {boolean}
|
|
78
|
+
*/
|
|
79
|
+
export function IsDetachedBuffer(buffer) {
|
|
80
|
+
if (isSharedArrayBuffer(buffer)) {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
try {
|
|
85
|
+
ArrayBufferPrototypeSlice(buffer, 0, 0);
|
|
86
|
+
return false;
|
|
87
|
+
} catch (e) {/* empty */}
|
|
88
|
+
|
|
89
|
+
return true;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* bigint comparisons are not supported
|
|
94
|
+
* @see https://tc39.es/ecma262/#sec-%typedarray%.prototype.sort
|
|
95
|
+
* @param {number} x
|
|
96
|
+
* @param {number} y
|
|
97
|
+
* @returns {-1 | 0 | 1}
|
|
98
|
+
*/
|
|
99
|
+
export function defaultCompare(x, y) {
|
|
100
|
+
const isXNaN = NumberIsNaN(x);
|
|
101
|
+
const isYNaN = NumberIsNaN(y);
|
|
102
|
+
|
|
103
|
+
if (isXNaN && isYNaN) {
|
|
104
|
+
return 0;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
if (isXNaN) {
|
|
108
|
+
return 1;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
if (isYNaN) {
|
|
112
|
+
return -1;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if (x < y) {
|
|
116
|
+
return -1;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if (x > y) {
|
|
120
|
+
return 1;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if (x === 0 && y === 0) {
|
|
124
|
+
const isXPlusZero = ObjectIs(x, 0);
|
|
125
|
+
const isYPlusZero = ObjectIs(y, 0);
|
|
126
|
+
|
|
127
|
+
if (!isXPlusZero && isYPlusZero) {
|
|
128
|
+
return -1;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
if (isXPlusZero && !isYPlusZero) {
|
|
132
|
+
return 1;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
return 0;
|
|
137
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* ignore unused exports */
|
|
2
|
+
// @ts-self-types="../index.v5.7.d.ts"
|
|
3
|
+
|
|
4
|
+
export { Float16Array, isFloat16Array } from "./Float16Array.mjs";
|
|
5
|
+
export { isTypedArray } from "./isTypedArray.mjs";
|
|
6
|
+
export { getFloat16, setFloat16 } from "./DataView.mjs";
|
|
7
|
+
export { f16round, f16round as hfround } from "./f16round.mjs";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { isFloat16Array } from "./Float16Array.mjs";
|
|
2
|
+
import { isNativeTypedArray } from "./_util/is.mjs";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @param {unknown} target
|
|
6
|
+
* @returns {value is Uint8Array|Uint8ClampedArray|Uint16Array|Uint32Array|Int8Array|Int16Array|Int32Array|Float16Array|Float32Array|Float64Array|BigUint64Array|BigInt64Array}
|
|
7
|
+
*/
|
|
8
|
+
export function isTypedArray(target) {
|
|
9
|
+
return isNativeTypedArray(target) || isFloat16Array(target);
|
|
10
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Hiroki Osame <hiroki.osame@gmail.com>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|