@xapp/arachne-parsers
Advanced tools
Comparing version 0.8.5 to 0.9.0
@@ -5,4 +5,7 @@ /*! Copyright (c) 2023, XAPP AI */ | ||
export * from "./EvaluatorDetector"; | ||
export * from "./JobberDetector"; | ||
export * from "./MultiDetector"; | ||
export * from "./PodiumDetector"; | ||
export * from "./ScheduleEngineDetector"; | ||
export * from "./ScorpionDetector"; | ||
export * from "./ScriptDetector"; | ||
@@ -9,0 +12,0 @@ export * from "./SquarespaceDetector"; |
@@ -21,4 +21,7 @@ "use strict"; | ||
__exportStar(require("./EvaluatorDetector"), exports); | ||
__exportStar(require("./JobberDetector"), exports); | ||
__exportStar(require("./MultiDetector"), exports); | ||
__exportStar(require("./PodiumDetector"), exports); | ||
__exportStar(require("./ScheduleEngineDetector"), exports); | ||
__exportStar(require("./ScorpionDetector"), exports); | ||
__exportStar(require("./ScriptDetector"), exports); | ||
@@ -25,0 +28,0 @@ __exportStar(require("./SquarespaceDetector"), exports); |
/// <reference types="cheerio" /> | ||
/*! Copyright (c) 2023, XAPP AI */ | ||
import { AbstractDetector, DetectorResult } from "./Detector"; | ||
import { AbstractDetector, Detector, DetectorResult } from "./Detector"; | ||
export declare class MultiDetector extends AbstractDetector { | ||
private detectors; | ||
constructor(html: string | cheerio.Root, detectors: AbstractDetector[]); | ||
constructor(html: string | cheerio.Root, detectors: Detector[]); | ||
detect(): Promise<DetectorResult[]>; | ||
} |
@@ -1,1 +0,11 @@ | ||
/*! Copyright (c) 2023, XAPP AI */ | ||
/*! Copyright (c) 2023, XAPP AI */ | ||
/*! Copyright (c) 2023, XAPP AI */ | ||
import { AbstractDetector, DetectorResult } from "./Detector"; | ||
export declare const PODIUM_WIDGET = "Podium Widget"; | ||
export declare const PODIUM_HOST = "connect.podium.com"; | ||
/** | ||
* Detects Podium Widget https://www.podium.com/ | ||
*/ | ||
export declare class PodiumDetector extends AbstractDetector { | ||
detect(): Promise<DetectorResult[]>; | ||
} |
"use strict"; | ||
/*! Copyright (c) 2023, XAPP AI */ | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PodiumDetector = exports.PODIUM_HOST = exports.PODIUM_WIDGET = void 0; | ||
/*! Copyright (c) 2023, XAPP AI */ | ||
/*! Copyright (c) 2023, XAPP AI */ | ||
const Detector_1 = require("./Detector"); | ||
const ScriptDetector_1 = require("./ScriptDetector"); | ||
exports.PODIUM_WIDGET = "Podium Widget"; | ||
exports.PODIUM_HOST = "connect.podium.com"; | ||
/** | ||
* Detects Podium Widget https://www.podium.com/ | ||
*/ | ||
class PodiumDetector extends Detector_1.AbstractDetector { | ||
detect() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const podium = yield new ScriptDetector_1.ScriptDetector(this.cheerio, exports.PODIUM_WIDGET, exports.PODIUM_HOST).detect(); | ||
return [...podium]; | ||
}); | ||
} | ||
} | ||
exports.PodiumDetector = PodiumDetector; | ||
//# sourceMappingURL=PodiumDetector.js.map |
{ | ||
"name": "@xapp/arachne-parsers", | ||
"version": "0.8.5", | ||
"version": "0.9.0", | ||
"types": "lib/index", | ||
@@ -20,3 +20,3 @@ "main": "lib/index", | ||
"@types/mocha": "10.0.1", | ||
"@types/node": "18.17.4", | ||
"@types/node": "18.17.9", | ||
"@types/sinon": "10.0.16", | ||
@@ -26,3 +26,3 @@ "@types/sinon-chai": "3.2.9", | ||
"@xapp/config": "0.2.3", | ||
"chai": "4.3.7", | ||
"chai": "4.3.8", | ||
"mocha": "10.2.0", | ||
@@ -32,3 +32,3 @@ "sinon": "15.2.0", | ||
"ts-node": "10.9.1", | ||
"tslib": "2.6.1", | ||
"tslib": "2.6.2", | ||
"typescript": "5.1.6" | ||
@@ -48,3 +48,3 @@ }, | ||
}, | ||
"gitHead": "794e16ec2c09932c840147ecff5c8a54f9e39869" | ||
"gitHead": "2fa2f8901ead6fdcc85147dc50d6d582905186af" | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
88393
68
1285