Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xapp/arachne-parsers

Package Overview
Dependencies
Maintainers
5
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xapp/arachne-parsers - npm Package Compare versions

Comparing version 1.8.8 to 1.8.9

3

lib/detectors/ServiceTitanDetector.d.ts

@@ -5,4 +5,7 @@ /*! Copyright (c) 2024, XAPP AI */

export declare const SERVICE_TITAN_CHAT_TO_TEXT_HOST = "text2chat-widget.servicetitan.com";
export declare const SERVICE_TITAN_SCHEDULER = "ServiceTitan Scheduler";
export declare const SERVICE_TITAN_SCHEDULER_HOST = "scheduler.servicetitan.com";
export declare const SERVICE_TITAN_SCHEDULER_HOST_2 = "webscheduler-widget.servicetitan.com";
export declare class ServiceTitanDetector extends AbstractDetector {
detect(): Promise<DetectorResult[]>;
}

27

lib/detectors/ServiceTitanDetector.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ServiceTitanDetector = exports.SERVICE_TITAN_CHAT_TO_TEXT_HOST = exports.SERVICE_TITAN_CHAT_TO_TEXT = void 0;
exports.ServiceTitanDetector = exports.SERVICE_TITAN_SCHEDULER_HOST_2 = exports.SERVICE_TITAN_SCHEDULER_HOST = exports.SERVICE_TITAN_SCHEDULER = exports.SERVICE_TITAN_CHAT_TO_TEXT_HOST = exports.SERVICE_TITAN_CHAT_TO_TEXT = void 0;
/*! Copyright (c) 2024, XAPP AI */

@@ -8,6 +8,11 @@ const Detector_1 = require("./Detector");

exports.SERVICE_TITAN_CHAT_TO_TEXT_HOST = "text2chat-widget.servicetitan.com";
exports.SERVICE_TITAN_SCHEDULER = "ServiceTitan Scheduler";
// iframe src
exports.SERVICE_TITAN_SCHEDULER_HOST = "scheduler.servicetitan.com";
exports.SERVICE_TITAN_SCHEDULER_HOST_2 = "webscheduler-widget.servicetitan.com";
class ServiceTitanDetector extends Detector_1.AbstractDetector {
async detect() {
const iframes = this.cheerio("iframe");
let installed = false;
let chatInstalled = false;
let schedulerInstalled = false;
iframes.each((index, element) => {

@@ -22,4 +27,7 @@ // Type guard to ensure the element is not a TextElement

if (urlWithoutProtocol.toLowerCase().includes(exports.SERVICE_TITAN_CHAT_TO_TEXT_HOST)) {
installed = true;
chatInstalled = true;
}
if (urlWithoutProtocol.toLowerCase().includes(exports.SERVICE_TITAN_SCHEDULER_HOST) || urlWithoutProtocol.toLowerCase().includes(exports.SERVICE_TITAN_SCHEDULER_HOST_2)) {
schedulerInstalled = true;
}
}

@@ -32,7 +40,14 @@ catch (e) {

});
return [{
return [
{
technology: exports.SERVICE_TITAN_CHAT_TO_TEXT,
installed,
installed: chatInstalled,
type: "CHAT"
}];
},
{
technology: exports.SERVICE_TITAN_SCHEDULER,
installed: schedulerInstalled,
type: "SCHEDULER"
}
];
}

@@ -39,0 +54,0 @@ }

{
"name": "@xapp/arachne-parsers",
"version": "1.8.8",
"version": "1.8.9",
"types": "lib/index",

@@ -45,3 +45,3 @@ "main": "lib/index",

},
"gitHead": "7fc8d89cdbb5d3e233393fc87f765e2d7351ed07"
"gitHead": "18426f064f5e40d51818909ef6cfbfa3678e1f6d"
}

Sorry, the diff of this file is not supported yet

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