Sha256: dd92923f8dd92787e7f1147bbeedd87ef911253a997f367bec0e9c5c9431d480

Contents?: true

Size: 791 Bytes

Versions: 3

Compression:

Stored size: 791 Bytes

Contents

import _Object$getOwnPropertyDescriptor from "../../core-js/object/get-own-property-descriptor";
import _Object$defineProperty from "../../core-js/object/define-property";
export default function _interopRequireWildcard(obj) {
  if (obj && obj.__esModule) {
    return obj;
  } else {
    var newObj = {};

    if (obj != null) {
      for (var key in obj) {
        if (Object.prototype.hasOwnProperty.call(obj, key)) {
          var desc = _Object$defineProperty && _Object$getOwnPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : {};

          if (desc.get || desc.set) {
            _Object$defineProperty(newObj, key, desc);
          } else {
            newObj[key] = obj[key];
          }
        }
      }
    }

    newObj["default"] = obj;
    return newObj;
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
condenser-0.0.8 lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/interopRequireWildcard.js
condenser-0.0.7 lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/interopRequireWildcard.js
condenser-0.0.5 lib/condenser/processors/node_modules/@babel/runtime-corejs2/helpers/esm/interopRequireWildcard.js