Ignore:
Timestamp:
01/21/25 03:08:24 (3 days ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
0c6b92a
Message:

F4 Finalna Verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/get-intrinsic/index.js

    r0c6b92a r79a0317  
    22
    33var undefined;
     4
     5var $Object = require('es-object-atoms');
    46
    57var $Error = require('es-errors');
     
    1113var $URIError = require('es-errors/uri');
    1214
     15var abs = require('math-intrinsics/abs');
     16var floor = require('math-intrinsics/floor');
     17var max = require('math-intrinsics/max');
     18var min = require('math-intrinsics/min');
     19var pow = require('math-intrinsics/pow');
     20var round = require('math-intrinsics/round');
     21var sign = require('math-intrinsics/sign');
     22
    1323var $Function = Function;
    1424
     
    2030};
    2131
    22 var $gOPD = Object.getOwnPropertyDescriptor;
    23 if ($gOPD) {
    24         try {
    25                 $gOPD({}, '');
    26         } catch (e) {
    27                 $gOPD = null; // this is IE 8, which has a broken gOPD
    28         }
    29 }
     32var $gOPD = require('gopd');
     33var $defineProperty = require('es-define-property');
    3034
    3135var throwTypeError = function () {
     
    5054
    5155var hasSymbols = require('has-symbols')();
    52 var hasProto = require('has-proto')();
    53 
    54 var getProto = Object.getPrototypeOf || (
    55         hasProto
    56                 ? function (x) { return x.__proto__; } // eslint-disable-line no-proto
    57                 : null
    58 );
     56
     57var getProto = require('get-proto');
     58var $ObjectGPO = require('get-proto/Object.getPrototypeOf');
     59var $ReflectGPO = require('get-proto/Reflect.getPrototypeOf');
     60
     61var $apply = require('call-bind-apply-helpers/functionApply');
     62var $call = require('call-bind-apply-helpers/functionCall');
    5963
    6064var needsEval = {};
     
    103107        '%Math%': Math,
    104108        '%Number%': Number,
    105         '%Object%': Object,
     109        '%Object%': $Object,
     110        '%Object.getOwnPropertyDescriptor%': $gOPD,
    106111        '%parseFloat%': parseFloat,
    107112        '%parseInt%': parseInt,
     
    129134        '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
    130135        '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
    131         '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
     136        '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,
     137
     138        '%Function.prototype.call%': $call,
     139        '%Function.prototype.apply%': $apply,
     140        '%Object.defineProperty%': $defineProperty,
     141        '%Object.getPrototypeOf%': $ObjectGPO,
     142        '%Math.abs%': abs,
     143        '%Math.floor%': floor,
     144        '%Math.max%': max,
     145        '%Math.min%': min,
     146        '%Math.pow%': pow,
     147        '%Math.round%': round,
     148        '%Math.sign%': sign,
     149        '%Reflect.getPrototypeOf%': $ReflectGPO
    132150};
    133151
     
    224242var bind = require('function-bind');
    225243var hasOwn = require('hasown');
    226 var $concat = bind.call(Function.call, Array.prototype.concat);
    227 var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
    228 var $replace = bind.call(Function.call, String.prototype.replace);
    229 var $strSlice = bind.call(Function.call, String.prototype.slice);
    230 var $exec = bind.call(Function.call, RegExp.prototype.exec);
     244var $concat = bind.call($call, Array.prototype.concat);
     245var $spliceApply = bind.call($apply, Array.prototype.splice);
     246var $replace = bind.call($call, String.prototype.replace);
     247var $strSlice = bind.call($call, String.prototype.slice);
     248var $exec = bind.call($call, RegExp.prototype.exec);
    231249
    232250/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
Note: See TracChangeset for help on using the changeset viewer.