node-webcrypto-ossl
Advanced tools
Comparing version 1.0.32 to 1.0.33
@@ -23,3 +23,3 @@ "use strict"; | ||
else if (ArrayBuffer.isView(ab)) { | ||
return new Buffer(ab.buffer); | ||
return new Buffer(ab.buffer.slice(0, ab.byteLength)); | ||
} | ||
@@ -26,0 +26,0 @@ else { |
@@ -162,23 +162,26 @@ /// <reference types="node" /> | ||
*/ | ||
class WebCrypto implements NativeCrypto { | ||
export class WebCrypto implements NativeCrypto { | ||
keyStorage: KeyStorage; | ||
subtle: SubtleCrypto; | ||
public keyStorage: KeyStorage; | ||
public subtle: SubtleCrypto; | ||
/** | ||
* Constructor | ||
*/ | ||
constructor(options?: WebCryptoOptions); | ||
/** | ||
* Generates cryptographically random values | ||
* @param array Initialize array | ||
*/ | ||
getRandomValues(array: NodeBufferSource): NodeBufferSource; | ||
getRandomValues(array: ArrayBufferView): ArrayBufferView; | ||
public getRandomValues(array: NodeBufferSource): NodeBufferSource; | ||
public getRandomValues(array: ArrayBufferView): ArrayBufferView; | ||
/** | ||
* Constructor | ||
*/ | ||
constructor(options?: WebCryptoOptions); | ||
} | ||
} | ||
declare const NodeWebCrypto: typeof NodeWebcryptoOpenSSL.WebCrypto; | ||
declare module "node-webcrypto-ossl" { | ||
export = NodeWebcryptoOpenSSL.WebCrypto; | ||
} | ||
export = NodeWebCrypto; | ||
} |
{ | ||
"name": "node-webcrypto-ossl", | ||
"version": "1.0.32", | ||
"version": "1.0.33", | ||
"repository": { | ||
@@ -41,14 +41,14 @@ "type": "git", | ||
"mkdirp": "^0.5.1", | ||
"nan": "^2.7.0", | ||
"tslib": "^1.7.1", | ||
"webcrypto-core": "^0.1.17" | ||
"nan": "^2.8.0", | ||
"tslib": "^1.8.1", | ||
"webcrypto-core": "^0.1.18" | ||
}, | ||
"devDependencies": { | ||
"@types/mkdirp": "^0.3.29", | ||
"@types/node": "^8", | ||
"coveralls": "^2.13.1", | ||
"mocha": "^3.4.2", | ||
"@types/node": "^8.5.2", | ||
"coveralls": "^2.13.3", | ||
"mocha": "^3.5.3", | ||
"nyc": "^10.1.2", | ||
"typescript": "^2.5.2" | ||
"typescript": "^2.6.2" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
357370
3972
Updatednan@^2.8.0
Updatedtslib@^1.8.1
Updatedwebcrypto-core@^0.1.18