Sha256: 3e1b7482d5c7e092fde9842dd26f6369fe8e35513cbc8cca15e31677df44c23c

Contents?: true

Size: 861 Bytes

Versions: 49

Compression:

Stored size: 861 Bytes

Contents

"use strict";

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

class PluginPass {
  constructor(file, key, options) {
    this._map = new Map();
    this.key = key;
    this.file = file;
    this.opts = options || {};
    this.cwd = file.opts.cwd;
    this.filename = file.opts.filename;
  }

  set(key, val) {
    this._map.set(key, val);
  }

  get(key) {
    return this._map.get(key);
  }

  availableHelper(name, versionRange) {
    return this.file.availableHelper(name, versionRange);
  }

  addHelper(name) {
    return this.file.addHelper(name);
  }

  addImport() {
    return this.file.addImport();
  }

  getModuleName() {
    return this.file.getModuleName();
  }

  buildCodeFrameError(node, msg, Error) {
    return this.file.buildCodeFrameError(node, msg, Error);
  }

}

exports.default = PluginPass;

Version data entries

49 entries across 49 versions & 9 rubygems

Version Path
jester-data-8.0.0 node_modules/@babel/core/lib/transformation/plugin-pass.js
ezii-os-5.2.1 node_modules/@babel/core/lib/transformation/plugin-pass.js
ezii-os-2.0.1 node_modules/@babel/core/lib/transformation/plugin-pass.js
ezii-os-1.1.0 node_modules/@babel/core/lib/transformation/plugin-pass.js
ezii-os-1.0.0 node_modules/@babel/core/lib/transformation/plugin-pass.js
condenser-0.0.7 lib/condenser/processors/node_modules/@babel/core/lib/transformation/plugin-pass.js
ezii-os-0.0.0.1.0 node_modules/@babel/core/lib/transformation/plugin-pass.js
ezii-os-0.0.0.0.1 node_modules/@babel/core/lib/transformation/plugin-pass.js
condenser-0.0.5 lib/condenser/processors/node_modules/@babel/core/lib/transformation/plugin-pass.js