Sha256: fcd0d5aeb450c6c3b353897ffb34ebd4d3175732fedd047742222098962ff945

Contents?: true

Size: 743 Bytes

Versions: 24

Compression:

Stored size: 743 Bytes

Contents

"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.enableFeature = enableFeature;
exports.hasFeature = hasFeature;
exports.runtimeKey = exports.featuresKey = exports.FEATURES = void 0;
const FEATURES = Object.freeze({
  unicodeFlag: 1 << 0,
  dotAllFlag: 1 << 1,
  unicodePropertyEscape: 1 << 2,
  namedCaptureGroups: 1 << 3
});
exports.FEATURES = FEATURES;
const featuresKey = "@babel/plugin-regexp-features/featuresKey";
exports.featuresKey = featuresKey;
const runtimeKey = "@babel/plugin-regexp-features/runtimeKey";
exports.runtimeKey = runtimeKey;

function enableFeature(features, feature) {
  return features | feature;
}

function hasFeature(features, feature) {
  return !!(features & feature);
}

Version data entries

24 entries across 23 versions & 7 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/@babel/helper-create-regexp-features-plugin/lib/features.js
disco_app-0.16.1 test/dummy/node_modules/@babel/helper-create-regexp-features-plugin/lib/features.js
disco_app-0.15.2 test/dummy/node_modules/@babel/helper-create-regexp-features-plugin/lib/features.js
disco_app-0.18.4 test/dummy/node_modules/@babel/helper-create-regexp-features-plugin/lib/features.js
disco_app-0.18.1 test/dummy/node_modules/@babel/helper-create-regexp-features-plugin/lib/features.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/@babel/helper-create-regexp-features-plugin/lib/features.js
disco_app-0.14.0 test/dummy/node_modules/@babel/helper-create-regexp-features-plugin/lib/features.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/@babel/helper-create-regexp-features-plugin/lib/features.js
tang-0.2.1 spec/tang_app/node_modules/@babel/helper-create-regexp-features-plugin/lib/features.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/@babel/helper-create-regexp-features-plugin/lib/features.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/@babel/helper-create-regexp-features-plugin/lib/features.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/@babel/helper-create-regexp-features-plugin/lib/features.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/@babel/helper-create-regexp-features-plugin/lib/features.js
tang-0.2.0 spec/tang_app/node_modules/@babel/helper-create-regexp-features-plugin/lib/features.js
tang-0.1.0 spec/tang_app/node_modules/@babel/helper-create-regexp-features-plugin/lib/features.js
tang-0.0.9 spec/tang_app/node_modules/@babel/helper-create-regexp-features-plugin/lib/features.js
enju_library-0.3.8 spec/dummy/node_modules/@babel/helper-create-regexp-features-plugin/lib/features.js
condenser-0.3 lib/condenser/processors/node_modules/@babel/helper-create-regexp-features-plugin/lib/features.js
condenser-0.2 lib/condenser/processors/node_modules/@babel/helper-create-regexp-features-plugin/lib/features.js
condenser-0.1 lib/condenser/processors/node_modules/@babel/helper-create-regexp-features-plugin/lib/features.js