Changeset 79a0317 for imaps-frontend/node_modules/es-abstract/helpers
- Timestamp:
- 01/21/25 03:08:24 (3 days ago)
- Branches:
- main
- Parents:
- 0c6b92a
- Location:
- imaps-frontend/node_modules/es-abstract/helpers
- Files:
-
- 3 added
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/helpers/DefineOwnProperty.js
r0c6b92a r79a0317 10 10 var isArray = hasArrayLengthDefineBug && require('../helpers/IsArray'); 11 11 12 var callBound = require('call-b ind/callBound');12 var callBound = require('call-bound'); 13 13 14 14 var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable'); -
imaps-frontend/node_modules/es-abstract/helpers/IsArray.js
r0c6b92a r79a0317 6 6 7 7 // eslint-disable-next-line global-require 8 var toStr = !$Array.isArray && require('call-b ind/callBound')('Object.prototype.toString');8 var toStr = !$Array.isArray && require('call-bound')('Object.prototype.toString'); 9 9 10 10 module.exports = $Array.isArray || function IsArray(argument) { -
imaps-frontend/node_modules/es-abstract/helpers/OwnPropertyKeys.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var GetIntrinsic = require('get-intrinsic'); 4 5 var callBind = require('call-bind'); 6 var callBound = require('call-bind/callBound'); 7 8 var $ownKeys = GetIntrinsic('%Reflect.ownKeys%', true); 9 var $pushApply = callBind.apply(GetIntrinsic('%Array.prototype.push%')); 10 var $SymbolValueOf = callBound('Symbol.prototype.valueOf', true); 11 var $gOPN = GetIntrinsic('%Object.getOwnPropertyNames%', true); 12 var $gOPS = $SymbolValueOf ? GetIntrinsic('%Object.getOwnPropertySymbols%') : null; 13 14 var keys = require('object-keys'); 15 16 module.exports = $ownKeys || function OwnPropertyKeys(source) { 17 var ownKeys = ($gOPN || keys)(source); 18 if ($gOPS) { 19 $pushApply(ownKeys, $gOPS(source)); 20 } 21 return ownKeys; 22 }; 3 // TODO, semver-major: remove 4 module.exports = require('own-keys'); -
imaps-frontend/node_modules/es-abstract/helpers/bytesAsFloat32.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var GetIntrinsic = require('get-intrinsic'); 4 5 var $pow = GetIntrinsic('%Math.pow%'); 3 var $pow = require('math-intrinsics/pow'); 6 4 7 5 module.exports = function bytesAsFloat32(rawBytes) { -
imaps-frontend/node_modules/es-abstract/helpers/bytesAsFloat64.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var GetIntrinsic = require('get-intrinsic'); 4 5 var $pow = GetIntrinsic('%Math.pow%'); 3 var $pow = require('math-intrinsics/pow'); 6 4 7 5 module.exports = function bytesAsFloat64(rawBytes) { -
imaps-frontend/node_modules/es-abstract/helpers/bytesAsInteger.js
r0c6b92a r79a0317 3 3 var GetIntrinsic = require('get-intrinsic'); 4 4 5 var $pow = GetIntrinsic('%Math.pow%'); 5 var $pow = require('math-intrinsics/pow'); 6 6 7 var $Number = GetIntrinsic('%Number%'); 7 8 var $BigInt = GetIntrinsic('%BigInt%', true); -
imaps-frontend/node_modules/es-abstract/helpers/callBound.js
r0c6b92a r79a0317 3 3 // TODO; semver-major: remove 4 4 5 module.exports = require('call-b ind/callBound');5 module.exports = require('call-bound'); -
imaps-frontend/node_modules/es-abstract/helpers/getIteratorMethod.js
r0c6b92a r79a0317 3 3 var hasSymbols = require('has-symbols')(); 4 4 var GetIntrinsic = require('get-intrinsic'); 5 var callBound = require('call-b ind/callBound');5 var callBound = require('call-bound'); 6 6 var isString = require('is-string'); 7 7 -
imaps-frontend/node_modules/es-abstract/helpers/getProto.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var GetIntrinsic = require('get-intrinsic'); 4 5 var originalGetProto = GetIntrinsic('%Object.getPrototypeOf%', true); 6 7 var hasProto = require('has-proto')(); 8 9 module.exports = originalGetProto || ( 10 hasProto 11 ? function (O) { 12 return O.__proto__; // eslint-disable-line no-proto 13 } 14 : null 15 ); 3 // TODO, semver-major: remove 4 module.exports = require('get-proto'); -
imaps-frontend/node_modules/es-abstract/helpers/intToBinaryString.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var GetIntrinsic = require('get-intrinsic'); 4 5 var $floor = GetIntrinsic('%Math.floor%'); 3 var $floor = require('math-intrinsics/floor'); 6 4 7 5 // https://runestone.academy/ns/books/published/pythonds/BasicDS/ConvertingDecimalNumberstoBinaryNumbers.html#:~:text=The%20Divide%20by%202%20algorithm,have%20a%20remainder%20of%200 -
imaps-frontend/node_modules/es-abstract/helpers/isFinite.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var $isNaN = require('./isNaN'); 4 5 module.exports = function (x) { return (typeof x === 'number' || typeof x === 'bigint') && !$isNaN(x) && x !== Infinity && x !== -Infinity; }; 3 // TODO, semver-major: delete 4 module.exports = require('math-intrinsics/isFinite'); -
imaps-frontend/node_modules/es-abstract/helpers/isFullyPopulatedPropertyDescriptor.js
r0c6b92a r79a0317 5 5 module.exports = function isFullyPopulatedPropertyDescriptor(ES, Desc) { 6 6 return isPropertyDescriptor(Desc) 7 && typeof Desc === 'object'8 7 && '[[Enumerable]]' in Desc 9 8 && '[[Configurable]]' in Desc -
imaps-frontend/node_modules/es-abstract/helpers/isInteger.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var GetIntrinsic = require('get-intrinsic'); 4 5 var $abs = GetIntrinsic('%Math.abs%'); 6 var $floor = GetIntrinsic('%Math.floor%'); 7 8 var $isNaN = require('./isNaN'); 9 var $isFinite = require('./isFinite'); 10 11 module.exports = function isInteger(argument) { 12 if (typeof argument !== 'number' || $isNaN(argument) || !$isFinite(argument)) { 13 return false; 14 } 15 var absValue = $abs(argument); 16 return $floor(absValue) === absValue; 17 }; 18 3 // TODO, semver-major: delete 4 module.exports = require('math-intrinsics/isInteger'); -
imaps-frontend/node_modules/es-abstract/helpers/isPrefixOf.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var $strSlice = require('call-b ind/callBound')('String.prototype.slice');3 var $strSlice = require('call-bound')('String.prototype.slice'); 4 4 5 5 module.exports = function isPrefixOf(prefix, string) { -
imaps-frontend/node_modules/es-abstract/helpers/maxSafeInteger.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 module.exports = Number.MAX_SAFE_INTEGER || 9007199254740991; // Math.pow(2, 53) - 1; 3 // TODO, semver-major: delete 4 module.exports = require('math-intrinsics/constants/maxSafeInteger'); -
imaps-frontend/node_modules/es-abstract/helpers/mod.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var $floor = Math.floor; 4 5 module.exports = function mod(number, modulo) { 6 var remain = number % modulo; 7 return $floor(remain >= 0 ? remain : remain + modulo); 8 }; 3 // TODO, semver-major: delete 4 module.exports = require('math-intrinsics/mod'); -
imaps-frontend/node_modules/es-abstract/helpers/padTimeComponent.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var callBound = require('call-b ind/callBound');3 var callBound = require('call-bound'); 4 4 5 5 var $strSlice = callBound('String.prototype.slice'); -
imaps-frontend/node_modules/es-abstract/helpers/setProto.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var GetIntrinsic = require('get-intrinsic'); 4 5 var originalSetProto = GetIntrinsic('%Object.setPrototypeOf%', true); 6 7 var hasProto = require('has-proto')(); 8 9 module.exports = originalSetProto || ( 10 11 hasProto 12 ? function (O, proto) { 13 O.__proto__ = proto; // eslint-disable-line no-proto, no-param-reassign 14 return O; 15 } 16 : null 17 ); 3 // TODO, semver-major: remove 4 module.exports = require('set-proto'); -
imaps-frontend/node_modules/es-abstract/helpers/sign.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 module.exports = function sign(number) { 4 return number >= 0 ? 1 : -1; 5 }; 3 // TODO, semver-major: delete 4 module.exports = require('math-intrinsics/sign'); -
imaps-frontend/node_modules/es-abstract/helpers/valueToFloat32Bytes.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var GetIntrinsic = require('get-intrinsic'); 3 var $abs = require('math-intrinsics/abs'); 4 var $floor = require('math-intrinsics/floor'); 5 var $pow = require('math-intrinsics/pow'); 4 6 5 var $abs = GetIntrinsic('%Math.abs%'); 6 var $floor = GetIntrinsic('%Math.floor%'); 7 var $pow = GetIntrinsic('%Math.pow%'); 8 9 var isFinite = require('./isFinite'); 10 var isNaN = require('./isNaN'); 11 var isNegativeZero = require('./isNegativeZero'); 7 var isFinite = require('math-intrinsics/isFinite'); 8 var isNaN = require('math-intrinsics/isNaN'); 9 var isNegativeZero = require('math-intrinsics/isNegativeZero'); 12 10 13 11 var maxFiniteFloat32 = 3.4028234663852886e+38; // roughly 2 ** 128 - 1 -
imaps-frontend/node_modules/es-abstract/helpers/valueToFloat64Bytes.js
r0c6b92a r79a0317 4 4 5 5 var $parseInt = GetIntrinsic('%parseInt%'); 6 var $abs = GetIntrinsic('%Math.abs%'); 7 var $floor = GetIntrinsic('%Math.floor%'); 6 var $abs = require('math-intrinsics/abs'); 7 var $floor = require('math-intrinsics/floor'); 8 var isNegativeZero = require('math-intrinsics/isNegativeZero'); 8 9 9 var callBound = require('call-b ind/callBound');10 var callBound = require('call-bound'); 10 11 11 12 var $strIndexOf = callBound('String.prototype.indexOf'); … … 14 15 var fractionToBitString = require('../helpers/fractionToBinaryString'); 15 16 var intToBinString = require('../helpers/intToBinaryString'); 16 var isNegativeZero = require('./isNegativeZero');17 17 18 18 var float64bias = 1023;
Note:
See TracChangeset
for help on using the changeset viewer.