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
optimacms-0.1.61 spec/dummy/node_modules/@babel/core/lib/transformation/plugin-pass.js
disco_app-0.18.0 test/dummy/node_modules/@babel/core/lib/transformation/plugin-pass.js
disco_app-0.18.2 test/dummy/node_modules/@babel/core/lib/transformation/plugin-pass.js
trusty-cms-5.0.7 node_modules/@babel/core/lib/transformation/plugin-pass.js
trusty-cms-5.0.6 node_modules/@babel/core/lib/transformation/plugin-pass.js
trusty-cms-5.0.5 node_modules/@babel/core/lib/transformation/plugin-pass.js
trusty-cms-5.0.4 node_modules/@babel/core/lib/transformation/plugin-pass.js
trusty-cms-5.0.3 node_modules/@babel/core/lib/transformation/plugin-pass.js
trusty-cms-5.0.2 node_modules/@babel/core/lib/transformation/plugin-pass.js
trusty-cms-5.0.1 node_modules/@babel/core/lib/transformation/plugin-pass.js
trusty-cms-4.3.5 node_modules/@babel/core/lib/transformation/plugin-pass.js
trusty-cms-5.0.0 node_modules/@babel/core/lib/transformation/plugin-pass.js
trusty-cms-4.3.4 node_modules/@babel/core/lib/transformation/plugin-pass.js
trusty-cms-4.3.3 node_modules/@babel/core/lib/transformation/plugin-pass.js
trusty-cms-4.3.2 node_modules/@babel/core/lib/transformation/plugin-pass.js
trusty-cms-4.3.1 node_modules/@babel/core/lib/transformation/plugin-pass.js
trusty-cms-4.3 node_modules/@babel/core/lib/transformation/plugin-pass.js
trusty-cms-4.2.3 node_modules/@babel/core/lib/transformation/plugin-pass.js
tang-0.2.1 spec/tang_app/node_modules/@babel/core/lib/transformation/plugin-pass.js
trusty-cms-4.2.2 node_modules/@babel/core/lib/transformation/plugin-pass.js