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.4.6 to 0.5.0

lib/ArachneApp.d.ts

1

lib/ArachneHTMLtoText.d.ts

@@ -0,1 +1,2 @@

export declare const DEFAULT_STRIP_TAGS: string[];
export interface ArachneHTMLToTextProps {

@@ -2,0 +3,0 @@ /**

8

lib/ArachneHTMLtoText.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ArachneHTMLtoText = void 0;
exports.ArachneHTMLtoText = exports.DEFAULT_STRIP_TAGS = void 0;
/*! Copyright (c) 2020, XAPP AI */

@@ -10,3 +10,3 @@ const cheerio = require("cheerio");

const BLOCK_TAGS_REGEX = /^(p|h1|h2|h3|h4|h5|h6|ol|ul|li|pre|address|blockquote|dl|div|fieldset|form|table|tr|select|option)$/i;
const DEFAULT_STRIP_TAGS = ["head", "header", "script", "style", "footer", "header", "aside", "nav"];
exports.DEFAULT_STRIP_TAGS = ["head", "header", "script", "style", "footer", "header", "aside", "nav"];
/**

@@ -23,5 +23,5 @@ * Turns HTML into text, with an option for markdown text.

constructor(props) {
this.stripTags = DEFAULT_STRIP_TAGS;
this.stripTags = exports.DEFAULT_STRIP_TAGS;
if (props) {
this.stripTags = Array.isArray(props.stripTags) ? props.stripTags : DEFAULT_STRIP_TAGS;
this.stripTags = Array.isArray(props.stripTags) ? props.stripTags : exports.DEFAULT_STRIP_TAGS;
}

@@ -28,0 +28,0 @@ }

/*! Copyright (c) 2020, XAPP AI */
export * from "./ArachneHTMLtoText";
export * from "./ArachneJSONLD";
export * from "./detectors";
export * from "./guards";
export * from "./ArachneJSONLD";

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

__exportStar(require("./ArachneHTMLtoText"), exports);
__exportStar(require("./ArachneJSONLD"), exports);
__exportStar(require("./detectors"), exports);
__exportStar(require("./guards"), exports);
__exportStar(require("./ArachneJSONLD"), exports);
//# sourceMappingURL=index.js.map
{
"name": "@xapp/arachne-parsers",
"version": "0.4.6",
"version": "0.5.0",
"types": "lib/index",

@@ -15,9 +15,9 @@ "main": "lib/index",

"engines": {
"node": "^10 || ^12 || ^14 || ^16"
"node": "^14 || ^16 || ^18"
},
"devDependencies": {
"@microsoft/api-extractor": "7.33.6",
"@microsoft/api-extractor": "7.34.4",
"@types/chai": "4.3.4",
"@types/mocha": "10.0.0",
"@types/node": "17.0.32",
"@types/mocha": "10.0.1",
"@types/node": "18.11.18",
"@types/sinon": "10.0.13",

@@ -28,8 +28,8 @@ "@types/sinon-chai": "3.2.9",

"chai": "4.3.7",
"mocha": "10.1.0",
"sinon": "14.0.1",
"mocha": "10.2.0",
"sinon": "15.0.1",
"sinon-chai": "3.7.0",
"ts-node": "10.9.1",
"tslib": "2.4.1",
"typescript": "4.8.4"
"tslib": "2.5.0",
"typescript": "4.9.5"
},

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

"schema-dts": "1.1.0",
"turndown": "7.1.1"
"turndown": "7.1.2"
},

@@ -49,3 +49,3 @@ "scripts": {

},
"gitHead": "105b0f09abf94161f648cf1fad0721454750666c"
"gitHead": "3f8407d44b028384726efab7359aafe796469209"
}

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