@nudojs/lsp 1.1.1 → 1.1.2

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/index.js CHANGED
@@ -242131,7 +242131,9 @@ __export(calls_exports, {
242131
242131
  $recordBinding: () => $recordBinding,
242132
242132
  MAX_B_CALL_DEPTH: () => MAX_B_CALL_DEPTH,
242133
242133
  MAX_B_TOTAL_CALLS: () => MAX_B_TOTAL_CALLS,
242134
+ blockHostSideEffect: () => blockHostSideEffect,
242134
242135
  getBCallCollector: () => getBCallCollector,
242136
+ neverExecHostName: () => neverExecHostName,
242135
242137
  noteBCallRecord: () => noteBCallRecord,
242136
242138
  resetBCallBudget: () => resetBCallBudget,
242137
242139
  setBAssignCollector: () => setBAssignCollector,
@@ -242200,6 +242202,12 @@ function neverExecHostName(fn2) {
242200
242202
  }
242201
242203
  return null;
242202
242204
  }
242205
+ function blockHostSideEffect(fn2) {
242206
+ const hostName = neverExecHostName(fn2);
242207
+ if (hostName === null) return null;
242208
+ noteHostEffectBlocked(hostName);
242209
+ return abs({ k: "unknown" }, void 0, void 0, "opaque");
242210
+ }
242203
242211
  function noteBCallRecord(r) {
242204
242212
  if (!bCallCollector) return;
242205
242213
  try {
@@ -242281,12 +242289,11 @@ function $callNamed(name, fn2, args, loc, argLocs) {
242281
242289
  try {
242282
242290
  if (typeof fn2 === "function") {
242283
242291
  const g = GLOBAL_FNS.has(name) && fn2 === globalThis[name] ? evalGlobalFn(name, args) : void 0;
242284
- const blockedHost = g === void 0 ? neverExecHostName(fn2) : null;
242292
+ const blockedHost = g === void 0 ? blockHostSideEffect(fn2) : null;
242285
242293
  if (g !== void 0) {
242286
242294
  result = g;
242287
242295
  } else if (blockedHost !== null) {
242288
- noteHostEffectBlocked(blockedHost);
242289
- result = bTruncatedAbs();
242296
+ result = blockedHost;
242290
242297
  } else {
242291
242298
  const entered = bEnterCall(name, fn2, args);
242292
242299
  if (!entered.ok) {
@@ -242557,6 +242564,8 @@ function $new(cls, args) {
242557
242564
  }
242558
242565
  }
242559
242566
  if (typeof cls === "function") {
242567
+ const blockedHost = blockHostSideEffect(cls);
242568
+ if (blockedHost) return blockedHost;
242560
242569
  if (cls === Array) {
242561
242570
  return makeArrayCtorAbs(args);
242562
242571
  }
package/dist/server.js CHANGED
@@ -252531,7 +252531,9 @@ __export(calls_exports, {
252531
252531
  $recordBinding: () => $recordBinding,
252532
252532
  MAX_B_CALL_DEPTH: () => MAX_B_CALL_DEPTH,
252533
252533
  MAX_B_TOTAL_CALLS: () => MAX_B_TOTAL_CALLS,
252534
+ blockHostSideEffect: () => blockHostSideEffect,
252534
252535
  getBCallCollector: () => getBCallCollector,
252536
+ neverExecHostName: () => neverExecHostName,
252535
252537
  noteBCallRecord: () => noteBCallRecord,
252536
252538
  resetBCallBudget: () => resetBCallBudget,
252537
252539
  setBAssignCollector: () => setBAssignCollector,
@@ -252600,6 +252602,12 @@ function neverExecHostName(fn2) {
252600
252602
  }
252601
252603
  return null;
252602
252604
  }
252605
+ function blockHostSideEffect(fn2) {
252606
+ const hostName = neverExecHostName(fn2);
252607
+ if (hostName === null) return null;
252608
+ noteHostEffectBlocked(hostName);
252609
+ return abs({ k: "unknown" }, void 0, void 0, "opaque");
252610
+ }
252603
252611
  function noteBCallRecord(r) {
252604
252612
  if (!bCallCollector) return;
252605
252613
  try {
@@ -252681,12 +252689,11 @@ function $callNamed(name, fn2, args, loc, argLocs) {
252681
252689
  try {
252682
252690
  if (typeof fn2 === "function") {
252683
252691
  const g = GLOBAL_FNS.has(name) && fn2 === globalThis[name] ? evalGlobalFn(name, args) : void 0;
252684
- const blockedHost = g === void 0 ? neverExecHostName(fn2) : null;
252692
+ const blockedHost = g === void 0 ? blockHostSideEffect(fn2) : null;
252685
252693
  if (g !== void 0) {
252686
252694
  result = g;
252687
252695
  } else if (blockedHost !== null) {
252688
- noteHostEffectBlocked(blockedHost);
252689
- result = bTruncatedAbs();
252696
+ result = blockedHost;
252690
252697
  } else {
252691
252698
  const entered = bEnterCall(name, fn2, args);
252692
252699
  if (!entered.ok) {
@@ -252957,6 +252964,8 @@ function $new(cls, args) {
252957
252964
  }
252958
252965
  }
252959
252966
  if (typeof cls === "function") {
252967
+ const blockedHost = blockHostSideEffect(cls);
252968
+ if (blockedHost) return blockedHost;
252960
252969
  if (cls === Array) {
252961
252970
  return makeArrayCtorAbs(args);
252962
252971
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nudojs/lsp",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "engines": {
5
5
  "node": ">=20"
6
6
  },
@@ -49,9 +49,9 @@
49
49
  "registry": "https://registry.npmjs.org"
50
50
  },
51
51
  "dependencies": {
52
- "@nudojs/service": "1.1.1",
53
- "@nudojs/core": "1.1.1",
54
- "@nudojs/parser": "1.1.1",
52
+ "@nudojs/service": "1.1.2",
53
+ "@nudojs/core": "1.1.2",
54
+ "@nudojs/parser": "1.1.2",
55
55
  "@babel/traverse": "^8.0.6",
56
56
  "@babel/types": "^8.0.6",
57
57
  "vscode-languageserver": "^10.1.2",