Sha256: 2ec009dbe3a2f697d9d702d2f61d8976476eaff6269e9c6fe23115d6227e9aec

Contents?: true

Size: 643 Bytes

Versions: 10

Compression:

Stored size: 643 Bytes

Contents

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;
  }
}

module.exports = _interopRequireWildcard;

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
condenser-0.0.8 lib/condenser/processors/node_modules/@babel/runtime/helpers/interopRequireWildcard.js
jester-data-8.0.0 node_modules/@babel/runtime/helpers/interopRequireWildcard.js
ezii-os-5.2.1 node_modules/@babel/runtime/helpers/interopRequireWildcard.js
ezii-os-2.0.1 node_modules/@babel/runtime/helpers/interopRequireWildcard.js
ezii-os-1.1.0 node_modules/@babel/runtime/helpers/interopRequireWildcard.js
ezii-os-1.0.0 node_modules/@babel/runtime/helpers/interopRequireWildcard.js
condenser-0.0.7 lib/condenser/processors/node_modules/@babel/runtime/helpers/interopRequireWildcard.js
ezii-os-0.0.0.1.0 node_modules/@babel/runtime/helpers/interopRequireWildcard.js
ezii-os-0.0.0.0.1 node_modules/@babel/runtime/helpers/interopRequireWildcard.js
condenser-0.0.5 lib/condenser/processors/node_modules/@babel/runtime/helpers/interopRequireWildcard.js