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 0.7.1 to 0.8.4

lib/detectors/EvaluatorDetector.d.ts

4

lib/detectors/index.d.ts
/*! Copyright (c) 2023, XAPP AI */
export * from "./ChiirpDetector";
export * from "./Detector";
export * from "./EvaluatorDetector";
export * from "./MultiDetector";
export * from "./ScheduleEngineDetector";
export * from "./ScriptDetector";
export * from "./SquarespaceDetector";
export * from "./SurefireDetector";
export * from "./UserWay";
export * from "./WixDetector";
export * from "./WordPressDetector";
export * from "./XAPPDetector";

@@ -20,8 +20,12 @@ "use strict";

__exportStar(require("./Detector"), exports);
__exportStar(require("./EvaluatorDetector"), exports);
__exportStar(require("./MultiDetector"), exports);
__exportStar(require("./ScheduleEngineDetector"), exports);
__exportStar(require("./ScriptDetector"), exports);
__exportStar(require("./SquarespaceDetector"), exports);
__exportStar(require("./SurefireDetector"), exports);
__exportStar(require("./UserWay"), exports);
__exportStar(require("./WixDetector"), exports);
__exportStar(require("./WordPressDetector"), exports);
__exportStar(require("./XAPPDetector"), exports);
//# sourceMappingURL=index.js.map

11

lib/detectors/ScheduleEngineDetector.d.ts

@@ -1,15 +0,10 @@

/// <reference types="cheerio" />
import { AbstractDetector, DetectorResult } from "./Detector";
import { DetectorResult } from "./Detector";
import { EvaluatorDetector } from "./EvaluatorDetector";
export declare const SE_SCHEDULING_FORM = "Schedule Engine Scheduling Form";
export declare const SE_WEB_CHAT = "Schedule Engine Web Chat";
export interface Evaluator {
evaluate<T>(pageFunc: () => T): Promise<T>;
}
/**
* Detects both Scheduler Form and Web Chat from https://www.scheduleengine.com/
*/
export declare class ScheduleEngineDetector extends AbstractDetector {
private page;
constructor(html: string | cheerio.Root, page: Evaluator);
export declare class ScheduleEngineDetector extends EvaluatorDetector {
detect(): Promise<DetectorResult[]>;
}

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

const stentor_logger_1 = require("stentor-logger");
const Detector_1 = require("./Detector");
const EvaluatorDetector_1 = require("./EvaluatorDetector");
exports.SE_SCHEDULING_FORM = "Schedule Engine Scheduling Form";

@@ -22,7 +22,3 @@ exports.SE_WEB_CHAT = "Schedule Engine Web Chat";

*/
class ScheduleEngineDetector extends Detector_1.AbstractDetector {
constructor(html, page) {
super(html);
this.page = page;
}
class ScheduleEngineDetector extends EvaluatorDetector_1.EvaluatorDetector {
detect() {

@@ -29,0 +25,0 @@ return __awaiter(this, void 0, void 0, function* () {

@@ -41,1 +41,3 @@ /*! Copyright (c) 2020, XAPP AI */

export declare function isPostalAddress(thing: Thing): thing is PostalAddress;
export declare function isScriptElement(element: Element): element is HTMLScriptElement;
export declare function isImageElement(element: Element): element is HTMLImageElement;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isPostalAddress = exports.isHomeConstructionBusiness = exports.isLocalBusiness = exports.isService = exports.isOrganization = exports.isAnswer = exports.isQuestion = exports.isQAPage = exports.isFAQPage = exports.hasType = exports.isTyped = void 0;
exports.isImageElement = exports.isScriptElement = exports.isPostalAddress = exports.isHomeConstructionBusiness = exports.isLocalBusiness = exports.isService = exports.isOrganization = exports.isAnswer = exports.isQuestion = exports.isQAPage = exports.isFAQPage = exports.hasType = exports.isTyped = void 0;
function isTyped(thing) {

@@ -83,2 +83,10 @@ return !!thing && !!thing["@type"];

exports.isPostalAddress = isPostalAddress;
function isScriptElement(element) {
return element.tagName === "SCRIPT";
}
exports.isScriptElement = isScriptElement;
function isImageElement(element) {
return element.tagName === "IMG";
}
exports.isImageElement = isImageElement;
//# sourceMappingURL=guards.js.map
{
"name": "@xapp/arachne-parsers",
"version": "0.7.1",
"version": "0.8.4",
"types": "lib/index",

@@ -10,3 +10,2 @@ "main": "lib/index",

"license": "Apache-2.0",
"private": false,
"publishConfig": {

@@ -19,7 +18,7 @@ "access": "public"

"devDependencies": {
"@microsoft/api-extractor": "7.36.0",
"@microsoft/api-extractor": "7.36.3",
"@types/chai": "4.3.5",
"@types/mocha": "10.0.1",
"@types/node": "18.16.18",
"@types/sinon": "10.0.15",
"@types/node": "18.17.3",
"@types/sinon": "10.0.16",
"@types/sinon-chai": "3.2.9",

@@ -33,3 +32,3 @@ "@types/turndown": "5.0.1",

"ts-node": "10.9.1",
"tslib": "2.6.0",
"tslib": "2.6.1",
"typescript": "5.1.6"

@@ -49,3 +48,3 @@ },

},
"gitHead": "5fbabf6dd0bef7c610ad6e239bf0f5c48316105e"
"gitHead": "c7eac0dd4977046df5c19709a203d32cd7a5bc29"
}

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