Skip to content

Commit

Permalink
Release artifacts for version 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
triskweline committed Jul 13, 2021
1 parent 309b429 commit 06c9f52
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
12 changes: 8 additions & 4 deletions dist/unpoly.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

(function() {
window.up = {
version: "1.0.0"
version: "1.0.1"
};

}).call(this);
Expand Down Expand Up @@ -5972,6 +5972,7 @@ It complements [native `Element` methods](https://www.w3schools.com/jsref/dom_ob
xhrPayload = xhrParams.toFormData();
}
pc = up.protocol.config;
xhrHeaders[pc.versionHeader] = up.version;
if (_this.target) {
xhrHeaders[pc.targetHeader] = _this.target;
}
Expand Down Expand Up @@ -7577,6 +7578,7 @@ an existing cookie should be deleted.
Configures strings used in the optional [server protocol](/up.protocol).

@property up.protocol.config
@param {String} [config.versionHeader='X-Up-Version']
@param {String} [config.targetHeader='X-Up-Target']
@param {String} [config.failTargetHeader='X-Up-Fail-Target']
@param {String} [config.locationHeader='X-Up-Location']
Expand Down Expand Up @@ -7620,6 +7622,7 @@ an existing cookie should be deleted.
@experimental
*/
config = new up.Config({
versionHeader: 'X-Up-Version',
targetHeader: 'X-Up-Target',
failTargetHeader: 'X-Up-Fail-Target',
locationHeader: 'X-Up-Location',
Expand Down Expand Up @@ -7896,6 +7899,9 @@ The output can be configured using the [`up.log.config`](/up.log.config) propert
};
printBanner = function() {
var banner;
if (!config.banner) {
return;
}
banner = " __ _____ ___ ___ / /_ __\n" + ("/ // / _ \\/ _ \\/ _ \\/ / // / " + up.version + "\n") + "\\___/_//_/ .__/\\___/_/\\_. / \n" + " / / / /\n" + "\n";
if (config.enabled) {
banner += "Call `up.log.disable()` to disable logging for this session.";
Expand All @@ -7904,9 +7910,7 @@ The output can be configured using the [`up.log.config`](/up.log.config) propert
}
return console.log(banner);
};
if (config.banner) {
up.on('up:framework:booted', printBanner);
}
up.on('up:app:boot', printBanner);
up.on('up:framework:reset', reset);
setEnabled = function(value) {
sessionStore.set('enabled', value);
Expand Down
Loading

0 comments on commit 06c9f52

Please sign in to comment.