@ember-data/model 4.12.1 → 4.12.2
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/addon/-private.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as Model } from "./has-many-
|
|
2
|
-
export { E as Errors, L as LEGACY_SUPPORT, R as ManyArray, P as PromiseBelongsTo, c as PromiseManyArray, a as attr, b as belongsTo, h as hasMany } from "./has-many-
|
|
1
|
+
import { M as Model } from "./has-many-26d79228";
|
|
2
|
+
export { E as Errors, L as LEGACY_SUPPORT, R as ManyArray, P as PromiseBelongsTo, c as PromiseManyArray, a as attr, b as belongsTo, h as hasMany } from "./has-many-26d79228";
|
|
3
3
|
import { getOwner } from '@ember/application';
|
|
4
4
|
|
|
5
5
|
/*
|
|
@@ -3055,6 +3055,11 @@ function isInvalidError(error) {
|
|
|
3055
3055
|
let Tag = (_class$1 = class Tag {
|
|
3056
3056
|
constructor() {
|
|
3057
3057
|
_initializerDefineProperty(this, "ref", _descriptor$1, this);
|
|
3058
|
+
if (macroCondition(getOwnConfig().env.DEBUG)) {
|
|
3059
|
+
const [base, prop] = arguments;
|
|
3060
|
+
this._debug_base = base;
|
|
3061
|
+
this._debug_prop = prop;
|
|
3062
|
+
}
|
|
3058
3063
|
this.rev = 1;
|
|
3059
3064
|
this.isDirty = true;
|
|
3060
3065
|
this.value = undefined;
|
|
@@ -3087,7 +3092,8 @@ function getTag(record, key) {
|
|
|
3087
3092
|
tags = Object.create(null);
|
|
3088
3093
|
Tags.set(record, tags);
|
|
3089
3094
|
}
|
|
3090
|
-
|
|
3095
|
+
// @ts-expect-error
|
|
3096
|
+
return tags[key] = tags[key] || (macroCondition(getOwnConfig().env.DEBUG) ? new Tag(record.constructor.modelName, key) : new Tag());
|
|
3091
3097
|
}
|
|
3092
3098
|
function peekTag(record, key) {
|
|
3093
3099
|
let tags = Tags.get(record);
|