@ardatan/relay-compiler 12.1.1 → 12.1.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/bin/relay-compiler
CHANGED
|
@@ -2091,7 +2091,7 @@ var CompilerContext = /*#__PURE__*/function () {
|
|
|
2091
2091
|
};
|
|
2092
2092
|
|
|
2093
2093
|
_proto.withMutations = function withMutations(fn) {
|
|
2094
|
-
var mutableCopy = this._update(this._documents
|
|
2094
|
+
var mutableCopy = this._update(this._documents);
|
|
2095
2095
|
|
|
2096
2096
|
mutableCopy._isMutable = true;
|
|
2097
2097
|
var result = fn(mutableCopy);
|
|
@@ -163,11 +163,11 @@ class CompilerContext {
|
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
withMutations(fn: CompilerContext => CompilerContext): CompilerContext {
|
|
166
|
-
const mutableCopy = this._update(this._documents
|
|
166
|
+
const mutableCopy = this._update(this._documents);
|
|
167
167
|
mutableCopy._isMutable = true;
|
|
168
168
|
const result = fn(mutableCopy);
|
|
169
169
|
result._isMutable = false;
|
|
170
|
-
result._documents = result._documents
|
|
170
|
+
result._documents = result._documents;
|
|
171
171
|
return this._documents === result._documents ? this : result;
|
|
172
172
|
}
|
|
173
173
|
|
|
@@ -136,12 +136,12 @@ var CompilerContext = /*#__PURE__*/function () {
|
|
|
136
136
|
};
|
|
137
137
|
|
|
138
138
|
_proto.withMutations = function withMutations(fn) {
|
|
139
|
-
var mutableCopy = this._update(this._documents
|
|
139
|
+
var mutableCopy = this._update(this._documents);
|
|
140
140
|
|
|
141
141
|
mutableCopy._isMutable = true;
|
|
142
142
|
var result = fn(mutableCopy);
|
|
143
143
|
result._isMutable = false;
|
|
144
|
-
result._documents = result._documents
|
|
144
|
+
result._documents = result._documents;
|
|
145
145
|
return this._documents === result._documents ? this : result;
|
|
146
146
|
};
|
|
147
147
|
|