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

rdfa-streaming-parser

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rdfa-streaming-parser - npm Package Compare versions

Comparing version 1.2.2 to 1.3.0

9

CHANGELOG.md
# Changelog
All notable changes to this project will be documented in this file.
<a name="v1.3.0"></a>
## [v1.3.0](https://github.com/rubensworks/rdfa-streaming-parser.js/compare/v1.2.2...v1.3.0) - 2020-09-15
### Changed
* [Migrate to rdf-data-factory](https://github.com/rubensworks/rdfa-streaming-parser.js/commit/0552eb287b228cdfa305070803f9dd176041bbe0)
### Fixed
* [Fix import method sometimes failing on large streams](https://github.com/rubensworks/rdfa-streaming-parser.js/commit/93c8f5f7d002d05bf5e23fa2c3fa5c97d6ac88d3)
<a name="v1.2.2"></a>

@@ -5,0 +14,0 @@ ## [v1.2.2](https://github.com/rubensworks/rdfa-streaming-parser.js/compare/v1.2.0...v1.2.2) - 2020-06-03

22

index.js
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./lib/RdfaParser"));
__export(require("./lib/RdfaProfile"));
__export(require("./lib/Util"));
__exportStar(require("./lib/IActiveTag"), exports);
__exportStar(require("./lib/IHtmlParseListener"), exports);
__exportStar(require("./lib/IRdfaPattern"), exports);
__exportStar(require("./lib/RdfaParser"), exports);
__exportStar(require("./lib/RdfaProfile"), exports);
__exportStar(require("./lib/Util"), exports);
//# sourceMappingURL=index.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RdfaParser = void 0;
const htmlparser2_1 = require("htmlparser2");

@@ -47,4 +48,4 @@ const stream_1 = require("stream");

stream.on('error', (error) => parsed.emit('error', error));
stream.on('data', (data) => output.write(data));
stream.on('end', () => output.emit('end'));
stream.on('data', (data) => output.push(data));
stream.on('end', () => output.push(null));
const parsed = output.pipe(new RdfaParser(this.options));

@@ -51,0 +52,0 @@ return parsed;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RDFA_CONTENTTYPES = exports.RDFA_FEATURES = void 0;
/**

@@ -4,0 +5,0 @@ * A mapping of RDFa profile to a features object.

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Util = void 0;
const relative_to_absolute_iri_1 = require("relative-to-absolute-iri");
const RdfaProfile_1 = require("./RdfaProfile");
const rdf_data_factory_1 = require("rdf-data-factory");
/**

@@ -10,3 +12,3 @@ * A collection of utility functions.

constructor(dataFactory, baseIRI) {
this.dataFactory = dataFactory || require('@rdfjs/data-model');
this.dataFactory = dataFactory || new rdf_data_factory_1.DataFactory();
this.baseIRI = this.dataFactory.namedNode(baseIRI || '');

@@ -13,0 +15,0 @@ this.baseIRIDocument = this.baseIRI;

{
"name": "rdfa-streaming-parser",
"version": "1.2.2",
"version": "1.3.0",
"description": "A fast and lightweight streaming RDFa parser",

@@ -31,4 +31,4 @@ "keywords": [

"dependencies": {
"@rdfjs/data-model": "^1.1.1",
"@types/rdf-js": "^3.0.0",
"@types/rdf-js": "*",
"rdf-data-factory": "^1.0.2",
"htmlparser2": "^4.0.0",

@@ -43,3 +43,4 @@ "relative-to-absolute-iri": "^1.0.2"

"devDependencies": {
"@types/jest": "^25.1.0",
"@types/rdf-js": "^4.0.0",
"@types/jest": "^26.0.0",
"@types/jest-each": "^24.3.0",

@@ -51,6 +52,7 @@ "@types/node": "^13.1.0",

"jest-each": "^26.0.0",
"jest-rdf": "^1.3.0",
"jest-rdf": "^1.6.0",
"manual-git-changelog": "^1.0.1",
"pre-commit": "^1.2.2",
"rdf-test-suite": "^1.13.1",
"rdf-test-suite": "^1.13.4",
"rdf-quad": "^1.5.0",
"streamify-string": "^1.0.1",

@@ -60,3 +62,3 @@ "ts-jest": "^26.0.0",

"tslint-eslint-rules": "^5.3.1",
"typescript": "^3.3.1"
"typescript": "^4.0.0"
},

@@ -128,3 +130,6 @@ "jest": {

"spec-clean": "rm -r .rdf-test-suite-cache/"
},
"resolutions": {
"@types/rdf-js": "^4.0.0"
}
}
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