Sha256: fdb1736f2cad42ae93add77ec691c5af7e4467fde504efaeb268dc780d1b74c2

Contents?: true

Size: 1.39 KB

Versions: 31

Compression:

Stored size: 1.39 KB

Contents

/* */ 
"format cjs";
"use strict";

exports.__esModule = true;
exports.internal = internal;
exports.blacklist = blacklist;
exports.whitelist = whitelist;
exports.stage = stage;
exports.optional = optional;
// istanbul ignore next

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var _lodashCollectionIncludes = require("lodash/collection/includes");

var _lodashCollectionIncludes2 = _interopRequireDefault(_lodashCollectionIncludes);

/**
 * [Please add a description.]
 */

function internal(transformer) {
  if (transformer.key[0] === "_") return true;
}

/**
 * [Please add a description.]
 */

function blacklist(transformer, opts) {
  var blacklist = opts.blacklist;
  if (blacklist.length && _lodashCollectionIncludes2["default"](blacklist, transformer.key)) return false;
}

/**
 * [Please add a description.]
 */

function whitelist(transformer, opts) {
  var whitelist = opts.whitelist;
  if (whitelist) return _lodashCollectionIncludes2["default"](whitelist, transformer.key);
}

/**
 * [Please add a description.]
 */

function stage(transformer, opts) {
  var stage = transformer.metadata.stage;
  if (stage != null && stage >= opts.stage) return true;
}

/**
 * [Please add a description.]
 */

function optional(transformer, opts) {
  if (transformer.metadata.optional && !_lodashCollectionIncludes2["default"](opts.optional, transformer.key)) return false;
}

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
sequenceserver-3.1.3 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/filters.js
sequenceserver-3.1.2 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/filters.js
sequenceserver-3.1.1 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/filters.js
sequenceserver-3.1.0 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/filters.js
sequenceserver-3.0.1 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/filters.js
sequenceserver-3.0 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/filters.js
sequenceserver-2.2.0 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/filters.js
sequenceserver-2.1.0 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/filters.js
sequenceserver-2.0.0 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/filters.js
sequenceserver-2.0.0.rc8 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/filters.js
sequenceserver-2.0.0.rc7 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/filters.js
sequenceserver-2.0.0.rc6 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/filters.js
sequenceserver-2.0.0.rc5 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/filters.js
sequenceserver-2.0.0.rc4 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/filters.js
sequenceserver-2.0.0.rc3 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/filters.js
sequenceserver-2.0.0.rc2 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/filters.js
sequenceserver-2.0.0.rc1 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/filters.js
sequenceserver-2.0.0.beta4 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/filters.js
sequenceserver-2.0.0.beta3 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/filters.js
sequenceserver-2.0.0.beta1 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/filters.js