Skip to content

Commit

Permalink
chore(version): bump
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGiddyLimit committed Dec 17, 2021
1 parent a340c15 commit cf6027f
Show file tree
Hide file tree
Showing 4 changed files with 128 additions and 60 deletions.
136 changes: 93 additions & 43 deletions dist/betteR20-5etools.user.js

Large diffs are not rendered by default.

46 changes: 32 additions & 14 deletions dist/betteR20-core.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// @name betteR20-core
// @namespace https://5e.tools/
// @license MIT (https://opensource.org/licenses/MIT)
// @version 1.28.05-dev
// @version 1.28.1
// @updateURL https://github.com/TheGiddyLimit/betterR20/raw/development/dist/betteR20-core.user.js
// @downloadURL https://github.com/TheGiddyLimit/betterR20/raw/development/dist/betteR20-core.user.js
// @description Enhance your Roll20 experience
Expand Down Expand Up @@ -19161,6 +19161,14 @@ Parser.bookOrdinalToAbv = (ordinal, preNoSuff) => {
}
};

Parser.IMAGE_TYPE_TO_FULL = {
"map": "Map",
"mapPlayer": "Map (Player)",
};
Parser.imageTypeToFull = function (imageType) {
return Parser._parse_aToB(Parser.IMAGE_TYPE_TO_FULL, imageType, "Other");
};

Parser.nameToTokenName = function (name) {
return name
.toAscii()
Expand Down Expand Up @@ -23453,6 +23461,17 @@ DataUtil = {
};
},

getNormalizedUid (uid, tag) {
const {name, source} = DataUtil.generic.unpackUid(uid, tag, {isLower: true});
return [name, source].join("|");
},

getUid (ent) {
const {name, source} = ent;
if (!name || !source) throw new Error(`Entity did not have a name and source!`);
return [name, source].join("|").toLowerCase();
},

async _pMergeCopy (impl, page, entryList, entry, options) {
if (!entry._copy) return;

Expand Down Expand Up @@ -24088,9 +24107,10 @@ DataUtil = {
},

proxy: {
getVersions (prop, ent) {
return (DataUtil[prop]?.getVersions || DataUtil.generic.getVersions)(ent);
},
getVersions (prop, ent) { return (DataUtil[prop]?.getVersions || DataUtil.generic.getVersions)(ent); },
unpackUid (prop, uid, tag, opts) { return (DataUtil[prop]?.unpackUid || DataUtil.generic.unpackUid)(uid, tag, opts); },
getNormalizedUid (prop, uid, tag, opts) { return (DataUtil[prop]?.getNormalizedUid || DataUtil.generic.getNormalizedUid)(uid, tag, opts); },
getUid (prop, ent) { return (DataUtil[prop]?.getUid || DataUtil.generic.getUid)(ent); },
},

monster: {
Expand Down Expand Up @@ -26902,23 +26922,20 @@ CollectionUtil = {
},

deepEquals (a, b) {
if (CollectionUtil._eq_sameValueZeroEqual(a, b)) return true;
if (Object.is(a, b)) return true;
if (a && b && typeof a === "object" && typeof b === "object") {
if (CollectionUtil._eq_isPlainObject(a) && CollectionUtil._eq_isPlainObject(b)) return CollectionUtil._eq_areObjectsEqual(a, b);
const arrayA = Array.isArray(a);
const arrayB = Array.isArray(b);
if (arrayA || arrayB) return arrayA === arrayB && CollectionUtil._eq_areArraysEqual(a, b);
const setA = a instanceof Set;
const setB = b instanceof Set;
if (setA || setB) return setA === setB && CollectionUtil.setEq(a, b);
const isArrayA = Array.isArray(a);
const isArrayB = Array.isArray(b);
if (isArrayA || isArrayB) return isArrayA === isArrayB && CollectionUtil._eq_areArraysEqual(a, b);
const isSetA = a instanceof Set;
const isSetB = b instanceof Set;
if (isSetA || isSetB) return isSetA === isSetB && CollectionUtil.setEq(a, b);
return CollectionUtil._eq_areObjectsEqual(a, b);
}
return false;
},

// This handles the NaN != NaN case; ignore linter complaints
// eslint-disable-next-line no-self-compare
_eq_sameValueZeroEqual: (a, b) => a === b || (a !== a && b !== b),
_eq_isPlainObject: (value) => value.constructor === Object || value.constructor == null,
_eq_areObjectsEqual (a, b) {
const keysA = Object.keys(a);
Expand Down Expand Up @@ -28091,6 +28108,7 @@ class UiUtil {

static getEntriesAsText (entryArray) {
if (!entryArray || !entryArray.length) return "";
if (!(entryArray instanceof Array)) return UiUtil.getEntriesAsText([entryArray]);

return entryArray
.map(it => {
Expand Down
2 changes: 1 addition & 1 deletion dist/betteR20-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.28.05-dev
1.28.1
4 changes: 2 additions & 2 deletions node/build-scripts.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fs = require("fs");

const SCRIPT_VERSION = "1.28.0";
const SCRIPT_VERSION = "1.28.1";

const matchString = `
// @match https://app.roll20.net/editor
Expand All @@ -15,7 +15,7 @@ const matchString = `
// running, the analytics scripts manage to somehow crash the entire website.
const analyticsBlocking = `
// @grant GM_webRequest
// @webRequest [{"selector": { "include": "*://www.google-analytics.com/analytics.js" }, "action": "cancel"}]
// @webRequest [{"selector": { "include": "*://www.google-analytics.com/analytics.js" }, "action": "cancel"}]1
// @webRequest [{"selector": { "include": "*://cdn.userleap.com/shim.js?*" }, "action": "cancel"}]
`;

Expand Down

0 comments on commit cf6027f

Please sign in to comment.