@peculiar/webcrypto
Advanced tools
Comparing version
@@ -1,9 +0,7 @@ | ||
import * as core from "webcrypto-core"; | ||
export declare class Crypto implements core.NativeCrypto { | ||
export declare class Crypto implements globalThis.Crypto { | ||
public subtle: SubtleCrypto; | ||
public getRandomValues<T extends Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | null>(array: T): T; | ||
public getRandomValues<T extends ArrayBufferView | null>(array: T): T; | ||
} | ||
export declare class CryptoKey implements core.NativeCryptoKey { | ||
export declare class CryptoKey implements globalThis.CryptoKey { | ||
public algorithm: KeyAlgorithm; | ||
@@ -10,0 +8,0 @@ public extractable: boolean; |
{ | ||
"name": "@peculiar/webcrypto", | ||
"version": "1.1.7", | ||
"version": "1.2.0", | ||
"description": "A WebCrypto Polyfill for NodeJS", | ||
@@ -64,23 +64,23 @@ "repository": { | ||
"@peculiar/webcrypto-test": "^1.0.7", | ||
"@types/mocha": "^8.2.2", | ||
"@types/node": "^14.14.44", | ||
"@typescript-eslint/eslint-plugin": "^4.23.0", | ||
"@typescript-eslint/parser": "^4.23.0", | ||
"coveralls": "^3.1.0", | ||
"eslint": "^7.26.0", | ||
"eslint-plugin-import": "^2.22.1", | ||
"mocha": "^8.4.0", | ||
"@types/mocha": "^9.0.0", | ||
"@types/node": "^16.11.4", | ||
"@typescript-eslint/eslint-plugin": "^5.2.0", | ||
"@typescript-eslint/parser": "^5.2.0", | ||
"coveralls": "^3.1.1", | ||
"eslint": "^8.1.0", | ||
"eslint-plugin-import": "^2.25.2", | ||
"mocha": "^9.1.3", | ||
"nyc": "^15.1.0", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.47.0", | ||
"rollup": "^2.58.1", | ||
"rollup-plugin-typescript2": "^0.30.0", | ||
"ts-node": "^9.1.1", | ||
"typescript": "^4.2.4" | ||
"ts-node": "^10.4.0", | ||
"typescript": "^4.4.4" | ||
}, | ||
"dependencies": { | ||
"@peculiar/asn1-schema": "^2.0.32", | ||
"@peculiar/asn1-schema": "^2.0.38", | ||
"@peculiar/json-schema": "^1.1.12", | ||
"pvtsutils": "^1.1.6", | ||
"tslib": "^2.2.0", | ||
"webcrypto-core": "^1.2.0" | ||
"pvtsutils": "^1.2.1", | ||
"tslib": "^2.3.1", | ||
"webcrypto-core": "^1.3.0" | ||
}, | ||
@@ -87,0 +87,0 @@ "nyc": { |
@@ -59,3 +59,4 @@ # @peculiar/webcrypto | ||
<sup>1</sup> Mechanism supports extended list of named curves `P-256`, `P-384`, `P-521`, and `K-256` | ||
<sup>1</sup> Mechanism supports extended list of named curves `P-256`, `P-384`, `P-521`, `K-256`, | ||
`brainpoolP160r1`, `brainpoolP160t1`, `brainpoolP192r1`, `brainpoolP192t1`, `brainpoolP224r1`, `brainpoolP224t1`, `brainpoolP256r1`, `brainpoolP256t1`, `brainpoolP320r1`, `brainpoolP320t1`, `brainpoolP384r1`, `brainpoolP384t1`, `brainpoolP512r1`, and `brainpoolP512t1` | ||
@@ -62,0 +63,0 @@ <sup>2</sup> Mechanism is not defined by the WebCrypto specifications. Use of mechanism in a safe way is hard, it was added for the purpose of enabling interoperability with an existing system. We recommend against its use unless needed for interoperability. |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
188668
0.77%4257
0.16%88
1.15%Updated
Updated
Updated