Sha256: dfd8ac6cd53c9a8c0bc884c8649c6760f9c6bfce2f4bbff281cedbd63bb1df45

Contents?: true

Size: 1.47 KB

Versions: 22

Compression:

Stored size: 1.47 KB

Contents

"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.transform = void 0;
exports.transformAsync = transformAsync;
exports.transformSync = transformSync;
function _gensync() {
  const data = require("gensync");
  _gensync = function () {
    return data;
  };
  return data;
}
var _index = require("./config/index.js");
var _index2 = require("./transformation/index.js");
var _rewriteStackTrace = require("./errors/rewrite-stack-trace.js");
const transformRunner = _gensync()(function* transform(code, opts) {
  const config = yield* (0, _index.default)(opts);
  if (config === null) return null;
  return yield* (0, _index2.run)(config, code);
});
const transform = exports.transform = function transform(code, optsOrCallback, maybeCallback) {
  let opts;
  let callback;
  if (typeof optsOrCallback === "function") {
    callback = optsOrCallback;
    opts = undefined;
  } else {
    opts = optsOrCallback;
    callback = maybeCallback;
  }
  if (callback === undefined) {
    {
      return (0, _rewriteStackTrace.beginHiddenCallStack)(transformRunner.sync)(code, opts);
    }
  }
  (0, _rewriteStackTrace.beginHiddenCallStack)(transformRunner.errback)(code, opts, callback);
};
function transformSync(...args) {
  return (0, _rewriteStackTrace.beginHiddenCallStack)(transformRunner.sync)(...args);
}
function transformAsync(...args) {
  return (0, _rewriteStackTrace.beginHiddenCallStack)(transformRunner.async)(...args);
}
0 && 0;

//# sourceMappingURL=transform.js.map

Version data entries

22 entries across 15 versions & 2 rubygems

Version Path
immosquare-cleaner-0.1.51 node_modules/jscodeshift/node_modules/@babel/core/lib/transform.js
immosquare-cleaner-0.1.51 node_modules/@babel/core/lib/transform.js
immosquare-cleaner-0.1.50 node_modules/@babel/core/lib/transform.js
immosquare-cleaner-0.1.50 node_modules/jscodeshift/node_modules/@babel/core/lib/transform.js
immosquare-cleaner-0.1.49 node_modules/jscodeshift/node_modules/@babel/core/lib/transform.js
immosquare-cleaner-0.1.49 node_modules/@babel/core/lib/transform.js
immosquare-cleaner-0.1.48 node_modules/jscodeshift/node_modules/@babel/core/lib/transform.js
immosquare-cleaner-0.1.48 node_modules/@babel/core/lib/transform.js
immosquare-cleaner-0.1.47 node_modules/jscodeshift/node_modules/@babel/core/lib/transform.js
immosquare-cleaner-0.1.47 node_modules/@babel/core/lib/transform.js
immosquare-cleaner-0.1.46 node_modules/jscodeshift/node_modules/@babel/core/lib/transform.js
immosquare-cleaner-0.1.46 node_modules/@babel/core/lib/transform.js
immosquare-cleaner-0.1.45 node_modules/jscodeshift/node_modules/@babel/core/lib/transform.js
immosquare-cleaner-0.1.45 node_modules/@babel/core/lib/transform.js
immosquare-cleaner-0.1.44 node_modules/@babel/core/lib/transform.js
immosquare-cleaner-0.1.43 node_modules/@babel/core/lib/transform.js
immosquare-cleaner-0.1.42 node_modules/@babel/core/lib/transform.js
immosquare-cleaner-0.1.41 node_modules/@babel/core/lib/transform.js
immosquare-cleaner-0.1.40 node_modules/@babel/core/lib/transform.js
wice_grid-7.1.0 node_modules/@babel/core/lib/transform.js