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

rdf-canonize

Package Overview
Dependencies
Maintainers
4
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rdf-canonize - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

5

CHANGELOG.md
# rdf-canonize ChangeLog
## 1.2.0 - 2020-09-30
### Changed
- Use node-forge@0.10.0.
## 1.1.0 - 2020-01-17

@@ -4,0 +9,0 @@

4

dist/node6/lib/index.js

@@ -92,5 +92,3 @@ /**

api.canonize = util.callbackify(
/*#__PURE__*/
function () {
api.canonize = util.callbackify( /*#__PURE__*/function () {
var _ref = _asyncToGenerator(function* (dataset, options) {

@@ -97,0 +95,0 @@ let callback;

/*
* Copyright (c) 2016-2017 Digital Bazaar, Inc. All rights reserved.
*/
'use strict';
'use strict'; // eslint-disable-next-line no-unused-vars

@@ -254,4 +254,4 @@ const TERMS = ['subject', 'predicate', 'object', 'graph'];

'blank node': 'BlankNode',
'IRI': 'NamedNode',
'literal': 'Literal'
IRI: 'NamedNode',
literal: 'Literal'
};

@@ -258,0 +258,0 @@

@@ -84,36 +84,33 @@ /*

api.callbackify = fn => {
return (
/*#__PURE__*/
function () {
var _ref = _asyncToGenerator(function* (...args) {
const callback = args[args.length - 1];
return /*#__PURE__*/function () {
var _ref = _asyncToGenerator(function* (...args) {
const callback = args[args.length - 1];
if (typeof callback === 'function') {
args.pop();
}
let result;
try {
result = yield fn.apply(null, args);
} catch (e) {
if (typeof callback === 'function') {
args.pop();
return _invokeCallback(callback, e);
}
let result;
throw e;
}
try {
result = yield fn.apply(null, args);
} catch (e) {
if (typeof callback === 'function') {
return _invokeCallback(callback, e);
}
if (typeof callback === 'function') {
return _invokeCallback(callback, null, result);
}
throw e;
}
return result;
});
if (typeof callback === 'function') {
return _invokeCallback(callback, null, result);
}
return result;
});
return function () {
return _ref.apply(this, arguments);
};
}()
);
return function () {
return _ref.apply(this, arguments);
};
}();
};

@@ -120,0 +117,0 @@

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

// eslint-disable-next-line no-unused-vars
const TERMS = ['subject', 'predicate', 'object', 'graph'];

@@ -263,4 +264,4 @@ const RDF = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#';

'blank node': 'BlankNode',
'IRI': 'NamedNode',
'literal': 'Literal'
IRI: 'NamedNode',
literal: 'Literal'
};

@@ -267,0 +268,0 @@

@@ -538,15 +538,15 @@ /*

related, quad, issuer, position, (err, hash) => {
if(err) {
return callback(err);
}
// 3.1.2) Add a mapping of hash to the blank node identifier for
// component to hash to related blank nodes map, adding an entry as
// necessary.
if(hash in hashToRelated) {
hashToRelated[hash].push(related);
} else {
hashToRelated[hash] = [related];
}
callback();
});
if(err) {
return callback(err);
}
// 3.1.2) Add a mapping of hash to the blank node identifier for
// component to hash to related blank nodes map, adding an entry as
// necessary.
if(hash in hashToRelated) {
hashToRelated[hash].push(related);
} else {
hashToRelated[hash] = [related];
}
callback();
});
}, callback);

@@ -553,0 +553,0 @@ }, err => callback(err, hashToRelated));

@@ -75,14 +75,14 @@ /*

related, quad, issuer, position, (err, hash) => {
if(err) {
return callback(err);
}
if(hash in hashToRelated) {
hashToRelated[hash].push(related);
} else {
hashToRelated[hash] = [related];
}
callback();
});
if(err) {
return callback(err);
}
if(hash in hashToRelated) {
hashToRelated[hash].push(related);
} else {
hashToRelated[hash] = [related];
}
callback();
});
}, err => callback(err, hashToRelated));
}
};
{
"name": "rdf-canonize",
"version": "1.1.0",
"version": "1.2.0",
"description": "An implementation of the RDF Dataset Normalization Algorithm in JavaScript",

@@ -32,3 +32,3 @@ "homepage": "https://github.com/digitalbazaar/rdf-canonize",

"dependencies": {
"node-forge": "^0.9.1",
"node-forge": "^0.10.0",
"semver": "^6.3.0"

@@ -48,4 +48,4 @@ },

"core-js": "^2.6.3",
"eslint": "^5.14.1",
"eslint-config-digitalbazaar": "^1.6.0",
"eslint": "^7.10.0",
"eslint-config-digitalbazaar": "^2.6.1",
"mocha": "^5.2.0",

@@ -52,0 +52,0 @@ "nyc": "^13.1.0",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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