unpoly-rails 3.0.0.rc3 → 3.0.0.rc4
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.
- checksums.yaml +4 -4
- data/assets/unpoly/unpoly.es6.js +7 -2
- data/assets/unpoly/unpoly.es6.min.js +1 -1
- data/assets/unpoly/unpoly.js +7 -2
- data/assets/unpoly/unpoly.min.js +1 -1
- data/lib/unpoly/rails/version.rb +1 -1
- metadata +1 -1
data/assets/unpoly/unpoly.js
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
/***/ (() => {
|
6
6
|
|
7
7
|
window.up = {
|
8
|
-
version: '3.0.0-
|
8
|
+
version: '3.0.0-rc4'
|
9
9
|
};
|
10
10
|
|
11
11
|
|
@@ -6088,6 +6088,9 @@ up.Request = (_a = class Request extends up.Record {
|
|
6088
6088
|
this.addAutoHeader(up.protocol.headerize('version'), up.version);
|
6089
6089
|
}
|
6090
6090
|
addAutoHeader(name, value) {
|
6091
|
+
if (u.isMissing(value)) {
|
6092
|
+
return;
|
6093
|
+
}
|
6091
6094
|
if (u.isOptions(value) || u.isArray(value)) {
|
6092
6095
|
value = u.safeStringifyJSON(value);
|
6093
6096
|
}
|
@@ -6198,7 +6201,9 @@ up.Request.Cache = class Cache {
|
|
6198
6201
|
}
|
6199
6202
|
}
|
6200
6203
|
alias(existingCachedRequest, newRequest) {
|
6201
|
-
existingCachedRequest = this.
|
6204
|
+
existingCachedRequest = this.get(existingCachedRequest);
|
6205
|
+
if (!existingCachedRequest)
|
6206
|
+
return;
|
6202
6207
|
newRequest = this.wrap(newRequest);
|
6203
6208
|
this.track(existingCachedRequest, newRequest, { force: true });
|
6204
6209
|
this.put(newRequest);
|