envio 2.32.3 → 3.0.0-alpha.0

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 (115) hide show
  1. package/bin.js +5 -3
  2. package/evm.schema.json +23 -6
  3. package/fuel.schema.json +17 -5
  4. package/index.d.ts +1 -27
  5. package/index.js +9 -6
  6. package/package.json +12 -7
  7. package/rescript.json +4 -3
  8. package/src/{Address.res.js → Address.res.mjs} +7 -6
  9. package/src/Batch.res +4 -4
  10. package/src/{Batch.res.js → Batch.res.mjs} +19 -18
  11. package/src/{ChainMap.res.js → ChainMap.res.mjs} +20 -19
  12. package/src/Change.res +9 -0
  13. package/src/Config.res +5 -5
  14. package/src/{Config.res.js → Config.res.mjs} +13 -10
  15. package/src/Envio.gen.ts +4 -17
  16. package/src/Envio.res +13 -38
  17. package/src/{Envio.res.js → Envio.res.mjs} +5 -16
  18. package/src/{ErrorHandling.res.js → ErrorHandling.res.mjs} +10 -9
  19. package/src/EventRegister.res +10 -11
  20. package/src/{EventRegister.res.js → EventRegister.res.mjs} +33 -26
  21. package/src/EventRegister.resi +2 -1
  22. package/src/{EventUtils.res.js → EventUtils.res.mjs} +10 -9
  23. package/src/{EvmTypes.res.js → EvmTypes.res.mjs} +5 -4
  24. package/src/{FetchState.res.js → FetchState.res.mjs} +44 -43
  25. package/src/{Hasura.res.js → Hasura.res.mjs} +25 -24
  26. package/src/InMemoryStore.res +7 -15
  27. package/src/{InMemoryStore.res.js → InMemoryStore.res.mjs} +21 -22
  28. package/src/InMemoryTable.res +50 -35
  29. package/src/{InMemoryTable.res.js → InMemoryTable.res.mjs} +73 -104
  30. package/src/Internal.gen.ts +1 -5
  31. package/src/Internal.res +29 -40
  32. package/src/Internal.res.mjs +58 -0
  33. package/src/{LazyLoader.res.js → LazyLoader.res.mjs} +14 -13
  34. package/src/{LoadManager.res.js → LoadManager.res.mjs} +11 -10
  35. package/src/{LogSelection.res.js → LogSelection.res.mjs} +14 -13
  36. package/src/{Logging.res.js → Logging.res.mjs} +37 -36
  37. package/src/Persistence.res +190 -38
  38. package/src/Persistence.res.mjs +213 -0
  39. package/src/PgStorage.res +700 -14
  40. package/src/{PgStorage.res.js → PgStorage.res.mjs} +478 -65
  41. package/src/Platform.res +140 -0
  42. package/src/Platform.res.mjs +170 -0
  43. package/src/Prometheus.res +41 -0
  44. package/src/{Prometheus.res.js → Prometheus.res.mjs} +106 -60
  45. package/src/{ReorgDetection.res.js → ReorgDetection.res.mjs} +12 -11
  46. package/src/SafeCheckpointTracking.res +5 -4
  47. package/src/{SafeCheckpointTracking.res.js → SafeCheckpointTracking.res.mjs} +6 -5
  48. package/src/Sink.res +47 -0
  49. package/src/Sink.res.mjs +37 -0
  50. package/src/{TableIndices.res.js → TableIndices.res.mjs} +8 -7
  51. package/src/{Throttler.res.js → Throttler.res.mjs} +7 -6
  52. package/src/{Time.res.js → Time.res.mjs} +8 -7
  53. package/src/{TopicFilter.res.js → TopicFilter.res.mjs} +18 -17
  54. package/src/Utils.res +42 -0
  55. package/src/{Utils.res.js → Utils.res.mjs} +71 -34
  56. package/src/bindings/BigDecimal.gen.ts +2 -2
  57. package/src/bindings/BigDecimal.res +5 -5
  58. package/src/bindings/BigDecimal.res.d.mts +5 -0
  59. package/src/bindings/{BigDecimal.res.js → BigDecimal.res.mjs} +10 -9
  60. package/src/bindings/BigInt.gen.ts +2 -2
  61. package/src/bindings/BigInt.res.d.mts +5 -0
  62. package/src/bindings/{BigInt.res.js → BigInt.res.mjs} +25 -24
  63. package/src/bindings/ClickHouse.res +387 -0
  64. package/src/bindings/ClickHouse.res.mjs +275 -0
  65. package/src/bindings/Ethers.gen.ts +2 -2
  66. package/src/bindings/Ethers.res.d.mts +5 -0
  67. package/src/bindings/{Ethers.res.js → Ethers.res.mjs} +18 -17
  68. package/src/bindings/Express.res.mjs +2 -0
  69. package/src/bindings/{Hrtime.res.js → Hrtime.res.mjs} +13 -12
  70. package/src/bindings/{Lodash.res.js → Lodash.res.mjs} +4 -3
  71. package/src/bindings/NodeJs.res +13 -1
  72. package/src/bindings/NodeJs.res.mjs +48 -0
  73. package/src/bindings/Pino.res +4 -4
  74. package/src/bindings/{Pino.res.js → Pino.res.mjs} +16 -15
  75. package/src/bindings/Postgres.res +17 -2
  76. package/src/bindings/{Postgres.res.js → Postgres.res.mjs} +4 -3
  77. package/src/bindings/{PromClient.res.js → PromClient.res.mjs} +6 -5
  78. package/src/bindings/{Promise.res.js → Promise.res.mjs} +6 -5
  79. package/src/bindings/{SDSL.res.js → SDSL.res.mjs} +3 -2
  80. package/src/bindings/{Viem.res.js → Viem.res.mjs} +9 -8
  81. package/src/bindings/vendored-lodash-fns.js +3 -35
  82. package/src/db/EntityHistory.res +33 -156
  83. package/src/db/EntityHistory.res.mjs +121 -0
  84. package/src/db/InternalTable.gen.ts +2 -2
  85. package/src/db/InternalTable.res +55 -56
  86. package/src/db/{InternalTable.res.js → InternalTable.res.mjs} +68 -71
  87. package/src/db/{Schema.res.js → Schema.res.mjs} +10 -9
  88. package/src/db/Table.res +86 -22
  89. package/src/db/{Table.res.js → Table.res.mjs} +108 -40
  90. package/src/sources/{EventRouter.res.js → EventRouter.res.mjs} +17 -16
  91. package/src/sources/{Fuel.res.js → Fuel.res.mjs} +6 -5
  92. package/src/sources/{HyperFuel.res.js → HyperFuel.res.mjs} +14 -13
  93. package/src/sources/{HyperFuelClient.res.js → HyperFuelClient.res.mjs} +7 -6
  94. package/src/sources/{HyperFuelSource.res.js → HyperFuelSource.res.mjs} +28 -27
  95. package/src/sources/{HyperSync.res.js → HyperSync.res.mjs} +21 -20
  96. package/src/sources/HyperSyncClient.gen.ts +1 -1
  97. package/src/sources/HyperSyncClient.res +78 -20
  98. package/src/sources/{HyperSyncClient.res.js → HyperSyncClient.res.mjs} +32 -15
  99. package/src/sources/{HyperSyncJsonApi.res.js → HyperSyncJsonApi.res.mjs} +10 -9
  100. package/src/sources/HyperSyncSource.res +77 -9
  101. package/src/sources/{HyperSyncSource.res.js → HyperSyncSource.res.mjs} +99 -38
  102. package/src/sources/{Rpc.res.js → Rpc.res.mjs} +16 -15
  103. package/src/sources/{RpcSource.res.js → RpcSource.res.mjs} +40 -39
  104. package/src/sources/Source.res +1 -1
  105. package/src/sources/{Source.res.js → Source.res.mjs} +4 -3
  106. package/src/sources/SourceManager.res +12 -1
  107. package/src/sources/{SourceManager.res.js → SourceManager.res.mjs} +32 -21
  108. package/src/sources/vendored-fuel-abi-coder.js +94 -149
  109. package/src/vendored/{Rest.res.js → Rest.res.mjs} +12 -11
  110. package/src/Internal.res.js +0 -62
  111. package/src/Persistence.res.js +0 -159
  112. package/src/bindings/NodeJs.res.js +0 -35
  113. package/src/db/EntityHistory.res.js +0 -195
  114. /package/src/{Indexer.res.js → Change.res.mjs} +0 -0
  115. /package/src/{bindings/Express.res.js → Indexer.res.mjs} +0 -0
@@ -1,11 +1,10 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
- 'use strict';
3
2
 
4
- var Ethers = require("ethers");
5
- var Address = require("../Address.res.js");
6
- var Belt_Array = require("rescript/lib/js/belt_Array.js");
7
- var Caml_array = require("rescript/lib/js/caml_array.js");
8
- var Caml_option = require("rescript/lib/js/caml_option.js");
3
+ import * as Ethers from "ethers";
4
+ import * as Address from "../Address.res.mjs";
5
+ import * as Belt_Array from "rescript/lib/es6/belt_Array.js";
6
+ import * as Caml_array from "rescript/lib/es6/caml_array.js";
7
+ import * as Caml_option from "rescript/lib/es6/caml_option.js";
9
8
 
10
9
  function makeAbi(abi) {
11
10
  return abi;
@@ -115,15 +114,17 @@ var JsonRpcProvider = {
115
114
 
116
115
  var ethAddressSchema = Address.schema;
117
116
 
118
- exports.makeAbi = makeAbi;
119
- exports.getAddressFromStringUnsafe = getAddressFromStringUnsafe;
120
- exports.ethAddressToString = ethAddressToString;
121
- exports.ethAddressSchema = ethAddressSchema;
122
- exports.Constants = Constants;
123
- exports.Addresses = Addresses;
124
- exports.Filter = Filter;
125
- exports.CombinedFilter = CombinedFilter;
126
- exports.logToMinimumParseableLogData = logToMinimumParseableLogData;
127
- exports.Network = Network;
128
- exports.JsonRpcProvider = JsonRpcProvider;
117
+ export {
118
+ makeAbi ,
119
+ getAddressFromStringUnsafe ,
120
+ ethAddressToString ,
121
+ ethAddressSchema ,
122
+ Constants ,
123
+ Addresses ,
124
+ Filter ,
125
+ CombinedFilter ,
126
+ logToMinimumParseableLogData ,
127
+ Network ,
128
+ JsonRpcProvider ,
129
+ }
129
130
  /* mockAddresses Not a pure module */
@@ -0,0 +1,2 @@
1
+ // Generated by ReScript, PLEASE EDIT WITH CARE
2
+ /* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */
@@ -1,5 +1,4 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
- 'use strict';
3
2
 
4
3
 
5
4
  function nanoToMilli(nano) {
@@ -57,15 +56,17 @@ var intFromNanos = toInt;
57
56
 
58
57
  var intFromSeconds = toInt;
59
58
 
60
- exports.makeTimer = makeTimer;
61
- exports.timeSince = timeSince;
62
- exports.nanoToMilli = nanoToMilli;
63
- exports.secToMilli = secToMilli;
64
- exports.timeElapsedToNewRef = timeElapsedToNewRef;
65
- exports.toMillis = toMillis;
66
- exports.intFromMillis = intFromMillis;
67
- exports.intFromNanos = intFromNanos;
68
- exports.intFromSeconds = intFromSeconds;
69
- exports.floatFromMillis = floatFromMillis;
70
- exports.millisBetween = millisBetween;
59
+ export {
60
+ makeTimer ,
61
+ timeSince ,
62
+ nanoToMilli ,
63
+ secToMilli ,
64
+ timeElapsedToNewRef ,
65
+ toMillis ,
66
+ intFromMillis ,
67
+ intFromNanos ,
68
+ intFromSeconds ,
69
+ floatFromMillis ,
70
+ millisBetween ,
71
+ }
71
72
  /* No side effect */
@@ -1,11 +1,12 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
- 'use strict';
3
2
 
4
- var VendoredLodashFnsJs = require("./vendored-lodash-fns.js");
3
+ import * as VendoredLodashFnsJs from "./vendored-lodash-fns.js";
5
4
 
6
5
  function cloneDeep(prim) {
7
6
  return VendoredLodashFnsJs.cloneDeep(prim);
8
7
  }
9
8
 
10
- exports.cloneDeep = cloneDeep;
9
+ export {
10
+ cloneDeep ,
11
+ }
11
12
  /* ./vendored-lodash-fns.js Not a pure module */
@@ -56,6 +56,16 @@ module ChildProcess = {
56
56
  external execWithOptions: (string, execOptions, callback) => unit = "exec"
57
57
  }
58
58
 
59
+ module Url = {
60
+ type t
61
+ @module("url") external fileURLToPath: t => string = "fileURLToPath"
62
+ }
63
+
64
+ module ImportMeta = {
65
+ type t = {url: Url.t}
66
+ @val external importMeta: t = "import.meta"
67
+ }
68
+
59
69
  module Path = {
60
70
  type t
61
71
 
@@ -63,10 +73,12 @@ module Path = {
63
73
  external resolve: array<string> => t = "resolve"
64
74
 
65
75
  @module("path") external join: (t, string) => t = "join"
76
+ @module("path") external dirname: string => t = "dirname"
66
77
 
67
78
  external toString: t => string = "%identity"
68
79
 
69
- external __dirname: t = "__dirname"
80
+ // ESM-compatible __dirname replacement
81
+ let __dirname = dirname(Url.fileURLToPath(ImportMeta.importMeta.url))
70
82
  }
71
83
 
72
84
  module Fs = {
@@ -0,0 +1,48 @@
1
+ // Generated by ReScript, PLEASE EDIT WITH CARE
2
+
3
+ import * as Url from "url";
4
+ import * as Path from "path";
5
+ import * as Util from "util";
6
+
7
+ function inspectObj(a) {
8
+ return Util.inspect(a, {
9
+ showHidden: false,
10
+ depth: null,
11
+ colors: true
12
+ });
13
+ }
14
+
15
+ var Util$1 = {
16
+ inspectObj: inspectObj
17
+ };
18
+
19
+ var Process = {};
20
+
21
+ var ChildProcess = {};
22
+
23
+ var Url$1 = {};
24
+
25
+ var ImportMeta = {};
26
+
27
+ var $$__dirname = Path.dirname(Url.fileURLToPath(import.meta.url));
28
+
29
+ var Path$1 = {
30
+ $$__dirname: $$__dirname
31
+ };
32
+
33
+ var Promises = {};
34
+
35
+ var Fs = {
36
+ Promises: Promises
37
+ };
38
+
39
+ export {
40
+ Util$1 as Util,
41
+ Process ,
42
+ ChildProcess ,
43
+ Url$1 as Url,
44
+ ImportMeta ,
45
+ Path$1 as Path,
46
+ Fs ,
47
+ }
48
+ /* __dirname Not a pure module */
@@ -67,7 +67,7 @@ module Transport = {
67
67
  external make: transportTarget => t = "transport"
68
68
  }
69
69
 
70
- @module external makeWithTransport: Transport.t => t = "pino"
70
+ @module("pino") external makeWithTransport: Transport.t => t = "pino"
71
71
 
72
72
  type hooks = {logMethod: (array<string>, string, logLevel) => unit}
73
73
 
@@ -100,8 +100,8 @@ type options = {
100
100
  messageKey?: string,
101
101
  }
102
102
 
103
- @module external make: options => t = "pino"
104
- @module external makeWithOptionsAndTransport: (options, Transport.t) => t = "pino"
103
+ @module("pino") external make: options => t = "pino"
104
+ @module("pino") external makeWithOptionsAndTransport: (options, Transport.t) => t = "pino"
105
105
 
106
106
  type childParams
107
107
  let createChildParams: 'a => childParams = Utils.magic
@@ -123,7 +123,7 @@ module MultiStreamLogger = {
123
123
  type multiStreamRes
124
124
  @module("pino") external multistream: array<multiStream> => multiStreamRes = "multistream"
125
125
 
126
- @module external makeWithMultiStream: (options, multiStreamRes) => t = "pino"
126
+ @module("pino") external makeWithMultiStream: (options, multiStreamRes) => t = "pino"
127
127
 
128
128
  type destinationOpts = {
129
129
  dest: string, //file path
@@ -1,13 +1,12 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
- 'use strict';
3
2
 
4
- var Pino = require("pino");
5
- var Utils = require("../Utils.res.js");
6
- var Caml_obj = require("rescript/lib/js/caml_obj.js");
7
- var Belt_Array = require("rescript/lib/js/belt_Array.js");
8
- var Belt_Option = require("rescript/lib/js/belt_Option.js");
9
- var PinoPretty = require("pino-pretty");
10
- var EcsPinoFormat = require("@elastic/ecs-pino-format");
3
+ import * as Pino from "pino";
4
+ import * as Utils from "../Utils.res.mjs";
5
+ import * as Caml_obj from "rescript/lib/es6/caml_obj.js";
6
+ import * as Belt_Array from "rescript/lib/es6/belt_Array.js";
7
+ import * as Belt_Option from "rescript/lib/es6/belt_Option.js";
8
+ import * as PinoPretty from "pino-pretty";
9
+ import * as EcsPinoFormat from "@elastic/ecs-pino-format";
11
10
 
12
11
  function createPinoMessage(message) {
13
12
  return message;
@@ -85,7 +84,7 @@ function make$1(userLogLevel, customLevels, logFile, options, defaultFileLogLeve
85
84
  }
86
85
  var formatter = makeFormatter(customLevels);
87
86
  var ms = Pino.multistream(makeStreams(userLogLevel, formatter, logFile, defaultFileLogLevel));
88
- return Pino(options$1, ms);
87
+ return Pino.pino(options$1, ms);
89
88
  }
90
89
 
91
90
  var MultiStreamLogger = {
@@ -94,10 +93,12 @@ var MultiStreamLogger = {
94
93
  make: make$1
95
94
  };
96
95
 
97
- exports.createPinoMessage = createPinoMessage;
98
- exports.createPinoMessageWithError = createPinoMessageWithError;
99
- exports.Transport = Transport;
100
- exports.createChildParams = createChildParams;
101
- exports.ECS = ECS;
102
- exports.MultiStreamLogger = MultiStreamLogger;
96
+ export {
97
+ createPinoMessage ,
98
+ createPinoMessageWithError ,
99
+ Transport ,
100
+ createChildParams ,
101
+ ECS ,
102
+ MultiStreamLogger ,
103
+ }
103
104
  /* pino Not a pure module */
@@ -86,8 +86,8 @@ type poolConfig = {
86
86
  fetchTypes?: bool, // Automatically fetches types on connect on initial connection. (default: true)
87
87
  }
88
88
 
89
- @module
90
- external makeSql: (~config: poolConfig) => sql = "postgres"
89
+ @module("postgres")
90
+ external makeSql: (~config: poolConfig) => sql = "default"
91
91
 
92
92
  @send external beginSql: (sql, sql => promise<'result>) => promise<'result> = "begin"
93
93
 
@@ -99,3 +99,18 @@ external makeSql: (~config: poolConfig) => sql = "postgres"
99
99
  @send
100
100
  external preparedUnsafe: (sql, string, unknown, @as(json`{prepare: true}`) _) => promise<'a> =
101
101
  "unsafe"
102
+
103
+ @unboxed
104
+ type columnType =
105
+ | @as("INTEGER") Integer
106
+ | @as("BIGINT") BigInt
107
+ | @as("BOOLEAN") Boolean
108
+ | @as("NUMERIC") Numeric
109
+ | @as("DOUBLE PRECISION") DoublePrecision
110
+ | @as("TEXT") Text
111
+ | @as("SERIAL") Serial
112
+ | @as("JSONB") JsonB
113
+ | @as("TIMESTAMP WITH TIME ZONE") TimestampWithTimezone
114
+ | @as("TIMESTAMP WITH TIME ZONE NULL") TimestampWithTimezoneNull
115
+ | @as("TIMESTAMP") TimestampWithoutTimezone
116
+ | Custom(string)
@@ -1,7 +1,6 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
- 'use strict';
3
2
 
4
- var S$RescriptSchema = require("rescript-schema/src/S.res.js");
3
+ import * as S$RescriptSchema from "rescript-schema/src/S.res.mjs";
5
4
 
6
5
  var sslOptionsSchema = S$RescriptSchema.$$enum([
7
6
  true,
@@ -12,5 +11,7 @@ var sslOptionsSchema = S$RescriptSchema.$$enum([
12
11
  "verify-full"
13
12
  ]);
14
13
 
15
- exports.sslOptionsSchema = sslOptionsSchema;
14
+ export {
15
+ sslOptionsSchema ,
16
+ }
16
17
  /* sslOptionsSchema Not a pure module */
@@ -1,5 +1,4 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
- 'use strict';
3
2
 
4
3
 
5
4
  var Counter = {};
@@ -10,8 +9,10 @@ var Histogram = {};
10
9
 
11
10
  var Summary = {};
12
11
 
13
- exports.Counter = Counter;
14
- exports.Gauge = Gauge;
15
- exports.Histogram = Histogram;
16
- exports.Summary = Summary;
12
+ export {
13
+ Counter ,
14
+ Gauge ,
15
+ Histogram ,
16
+ Summary ,
17
+ }
17
18
  /* No side effect */
@@ -1,7 +1,6 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
- 'use strict';
3
2
 
4
- var Caml_js_exceptions = require("rescript/lib/js/caml_js_exceptions.js");
3
+ import * as Caml_js_exceptions from "rescript/lib/es6/caml_js_exceptions.js";
5
4
 
6
5
  function noop() {
7
6
 
@@ -19,7 +18,9 @@ function $$catch(promise, callback) {
19
18
 
20
19
  var isCatchable = (value => value && typeof value.catch === 'function');
21
20
 
22
- exports.silentCatch = silentCatch;
23
- exports.$$catch = $$catch;
24
- exports.isCatchable = isCatchable;
21
+ export {
22
+ silentCatch ,
23
+ $$catch ,
24
+ isCatchable ,
25
+ }
25
26
  /* No side effect */
@@ -1,8 +1,9 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
- 'use strict';
3
2
 
4
3
 
5
4
  var Queue = {};
6
5
 
7
- exports.Queue = Queue;
6
+ export {
7
+ Queue ,
8
+ }
8
9
  /* No side effect */
@@ -1,10 +1,9 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
- 'use strict';
3
2
 
4
- var Viem = require("viem");
5
- var Caml_option = require("rescript/lib/js/caml_option.js");
6
- var Caml_exceptions = require("rescript/lib/js/caml_exceptions.js");
7
- var Caml_js_exceptions = require("rescript/lib/js/caml_js_exceptions.js");
3
+ import * as Viem from "viem";
4
+ import * as Caml_option from "rescript/lib/es6/caml_option.js";
5
+ import * as Caml_exceptions from "rescript/lib/es6/caml_exceptions.js";
6
+ import * as Caml_js_exceptions from "rescript/lib/es6/caml_js_exceptions.js";
8
7
 
9
8
  var ParseError = /* @__PURE__ */Caml_exceptions.create("Viem.ParseError");
10
9
 
@@ -39,7 +38,9 @@ function parseLogOrThrow(contractNameAbiMapping, contractName, topics, data) {
39
38
  }
40
39
  }
41
40
 
42
- exports.ParseError = ParseError;
43
- exports.UnknownContractName = UnknownContractName;
44
- exports.parseLogOrThrow = parseLogOrThrow;
41
+ export {
42
+ ParseError ,
43
+ UnknownContractName ,
44
+ parseLogOrThrow ,
45
+ }
45
46
  /* viem Not a pure module */
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Created by using esbuild command:
3
- `esbuild --bundle --platform=node --tree-shaking=true <FILE_PATH>`
3
+ `esbuild --bundle --platform=node --tree-shaking=true --format=esm <FILE_PATH>`
4
4
  on a js file with the following content:
5
5
  ```js
6
6
  import cloneDeep from "lodash-es/cloneDeep";
@@ -10,35 +10,6 @@
10
10
  This is simply a treeshaken vendoring of lodash-es/cloneDeep.js
11
11
 
12
12
  */
13
- "use strict";
14
- var __defProp = Object.defineProperty;
15
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
16
- var __getOwnPropNames = Object.getOwnPropertyNames;
17
- var __hasOwnProp = Object.prototype.hasOwnProperty;
18
- var __export = (target, all) => {
19
- for (var name in all)
20
- __defProp(target, name, { get: all[name], enumerable: true });
21
- };
22
- var __copyProps = (to, from, except, desc) => {
23
- if ((from && typeof from === "object") || typeof from === "function") {
24
- for (let key of __getOwnPropNames(from))
25
- if (!__hasOwnProp.call(to, key) && key !== except)
26
- __defProp(to, key, {
27
- get: () => from[key],
28
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable,
29
- });
30
- }
31
- return to;
32
- };
33
- var __toCommonJS = (mod) =>
34
- __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
-
36
- // src/bindings/vendored-lodash-fns-entry.js
37
- var vendored_lodash_fns_entry_exports = {};
38
- __export(vendored_lodash_fns_entry_exports, {
39
- cloneDeep: () => cloneDeep_default,
40
- });
41
- module.exports = __toCommonJS(vendored_lodash_fns_entry_exports);
42
13
 
43
14
  // ../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.js
44
15
  function listCacheClear() {
@@ -1434,8 +1405,5 @@ function cloneDeep(value) {
1434
1405
  return baseClone_default(value, CLONE_DEEP_FLAG2 | CLONE_SYMBOLS_FLAG2);
1435
1406
  }
1436
1407
  var cloneDeep_default = cloneDeep;
1437
- // Annotate the CommonJS export names for ESM import in node:
1438
- 0 &&
1439
- (module.exports = {
1440
- cloneDeep,
1441
- });
1408
+
1409
+ export { cloneDeep_default as cloneDeep };