breeze-client 2.1.2 → 2.1.3
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/LICENSE +1 -1
- package/adapter-ajax-angularjs/package.json +2 -2
- package/adapter-ajax-fetch/package.json +2 -2
- package/adapter-ajax-httpclient/package.json +2 -6
- package/adapter-ajax-jquery/package.json +2 -2
- package/adapter-ajax-post/package.json +2 -2
- package/adapter-data-service-odata/package.json +2 -2
- package/adapter-data-service-webapi/package.json +2 -2
- package/adapter-model-library-backing-store/package.json +2 -2
- package/adapter-model-library-ko/package.json +2 -2
- package/adapter-uri-builder-json/package.json +2 -2
- package/adapter-uri-builder-odata/package.json +2 -2
- package/breeze-client.d.ts +1 -1
- package/breeze-client.metadata.json +1 -1
- package/bundles/breeze-client.umd.js +9 -5
- package/bundles/breeze-client.umd.js.map +1 -1
- package/bundles/breeze-client.umd.min.js +1 -1
- package/bundles/breeze-client.umd.min.js.map +1 -1
- package/esm2015/breeze-client.js +2 -2
- package/esm2015/src/array.js +1 -1
- package/esm2015/src/breeze.js +2 -2
- package/esm2015/src/core.js +4 -1
- package/esm2015/src/csdl-metadata-parser.js +3 -3
- package/esm2015/src/default-property-interceptor.js +3 -2
- package/esm2015/src/enum.js +2 -2
- package/esm2015/src/local-query-comparison-options.js +1 -1
- package/esm5/breeze-client.js +2 -2
- package/esm5/src/array.js +1 -1
- package/esm5/src/breeze.js +2 -2
- package/esm5/src/core.js +4 -1
- package/esm5/src/csdl-metadata-parser.js +3 -3
- package/esm5/src/default-property-interceptor.js +3 -2
- package/esm5/src/enum.js +2 -2
- package/esm5/src/local-query-comparison-options.js +1 -1
- package/fesm2015/breeze-client.js +9 -5
- package/fesm2015/breeze-client.js.map +1 -1
- package/fesm5/breeze-client.js +9 -5
- package/fesm5/breeze-client.js.map +1 -1
- package/mixin-get-entity-graph/package.json +2 -2
- package/mixin-save-queuing/package.json +2 -2
- package/package.json +1 -1
- package/esm2015/public_api.js +0 -2
- package/esm5/public_api.js +0 -2
- package/public_api.d.ts +0 -1
package/fesm5/breeze-client.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends, __spread } from 'tslib';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
|
-
* Copyright 2012-
|
|
4
|
+
* Copyright 2012-2023 IdeaBlade, Inc. All Rights Reserved.
|
|
5
5
|
* Use, reproduction, distribution, and modification of this code is subject to the terms and
|
|
6
6
|
* conditions of the IdeaBlade Breeze license, available at http://www.breezejs.com/license
|
|
7
7
|
*
|
|
@@ -596,6 +596,9 @@ function requireLibCore(libName) {
|
|
|
596
596
|
}
|
|
597
597
|
/** Execute fn while obj has tempValue for property */
|
|
598
598
|
function using(obj, property, tempValue, fn) {
|
|
599
|
+
if (!obj) {
|
|
600
|
+
return fn();
|
|
601
|
+
}
|
|
599
602
|
var originalValue = obj[property];
|
|
600
603
|
if (tempValue === originalValue) {
|
|
601
604
|
return fn();
|
|
@@ -6888,7 +6891,7 @@ var NamingConvention = /** @class */ (function () {
|
|
|
6888
6891
|
}());
|
|
6889
6892
|
NamingConvention.prototype._$typeName = "NamingConvention";
|
|
6890
6893
|
|
|
6891
|
-
var RX_COLLECTION = /Collection\((
|
|
6894
|
+
var RX_COLLECTION = /Collection\((.*)\)/;
|
|
6892
6895
|
function parse(metadataStore, schemas, altMetadata) {
|
|
6893
6896
|
metadataStore._entityTypeResourceMap = {};
|
|
6894
6897
|
schemas = core.toArray(schemas);
|
|
@@ -7246,7 +7249,7 @@ function parseTypeNameWithSchema(entityTypeName, schema) {
|
|
|
7246
7249
|
}
|
|
7247
7250
|
function getCollectionType(propertyType) {
|
|
7248
7251
|
var match = propertyType.match(RX_COLLECTION);
|
|
7249
|
-
return match ? match[
|
|
7252
|
+
return match ? match[1] : null;
|
|
7250
7253
|
}
|
|
7251
7254
|
function getNamespaceFor(shortName, schema) {
|
|
7252
7255
|
var ns;
|
|
@@ -7351,7 +7354,8 @@ function defaultPropertyInterceptor(property, newValue, rawAccessorFn) {
|
|
|
7351
7354
|
}
|
|
7352
7355
|
}
|
|
7353
7356
|
// exit if no change - extra cruft is because dateTimes don't compare cleanly.
|
|
7354
|
-
if (newValue === oldValue || (
|
|
7357
|
+
if (newValue === oldValue || (newValue === null && oldValue === undefined) ||
|
|
7358
|
+
(dataType && dataType.normalize && newValue && oldValue && dataType.normalize(newValue) === dataType.normalize(oldValue))) {
|
|
7355
7359
|
return;
|
|
7356
7360
|
}
|
|
7357
7361
|
// CANNOT DO NEXT LINE because it has the possibility of creating a new property
|
|
@@ -13795,7 +13799,7 @@ var breeze = {
|
|
|
13795
13799
|
ValidationError: ValidationError,
|
|
13796
13800
|
ValidationOptions: ValidationOptions,
|
|
13797
13801
|
Validator: Validator,
|
|
13798
|
-
version: "2.1.
|
|
13802
|
+
version: "2.1.3"
|
|
13799
13803
|
};
|
|
13800
13804
|
/** @hidden @internal */
|
|
13801
13805
|
var win;
|