Skip to content

Commit

Permalink
v1.17.3 (#137)
Browse files Browse the repository at this point in the history
* Fix custom metadata (Fixes #134)
* Allow nexus-test subdomain (Fixes #136 
* Update deps
  • Loading branch information
MisterPhilip committed Feb 8, 2021
1 parent 78dc893 commit 1387da6
Show file tree
Hide file tree
Showing 6 changed files with 947 additions and 1,031 deletions.
6 changes: 3 additions & 3 deletions Gruntfile.js
Expand Up @@ -14,19 +14,19 @@ module.exports = function (grunt) {
},
"production": {
"name": "Omnibug",
"version": "1.17.2",
"version": "1.17.3",
"storageKey": "omnibug",
"feedbackUrl": "https://github.com/MisterPhilip/omnibug/issues",
"analyticsID": "UA-114343677-2"
}
},
"chrome": {
"folder": "chromium",
"tracking": true
"tracking": false
},
"edge": {
"folder": "edge",
"tracking": true
"tracking": false
},
"firefox": {
"gecko": "Omnibug@rosssimpson.com",
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "omnibug",
"version": "1.17.2",
"version": "1.17.3",
"description": "Omnibug Extension",
"main": "Gruntfile.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/providers/AdobeHeartbeat.js
Expand Up @@ -443,9 +443,9 @@ class AdobeHeartbeatProvider extends BaseProvider
if(/^customMetadata\./i.test(name)) {
result = {
"key": name,
"field": "prop" + RegExp.$1,
"field": name.replace(/^customMetadata\./i, ""),
"value": value,
"group": "props"
"group": "customMetadata"
};
} else if(/^params\.analytics\./i.test(name) && !(name in this.keys)) {
result = {
Expand Down
4 changes: 2 additions & 2 deletions src/providers/EnsightenManage.js
Expand Up @@ -11,7 +11,7 @@ class EnsightenManageProvider extends BaseProvider
{
super();
this._key = "ENSIGHTENMANAGE";
this._pattern = /nexus\.ensighten\.com\/(?=.*Bootstrap\.js)/;
this._pattern = /nexus(?:-test)?\.ensighten\.com\/(?=.*Bootstrap\.js)/;
this._name = "Ensighten Manage";
this._type = "tagmanager";
this._keywords = ["tms"];
Expand Down Expand Up @@ -80,4 +80,4 @@ class EnsightenManageProvider extends BaseProvider

return results;
}
}
}
7 changes: 5 additions & 2 deletions test/providers/EnsightenManage.js
Expand Up @@ -15,11 +15,14 @@ test("EnsightenManageProvider pattern should match Ensighten calls", t => {
let provider = new EnsightenManageProvider(),
urls = [
"https://nexus.ensighten.com/omnibug/Bootstrap.js",
"https://nexus-test.ensighten.com/omnibug/Bootstrap.js",
"https://nexus.ensighten.com/omnibug/OmnibugProd/Bootstrap.js",
"https://nexus.ensighten.com/omnibug/OmnibugProd/Bootstrap.js?cacheBuster=1234"
"https://nexus.ensighten.com/omnibug/OmnibugProd/Bootstrap.js?cacheBuster=1234",
"https://nexus-test.ensighten.com/omnibug/OmnibugProd/Bootstrap.js?cacheBuster=1234"
],
badUrls = [
"https://nexus.ensighten.com/omnibug/OmnibugProd/serverComponent.php",
"https://dummy-domain.ensighten.com/omnibug/OmnibugProd/Bootstrap.js",
"https://nexus.ensighten.com/omnibug/OmnibugProd/code/123456789.js?conditionId0=123456"
];

Expand Down Expand Up @@ -67,4 +70,4 @@ test("EnsightenManageProvider returns profile when missing", t => {

t.is(typeof profile, "object");
t.is(profile.value, "prod");
});
});

0 comments on commit 1387da6

Please sign in to comment.