Sha256: 6c2935f36d9230c8c3b34e0d94bababaac859fb16fbd80ab67acc9d600bba685

Contents?: true

Size: 1.61 KB

Versions: 2

Compression:

Stored size: 1.61 KB

Contents

{"version":3,"names":["_setPrototypeOf","require","_isNativeReflectConstruct","_construct","Parent","args","Class","isNativeReflectConstruct","Reflect","construct","apply","arguments","a","push","instance","bind","setPrototypeOf","prototype"],"sources":["../../src/helpers/construct.ts"],"sourcesContent":["/* @minVersion 7.0.0-beta.0 */\n\n// @ts-expect-error helper\nimport setPrototypeOf from \"setPrototypeOf\";\nimport isNativeReflectConstruct from \"./isNativeReflectConstruct.ts\";\n\nexport default function _construct(\n  Parent: Function,\n  args: any[],\n  Class: Function,\n): any {\n  if (isNativeReflectConstruct()) {\n    // Avoid issues with Class being present but undefined when it wasn't\n    // present in the original call.\n    return Reflect.construct.apply(null, arguments as any);\n  }\n  // NOTE: If Parent !== Class, the correct __proto__ is set *after*\n  //       calling the constructor.\n  var a: any[] = [null];\n  a.push.apply(a, args);\n  var instance = new (Parent.bind.apply(Parent, a))();\n  if (Class) setPrototypeOf(instance, Class.prototype);\n  return instance;\n}\n"],"mappings":";;;;;;AAGA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,yBAAA,GAAAD,OAAA;AAEe,SAASE,UAAUA,CAChCC,MAAgB,EAChBC,IAAW,EACXC,KAAe,EACV;EACL,IAAI,IAAAC,iCAAwB,EAAC,CAAC,EAAE;IAG9B,OAAOC,OAAO,CAACC,SAAS,CAACC,KAAK,CAAC,IAAI,EAAEC,SAAgB,CAAC;EACxD;EAGA,IAAIC,CAAQ,GAAG,CAAC,IAAI,CAAC;EACrBA,CAAC,CAACC,IAAI,CAACH,KAAK,CAACE,CAAC,EAAEP,IAAI,CAAC;EACrB,IAAIS,QAAQ,GAAG,KAAKV,MAAM,CAACW,IAAI,CAACL,KAAK,CAACN,MAAM,EAAEQ,CAAC,CAAC,EAAE,CAAC;EACnD,IAAIN,KAAK,EAAEU,eAAc,CAACF,QAAQ,EAAER,KAAK,CAACW,SAAS,CAAC;EACpD,OAAOH,QAAQ;AACjB","ignoreList":[]}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
immosquare-cleaner-0.1.39 node_modules/@babel/helpers/lib/helpers/construct.js.map
immosquare-cleaner-0.1.38 node_modules/@babel/helpers/lib/helpers/construct.js.map