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

graphene-pk11

Package Overview
Dependencies
Maintainers
0
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.3.5 to 2.3.6

3

build/cjs/core/attribute.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.attribute = void 0;
exports.attribute = attribute;
const template_1 = require("../template");

@@ -26,2 +26,1 @@ function attribute(name, defaultValue) {

}
exports.attribute = attribute;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.enumerable = void 0;
exports.enumerable = enumerable;
function enumerable(value) {

@@ -14,2 +14,1 @@ return (target, propertyKey) => {

}
exports.enumerable = enumerable;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.removePadding = exports.isFlag = exports.isArray = exports.isObject = exports.isFunction = exports.isEmpty = exports.isNull = exports.isUndefined = exports.isBoolean = exports.isNumber = exports.isString = void 0;
exports.isString = isString;
exports.isNumber = isNumber;
exports.isBoolean = isBoolean;
exports.isUndefined = isUndefined;
exports.isNull = isNull;
exports.isEmpty = isEmpty;
exports.isFunction = isFunction;
exports.isObject = isObject;
exports.isArray = isArray;
exports.isFlag = isFlag;
exports.removePadding = removePadding;
function isString(v) {
return typeof (v) === "string";
}
exports.isString = isString;
function isNumber(v) {
return typeof (v) === "number";
}
exports.isNumber = isNumber;
function isBoolean(v) {
return typeof (v) === "boolean";
}
exports.isBoolean = isBoolean;
function isUndefined(v) {
return typeof (v) === "undefined";
}
exports.isUndefined = isUndefined;
function isNull(v) {
return v === null;
}
exports.isNull = isNull;
function isEmpty(v) {
return isUndefined(v) || isNull(v);
}
exports.isEmpty = isEmpty;
function isFunction(v) {
return typeof (v) === "function";
}
exports.isFunction = isFunction;
function isObject(v) {
return typeof (v) === "object";
}
exports.isObject = isObject;
function isArray(v) {
return Array.isArray(v);
}
exports.isArray = isArray;
function isFlag(v, fv) {
return (v & fv) === fv;
}
exports.isFlag = isFlag;
function removePadding(text) {
return text.replace(/\0.*/g, "").trim();
}
exports.removePadding = removePadding;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.uint64ToBuffer = void 0;
exports.uint64ToBuffer = uint64ToBuffer;
function uint64ToBuffer(value, littleEndian = false) {

@@ -10,2 +10,1 @@ const view = new Uint8Array(8);

}
exports.uint64ToBuffer = uint64ToBuffer;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.dateFromString = void 0;
exports.dateFromString = dateFromString;
function dateFromString(text) {

@@ -12,2 +12,1 @@ const reg = /(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/;

}
exports.dateFromString = dateFromString;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.prepareError = exports.isError = void 0;
exports.isError = isError;
exports.prepareError = prepareError;
function isError(error, errorType = Error) {
return error instanceof errorType;
}
exports.isError = isError;
function prepareError(error) {

@@ -14,2 +14,1 @@ if (isError(error)) {

}
exports.prepareError = prepareError;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.registerAttribute = exports.Template = exports.getAttribute = void 0;
exports.Template = void 0;
exports.getAttribute = getAttribute;
exports.registerAttribute = registerAttribute;
const tslib_1 = require("tslib");

@@ -152,3 +154,2 @@ const pkcs11 = tslib_1.__importStar(require("pkcs11js"));

}
exports.getAttribute = getAttribute;
class Template {

@@ -193,2 +194,1 @@ static toPkcs11(tmpl) {

}
exports.registerAttribute = registerAttribute;

@@ -1,2 +0,1 @@

/// <reference types="node" />
import * as pkcs11 from "pkcs11js";

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

@@ -1,2 +0,1 @@

/// <reference types="node" />
/**

@@ -3,0 +2,0 @@ * Converts UInt64 number to the buffer

@@ -1,2 +0,1 @@

/// <reference types="node" />
import * as pkcs11 from "pkcs11js";

@@ -3,0 +2,0 @@ import * as core from "../core";

@@ -1,2 +0,1 @@

/// <reference types="node" />
import * as pkcs11 from "pkcs11js";

@@ -3,0 +2,0 @@ import * as core from "../core";

@@ -1,2 +0,1 @@

/// <reference types="node" />
import * as pkcs11 from "pkcs11js";

@@ -3,0 +2,0 @@ import * as core from "../core";

@@ -1,2 +0,1 @@

/// <reference types="node" />
import * as pkcs11 from "pkcs11js";

@@ -3,0 +2,0 @@ import * as core from "../core";

@@ -1,2 +0,1 @@

/// <reference types="node" />
import * as pkcs11 from "pkcs11js";

@@ -3,0 +2,0 @@ import * as core from "../core";

@@ -1,2 +0,1 @@

/// <reference types="node" />
import * as pkcs11 from "pkcs11js";

@@ -3,0 +2,0 @@ import { IParams, MechParams } from "../params";

@@ -1,2 +0,1 @@

/// <reference types="node" />
import * as pkcs11 from "pkcs11js";

@@ -3,0 +2,0 @@ import { IParams, MechParams } from "../params";

@@ -1,2 +0,1 @@

/// <reference types="node" />
import * as pkcs11 from "pkcs11js";

@@ -3,0 +2,0 @@ import { IParams, MechParams } from "../params";

@@ -1,2 +0,1 @@

/// <reference types="node" />
/**

@@ -3,0 +2,0 @@ * Structure of named curve

@@ -1,2 +0,1 @@

/// <reference types="node" />
import * as pkcs11 from "pkcs11js";

@@ -3,0 +2,0 @@ import { IParams, MechParams } from "../params";

@@ -1,2 +0,1 @@

/// <reference types="node" />
import * as pkcs11 from "pkcs11js";

@@ -3,0 +2,0 @@ import { MechanismEnum } from "../../mech_enum";

@@ -1,2 +0,1 @@

/// <reference types="node" />
import * as pkcs11 from "pkcs11js";

@@ -3,0 +2,0 @@ import * as core from "./core";

@@ -1,2 +0,1 @@

/// <reference types="node" />
import * as pkcs11 from "pkcs11js";

@@ -3,0 +2,0 @@ import { HandleObject } from "./core/object";

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { Certificate } from "./cert";

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

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { Storage } from "../storage";

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

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { Certificate } from "./cert";

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

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { Certificate } from "./cert";

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

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { Storage } from "./storage";

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

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { Storage } from "../storage";

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

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { Key } from "./key";

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

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { Key } from "./key";

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

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { Key } from "./key";

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

@@ -1,2 +0,1 @@

/// <reference types="node" />
import * as pkcs11 from "pkcs11js";

@@ -3,0 +2,0 @@ import * as core from "./core";

@@ -1,2 +0,1 @@

/// <reference types="node" />
import * as pkcs11 from "pkcs11js";

@@ -3,0 +2,0 @@ import * as core from "./core";

@@ -1,2 +0,1 @@

/// <reference types="node" />
import * as pkcs11 from "pkcs11js";

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

@@ -1,3 +0,2 @@

/// <reference types="node" />
export type CryptoData = string | Buffer;
export type Callback<ErrorType, ResultType> = (error: ErrorType | null, data: ResultType | null) => void;
{
"name": "graphene-pk11",
"version": "2.3.5",
"version": "2.3.6",
"description": "A simple layer for interacting with PKCS #11 / PKCS11 / CryptoKI for Node in TypeScript",

@@ -39,17 +39,20 @@ "main": "./build/cjs/index.js",

"dependencies": {
"pkcs11js": "^2.1.1",
"tslib": "^2.6.2"
"pkcs11js": "^2.1.6",
"tslib": "^2.7.0"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/node": "^20.12.12",
"coveralls": "^3.1.0",
"mocha": "^10.4.0",
"nyc": "^15.1.0",
"@types/mocha": "^10.0.7",
"@types/node": "^22.5.1",
"mocha": "^10.7.3",
"nyc": "^17.0.0",
"rimraf": "^5.0.7",
"ts-node": "^10.9.2",
"tslint": "^6.1.3",
"typedoc": "^0.25.13",
"typescript": "^5.4.5"
"typedoc": "^0.26.6",
"typescript": "^5.5.4"
},
"resolutions": {
"braces": "^3.0.3",
"semver": "^7.6.3"
},
"bugs": {

@@ -98,7 +101,2 @@ "url": "https://github.com/PeculiarVentures/graphene/issues"

},
"resolutions": {
"ansi-regex": "^5.0.1",
"json-schema": "^0.4.0",
"minimist": "^1.2.6"
},
"funding": {

@@ -105,0 +103,0 @@ "type": "github",

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