@salesforce/lds-adapters-industries-externaldocument 1.134.7 → 1.134.9

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 = 'ExternalDocument';
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$3(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$3(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$3(value[keys[i]]);
70
- }
71
- }
72
- ObjectFreeze(value);
73
- }
74
55
  function createLink(ref) {
75
56
  return {
76
57
  __ref: serializeStructuredKey(ref),
@@ -135,9 +116,6 @@ function equals$2(existing, incoming) {
135
116
  }
136
117
  return true;
137
118
  }
138
- function deepFreeze$2(input) {
139
- ObjectFreeze(input);
140
- }
141
119
  const ingest$2 = function ExternalDocumentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
142
120
  if (process.env.NODE_ENV !== 'production') {
143
121
  const validateError = validate$4(input);
@@ -154,7 +132,6 @@ const ingest$2 = function ExternalDocumentOutputRepresentationIngest(input, path
154
132
  propertyName: path.propertyName,
155
133
  ttl: ttlToUse
156
134
  });
157
- deepFreeze$2(input);
158
135
  if (existingRecord === undefined || equals$2(existingRecord, incomingRecord) === false) {
159
136
  luvio.storePublish(key, incomingRecord);
160
137
  }
@@ -204,6 +181,7 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
204
181
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
205
182
  }
206
183
  }
184
+ deepFreeze(snapshot.data);
207
185
  return snapshot;
208
186
  }
209
187
  function ingestError(luvio, params, error, snapshotRefresh) {
@@ -430,11 +408,6 @@ function equals$1(existing, incoming) {
430
408
  }
431
409
  return true;
432
410
  }
433
- function deepFreeze$1(input) {
434
- const input_externalDocumentDetails = input.externalDocumentDetails;
435
- ObjectFreeze(input_externalDocumentDetails);
436
- ObjectFreeze(input);
437
- }
438
411
  const ingest$1 = function ExternalDocCreationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
439
412
  if (process.env.NODE_ENV !== 'production') {
440
413
  const validateError = validate$2(input);
@@ -451,7 +424,6 @@ const ingest$1 = function ExternalDocCreationOutputRepresentationIngest(input, p
451
424
  propertyName: path.propertyName,
452
425
  ttl: ttlToUse
453
426
  });
454
- deepFreeze$1(input);
455
427
  if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
456
428
  luvio.storePublish(key, incomingRecord);
457
429
  }
@@ -498,6 +470,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
498
470
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
499
471
  }
500
472
  }
473
+ deepFreeze(snapshot.data);
501
474
  return snapshot;
502
475
  }
503
476
  function createResourceRequest$1(config) {
@@ -561,7 +534,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
561
534
  return luvio.storeBroadcast().then(() => snapshot);
562
535
  }, () => getResponseCacheKeys$1(luvio, resourceParams, response.body));
563
536
  }, (response) => {
564
- deepFreeze$3(response);
537
+ deepFreeze(response);
565
538
  throw response;
566
539
  });
567
540
  }
@@ -654,9 +627,6 @@ function equals(existing, incoming) {
654
627
  }
655
628
  return true;
656
629
  }
657
- function deepFreeze(input) {
658
- ObjectFreeze(input);
659
- }
660
630
  const ingest = function SaveExternalDocumentRepresentationIngest(input, path, luvio, store, timestamp) {
661
631
  if (process.env.NODE_ENV !== 'production') {
662
632
  const validateError = validate(input);
@@ -673,7 +643,6 @@ const ingest = function SaveExternalDocumentRepresentationIngest(input, path, lu
673
643
  propertyName: path.propertyName,
674
644
  ttl: ttlToUse
675
645
  });
676
- deepFreeze(input);
677
646
  if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
678
647
  luvio.storePublish(key, incomingRecord);
679
648
  }
@@ -720,6 +689,7 @@ function ingestSuccess(luvio, resourceParams, response) {
720
689
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
721
690
  }
722
691
  }
692
+ deepFreeze(snapshot.data);
723
693
  return snapshot;
724
694
  }
725
695
  function createResourceRequest(config) {
@@ -783,7 +753,7 @@ function buildNetworkSnapshot(luvio, config, options) {
783
753
  return luvio.storeBroadcast().then(() => snapshot);
784
754
  }, () => getResponseCacheKeys(luvio, resourceParams, response.body));
785
755
  }, (response) => {
786
- deepFreeze$3(response);
756
+ deepFreeze(response);
787
757
  throw response;
788
758
  });
789
759
  }
@@ -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 {
@@ -6,7 +6,6 @@ export declare const RepresentationType: string;
6
6
  export declare function normalize(input: ExternalDocCreationInputRepresentation, existing: ExternalDocCreationInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExternalDocCreationInputRepresentationNormalized;
7
7
  export declare const select: () => $64$luvio_engine_BaseFragment;
8
8
  export declare function equals(existing: ExternalDocCreationInputRepresentationNormalized, incoming: ExternalDocCreationInputRepresentationNormalized): boolean;
9
- export declare function deepFreeze(input: ExternalDocCreationInputRepresentation): void;
10
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
11
10
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ExternalDocCreationInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
12
11
  /**
@@ -14,7 +14,6 @@ export interface DynamicSelectParams {
14
14
  }
15
15
  export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
16
16
  export declare function equals(existing: ExternalDocCreationInputRepresentationWrapperNormalized, incoming: ExternalDocCreationInputRepresentationWrapperNormalized): boolean;
17
- export declare function deepFreeze(input: ExternalDocCreationInputRepresentationWrapper): void;
18
17
  export declare const ingest: $64$luvio_engine_ResourceIngest;
19
18
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ExternalDocCreationInputRepresentationWrapper, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
20
19
  export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
@@ -15,7 +15,6 @@ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine
15
15
  export declare function normalize(input: ExternalDocCreationOutputRepresentation, existing: ExternalDocCreationOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExternalDocCreationOutputRepresentationNormalized;
16
16
  export declare const select: () => $64$luvio_engine_BaseFragment;
17
17
  export declare function equals(existing: ExternalDocCreationOutputRepresentationNormalized, incoming: ExternalDocCreationOutputRepresentationNormalized): boolean;
18
- export declare function deepFreeze(input: ExternalDocCreationOutputRepresentation): void;
19
18
  export declare const ingest: $64$luvio_engine_ResourceIngest;
20
19
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ExternalDocCreationOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
21
20
  /**
@@ -6,7 +6,6 @@ export declare const RepresentationType: string;
6
6
  export declare function normalize(input: ExternalDocumentMetadataRepresentation, existing: ExternalDocumentMetadataRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExternalDocumentMetadataRepresentationNormalized;
7
7
  export declare const select: () => $64$luvio_engine_BaseFragment;
8
8
  export declare function equals(existing: ExternalDocumentMetadataRepresentationNormalized, incoming: ExternalDocumentMetadataRepresentationNormalized): boolean;
9
- export declare function deepFreeze(input: ExternalDocumentMetadataRepresentation): void;
10
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
11
10
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ExternalDocumentMetadataRepresentation, 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: ExternalDocumentOutputRepresentation, existing: ExternalDocumentOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExternalDocumentOutputRepresentationNormalized;
7
7
  export declare const select: () => $64$luvio_engine_BaseFragment;
8
8
  export declare function equals(existing: ExternalDocumentOutputRepresentationNormalized, incoming: ExternalDocumentOutputRepresentationNormalized): boolean;
9
- export declare function deepFreeze(input: ExternalDocumentOutputRepresentation): void;
10
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
11
10
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ExternalDocumentOutputRepresentation, 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: ObjectReferenceRepresentation, existing: ObjectReferenceRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ObjectReferenceRepresentationNormalized;
7
7
  export declare const select: () => $64$luvio_engine_BaseFragment;
8
8
  export declare function equals(existing: ObjectReferenceRepresentationNormalized, incoming: ObjectReferenceRepresentationNormalized): boolean;
9
- export declare function deepFreeze(input: ObjectReferenceRepresentation): void;
10
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
11
10
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ObjectReferenceRepresentation, 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: SaveExternalDocumentInputRepresentation, existing: SaveExternalDocumentInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SaveExternalDocumentInputRepresentationNormalized;
7
7
  export declare const select: () => $64$luvio_engine_BaseFragment;
8
8
  export declare function equals(existing: SaveExternalDocumentInputRepresentationNormalized, incoming: SaveExternalDocumentInputRepresentationNormalized): boolean;
9
- export declare function deepFreeze(input: SaveExternalDocumentInputRepresentation): void;
10
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
11
10
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: SaveExternalDocumentInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
12
11
  /**
@@ -14,7 +14,6 @@ export interface DynamicSelectParams {
14
14
  }
15
15
  export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
16
16
  export declare function equals(existing: SaveExternalDocumentInputRepresentationWrapperNormalized, incoming: SaveExternalDocumentInputRepresentationWrapperNormalized): boolean;
17
- export declare function deepFreeze(input: SaveExternalDocumentInputRepresentationWrapper): void;
18
17
  export declare const ingest: $64$luvio_engine_ResourceIngest;
19
18
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: SaveExternalDocumentInputRepresentationWrapper, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
20
19
  export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
@@ -15,7 +15,6 @@ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine
15
15
  export declare function normalize(input: SaveExternalDocumentRepresentation, existing: SaveExternalDocumentRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SaveExternalDocumentRepresentationNormalized;
16
16
  export declare const select: () => $64$luvio_engine_BaseFragment;
17
17
  export declare function equals(existing: SaveExternalDocumentRepresentationNormalized, incoming: SaveExternalDocumentRepresentationNormalized): boolean;
18
- export declare function deepFreeze(input: SaveExternalDocumentRepresentation): void;
19
18
  export declare const ingest: $64$luvio_engine_ResourceIngest;
20
19
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: SaveExternalDocumentRepresentation, 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-externaldocument",
3
- "version": "1.134.7",
3
+ "version": "1.134.9",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "This External Document API family will allow to create, edit or read the information about the document which is present in the external editor outside Salesforce. ",
6
6
  "main": "dist/es/es2018/industries-externaldocument.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 = 'ExternalDocument';
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$3(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$3(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$3(value[keys[i]]);
80
- }
81
- }
82
- ObjectFreeze(value);
83
- }
84
65
  function createLink(ref) {
85
66
  return {
86
67
  __ref: serializeStructuredKey(ref),
@@ -173,11 +154,6 @@ function equals$2(existing, incoming) {
173
154
  }
174
155
  return true;
175
156
  }
176
- function deepFreeze$2(input) {
177
- const input_externalDocumentDetails = input.externalDocumentDetails;
178
- ObjectFreeze(input_externalDocumentDetails);
179
- ObjectFreeze(input);
180
- }
181
157
  const ingest$2 = function ExternalDocCreationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
182
158
  if (process.env.NODE_ENV !== 'production') {
183
159
  const validateError = validate$3(input);
@@ -194,7 +170,6 @@ const ingest$2 = function ExternalDocCreationOutputRepresentationIngest(input, p
194
170
  propertyName: path.propertyName,
195
171
  ttl: ttlToUse
196
172
  });
197
- deepFreeze$2(input);
198
173
  if (existingRecord === undefined || equals$2(existingRecord, incomingRecord) === false) {
199
174
  luvio.storePublish(key, incomingRecord);
200
175
  }
@@ -241,6 +216,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
241
216
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
242
217
  }
243
218
  }
219
+ deepFreeze(snapshot.data);
244
220
  return snapshot;
245
221
  }
246
222
  function createResourceRequest$2(config) {
@@ -304,7 +280,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
304
280
  return luvio.storeBroadcast().then(() => snapshot);
305
281
  }, () => getResponseCacheKeys$2(luvio, resourceParams, response.body));
306
282
  }, (response) => {
307
- deepFreeze$3(response);
283
+ deepFreeze(response);
308
284
  throw response;
309
285
  });
310
286
  }
@@ -377,9 +353,6 @@ function equals$1(existing, incoming) {
377
353
  }
378
354
  return true;
379
355
  }
380
- function deepFreeze$1(input) {
381
- ObjectFreeze(input);
382
- }
383
356
  const ingest$1 = function ExternalDocumentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
384
357
  if (process.env.NODE_ENV !== 'production') {
385
358
  const validateError = validate$2(input);
@@ -396,7 +369,6 @@ const ingest$1 = function ExternalDocumentOutputRepresentationIngest(input, path
396
369
  propertyName: path.propertyName,
397
370
  ttl: ttlToUse
398
371
  });
399
- deepFreeze$1(input);
400
372
  if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
401
373
  luvio.storePublish(key, incomingRecord);
402
374
  }
@@ -446,6 +418,7 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
446
418
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
447
419
  }
448
420
  }
421
+ deepFreeze(snapshot.data);
449
422
  return snapshot;
450
423
  }
451
424
  function ingestError(luvio, params, error, snapshotRefresh) {
@@ -664,9 +637,6 @@ function equals(existing, incoming) {
664
637
  }
665
638
  return true;
666
639
  }
667
- function deepFreeze(input) {
668
- ObjectFreeze(input);
669
- }
670
640
  const ingest = function SaveExternalDocumentRepresentationIngest(input, path, luvio, store, timestamp) {
671
641
  if (process.env.NODE_ENV !== 'production') {
672
642
  const validateError = validate(input);
@@ -683,7 +653,6 @@ const ingest = function SaveExternalDocumentRepresentationIngest(input, path, lu
683
653
  propertyName: path.propertyName,
684
654
  ttl: ttlToUse
685
655
  });
686
- deepFreeze(input);
687
656
  if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
688
657
  luvio.storePublish(key, incomingRecord);
689
658
  }
@@ -730,6 +699,7 @@ function ingestSuccess(luvio, resourceParams, response) {
730
699
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
731
700
  }
732
701
  }
702
+ deepFreeze(snapshot.data);
733
703
  return snapshot;
734
704
  }
735
705
  function createResourceRequest(config) {
@@ -793,7 +763,7 @@ function buildNetworkSnapshot(luvio, config, options) {
793
763
  return luvio.storeBroadcast().then(() => snapshot);
794
764
  }, () => getResponseCacheKeys(luvio, resourceParams, response.body));
795
765
  }, (response) => {
796
- deepFreeze$3(response);
766
+ deepFreeze(response);
797
767
  throw response;
798
768
  });
799
769
  }
@@ -839,4 +809,4 @@ withDefaultLuvio((luvio) => {
839
809
  });
840
810
 
841
811
  export { createExternalDocument, getExternalDocument, getExternalDocument_imperative, saveExternalDocument };
842
- // version: 1.134.7-ed0df45ef
812
+ // version: 1.134.9-fd822024c