Sha256: e68fcf564e0de7f437ee3e15ea6eb60958e3769666821597c79482e2546bd565

Contents?: true

Size: 593 Bytes

Versions: 11

Compression:

Stored size: 593 Bytes

Contents

"use strict";

exports.__esModule = true;
exports.default = void 0;

var _utils = require("../utils");

var _default = callProvider => ({
  ImportDeclaration(path) {
    const source = (0, _utils.getImportSource)(path);
    if (!source) return;
    callProvider({
      kind: "import",
      source
    }, path);
  },

  Program(path) {
    path.get("body").forEach(bodyPath => {
      const source = (0, _utils.getRequireSource)(bodyPath);
      if (!source) return;
      callProvider({
        kind: "import",
        source
      }, bodyPath);
    });
  }

});

exports.default = _default;

Version data entries

11 entries across 10 versions & 3 rubygems

Version Path
disco_app-0.16.1 test/dummy/node_modules/@babel/helper-define-polyfill-provider/lib/visitors/entry.js
disco_app-0.15.2 test/dummy/node_modules/@babel/helper-define-polyfill-provider/lib/visitors/entry.js
disco_app-0.18.4 test/dummy/node_modules/@babel/helper-define-polyfill-provider/lib/visitors/entry.js
disco_app-0.18.1 test/dummy/node_modules/@babel/helper-define-polyfill-provider/lib/visitors/entry.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/@babel/helper-define-polyfill-provider/lib/visitors/entry.js
disco_app-0.14.0 test/dummy/node_modules/@babel/helper-define-polyfill-provider/lib/visitors/entry.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/@babel/helper-define-polyfill-provider/lib/visitors/entry.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/@babel/helper-define-polyfill-provider/lib/visitors/entry.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/@babel/helper-define-polyfill-provider/lib/visitors/entry.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/@babel/helper-define-polyfill-provider/lib/visitors/entry.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/@babel/helper-define-polyfill-provider/lib/visitors/entry.js