Sha256: ca0863f33f70893674ced92d45aa82e2218f7049b1d423f6ac37e7db010fd509

Contents?: true

Size: 468 Bytes

Versions: 67

Compression:

Stored size: 468 Bytes

Contents

"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = isPlaceholderType;

var _definitions = require("../definitions");

function isPlaceholderType(placeholderType, targetType) {
  if (placeholderType === targetType) return true;
  const aliases = _definitions.PLACEHOLDERS_ALIAS[placeholderType];

  if (aliases) {
    for (const alias of aliases) {
      if (targetType === alias) return true;
    }
  }

  return false;
}

Version data entries

67 entries across 59 versions & 11 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/@babel/types/lib/validators/isPlaceholderType.js
disco_app-0.18.0 test/dummy/node_modules/@babel/types/lib/validators/isPlaceholderType.js
disco_app-0.18.2 test/dummy/node_modules/@babel/types/lib/validators/isPlaceholderType.js
trusty-cms-5.0.7 node_modules/@babel/types/lib/validators/isPlaceholderType.js
trusty-cms-5.0.6 node_modules/@babel/types/lib/validators/isPlaceholderType.js
trusty-cms-5.0.5 node_modules/@babel/types/lib/validators/isPlaceholderType.js
trusty-cms-5.0.4 node_modules/@babel/types/lib/validators/isPlaceholderType.js
disco_app-0.16.1 test/dummy/node_modules/@babel/preset-modules/node_modules/@babel/types/lib/validators/isPlaceholderType.js
disco_app-0.16.1 test/dummy/node_modules/@babel/types/lib/validators/isPlaceholderType.js
disco_app-0.15.2 test/dummy/node_modules/@babel/preset-modules/node_modules/@babel/types/lib/validators/isPlaceholderType.js
disco_app-0.15.2 test/dummy/node_modules/@babel/types/lib/validators/isPlaceholderType.js
trusty-cms-5.0.3 node_modules/@babel/types/lib/validators/isPlaceholderType.js
trusty-cms-5.0.2 node_modules/@babel/types/lib/validators/isPlaceholderType.js
disco_app-0.18.4 test/dummy/node_modules/@babel/preset-modules/node_modules/@babel/types/lib/validators/isPlaceholderType.js
disco_app-0.18.4 test/dummy/node_modules/@babel/types/lib/validators/isPlaceholderType.js
disco_app-0.18.1 test/dummy/node_modules/@babel/types/lib/validators/isPlaceholderType.js
disco_app-0.18.1 test/dummy/node_modules/@babel/preset-modules/node_modules/@babel/types/lib/validators/isPlaceholderType.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/@babel/preset-modules/node_modules/@babel/types/lib/validators/isPlaceholderType.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/@babel/types/lib/validators/isPlaceholderType.js
disco_app-0.14.0 test/dummy/node_modules/@babel/preset-modules/node_modules/@babel/types/lib/validators/isPlaceholderType.js