New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hklib

Package Overview
Dependencies
Maintainers
6
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hklib - npm Package Compare versions

Comparing version 2.4.2 to 2.5.0

ifi/anchor.js

37

datasource/hkdatasource.js

@@ -1184,2 +1184,39 @@ /*

/**
* Asks HKBase to resolve an Integrated Fragment Identifier (IFI)
*
* @param {Array} ifi IFI string
* @param {GetEntitiesCallback} callback Callback with the Fragment Data or JSON Description, and content type
*/
HKDatasource.prototype.resolveIFI = function(ifi, callback = () => {})
{
let url = this.url + "repository/"+ this.graphName + "/ifi/" + encodeURIComponent(ifi);
request.get(url, this.options, (err, res) =>
{
if(!err)
{
if(requestCompletedWithSuccess (res.statusCode))
{
try
{
callback(null, res.body, res.headers.contentType);
}
catch(exp)
{
callback(exp)
}
}
else
{
callback(`Server responded with ${res.statusCode}. ${res.body}`);
}
}
else
{
callback(err);
}
});
}
function toQueryString(options)

@@ -1186,0 +1223,0 @@ {

2

hkgraph.js

@@ -503,3 +503,3 @@ /*

}
return JSON.stringify({});
return JSON.stringify(out);
};

@@ -506,0 +506,0 @@

@@ -54,1 +54,3 @@ /*

exports.GraphBuilder = require("./graphbuilder");
exports.IFI = require("./ifi/ifi");
{
"name": "hklib",
"version": "2.4.2",
"version": "2.5.0",
"main": "index.js",

@@ -30,2 +30,6 @@ "author": "IBM Research",

"email": "eltons@ibm.com"
},
{
"name": "Sandro Rama Fiorini",
"email": "srfiorini@ibm.com"
}

@@ -37,2 +41,3 @@ ],

"express": "^4.17.1",
"nearley": "^2.20.1",
"request": "^2.88.0",

@@ -39,0 +44,0 @@ "request-promise-native": "^1.0.8",

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