Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.exports = require("@effectful/core").babelPlugin(require("./options"));
"frame",
"unhandled",
"unhandledA",
"unhandledAG",
"set",
"del",
"mcall"
];
let VERBOSE = process.env.EFFECTFUL_DEBUGGER_VERBOSE;
if (VERBOSE) {
VERBOSE = VERBOSE[0].toLowerCase() === "t" || (!isNaN(VERBOSE) && +VERBOSE);
} else VERBOSE = false;
module.exports = require("@effectful/core").babelPlugin(
(opts, { Tag, Kit, Transform: T, Policy: P, presets }) => {
const moduleAliases = {};
const importRT = opts.importRT || "@effectful/debugger/api";
if (opts.preInstrumentedLibs) {
const root = opts.preInstrumentedLibs.substr
? opts.preInstrumentedLibs
: "@effectful/debugger";
for (const i in require("./deps.json")) {
const suffix = opts.timeTravel ? "-t" : "";
const path = `${root}/deps/${i.replace(/\//g, "-")}${suffix}`;
moduleAliases[i] = path;
if (i.includes("/")) moduleAliases[`${i}.js`] = path;
}
}
const brk = Kit.sysId("brk");
const unwrapSym = Kit.sysId("unwrapImport");
module.exports = require("@effectful/core").babelPlugin(require("./options"));
module.exports = require("@effectful/core").babelPlugin(
(opts, { Tag, Kit, presets }) => ({
options: {
/** using state's numbers instead of callbacks */
...presets.defunct,
name: "@effectful/react-do",
importRT: "@effectful/react-do",
contextBy: "this",
contextMethodOpsSpec: {
join: false,
pure: false
},
parShare: false,
blockDirsFunc: "profile",
...opts
},
configure(s) {
module.exports = require("@effectful/core").babelPlugin(require("./options"));
${tt ? "if (newTarget) unwrapPrototype(self);" : ""}
return $3.top = ${tt ? "wrap" : ""}({
$$$: proto.$$$,
state: 0,
meta: proto.meta,
self,
newTarget: new.target != null,
$: ${tt ? "wrap({})" : "{}"},
brk: null,
exitBrk: null,
next: $3.top
})
}
`;
module.exports = require("@effectful/core").babelPlugin((opts, {
Tag,
Kit,
Transform: T,
Policy: P,
presets
}) => {
const moduleAliases = {};
const importRT = opts.importRT || (opts.backend ? `@effectful/debugger/backends/${opts.backend}` : "@effectful/debugger/api");
if (opts.preInstrumentedLibs) {
const root = opts.preInstrumentedLibs.substr ? opts.preInstrumentedLibs : "@effectful/debugger";
for (const i in require("./deps.json")) {
moduleAliases[i] = `${root}/deps/${i.replace("/", "-")}`;
}
}