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

graphene-pk11

Package Overview
Dependencies
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphene-pk11 - npm Package Compare versions

Comparing version 2.1.11 to 2.1.12

28

build/cjs/core/collection.js

@@ -9,3 +9,3 @@ "use strict";

super(lib);
this.items_ = items;
this.innerItems = items;
this.lib = lib;

@@ -15,6 +15,6 @@ this.classType = classType;

get length() {
return this.items_.length;
return this.innerItems.length;
}
items(index) {
const handle = this.items_[index];
const handle = this.innerItems[index];
return new this.classType(handle, this.lib);

@@ -24,3 +24,3 @@ }

if (obj.lib.libPath === obj.lib.libPath) {
for (let i = fromIndex; i < this.items_.length; i++) {
for (let i = fromIndex; i < this.innerItems.length; i++) {
const item = this.items(i);

@@ -34,3 +34,23 @@ if (item.handle.equals(obj.handle)) {

}
[Symbol.iterator]() {
let pointer = 0;
const _this = this;
return {
next() {
if (pointer < _this.innerItems.length) {
return {
done: false,
value: _this.items(pointer++)
};
}
else {
return {
done: true,
value: null
};
}
}
};
}
}
exports.Collection = Collection;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.registerAttribute = exports.MechanismCollection = exports.MechanismEnum = exports.MechanismFlag = exports.Mechanism = void 0;
const tslib_1 = require("tslib");

@@ -4,0 +5,0 @@ tslib_1.__exportStar(require("./core"), exports);

2

build/cjs/mech.js

@@ -100,3 +100,3 @@ "use strict";

items(index) {
const type = this.items_[index];
const type = this.innerItems[index];
const handle = new int64_buffer_1.Int64LE(type).toBuffer();

@@ -103,0 +103,0 @@ return new Mechanism(type, handle, this.slotHandle, this.lib);

@@ -114,5 +114,5 @@ "use strict";

items(index) {
return new SessionObject(this.items_[index], this.session, this.lib);
return new SessionObject(this.innerItems[index], this.session, this.lib);
}
}
exports.SessionObjectCollection = SessionObjectCollection;

@@ -52,5 +52,5 @@ "use strict";

items(index) {
return new Slot(this.items_[index], this.module, this.lib);
return new Slot(this.innerItems[index], this.module, this.lib);
}
}
exports.SlotCollection = SlotCollection;

@@ -88,3 +88,3 @@ "use strict";

otpTime: { v: pkcs11.CKA_OTP_TIME, t: TYPE_BUFFER },
OtpUserId: { v: pkcs11.CKA_OTP_USER_IDENTIFIER, t: TYPE_BUFFER },
otpUserId: { v: pkcs11.CKA_OTP_USER_IDENTIFIER, t: TYPE_BUFFER },
otpServiceId: { v: pkcs11.CKA_OTP_SERVICE_IDENTIFIER, t: TYPE_BUFFER },

@@ -91,0 +91,0 @@ otpServiceLogo: { v: pkcs11.CKA_OTP_SERVICE_LOGO, t: TYPE_BUFFER },

@@ -5,3 +5,3 @@ import * as object from "./object";

super(lib);
this.items_ = items;
this.innerItems = items;
this.lib = lib;

@@ -11,6 +11,6 @@ this.classType = classType;

get length() {
return this.items_.length;
return this.innerItems.length;
}
items(index) {
const handle = this.items_[index];
const handle = this.innerItems[index];
return new this.classType(handle, this.lib);

@@ -20,3 +20,3 @@ }

if (obj.lib.libPath === obj.lib.libPath) {
for (let i = fromIndex; i < this.items_.length; i++) {
for (let i = fromIndex; i < this.innerItems.length; i++) {
const item = this.items(i);

@@ -30,2 +30,22 @@ if (item.handle.equals(obj.handle)) {

}
[Symbol.iterator]() {
let pointer = 0;
const _this = this;
return {
next() {
if (pointer < _this.innerItems.length) {
return {
done: false,
value: _this.items(pointer++)
};
}
else {
return {
done: true,
value: null
};
}
}
};
}
}

@@ -95,3 +95,3 @@ import { Int64LE } from "int64-buffer";

items(index) {
const type = this.items_[index];
const type = this.innerItems[index];
const handle = new Int64LE(type).toBuffer();

@@ -98,0 +98,0 @@ return new Mechanism(type, handle, this.slotHandle, this.lib);

@@ -108,4 +108,4 @@ import * as pkcs11 from "pkcs11js";

items(index) {
return new SessionObject(this.items_[index], this.session, this.lib);
return new SessionObject(this.innerItems[index], this.session, this.lib);
}
}

@@ -47,4 +47,4 @@ import * as core from "./core";

items(index) {
return new Slot(this.items_[index], this.module, this.lib);
return new Slot(this.innerItems[index], this.module, this.lib);
}
}

@@ -84,3 +84,3 @@ import * as pkcs11 from "pkcs11js";

otpTime: { v: pkcs11.CKA_OTP_TIME, t: TYPE_BUFFER },
OtpUserId: { v: pkcs11.CKA_OTP_USER_IDENTIFIER, t: TYPE_BUFFER },
otpUserId: { v: pkcs11.CKA_OTP_USER_IDENTIFIER, t: TYPE_BUFFER },
otpServiceId: { v: pkcs11.CKA_OTP_SERVICE_IDENTIFIER, t: TYPE_BUFFER },

@@ -87,0 +87,0 @@ otpServiceLogo: { v: pkcs11.CKA_OTP_SERVICE_LOGO, t: TYPE_BUFFER },

{
"name": "graphene-pk11",
"version": "2.1.11",
"version": "2.1.12",
"description": "A simple layer for interacting with PKCS #11 / PKCS11 / CryptoKI for Node in TypeScript",

@@ -19,2 +19,3 @@ "main": "./build/cjs/index.js",

"sync": "git ac && git pull --rebase && git push",
"lint": "tslint 'src/**/*.ts'",
"coverage": "nyc npm test",

@@ -32,14 +33,15 @@ "coveralls": "nyc report --reporter=text-lcov | coveralls"

"int64-buffer": "^0.99.1007",
"pkcs11js": "^1.0.21",
"tslib": "^2.0.0"
"pkcs11js": "^1.0.22",
"tslib": "^2.0.1"
},
"devDependencies": {
"@types/mocha": "^8.0.3",
"@types/node": "^12.12.54",
"@types/node": "^12.12.57",
"coveralls": "^3.1.0",
"mocha": "^8.1.1",
"mocha": "^8.1.3",
"nyc": "^15.1.0",
"rimraf": "^3.0.2",
"ts-node": "^8.10.2",
"typescript": "^3.9.7"
"tslint": "^6.1.3",
"typescript": "^4.0.2"
},

@@ -46,0 +48,0 @@ "bugs": {

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