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

bankid

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bankid - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

39

bankid.js

@@ -19,20 +19,9 @@ const path = require('path');

module.exports = class BankId {
constructor({} = {}) {
constructor({ refreshInterval=1000, production=false } = {}) {
this.options = {
refreshInterval,
production,
};
}
getClient() {
return new Promise((resolve, reject) => {
if (this.client === undefined) {
this._createClient().then(client => {
this.client = client;
resolve(client);
}, reject);
}
else {
resolve(this.client);
}
});
}
authenticate(pno, callback) {

@@ -64,3 +53,3 @@ return new Promise((resolve, reject) => {

authenticateAndCollect(pno, refreshInterval=1000) {
authenticateAndCollect(pno) {
return new Promise((resolve, reject) => {

@@ -81,3 +70,3 @@ this.authenticate(pno)

});
}, refreshInterval);
}, this.options.refreshInterval);
}, reject);

@@ -87,2 +76,16 @@ });

getClient() {
return new Promise((resolve, reject) => {
if (this.client === undefined) {
this._createClient().then(client => {
this.client = client;
resolve(client);
}, reject);
}
else {
resolve(this.client);
}
});
}
_createClient() {

@@ -89,0 +92,0 @@ const pfx = fs.readFileSync(path.resolve(__dirname, 'FPTestcert2_20150818_102329.pfx'));

{
"name": "bankid",
"description": "",
"version": "0.0.5",
"version": "0.0.6",
"main": "bankid.js",

@@ -6,0 +6,0 @@ "repository": {

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