Socket
Socket
Sign inDemoInstall

@empathyco/x-adapter-platform

Package Overview
Dependencies
Maintainers
5
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@empathyco/x-adapter-platform - npm Package Compare versions

Comparing version 1.0.3-alpha.2 to 1.1.0-alpha.0

16

dist/cjs/mappers/url.utils.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.extractUrlParameters = exports.getDisplayClickTagging = exports.getTaggingInfoFromUrl = void 0;
exports.extractUrlParameters = exports.getDisplayTaggingInfoFromUrl = exports.getTaggingInfoFromUrl = void 0;
/**

@@ -32,11 +32,11 @@ * Extracts the tagging info from a URL.

*/
function getDisplayClickTagging(displayTaggingUrl) {
function getDisplayTaggingInfoFromUrl(displayTaggingUrl) {
var _a;
const displayClickTagging = getTaggingInfoFromUrl(displayTaggingUrl);
const displayClickTaggingParams = displayClickTagging.params;
displayClickTaggingParams.displayId = (_a = displayClickTaggingParams.q) !== null && _a !== void 0 ? _a : 'no_query';
delete displayClickTaggingParams.q;
return displayClickTagging;
const displayTagging = getTaggingInfoFromUrl(displayTaggingUrl);
const displayTaggingParams = displayTagging.params;
displayTaggingParams.displayId = (_a = displayTaggingParams.q) !== null && _a !== void 0 ? _a : 'no_query';
delete displayTaggingParams.q;
return displayTagging;
}
exports.getDisplayClickTagging = getDisplayClickTagging;
exports.getDisplayTaggingInfoFromUrl = getDisplayTaggingInfoFromUrl;
/**

@@ -43,0 +43,0 @@ * Returns the base url path and an object with the query parameters.

@@ -37,3 +37,3 @@ "use strict";

click: ({ click }) => (0, url_utils_1.getTaggingInfoFromUrl)(click),
displayClick: ({ displayClick }) => (0, url_utils_1.getDisplayClickTagging)(displayClick)
displayClick: ({ displayClick }) => (0, url_utils_1.getDisplayTaggingInfoFromUrl)(displayClick)
}

@@ -40,0 +40,0 @@ }

@@ -44,4 +44,5 @@ "use strict";

},
queryTagging: ({ catalog }) => { var _a; return (0, url_utils_1.getTaggingInfoFromUrl)((_a = catalog === null || catalog === void 0 ? void 0 : catalog.tagging) === null || _a === void 0 ? void 0 : _a.query); }
queryTagging: ({ catalog }) => { var _a; return (0, url_utils_1.getTaggingInfoFromUrl)((_a = catalog === null || catalog === void 0 ? void 0 : catalog.tagging) === null || _a === void 0 ? void 0 : _a.query); },
displayTagging: ({ catalog }) => { var _a; return (0, url_utils_1.getDisplayTaggingInfoFromUrl)((_a = catalog === null || catalog === void 0 ? void 0 : catalog.tagging) === null || _a === void 0 ? void 0 : _a.display); }
});
//# sourceMappingURL=search-response.schema.js.map

@@ -28,9 +28,9 @@ /**

*/
export function getDisplayClickTagging(displayTaggingUrl) {
export function getDisplayTaggingInfoFromUrl(displayTaggingUrl) {
var _a;
const displayClickTagging = getTaggingInfoFromUrl(displayTaggingUrl);
const displayClickTaggingParams = displayClickTagging.params;
displayClickTaggingParams.displayId = (_a = displayClickTaggingParams.q) !== null && _a !== void 0 ? _a : 'no_query';
delete displayClickTaggingParams.q;
return displayClickTagging;
const displayTagging = getTaggingInfoFromUrl(displayTaggingUrl);
const displayTaggingParams = displayTagging.params;
displayTaggingParams.displayId = (_a = displayTaggingParams.q) !== null && _a !== void 0 ? _a : 'no_query';
delete displayTaggingParams.q;
return displayTagging;
}

@@ -37,0 +37,0 @@ /**

import { createMutableSchema } from '@empathyco/x-adapter';
import { getDisplayClickTagging, getTaggingInfoFromUrl } from '../../mappers/url.utils';
import { getDisplayTaggingInfoFromUrl, getTaggingInfoFromUrl } from '../../mappers/url.utils';
/**

@@ -34,3 +34,3 @@ * Default implementation for the ResultSchema.

click: ({ click }) => getTaggingInfoFromUrl(click),
displayClick: ({ displayClick }) => getDisplayClickTagging(displayClick)
displayClick: ({ displayClick }) => getDisplayTaggingInfoFromUrl(displayClick)
}

@@ -37,0 +37,0 @@ }

import { createMutableSchema } from '@empathyco/x-adapter';
import { getTaggingInfoFromUrl } from '../../mappers/url.utils';
import { getDisplayTaggingInfoFromUrl, getTaggingInfoFromUrl } from '../../mappers/url.utils';
import { bannerSchema } from '../models/banner.schema';

@@ -41,4 +41,5 @@ import { facetSchema } from '../models/facet.schema';

},
queryTagging: ({ catalog }) => { var _a; return getTaggingInfoFromUrl((_a = catalog === null || catalog === void 0 ? void 0 : catalog.tagging) === null || _a === void 0 ? void 0 : _a.query); }
queryTagging: ({ catalog }) => { var _a; return getTaggingInfoFromUrl((_a = catalog === null || catalog === void 0 ? void 0 : catalog.tagging) === null || _a === void 0 ? void 0 : _a.query); },
displayTagging: ({ catalog }) => { var _a; return getDisplayTaggingInfoFromUrl((_a = catalog === null || catalog === void 0 ? void 0 : catalog.tagging) === null || _a === void 0 ? void 0 : _a.display); }
});
//# sourceMappingURL=search-response.schema.js.map

@@ -20,3 +20,3 @@ import { TaggingRequest } from '@empathyco/x-types';

*/
export declare function getDisplayClickTagging(displayTaggingUrl: string): TaggingRequest;
export declare function getDisplayTaggingInfoFromUrl(displayTaggingUrl: string): TaggingRequest;
/**

@@ -23,0 +23,0 @@ * Returns the base url path and an object with the query parameters.

@@ -24,2 +24,3 @@ import { PlatformResult } from '../models/result.model';

query: string;
display: string;
};

@@ -26,0 +27,0 @@ };

{
"name": "@empathyco/x-adapter-platform",
"version": "1.0.3-alpha.2",
"version": "1.1.0-alpha.0",
"description": "A search client for the Empathy Platform API",

@@ -45,3 +45,3 @@ "author": "Empathy Systems Corporation S.L.",

"@empathyco/x-adapter": "^8.0.3-alpha.0",
"@empathyco/x-types": "^10.1.0-alpha.0",
"@empathyco/x-types": "^10.1.0-alpha.1",
"@empathyco/x-utils": "^1.0.3-alpha.0",

@@ -63,3 +63,3 @@ "tslib": "~2.6.0"

},
"gitHead": "f8e8dc93933b2ea9347a13781df95f9e7c05b782"
"gitHead": "e5249628a960c5e262bf01227a3380d444ad9b03"
}

@@ -84,3 +84,3 @@ ## API Report File for "@empathyco/x-adapter-platform"

// @public
export function getDisplayClickTagging(displayTaggingUrl: string): TaggingRequest;
export function getDisplayTaggingInfoFromUrl(displayTaggingUrl: string): TaggingRequest;

@@ -449,2 +449,3 @@ // @public

query: string;
display: string;
};

@@ -451,0 +452,0 @@ };

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc