@highstate/backend 0.7.3 → 0.7.4

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.
@@ -6,11 +6,20 @@ import { e as errorToString } from '../../utils-ByadNcv4.js';
6
6
  import { BetterLock } from 'better-lock';
7
7
  import 'node:path';
8
8
  import 'pkg-types';
9
+ import require$$0 from 'module';
9
10
  import { isComponent, isEntity, isUnitModel, originalCreate, resetEvaluation, getCompositeInstances } from '@highstate/contract';
10
11
  import { serializeFunction } from '@pulumi/pulumi/runtime/index.js';
11
12
  import { sha256 } from 'crypto-hash';
12
13
  import 'zod';
13
14
 
15
+ const Module = require$$0;
16
+ const originalLoad = Module._load;
17
+ Module._load = function(request, parent, isMain) {
18
+ if (request === "trace_events") {
19
+ return {};
20
+ }
21
+ return originalLoad(request, parent, isMain);
22
+ };
14
23
  async function loadLibrary(jiti, logger, modulePaths) {
15
24
  const modules = {};
16
25
  for (const modulePath of modulePaths) {
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@highstate/backend",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
7
- "src"
7
+ "src",
8
+ "patches"
8
9
  ],
9
10
  "exports": {
10
11
  ".": {
@@ -25,7 +26,7 @@
25
26
  "build": "pkgroll --clean --tsconfig=tsconfig.build.json"
26
27
  },
27
28
  "dependencies": {
28
- "@highstate/contract": "^0.7.3",
29
+ "@highstate/contract": "^0.7.4",
29
30
  "@types/node": "^22.10.1",
30
31
  "ajv": "^8.17.1",
31
32
  "better-lock": "^3.2.0",
@@ -45,7 +46,7 @@
45
46
  "zod": "^3.23.8"
46
47
  },
47
48
  "peerDependencies": {
48
- "@pulumi/pulumi": "^3.142.0",
49
+ "@pulumi/pulumi": "^3.163.0",
49
50
  "classic-level": "^2.0.0"
50
51
  },
51
52
  "peerDependenciesMeta": {
@@ -57,12 +58,11 @@
57
58
  }
58
59
  },
59
60
  "devDependencies": {
60
- "@pulumi/pulumi": "patch:@pulumi/pulumi@npm%3A3.159.0#~/.yarn/patches/@pulumi-pulumi-npm-3.159.0-d07eefce5c.patch",
61
61
  "classic-level": "^2.0.0",
62
62
  "pino-pretty": "^13.0.0",
63
63
  "pkgroll": "^2.5.1",
64
64
  "rollup": "^4.28.1",
65
65
  "typescript": "^5.7.2"
66
66
  },
67
- "gitHead": "5cf7cec27262c8fa1d96f6478833b94841459d64"
67
+ "gitHead": "c482cdf650746f6814122602d65bf5b842a2bc2c"
68
68
  }
@@ -1,3 +1,8 @@
1
+ /* eslint-disable @typescript-eslint/no-unsafe-call */
2
+ /* eslint-disable @typescript-eslint/no-unsafe-return */
3
+ /* eslint-disable @typescript-eslint/no-unsafe-member-access */
4
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment */
5
+
1
6
  import type { Logger } from "pino"
2
7
  import type { Jiti } from "jiti"
3
8
  import {
@@ -11,6 +16,18 @@ import {
11
16
  import { serializeFunction } from "@pulumi/pulumi/runtime/index.js"
12
17
  import { sha256 } from "crypto-hash"
13
18
 
19
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
20
+ const Module = require("module")
21
+ const originalLoad = Module._load
22
+
23
+ Module._load = function (request: unknown, parent: unknown, isMain: boolean) {
24
+ if (request === "trace_events") {
25
+ return {}
26
+ }
27
+
28
+ return originalLoad(request, parent, isMain)
29
+ }
30
+
14
31
  export type Library = Readonly<{
15
32
  components: Readonly<Record<string, Component>>
16
33
  entities: Readonly<Record<string, Entity>>