@salesforce/lds-adapters-industries-sustainability-reference-data-v2 1.134.6 → 1.134.8

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.
@@ -4,10 +4,10 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, StoreKeyMap } from '@luvio/engine';
7
+ import { serializeStructuredKey, StoreKeyMap, deepFreeze } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
- const { keys: ObjectKeys$1, freeze: ObjectFreeze$1, create: ObjectCreate$1 } = Object;
10
+ const { keys: ObjectKeys, create: ObjectCreate } = Object;
11
11
  const { isArray: ArrayIsArray$1 } = Array;
12
12
  /**
13
13
  * Validates an adapter config is well-formed.
@@ -31,7 +31,7 @@ function validateConfig(config, adapter, oneOf) {
31
31
  throw new TypeError(`adapter ${displayName} does not yet support ${unsupported.sort().join(', ')}`);
32
32
  }
33
33
  const supported = required.concat(optional);
34
- if (ObjectKeys$1(config).some(key => !supported.includes(key))) {
34
+ if (ObjectKeys(config).some(key => !supported.includes(key))) {
35
35
  throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`);
36
36
  }
37
37
  }
@@ -50,27 +50,8 @@ const snapshotRefreshOptions = {
50
50
  };
51
51
  const keyPrefix = 'sustainability-reference-data-v2';
52
52
 
53
- const { freeze: ObjectFreeze, keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
54
53
  const { isArray: ArrayIsArray } = Array;
55
54
  const { stringify: JSONStringify } = JSON;
56
- function deepFreeze$5(value) {
57
- // No need to freeze primitives
58
- if (typeof value !== 'object' || value === null) {
59
- return;
60
- }
61
- if (ArrayIsArray(value)) {
62
- for (let i = 0, len = value.length; i < len; i += 1) {
63
- deepFreeze$5(value[i]);
64
- }
65
- }
66
- else {
67
- const keys = ObjectKeys(value);
68
- for (let i = 0, len = keys.length; i < len; i += 1) {
69
- deepFreeze$5(value[keys[i]]);
70
- }
71
- }
72
- ObjectFreeze(value);
73
- }
74
55
  function createLink(ref) {
75
56
  return {
76
57
  __ref: serializeStructuredKey(ref),
@@ -139,9 +120,6 @@ function validate$6(obj, path = 'ReferenceDataVersionRepresentation') {
139
120
  })();
140
121
  return v_error === undefined ? null : v_error;
141
122
  }
142
- function deepFreeze$4(input) {
143
- ObjectFreeze(input);
144
- }
145
123
 
146
124
  function validate$5(obj, path = 'ReferenceDataSourceRepresentation') {
147
125
  const v_error = (() => {
@@ -181,15 +159,6 @@ function validate$5(obj, path = 'ReferenceDataSourceRepresentation') {
181
159
  })();
182
160
  return v_error === undefined ? null : v_error;
183
161
  }
184
- function deepFreeze$3(input) {
185
- const input_versions = input.versions;
186
- for (let i = 0; i < input_versions.length; i++) {
187
- const input_versions_item = input_versions[i];
188
- deepFreeze$4(input_versions_item);
189
- }
190
- ObjectFreeze(input_versions);
191
- ObjectFreeze(input);
192
- }
193
162
 
194
163
  function validate$4(obj, path = 'ReferenceDataEntityRepresentation') {
195
164
  const v_error = (() => {
@@ -219,15 +188,6 @@ function validate$4(obj, path = 'ReferenceDataEntityRepresentation') {
219
188
  })();
220
189
  return v_error === undefined ? null : v_error;
221
190
  }
222
- function deepFreeze$2(input) {
223
- const input_referenceDataSourceRepresentation = input.referenceDataSourceRepresentation;
224
- for (let i = 0; i < input_referenceDataSourceRepresentation.length; i++) {
225
- const input_referenceDataSourceRepresentation_item = input_referenceDataSourceRepresentation[i];
226
- deepFreeze$3(input_referenceDataSourceRepresentation_item);
227
- }
228
- ObjectFreeze(input_referenceDataSourceRepresentation);
229
- ObjectFreeze(input);
230
- }
231
191
 
232
192
  const TTL$1 = 300;
233
193
  const VERSION$1 = "128a41ea06afa49c7b4c5d421747be7a";
@@ -272,15 +232,6 @@ function equals$1(existing, incoming) {
272
232
  }
273
233
  return true;
274
234
  }
275
- function deepFreeze$1(input) {
276
- const input_referenceDataEntityRepresentation = input.referenceDataEntityRepresentation;
277
- for (let i = 0; i < input_referenceDataEntityRepresentation.length; i++) {
278
- const input_referenceDataEntityRepresentation_item = input_referenceDataEntityRepresentation[i];
279
- deepFreeze$2(input_referenceDataEntityRepresentation_item);
280
- }
281
- ObjectFreeze(input_referenceDataEntityRepresentation);
282
- ObjectFreeze(input);
283
- }
284
235
  const ingest$1 = function FetchEntityVersionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
285
236
  if (process.env.NODE_ENV !== 'production') {
286
237
  const validateError = validate$3(input);
@@ -297,7 +248,6 @@ const ingest$1 = function FetchEntityVersionOutputRepresentationIngest(input, pa
297
248
  propertyName: path.propertyName,
298
249
  ttl: ttlToUse
299
250
  });
300
- deepFreeze$1(input);
301
251
  if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
302
252
  luvio.storePublish(key, incomingRecord);
303
253
  }
@@ -347,6 +297,7 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
347
297
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
348
298
  }
349
299
  }
300
+ deepFreeze(snapshot.data);
350
301
  return snapshot;
351
302
  }
352
303
  function ingestError(luvio, params, error, snapshotRefresh) {
@@ -602,9 +553,6 @@ function equals(existing, incoming) {
602
553
  }
603
554
  return true;
604
555
  }
605
- function deepFreeze(input) {
606
- ObjectFreeze(input);
607
- }
608
556
  const ingest = function UploadEntityVersionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
609
557
  if (process.env.NODE_ENV !== 'production') {
610
558
  const validateError = validate(input);
@@ -621,7 +569,6 @@ const ingest = function UploadEntityVersionOutputRepresentationIngest(input, pat
621
569
  propertyName: path.propertyName,
622
570
  ttl: ttlToUse
623
571
  });
624
- deepFreeze(input);
625
572
  if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
626
573
  luvio.storePublish(key, incomingRecord);
627
574
  }
@@ -668,6 +615,7 @@ function ingestSuccess(luvio, resourceParams, response) {
668
615
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
669
616
  }
670
617
  }
618
+ deepFreeze(snapshot.data);
671
619
  return snapshot;
672
620
  }
673
621
  function createResourceRequest(config) {
@@ -731,7 +679,7 @@ function buildNetworkSnapshot(luvio, config, options) {
731
679
  return luvio.storeBroadcast().then(() => snapshot);
732
680
  }, () => getResponseCacheKeys(luvio, resourceParams, response.body));
733
681
  }, (response) => {
734
- deepFreeze$5(response);
682
+ deepFreeze(response);
735
683
  throw response;
736
684
  });
737
685
  }
@@ -3,17 +3,11 @@ export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
3
3
  declare const ObjectKeys: {
4
4
  (o: object): string[];
5
5
  (o: {}): string[];
6
- }, ObjectFreeze: {
7
- <T extends Function>(f: T): T;
8
- <T_1 extends {
9
- [idx: string]: object | U | null | undefined;
10
- }, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
11
- <T_2>(o: T_2): Readonly<T_2>;
12
6
  }, ObjectCreate: {
13
7
  (o: object | null): any;
14
8
  (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
15
9
  };
16
- export { ObjectFreeze, ObjectCreate, ObjectKeys };
10
+ export { ObjectCreate, ObjectKeys };
17
11
  export declare const ArrayIsArray: (arg: any) => arg is any[];
18
12
  export declare const ArrayPrototypePush: (...items: any[]) => number;
19
13
  export interface AdapterValidationConfig {
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
5
5
  export declare function normalize(input: EntityDataSourceVersionDetailRepresentation, existing: EntityDataSourceVersionDetailRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EntityDataSourceVersionDetailRepresentationNormalized;
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: EntityDataSourceVersionDetailRepresentationNormalized, incoming: EntityDataSourceVersionDetailRepresentationNormalized): boolean;
8
- export declare function deepFreeze(input: EntityDataSourceVersionDetailRepresentation): void;
9
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
9
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: EntityDataSourceVersionDetailRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
11
10
  /**
@@ -7,7 +7,6 @@ export declare const RepresentationType: string;
7
7
  export declare function normalize(input: FetchEntityVersionOutputRepresentation, existing: FetchEntityVersionOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FetchEntityVersionOutputRepresentationNormalized;
8
8
  export declare const select: () => $64$luvio_engine_BaseFragment;
9
9
  export declare function equals(existing: FetchEntityVersionOutputRepresentationNormalized, incoming: FetchEntityVersionOutputRepresentationNormalized): boolean;
10
- export declare function deepFreeze(input: FetchEntityVersionOutputRepresentation): void;
11
10
  export declare const ingest: $64$luvio_engine_ResourceIngest;
12
11
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FetchEntityVersionOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
13
12
  /**
@@ -6,7 +6,6 @@ export declare const RepresentationType: string;
6
6
  export declare function normalize(input: ReferenceDataEntityRepresentation, existing: ReferenceDataEntityRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ReferenceDataEntityRepresentationNormalized;
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: ReferenceDataEntityRepresentationNormalized, incoming: ReferenceDataEntityRepresentationNormalized): boolean;
9
- export declare function deepFreeze(input: ReferenceDataEntityRepresentation): void;
10
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
11
10
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ReferenceDataEntityRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
12
11
  /**
@@ -6,7 +6,6 @@ export declare const RepresentationType: string;
6
6
  export declare function normalize(input: ReferenceDataSourceRepresentation, existing: ReferenceDataSourceRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ReferenceDataSourceRepresentationNormalized;
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: ReferenceDataSourceRepresentationNormalized, incoming: ReferenceDataSourceRepresentationNormalized): boolean;
9
- export declare function deepFreeze(input: ReferenceDataSourceRepresentation): void;
10
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
11
10
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ReferenceDataSourceRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
12
11
  /**
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
5
5
  export declare function normalize(input: ReferenceDataVersionRepresentation, existing: ReferenceDataVersionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ReferenceDataVersionRepresentationNormalized;
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: ReferenceDataVersionRepresentationNormalized, incoming: ReferenceDataVersionRepresentationNormalized): boolean;
8
- export declare function deepFreeze(input: ReferenceDataVersionRepresentation): void;
9
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
9
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ReferenceDataVersionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
11
10
  /**
@@ -6,7 +6,6 @@ export declare const RepresentationType: string;
6
6
  export declare function normalize(input: UploadEntityVersionInputRepresentation, existing: UploadEntityVersionInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): UploadEntityVersionInputRepresentationNormalized;
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: UploadEntityVersionInputRepresentationNormalized, incoming: UploadEntityVersionInputRepresentationNormalized): boolean;
9
- export declare function deepFreeze(input: UploadEntityVersionInputRepresentation): void;
10
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
11
10
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: UploadEntityVersionInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
12
11
  /**
@@ -6,7 +6,6 @@ export declare const RepresentationType: string;
6
6
  export declare function normalize(input: UploadEntityVersionInputWrapperRepresentation, existing: UploadEntityVersionInputWrapperRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): UploadEntityVersionInputWrapperRepresentationNormalized;
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: UploadEntityVersionInputWrapperRepresentationNormalized, incoming: UploadEntityVersionInputWrapperRepresentationNormalized): boolean;
9
- export declare function deepFreeze(input: UploadEntityVersionInputWrapperRepresentation): void;
10
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
11
10
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: UploadEntityVersionInputWrapperRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
12
11
  /**
@@ -15,7 +15,6 @@ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine
15
15
  export declare function normalize(input: UploadEntityVersionOutputRepresentation, existing: UploadEntityVersionOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): UploadEntityVersionOutputRepresentationNormalized;
16
16
  export declare const select: () => $64$luvio_engine_BaseFragment;
17
17
  export declare function equals(existing: UploadEntityVersionOutputRepresentationNormalized, incoming: UploadEntityVersionOutputRepresentationNormalized): boolean;
18
- export declare function deepFreeze(input: UploadEntityVersionOutputRepresentation): void;
19
18
  export declare const ingest: $64$luvio_engine_ResourceIngest;
20
19
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: UploadEntityVersionOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
21
20
  /**
@@ -1,11 +1,5 @@
1
1
  import { NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
- export declare const ObjectFreeze: {
3
- <T extends Function>(f: T): T;
4
- <T_1 extends {
5
- [idx: string]: object | U | null | undefined;
6
- }, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
7
- <T_2>(o: T_2): Readonly<T_2>;
8
- }, ObjectKeys: {
2
+ export declare const ObjectKeys: {
9
3
  (o: object): string[];
10
4
  (o: {}): string[];
11
5
  }, ObjectCreate: {
@@ -31,7 +25,6 @@ export declare function equalsArray<U, V extends U[]>(a: V, b: V, equalsItem: (i
31
25
  export declare function equalsObject<U, V extends {
32
26
  [key: string]: U;
33
27
  }>(a: V, b: V, equalsProp: (propA: U, propB: U) => boolean | void): boolean;
34
- export declare function deepFreeze(value: any): void;
35
28
  export declare function createLink(ref: string | $64$luvio_engine_NormalizedKeyMetadata): {
36
29
  __ref: string;
37
30
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-sustainability-reference-data-v2",
3
- "version": "1.134.6",
3
+ "version": "1.134.8",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "sustainability-reference-data-v2",
6
6
  "main": "dist/es/es2018/industries-sustainability-reference-data-v2.js",
package/sfdc/index.js CHANGED
@@ -14,10 +14,10 @@
14
14
  /* proxy-compat-disable */
15
15
  import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
16
16
  import { withDefaultLuvio } from 'force/ldsEngine';
17
- import { serializeStructuredKey, StoreKeyMap } from 'force/luvioEngine';
17
+ import { serializeStructuredKey, StoreKeyMap, deepFreeze } from 'force/luvioEngine';
18
18
 
19
19
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
20
- const { keys: ObjectKeys$1, freeze: ObjectFreeze$1, create: ObjectCreate$1 } = Object;
20
+ const { keys: ObjectKeys, create: ObjectCreate } = Object;
21
21
  const { isArray: ArrayIsArray$1 } = Array;
22
22
  /**
23
23
  * Validates an adapter config is well-formed.
@@ -41,7 +41,7 @@ function validateConfig(config, adapter, oneOf) {
41
41
  throw new TypeError(`adapter ${displayName} does not yet support ${unsupported.sort().join(', ')}`);
42
42
  }
43
43
  const supported = required.concat(optional);
44
- if (ObjectKeys$1(config).some(key => !supported.includes(key))) {
44
+ if (ObjectKeys(config).some(key => !supported.includes(key))) {
45
45
  throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`);
46
46
  }
47
47
  }
@@ -60,27 +60,8 @@ const snapshotRefreshOptions = {
60
60
  };
61
61
  const keyPrefix = 'sustainability-reference-data-v2';
62
62
 
63
- const { freeze: ObjectFreeze, keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
64
63
  const { isArray: ArrayIsArray } = Array;
65
64
  const { stringify: JSONStringify } = JSON;
66
- function deepFreeze$5(value) {
67
- // No need to freeze primitives
68
- if (typeof value !== 'object' || value === null) {
69
- return;
70
- }
71
- if (ArrayIsArray(value)) {
72
- for (let i = 0, len = value.length; i < len; i += 1) {
73
- deepFreeze$5(value[i]);
74
- }
75
- }
76
- else {
77
- const keys = ObjectKeys(value);
78
- for (let i = 0, len = keys.length; i < len; i += 1) {
79
- deepFreeze$5(value[keys[i]]);
80
- }
81
- }
82
- ObjectFreeze(value);
83
- }
84
65
  function createLink(ref) {
85
66
  return {
86
67
  __ref: serializeStructuredKey(ref),
@@ -149,9 +130,6 @@ function validate$6(obj, path = 'ReferenceDataVersionRepresentation') {
149
130
  })();
150
131
  return v_error === undefined ? null : v_error;
151
132
  }
152
- function deepFreeze$4(input) {
153
- ObjectFreeze(input);
154
- }
155
133
 
156
134
  function validate$5(obj, path = 'ReferenceDataSourceRepresentation') {
157
135
  const v_error = (() => {
@@ -191,15 +169,6 @@ function validate$5(obj, path = 'ReferenceDataSourceRepresentation') {
191
169
  })();
192
170
  return v_error === undefined ? null : v_error;
193
171
  }
194
- function deepFreeze$3(input) {
195
- const input_versions = input.versions;
196
- for (let i = 0; i < input_versions.length; i++) {
197
- const input_versions_item = input_versions[i];
198
- deepFreeze$4(input_versions_item);
199
- }
200
- ObjectFreeze(input_versions);
201
- ObjectFreeze(input);
202
- }
203
172
 
204
173
  function validate$4(obj, path = 'ReferenceDataEntityRepresentation') {
205
174
  const v_error = (() => {
@@ -229,15 +198,6 @@ function validate$4(obj, path = 'ReferenceDataEntityRepresentation') {
229
198
  })();
230
199
  return v_error === undefined ? null : v_error;
231
200
  }
232
- function deepFreeze$2(input) {
233
- const input_referenceDataSourceRepresentation = input.referenceDataSourceRepresentation;
234
- for (let i = 0; i < input_referenceDataSourceRepresentation.length; i++) {
235
- const input_referenceDataSourceRepresentation_item = input_referenceDataSourceRepresentation[i];
236
- deepFreeze$3(input_referenceDataSourceRepresentation_item);
237
- }
238
- ObjectFreeze(input_referenceDataSourceRepresentation);
239
- ObjectFreeze(input);
240
- }
241
201
 
242
202
  const TTL$1 = 300;
243
203
  const VERSION$1 = "128a41ea06afa49c7b4c5d421747be7a";
@@ -282,15 +242,6 @@ function equals$1(existing, incoming) {
282
242
  }
283
243
  return true;
284
244
  }
285
- function deepFreeze$1(input) {
286
- const input_referenceDataEntityRepresentation = input.referenceDataEntityRepresentation;
287
- for (let i = 0; i < input_referenceDataEntityRepresentation.length; i++) {
288
- const input_referenceDataEntityRepresentation_item = input_referenceDataEntityRepresentation[i];
289
- deepFreeze$2(input_referenceDataEntityRepresentation_item);
290
- }
291
- ObjectFreeze(input_referenceDataEntityRepresentation);
292
- ObjectFreeze(input);
293
- }
294
245
  const ingest$1 = function FetchEntityVersionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
295
246
  if (process.env.NODE_ENV !== 'production') {
296
247
  const validateError = validate$3(input);
@@ -307,7 +258,6 @@ const ingest$1 = function FetchEntityVersionOutputRepresentationIngest(input, pa
307
258
  propertyName: path.propertyName,
308
259
  ttl: ttlToUse
309
260
  });
310
- deepFreeze$1(input);
311
261
  if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
312
262
  luvio.storePublish(key, incomingRecord);
313
263
  }
@@ -357,6 +307,7 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
357
307
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
358
308
  }
359
309
  }
310
+ deepFreeze(snapshot.data);
360
311
  return snapshot;
361
312
  }
362
313
  function ingestError(luvio, params, error, snapshotRefresh) {
@@ -612,9 +563,6 @@ function equals(existing, incoming) {
612
563
  }
613
564
  return true;
614
565
  }
615
- function deepFreeze(input) {
616
- ObjectFreeze(input);
617
- }
618
566
  const ingest = function UploadEntityVersionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
619
567
  if (process.env.NODE_ENV !== 'production') {
620
568
  const validateError = validate(input);
@@ -631,7 +579,6 @@ const ingest = function UploadEntityVersionOutputRepresentationIngest(input, pat
631
579
  propertyName: path.propertyName,
632
580
  ttl: ttlToUse
633
581
  });
634
- deepFreeze(input);
635
582
  if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
636
583
  luvio.storePublish(key, incomingRecord);
637
584
  }
@@ -678,6 +625,7 @@ function ingestSuccess(luvio, resourceParams, response) {
678
625
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
679
626
  }
680
627
  }
628
+ deepFreeze(snapshot.data);
681
629
  return snapshot;
682
630
  }
683
631
  function createResourceRequest(config) {
@@ -741,7 +689,7 @@ function buildNetworkSnapshot(luvio, config, options) {
741
689
  return luvio.storeBroadcast().then(() => snapshot);
742
690
  }, () => getResponseCacheKeys(luvio, resourceParams, response.body));
743
691
  }, (response) => {
744
- deepFreeze$5(response);
692
+ deepFreeze(response);
745
693
  throw response;
746
694
  });
747
695
  }
@@ -785,4 +733,4 @@ withDefaultLuvio((luvio) => {
785
733
  });
786
734
 
787
735
  export { getEntityVersion, getEntityVersion_imperative, uploadEntityVersion };
788
- // version: 1.134.6-a88a77801
736
+ // version: 1.134.8-c3d6d2cfc