rdf-canonize
Advanced tools
Comparing version 1.1.0 to 1.2.0
# 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 @@ |
@@ -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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
611909
6145
1
+ Addednode-forge@0.10.0(transitive)
- Removednode-forge@0.9.2(transitive)
Updatednode-forge@^0.10.0