Sha256: 92cb7adef63799db832d8cd55f20fca9b7f437c025c6e067dd649904fa132295

Contents?: true

Size: 1.13 KB

Versions: 31

Compression:

Stored size: 1.13 KB

Contents

/* */ 
"use strict";
var _Object$defineProperty = require('../core-js/object/define-property')["default"];
exports["default"] = function(descriptors) {
  var target = {};
  for (var i = 0; i < descriptors.length; i++) {
    var descriptor = descriptors[i];
    var decorators = descriptor.decorators;
    var key = descriptor.key;
    delete descriptor.key;
    delete descriptor.decorators;
    descriptor.enumerable = true;
    descriptor.configurable = true;
    if ("value" in descriptor || descriptor.initializer)
      descriptor.writable = true;
    if (decorators) {
      for (var f = 0; f < decorators.length; f++) {
        var decorator = decorators[f];
        if (typeof decorator === "function") {
          descriptor = decorator(target, key, descriptor) || descriptor;
        } else {
          throw new TypeError("The decorator for method " + descriptor.key + " is of the invalid type " + typeof decorator);
        }
      }
    }
    if (descriptor.initializer) {
      descriptor.value = descriptor.initializer.call(target);
    }
    _Object$defineProperty(target, key, descriptor);
  }
  return target;
};
exports.__esModule = true;

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
sequenceserver-3.1.3 public/vendor/npm/babel-runtime@5.8.20/helpers/create-decorated-object.js
sequenceserver-3.1.2 public/vendor/npm/babel-runtime@5.8.20/helpers/create-decorated-object.js
sequenceserver-3.1.1 public/vendor/npm/babel-runtime@5.8.20/helpers/create-decorated-object.js
sequenceserver-3.1.0 public/vendor/npm/babel-runtime@5.8.20/helpers/create-decorated-object.js
sequenceserver-3.0.1 public/vendor/npm/babel-runtime@5.8.20/helpers/create-decorated-object.js
sequenceserver-3.0 public/vendor/npm/babel-runtime@5.8.20/helpers/create-decorated-object.js
sequenceserver-2.2.0 public/vendor/npm/babel-runtime@5.8.20/helpers/create-decorated-object.js
sequenceserver-2.1.0 public/vendor/npm/babel-runtime@5.8.20/helpers/create-decorated-object.js
sequenceserver-2.0.0 public/vendor/npm/babel-runtime@5.8.20/helpers/create-decorated-object.js
sequenceserver-2.0.0.rc8 public/vendor/npm/babel-runtime@5.8.20/helpers/create-decorated-object.js
sequenceserver-2.0.0.rc7 public/vendor/npm/babel-runtime@5.8.20/helpers/create-decorated-object.js
sequenceserver-2.0.0.rc6 public/vendor/npm/babel-runtime@5.8.20/helpers/create-decorated-object.js
sequenceserver-2.0.0.rc5 public/vendor/npm/babel-runtime@5.8.20/helpers/create-decorated-object.js
sequenceserver-2.0.0.rc4 public/vendor/npm/babel-runtime@5.8.20/helpers/create-decorated-object.js
sequenceserver-2.0.0.rc3 public/vendor/npm/babel-runtime@5.8.20/helpers/create-decorated-object.js
sequenceserver-2.0.0.rc2 public/vendor/npm/babel-runtime@5.8.20/helpers/create-decorated-object.js
sequenceserver-2.0.0.rc1 public/vendor/npm/babel-runtime@5.8.20/helpers/create-decorated-object.js
sequenceserver-2.0.0.beta4 public/vendor/npm/babel-runtime@5.8.20/helpers/create-decorated-object.js
sequenceserver-2.0.0.beta3 public/vendor/npm/babel-runtime@5.8.20/helpers/create-decorated-object.js
sequenceserver-2.0.0.beta1 public/vendor/npm/babel-runtime@5.8.20/helpers/create-decorated-object.js