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

@types/sodium-native

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/sodium-native - npm Package Compare versions

Comparing version 2.3.4 to 2.3.5

18

sodium-native/index.d.ts
// Type definitions for sodium-native 2.3
// Project: https://github.com/sodium-friends/sodium-native
// Definitions by: Florian Keller <https://github.com/ffflorian>
// Definitions by: Florian Keller <https://github.com/ffflorian>,
// nshcore <https://github.com/nshcore>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -218,3 +219,3 @@

*/
export function sodium_malloc(size: number): Buffer;
export function sodium_malloc(size: number): SecureBuffer;

@@ -225,3 +226,3 @@ /**

*/
export function sodium_mprotect_noaccess(buffer: Buffer): void;
export function sodium_mprotect_noaccess(buffer: SecureBuffer): void;

@@ -232,3 +233,3 @@ /**

*/
export function sodium_mprotect_readonly(buffer: Buffer): void;
export function sodium_mprotect_readonly(buffer: SecureBuffer): void;

@@ -239,3 +240,3 @@ /**

*/
export function sodium_mprotect_readwrite(buffer: Buffer): void;
export function sodium_mprotect_readwrite(buffer: SecureBuffer): void;

@@ -1371,1 +1372,8 @@ /**

}
export interface SecureBuffer extends Buffer {
/**
* To check if a `buffer` is a "secure" `buffer`, you can access the getter `buffer.secure` which will be `true`.
*/
secure: boolean;
}
{
"name": "@types/sodium-native",
"version": "2.3.4",
"version": "2.3.5",
"description": "TypeScript definitions for sodium-native",

@@ -11,2 +11,7 @@ "license": "MIT",

"githubUsername": "ffflorian"
},
{
"name": "nshcore",
"url": "https://github.com/nshcore",
"githubUsername": "nshcore"
}

@@ -25,4 +30,4 @@ ],

},
"typesPublisherContentHash": "21617ffbab93bc69de4d3ae0fcaf603dc1564538d6fad7aca5cf6ef019e4db5b",
"typesPublisherContentHash": "05c95fd6184d5fb193fb3e03dd2a505bc1a286fc5f95a125b76c472f3044d0ed",
"typeScriptVersion": "2.8"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Sun, 22 Mar 2020 22:06:46 GMT
* Last updated: Tue, 31 Mar 2020 16:37:42 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by [Florian Keller](https://github.com/ffflorian).
These definitions were written by [Florian Keller](https://github.com/ffflorian), and [nshcore](https://github.com/nshcore).
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