@delance/builder 0.2.8 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -38,34 +38,34 @@ var bgBlack = formatter("\x1B[40m", "\x1B[49m");
38
38
  var bgBlue = formatter("\x1B[44m", "\x1B[49m");
39
39
 
40
40
  // cli.ts
41
- var hl = function(...args) {
41
+ var hl = function(..._arguments) {
42
42
  return bgBlack(` ${dim(magenta("$"))} ${[...function* () {
43
- for (let i = 0;i < args.length; i++) {
44
- const arg = args[i];
43
+ for (let i = 0;i < _arguments.length; i++) {
44
+ const argument = _arguments[i];
45
45
  if (i === 0) {
46
- yield yellow(arg);
46
+ yield yellow(argument);
47
47
  continue;
48
48
  }
49
- if (arg === "|") {
49
+ if (argument === "|") {
50
50
  yield green("|");
51
- yield yellow(args[++i]);
51
+ yield yellow(_arguments[++i]);
52
52
  continue;
53
53
  }
54
- if (arg.startsWith("-")) {
55
- yield cyan(arg);
54
+ if (argument.startsWith("-")) {
55
+ yield cyan(argument);
56
56
  continue;
57
57
  }
58
- if (arg.startsWith("#")) {
59
- yield dim(args.slice(i).join(" "));
58
+ if (argument.startsWith("#")) {
59
+ yield dim(_arguments.slice(i).join(" "));
60
60
  return;
61
61
  }
62
62
  if (true) {
63
- if (arg.startsWith('"') && arg.endsWith('"') || arg.startsWith("\'") && arg.endsWith("\'")) {
64
- yield arg[0] + magenta(arg.slice(1, -1)) + arg[0];
63
+ if (argument.startsWith('"') && argument.endsWith('"') || argument.startsWith("\'") && argument.endsWith("\'")) {
64
+ yield argument[0] + magenta(argument.slice(1, -1)) + argument[0];
65
65
  continue;
66
66
  }
67
67
  }
68
- yield arg;
68
+ yield argument;
69
69
  }
70
70
  }()].join(" ")} `);
71
71
  };
package/dist/index.js CHANGED
@@ -49,10 +49,10 @@ var defaultOptions = { jsescOption: { minimal: true } };
49
49
  import traverse4 from "@babel/traverse";
50
50
  import * as t13 from "@babel/types";
51
51
 
52
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/anyExpression.ts
52
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/node_modules/@codemod/matchers/src/matchers/anyExpression.ts
53
53
  import * as t2 from "@babel/types";
54
54
 
55
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/Matcher.ts
55
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/node_modules/@codemod/matchers/src/matchers/Matcher.ts
56
56
  class Matcher {
57
57
  match(value, keys = []) {
58
58
  return this.matchValue(value, keys);
@@ -62,7 +62,7 @@ class Matcher {
62
62
  }
63
63
  }
64
64
 
65
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/anyExpression.ts
65
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/node_modules/@codemod/matchers/src/matchers/anyExpression.ts
66
66
  function anyExpression() {
67
67
  return new AnyExpressionMatcher;
68
68
  }
@@ -75,7 +75,7 @@ class AnyExpressionMatcher extends Matcher {
75
75
  return t2.isNode(value) && t2.isExpression(value);
76
76
  }
77
77
  }
78
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/utils/distributeAcrossSlices.ts
78
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/node_modules/@codemod/matchers/src/utils/distributeAcrossSlices.ts
79
79
  function* distributeAcrossSlices(slices, available) {
80
80
  if (slices.length === 0) {
81
81
  yield [];
@@ -95,7 +95,7 @@ function* distributeAcrossSlices(slices, available) {
95
95
  }
96
96
  }
97
97
 
98
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/anything.ts
98
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/node_modules/@codemod/matchers/src/matchers/anything.ts
99
99
  function anything() {
100
100
  return new AnythingMatcher;
101
101
  }
@@ -109,7 +109,7 @@ class AnythingMatcher extends Matcher {
109
109
  }
110
110
  }
111
111
 
112
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/slice.ts
112
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/node_modules/@codemod/matchers/src/matchers/slice.ts
113
113
  function zeroOrMore(matcher = anything()) {
114
114
  return new SliceMatcher(0, Infinity, matcher);
115
115
  }
@@ -148,7 +148,7 @@ class SliceMatcher extends Matcher {
148
148
  }
149
149
  }
150
150
 
151
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/anyList.ts
151
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/node_modules/@codemod/matchers/src/matchers/anyList.ts
152
152
  function anyList(...elements) {
153
153
  return new AnyListMatcher(elements);
154
154
  }
@@ -206,11 +206,11 @@ class AnyListMatcher extends Matcher {
206
206
  return false;
207
207
  }
208
208
  }
209
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/anyNode.ts
209
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/node_modules/@codemod/matchers/src/matchers/anyNode.ts
210
210
  import * as t3 from "@babel/types";
211
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/anyStatement.ts
211
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/node_modules/@codemod/matchers/src/matchers/anyStatement.ts
212
212
  import * as t4 from "@babel/types";
213
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/anyString.ts
213
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/node_modules/@codemod/matchers/src/matchers/anyString.ts
214
214
  function anyString() {
215
215
  return new StringMatcher;
216
216
  }
@@ -223,7 +223,7 @@ class StringMatcher extends Matcher {
223
223
  return typeof value === "string" || value instanceof String;
224
224
  }
225
225
  }
226
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/arrayOf.ts
226
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/node_modules/@codemod/matchers/src/matchers/arrayOf.ts
227
227
  function arrayOf(elementMatcher) {
228
228
  return new ArrayOfMatcher(elementMatcher);
229
229
  }
@@ -246,7 +246,7 @@ class ArrayOfMatcher extends Matcher {
246
246
  return true;
247
247
  }
248
248
  }
249
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/capture.ts
249
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/node_modules/@codemod/matchers/src/matchers/capture.ts
250
250
  function capture(matcher) {
251
251
  return new CapturedMatcher(matcher);
252
252
  }
@@ -278,7 +278,7 @@ class CapturedMatcher extends Matcher {
278
278
  this._currentKeys = keys;
279
279
  }
280
280
  }
281
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/containerOf.ts
281
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/node_modules/@codemod/matchers/src/matchers/containerOf.ts
282
282
  import * as t5 from "@babel/types";
283
283
  function containerOf(containedMatcher) {
284
284
  return new ContainerOfMatcher(containedMatcher);
@@ -317,10 +317,10 @@ class ContainerOfMatcher extends CapturedMatcher {
317
317
  import * as Babel from "@babel/core";
318
318
  import * as t9 from "@babel/types";
319
319
 
320
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@utils&commit=c39500f305f11f7fa_maxus7tddv3lwsqwoimmrkxkba/node_modules/@codemod/utils/src/NodeTypes.ts
320
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@utils&commit=b132d35da112463c0_dfaxfzbynffgms4zz4jqt5cp3e/node_modules/@codemod/utils/src/NodeTypes.ts
321
321
  import * as t6 from "@babel/types";
322
322
  var { BUILDER_KEYS, NODE_FIELDS } = t6;
323
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@utils&commit=c39500f305f11f7fa_maxus7tddv3lwsqwoimmrkxkba/node_modules/@codemod/utils/src/builders.ts
323
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@utils&commit=b132d35da112463c0_dfaxfzbynffgms4zz4jqt5cp3e/node_modules/@codemod/utils/src/builders.ts
324
324
  import traverse2 from "@babel/traverse";
325
325
  import * as t7 from "@babel/types";
326
326
 
@@ -329,7 +329,7 @@ import {
329
329
  parse as babelParse
330
330
  } from "@babel/parser";
331
331
 
332
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@parser&commit=c39500f305f11f7f_brbiajd6ladsmb4ocu2g3hzuam/node_modules/@codemod/parser/src/options.ts
332
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@parser&commit=b132d35da112463c_bdonirwf7wtcp5olot5b3wswwm/node_modules/@codemod/parser/src/options.ts
333
333
  var DefaultParserPlugins = new Set([
334
334
  "asyncGenerators",
335
335
  "bigInt",
@@ -359,7 +359,7 @@ var DefaultParserPlugins = new Set([
359
359
  ["pipelineOperator", { proposal: "minimal" }],
360
360
  ["recordAndTuple", { syntaxType: "hash" }]
361
361
  ]);
362
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@utils&commit=c39500f305f11f7fa_maxus7tddv3lwsqwoimmrkxkba/node_modules/@codemod/utils/src/nodesEquivalent.ts
362
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@utils&commit=b132d35da112463c0_dfaxfzbynffgms4zz4jqt5cp3e/node_modules/@codemod/utils/src/nodesEquivalent.ts
363
363
  import * as t8 from "@babel/types";
364
364
  function nodesEquivalent(a, b) {
365
365
  if (a === b) {
@@ -405,7 +405,7 @@ function nodesEquivalent(a, b) {
405
405
  }
406
406
  return true;
407
407
  }
408
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/fromCapture.ts
408
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/node_modules/@codemod/matchers/src/matchers/fromCapture.ts
409
409
  function fromCapture(capturedMatcher) {
410
410
  return new FromCaptureMatcher(capturedMatcher);
411
411
  }
@@ -423,10 +423,10 @@ class FromCaptureMatcher extends Matcher {
423
423
  return this.capturedMatcher.current === value;
424
424
  }
425
425
  }
426
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/function.ts
426
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/node_modules/@codemod/matchers/src/matchers/function.ts
427
427
  import * as t10 from "@babel/types";
428
428
 
429
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/tupleOf.ts
429
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/node_modules/@codemod/matchers/src/matchers/tupleOf.ts
430
430
  function tupleOf(...matchers) {
431
431
  return new TupleOfMatcher(...matchers);
432
432
  }
@@ -454,7 +454,7 @@ class TupleOfMatcher extends Matcher {
454
454
  return true;
455
455
  }
456
456
  }
457
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/generated.ts
457
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/node_modules/@codemod/matchers/src/matchers/generated.ts
458
458
  import * as t11 from "@babel/types";
459
459
  function arrayExpression(elements) {
460
460
  return new ArrayExpressionMatcher(elements);
@@ -2136,7 +2136,7 @@ class WhileStatementMatcher extends Matcher {
2136
2136
  return true;
2137
2137
  }
2138
2138
  }
2139
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/or.ts
2139
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/node_modules/@codemod/matchers/src/matchers/or.ts
2140
2140
  function or(...matchersOrValues) {
2141
2141
  return new OrMatcher(...matchersOrValues);
2142
2142
  }
@@ -2160,7 +2160,7 @@ class OrMatcher extends Matcher {
2160
2160
  return false;
2161
2161
  }
2162
2162
  }
2163
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/predicate.ts
2163
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/node_modules/@codemod/matchers/src/matchers/predicate.ts
2164
2164
  function predicate(predicate2) {
2165
2165
  return new PredicateMatcher(predicate2);
2166
2166
  }
@@ -3800,7 +3800,7 @@ async function transform2(ast2) {
3800
3800
  const quickjs = await getQuickJS();
3801
3801
  await applyTransformAsync(ast2, deobfuscate_default, async (code) => quickjs.evalCode(code, {
3802
3802
  shouldInterrupt: shouldInterruptAfterDeadline(Date.now() + 2000),
3803
- memoryLimitBytes: 1048576
3803
+ memoryLimitBytes: 2097152
3804
3804
  }));
3805
3805
  applyTransform(ast2, unminify_default);
3806
3806
  applyTransform(ast2, merge_object_assignments_default);
@@ -4025,22 +4025,22 @@ var module_helper_default = {
4025
4025
  const $chunks = $.get("properties");
4026
4026
  for (const $chunk of $chunks) {
4027
4027
  $chunk.assertObjectProperty();
4028
- const $func = $chunk.get("value");
4029
- $func.assertFunction();
4030
- const $p = $func.get("params");
4028
+ const $function = $chunk.get("value");
4029
+ $function.assertFunction();
4030
+ const $p = $function.get("params");
4031
4031
  $p.forEach(($parameter, i) => {
4032
4032
  $parameter.assertIdentifier();
4033
4033
  switch (i) {
4034
4034
  case 0: {
4035
- $func.scope.rename($parameter.node.name, "module");
4035
+ $function.scope.rename($parameter.node.name, "module");
4036
4036
  break;
4037
4037
  }
4038
4038
  case 1: {
4039
- $func.scope.rename($parameter.node.name, "exports");
4039
+ $function.scope.rename($parameter.node.name, "exports");
4040
4040
  break;
4041
4041
  }
4042
4042
  case 2: {
4043
- $func.scope.rename($parameter.node.name, "require");
4043
+ $function.scope.rename($parameter.node.name, "require");
4044
4044
  break;
4045
4045
  }
4046
4046
  default: {
@@ -4048,7 +4048,7 @@ var module_helper_default = {
4048
4048
  }
4049
4049
  }
4050
4050
  });
4051
- $func.traverse({
4051
+ $function.traverse({
4052
4052
  VariableDeclaration: {
4053
4053
  exit(p2) {
4054
4054
  const $decl = p2.get("declarations.0");
@@ -4093,17 +4093,17 @@ var indirect_call_default = {
4093
4093
  visitor: () => ({
4094
4094
  CallExpression: {
4095
4095
  exit($) {
4096
- const { callee, arguments: args } = $.node;
4096
+ const { callee, arguments: _arguments } = $.node;
4097
4097
  if (!t37.isSequenceExpression(callee)) {
4098
4098
  return;
4099
4099
  }
4100
4100
  const exprs = [...callee.expressions];
4101
- const func = exprs.pop();
4102
- if (!t37.isMemberExpression(func)) {
4101
+ const _function = exprs.pop();
4102
+ if (!t37.isMemberExpression(_function)) {
4103
4103
  return;
4104
4104
  }
4105
4105
  if (exprs.every((expr) => t37.isPureish(expr))) {
4106
- $.replaceWith(t37.callExpression(func, args));
4106
+ $.replaceWith(t37.callExpression(_function, _arguments));
4107
4107
  this.changes++;
4108
4108
  }
4109
4109
  }
@@ -4735,7 +4735,7 @@ var antifeature_default = {
4735
4735
  return;
4736
4736
  }
4737
4737
  const $value = $.get("right");
4738
- let $func;
4738
+ let $function;
4739
4739
  if ($value.isIdentifier()) {
4740
4740
  const $binding = $.scope.getBinding($value.node.name);
4741
4741
  if (!$binding) {
@@ -4745,15 +4745,15 @@ var antifeature_default = {
4745
4745
  $path.assertFunction();
4746
4746
  const $body = $path.get("body");
4747
4747
  $body.assertBlockStatement();
4748
- $func = $body;
4748
+ $function = $body;
4749
4749
  } else if ($value.isFunction()) {
4750
4750
  const $body = $value.get("body");
4751
4751
  $body.assertBlockStatement();
4752
- $func = $body;
4752
+ $function = $body;
4753
4753
  } else {
4754
4754
  return;
4755
4755
  }
4756
- $func.replaceWith(tmpl6.statement.ast`{
4756
+ $function.replaceWith(tmpl6.statement.ast`{
4757
4757
  return;
4758
4758
  }`);
4759
4759
  this.changes++;
@@ -1,4 +1,4 @@
1
- import type { TraverseOptions } from '@babel/traverse';
1
+ import { type TraverseOptions } from '@babel/traverse';
2
2
  import type { TransformState } from 'webcrack/ast-utils';
3
3
  import * as t from '@babel/types';
4
4
  /** Decrypt AES encrypted string constants. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delance/builder",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "A spear to the Python language server built with black magic",
5
5
  "license": "0BSD",
6
6
  "author": "mochaaP <npm@mochaa.ws>",
@@ -66,7 +66,7 @@
66
66
  "@babel/template": "esm",
67
67
  "@babel/traverse": "esm",
68
68
  "@babel/types": "esm",
69
- "quickjs-emscripten": "^0.25.1"
69
+ "quickjs-emscripten": "^0.29.1"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@codemod/core": "https://gitpkg.vercel.app/api/pkg.tgz?url=codemod-js/codemod/packages/core&commit=c39500f305f11f7fa99e037c950a3c89017ed227&scripts.postinstall=rimraf tsconfig.json",
@@ -80,11 +80,11 @@
80
80
  "@types/babel__traverse": "^7.20.5",
81
81
  "@types/bun": "^1.0.8",
82
82
  "@types/debug": "^4.1.12",
83
- "bun": "^1.0.30",
83
+ "bun": "^1.0.31",
84
84
  "rimraf": "^5.0.5",
85
85
  "typescript": "^5.4.2",
86
86
  "webcrack": "https://gitpkg.vercel.app/api/pkg.tgz?url=j4k0xb/webcrack/packages/webcrack&commit=1287443b72a6af593cf186771bd5b2d6afb7b9db&scripts.postinstall=rimraf tsconfig.json",
87
- "xo": "^0.56.0"
87
+ "xo": "^0.58.0"
88
88
  },
89
89
  "peerDependencies": {
90
90
  "debug": "^4"