@clxmedia/xperience-rights-client 1.1.5 → 1.1.6

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.
Files changed (2) hide show
  1. package/dist/client.js +5 -2
  2. package/package.json +2 -2
package/dist/client.js CHANGED
@@ -96,6 +96,7 @@ exports.FRIENDLY_SCOPE_NAMES = {
96
96
  video: 'Video',
97
97
  tcc: 'The Conversion Cloud',
98
98
  search: 'Search Builder',
99
+ searchreview: 'Search Review',
99
100
  };
100
101
  class XperienceRightsClient {
101
102
  static findAbility(data, scope, qualifier) {
@@ -172,10 +173,12 @@ class XperienceRightsClient {
172
173
  return ((_c = strategy.master_ids) === null || _c === void 0 ? void 0 : _c.includes(qualifier)) || false;
173
174
  }
174
175
  if (strategy.type === 'company_user') {
175
- return ((_d = strategy.master_ids) === null || _d === void 0 ? void 0 : _d.includes(qualifier)) && ((_e = strategy.users) === null || _e === void 0 ? void 0 : _e.includes(data.email));
176
+ return (((_d = strategy.master_ids) === null || _d === void 0 ? void 0 : _d.includes(qualifier)) &&
177
+ ((_e = strategy.users) === null || _e === void 0 ? void 0 : _e.includes(data.email)));
176
178
  }
177
179
  if (strategy.type === 'company_group') {
178
- return ((_f = strategy.master_ids) === null || _f === void 0 ? void 0 : _f.includes(qualifier)) && ((_g = strategy.groups) === null || _g === void 0 ? void 0 : _g.some((group) => XperienceRightsClient.isGroupMember(data, group, qualifier)));
180
+ return (((_f = strategy.master_ids) === null || _f === void 0 ? void 0 : _f.includes(qualifier)) &&
181
+ ((_g = strategy.groups) === null || _g === void 0 ? void 0 : _g.some((group) => XperienceRightsClient.isGroupMember(data, group, qualifier))));
179
182
  }
180
183
  return false;
181
184
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clxmedia/xperience-rights-client",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "CLXperience Rights Client",
5
5
  "author": "Brandon Thompson <brandont@clxmedia.com>",
6
6
  "license": "MIT",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "bugs": "https://github.com/adsupnow/xperience-library/xperience-rights-client",
34
34
  "dependencies": {
35
- "@clxmedia/types": "1.0.169"
35
+ "@clxmedia/types": "1.0.170"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/jest": "29.5.11",