Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/* eslint-disable no-console */
const C = require("@effectful/core");
const config = C.config;
const Policy = C.Policy;
const T = C.Transform;
const Tag = C.Tag;
const Kit = C.Kit;
const rebind = {
all: {
presetsImportPattern: false,
directives: false,
bindCalls: null,
reuseImports: false
},
effectful: {
scopeContext: true,
contextMethodOps: true,
markRepeat: false,
markBindValue: false,
markCatchCont: false,
/* eslint-disable no-console */
const C = require("@effectful/core");
const config = C.config;
const Policy = C.Policy;
const T = C.Transform;
const Tag = C.Tag;
const Kit = C.Kit;
const rebind = {
all: {
presetsImportPattern: false,
directives: false,
bindCalls: null,
reuseImports: false
},
effectful: {
scopeContext: true,
contextMethodOps: true,
markRepeat: false,
/* eslint-disable no-console */
const C = require("@effectful/core");
const config = C.config;
const Policy = C.Policy;
const T = C.Transform;
const Tag = C.Tag;
const Kit = C.Kit;
const rebind = {
all: {
presetsImportPattern: false,
directives: false,
bindCalls: null,
reuseImports: false
},
effectful: {
scopeContext: true,
contextMethodOps: true,
markRepeat: false,
markBindValue: false,
markCatchCont: false,
markArgNum: false,
markErrorCont: false,
/* eslint-disable no-console */
const C = require("@effectful/core");
const config = C.config;
const Policy = C.Policy;
const T = C.Transform;
const Tag = C.Tag;
const Kit = C.Kit;
const rebind = {
all: {
presetsImportPattern: false,
directives: false,
bindCalls: null,
reuseImports: false
},
effectful: {
scopeContext: true,
contextMethodOps: true,
markRepeat: false,
markBindValue: false,
/* eslint-disable no-console */
const C = require("@effectful/core");
const config = C.config;
const Policy = C.Policy;
const T = C.Transform;
const Tag = C.Tag;
const Kit = C.Kit;
const rebind = {
all: {
presetsImportPattern: false,
directives: false,
bindCalls: null,
reuseImports: false
},
effectful: {
scopeContext: true,
contextMethodOps: true,
markRepeat: false,
markBindValue: false,
markCatchCont: false,
markArgNum: false,
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"));