New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/nedb

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/nedb - npm Package Compare versions

Comparing version 1.8.1 to 1.8.2

6

nedb/index.d.ts

@@ -184,7 +184,7 @@ // Type definitions for NeDB 1.8

// Optional, if autoload is used this will be called after the load database with the error object as parameter. If you don't pass it the error will be thrown
onload?: (error: Error) => any;
onload?(error: Error): any;
// (optional): hook you can use to transform data after it was serialized and before it is written to disk.
// Can be used for example to encrypt data before writing database to disk.
// This function takes a string as parameter (one line of an NeDB data file) and outputs the transformed string, which must absolutely not contain a \n character (or data will be lost)
afterSerialization?: (line: string) => string;
afterSerialization?(line: string): string;
// (optional): reverse of afterSerialization.

@@ -197,3 +197,3 @@ // Make sure to include both and not just one or you risk data loss.

// NeDB will refuse to start as it could mean you're not using the deserialization hook corresponding to the serialization hook used before (see below)
beforeDeserialization?: (line: string) => string;
beforeDeserialization?(line: string): string;
// (optional): between 0 and 1, defaults to 10%. NeDB will refuse to start if more than this percentage of the datafile is corrupt.

@@ -200,0 +200,0 @@ // 0 means you don't tolerate any corruption, 1 means you don't care

{
"name": "@types/nedb",
"version": "1.8.1",
"version": "1.8.2",
"description": "TypeScript definitions for NeDB",

@@ -20,4 +20,4 @@ "license": "MIT",

"peerDependencies": {},
"typesPublisherContentHash": "86e4156a6566c239fb299458430ac180be6416a2a618fb91bcc4f130a72b0410",
"typesPublisherContentHash": "d1add31a5dc71a5de39ce46812855226e4e67b34188c9f59b598bf5b1cc0cd35",
"typeScriptVersion": "2.0"
}

@@ -8,6 +8,6 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/nedb
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nedb
Additional Details
* Last updated: Fri, 24 Mar 2017 16:00:11 GMT
* Last updated: Thu, 30 Mar 2017 22:36:50 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: Nedb

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