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.7.3 to 1.7.4

lib/detectors/ContractorCommerceDetector.d.ts

6

lib/detectors/Detector.d.ts
/// <reference types="cheerio" />
export interface DetectorResult {
/**
* The name of the technology.
*/
technology: string;
/**
* If the technology is installed (or detected) on the page.
*/
installed: boolean;

@@ -5,0 +11,0 @@ }

/// <reference types="cheerio" />
/*! Copyright (c) 2023, XAPP AI */
import { AbstractDetector, DetectorResult } from "./Detector";
export interface EvaluatorGoToOptions {
timeout?: number;
waitUntil?: 'load' | 'domcontentloaded' | 'networkidle0' | 'networkidle2';
}
export interface EvaluatorGoToResponse {
status: () => number;
}
/**
* Evaluator is actually a Puppeteer Page object.
*
* We are redefining some types here to avoid a circular dependency.
*/
export interface Evaluator {
url(): string;
evaluate<T>(pageFunc: () => T): Promise<T>;
content(): Promise<string>;
goto(url: string, options?: EvaluatorGoToOptions): Promise<EvaluatorGoToResponse | null>;
}

@@ -8,0 +22,0 @@ /**

2

lib/detectors/index.d.ts

@@ -7,2 +7,3 @@ /*! Copyright (c) 2023, XAPP AI */

export * from "./ChiirpDetector";
export * from "./ContractorCommerceDetector";
export * from "./DearProDetector";

@@ -30,2 +31,3 @@ export * from "./Detector";

export * from "./NextJSDetector";
export * from "./NitroPackDetector";
export * from "./PodiumDetector";

@@ -32,0 +34,0 @@ export * from "./PredictiveSalesAIDetector";

@@ -23,2 +23,3 @@ "use strict";

__exportStar(require("./ChiirpDetector"), exports);
__exportStar(require("./ContractorCommerceDetector"), exports);
__exportStar(require("./DearProDetector"), exports);

@@ -46,2 +47,3 @@ __exportStar(require("./Detector"), exports);

__exportStar(require("./NextJSDetector"), exports);
__exportStar(require("./NitroPackDetector"), exports);
__exportStar(require("./PodiumDetector"), exports);

@@ -48,0 +50,0 @@ __exportStar(require("./PredictiveSalesAIDetector"), exports);

@@ -22,2 +22,5 @@ "use strict";

return __awaiter(this, void 0, void 0, function* () {
//TODO: Starting to see some sites with:
// <script src="https://embed.scheduleengine.net/schedule-engine-v3.js"
// https://www.fhfurr.com/
let chatFound = this.cheerio('div[onclick="WebChat.open()"]').length > 0;

@@ -24,0 +27,0 @@ if (!chatFound) {

@@ -39,2 +39,3 @@ "use strict";

let installed = false;
// host with potential path too
let host;

@@ -61,2 +62,8 @@ let filename;

}
if (host) {
const urlHostWithPath = url.host.toLowerCase() + url.pathname.toLowerCase();
if (host === urlHostWithPath) {
installed = true;
}
}
const file = (0, path_1.basename)(url.pathname).toLowerCase();

@@ -63,0 +70,0 @@ if (filename && filename === file || filename && file.endsWith(filename)) {

12

package.json
{
"name": "@xapp/arachne-parsers",
"version": "1.7.3",
"version": "1.7.4",
"types": "lib/index",

@@ -17,6 +17,6 @@ "main": "lib/index",

"devDependencies": {
"@microsoft/api-extractor": "7.43.1",
"@types/chai": "4.3.14",
"@microsoft/api-extractor": "7.43.4",
"@types/chai": "4.3.16",
"@types/mocha": "10.0.6",
"@types/node": "20.12.6",
"@types/node": "20.12.11",
"@types/sinon": "17.0.3",

@@ -32,3 +32,3 @@ "@types/sinon-chai": "3.2.12",

"tslib": "2.6.2",
"typescript": "5.4.3"
"typescript": "5.4.5"
},

@@ -47,3 +47,3 @@ "dependencies": {

},
"gitHead": "2a2acbc6864d2bb0bf24ae5d85a372f65aa4ac48"
"gitHead": "92cf07392910e80fb6c9e24845df1d58d11610aa"
}

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

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