Sha256: 78e210e02c0f9ec51c9aad4aa338955ce6ecb9663f65cbeb5894357d7479f7da

Contents?: true

Size: 957 Bytes

Versions: 15

Compression:

Stored size: 957 Bytes

Contents

"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = _applyDecoratedDescriptor;
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
  var desc = {};
  Object.keys(descriptor).forEach(function (key) {
    desc[key] = descriptor[key];
  });
  desc.enumerable = !!desc.enumerable;
  desc.configurable = !!desc.configurable;
  if ("value" in desc || desc.initializer) {
    desc.writable = true;
  }
  desc = decorators.slice().reverse().reduce(function (desc, decorator) {
    return decorator(target, property, desc) || desc;
  }, desc);
  if (context && desc.initializer !== void 0) {
    desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
    desc.initializer = void 0;
  }
  if (desc.initializer === void 0) {
    Object.defineProperty(target, property, desc);
    return null;
  }
  return desc;
}

//# sourceMappingURL=applyDecoratedDescriptor.js.map

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
immosquare-cleaner-0.1.62 node_modules/@babel/helpers/lib/helpers/applyDecoratedDescriptor.js
immosquare-cleaner-0.1.61 node_modules/@babel/helpers/lib/helpers/applyDecoratedDescriptor.js
immosquare-cleaner-0.1.60 node_modules/@babel/helpers/lib/helpers/applyDecoratedDescriptor.js
immosquare-cleaner-0.1.59 node_modules/@babel/helpers/lib/helpers/applyDecoratedDescriptor.js
immosquare-cleaner-0.1.58 node_modules/@babel/helpers/lib/helpers/applyDecoratedDescriptor.js
immosquare-cleaner-0.1.57 node_modules/@babel/helpers/lib/helpers/applyDecoratedDescriptor.js
immosquare-cleaner-0.1.56 node_modules/@babel/helpers/lib/helpers/applyDecoratedDescriptor.js
immosquare-cleaner-0.1.55 node_modules/@babel/helpers/lib/helpers/applyDecoratedDescriptor.js
immosquare-cleaner-0.1.54 node_modules/@babel/helpers/lib/helpers/applyDecoratedDescriptor.js
immosquare-cleaner-0.1.53 node_modules/@babel/helpers/lib/helpers/applyDecoratedDescriptor.js
immosquare-cleaner-0.1.52 node_modules/@babel/helpers/lib/helpers/applyDecoratedDescriptor.js
immosquare-cleaner-0.1.51 node_modules/@babel/helpers/lib/helpers/applyDecoratedDescriptor.js
immosquare-cleaner-0.1.50 node_modules/@babel/helpers/lib/helpers/applyDecoratedDescriptor.js
immosquare-cleaner-0.1.49 node_modules/@babel/helpers/lib/helpers/applyDecoratedDescriptor.js
immosquare-cleaner-0.1.48 node_modules/@babel/helpers/lib/helpers/applyDecoratedDescriptor.js