Sha256: a71613b432b24f17f36824ba92e918e0bbc3011fcdf224565fbcc5446c7a1655

Contents?: true

Size: 644 Bytes

Versions: 12

Compression:

Stored size: 644 Bytes

Contents

"use strict";

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

function _esutils() {
  const data = _interopRequireDefault(require("esutils"));

  _esutils = function () {
    return data;
  };

  return data;
}

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

function isValidIdentifier(name) {
  if (typeof name !== "string" || _esutils().default.keyword.isReservedWordES6(name, true)) {
    return false;
  } else if (name === "await") {
    return false;
  } else {
    return _esutils().default.keyword.isIdentifierNameES6(name);
  }
}

Version data entries

12 entries across 12 versions & 4 rubygems

Version Path
condenser-0.0.8 lib/condenser/processors/node_modules/@babel/types/lib/validators/isValidIdentifier.js
jester-data-8.0.0 node_modules/@babel/types/lib/validators/isValidIdentifier.js
ezii-os-5.2.1 node_modules/@babel/types/lib/validators/isValidIdentifier.js
ezii-os-2.0.1 node_modules/@babel/types/lib/validators/isValidIdentifier.js
ezii-os-1.1.0 node_modules/@babel/types/lib/validators/isValidIdentifier.js
ezii-os-1.0.0 node_modules/@babel/types/lib/validators/isValidIdentifier.js
condenser-0.0.7 lib/condenser/processors/node_modules/@babel/types/lib/validators/isValidIdentifier.js
ezii-os-0.0.0.1.0 node_modules/@babel/types/lib/validators/isValidIdentifier.js
ezii-os-0.0.0.0.1 node_modules/@babel/types/lib/validators/isValidIdentifier.js
condenser-0.0.5 lib/condenser/processors/node_modules/@babel/types/lib/validators/isValidIdentifier.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/@babel/types/lib/validators/isValidIdentifier.js
locomotivecms-3.4.0 app/javascript/node_modules/@babel/types/lib/validators/isValidIdentifier.js