@delance/builder 0.2.9 → 0.2.10

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.
Files changed (2) hide show
  1. package/dist/index.js +30 -28
  2. package/package.json +4 -4
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=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/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=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/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=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/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=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/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=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/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=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/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=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/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=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/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=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/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=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/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=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/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=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/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=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/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=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/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=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/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=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/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=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/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=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/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=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/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=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/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=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/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=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/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=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/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=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/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=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/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=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/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=b132d35da112463c0_dfaxfzbynffgms4zz4jqt5cp3e/node_modules/@codemod/utils/src/NodeTypes.ts
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
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=b132d35da112463c0_dfaxfzbynffgms4zz4jqt5cp3e/node_modules/@codemod/utils/src/builders.ts
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
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=b132d35da112463c_bdonirwf7wtcp5olot5b3wswwm/node_modules/@codemod/parser/src/options.ts
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
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=b132d35da112463c0_dfaxfzbynffgms4zz4jqt5cp3e/node_modules/@codemod/utils/src/nodesEquivalent.ts
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
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=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/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=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/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=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/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=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/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=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/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=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/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=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/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=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/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=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/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=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/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=b132d35da11246_w2ruq6yu44nocafynhp2nqk7de/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=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/predicate.ts
2164
2164
  function predicate(predicate2) {
2165
2165
  return new PredicateMatcher(predicate2);
2166
2166
  }
@@ -4699,12 +4699,14 @@ var antifeature_default = {
4699
4699
  const $callee = $.get("callee");
4700
4700
  if ($callee.isMemberExpression()) {
4701
4701
  const $main = $callee.get("object");
4702
- $main.assertIdentifier();
4703
- const $binding = $.scope.getBinding($main.node.name);
4704
- if (!$binding) {
4705
- return;
4702
+ let $path = $main;
4703
+ if ($main.isIdentifier()) {
4704
+ const $binding = $.scope.getBinding($main.node.name);
4705
+ if (!$binding) {
4706
+ return;
4707
+ }
4708
+ $path = $binding.path;
4706
4709
  }
4707
- const $path = $binding.path;
4708
4710
  $path.traverse({
4709
4711
  CallExpression: {
4710
4712
  exit($call) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delance/builder",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
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>",
@@ -78,11 +78,11 @@
78
78
  "@types/babel__helper-validator-identifier": "^7.15.2",
79
79
  "@types/babel__template": "^7.4.4",
80
80
  "@types/babel__traverse": "^7.20.5",
81
- "@types/bun": "^1.0.8",
81
+ "@types/bun": "^1.0.11",
82
82
  "@types/debug": "^4.1.12",
83
- "bun": "^1.0.31",
83
+ "bun": "^1.0.35",
84
84
  "rimraf": "^5.0.5",
85
- "typescript": "^5.4.2",
85
+ "typescript": "^5.4.3",
86
86
  "webcrack": "https://gitpkg.vercel.app/api/pkg.tgz?url=j4k0xb/webcrack/packages/webcrack&commit=1287443b72a6af593cf186771bd5b2d6afb7b9db&scripts.postinstall=rimraf tsconfig.json",
87
87
  "xo": "^0.58.0"
88
88
  },