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

mongo-iots-wrapper

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongo-iots-wrapper - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

.npmignore

9

lib/Collection.ts

@@ -15,3 +15,3 @@ import * as t from 'io-ts';

*/
insertOne: (document: D) => Promise<void>;
insertOne: (document: D) => Promise<D | null>;

@@ -81,3 +81,8 @@ /**

errorReporter(document, validator);
await collection.insert(document);
const newDocumentContainer = await collection.insertOne(document);
const newDocument = (await collection.findOne({ _id: newDocumentContainer.insertedId })) as DOCUMENT;
if (newDocument) {
errorReporter(newDocument, validator);
}
return newDocument;
},

@@ -84,0 +89,0 @@

@@ -24,3 +24,3 @@ import { MongoClient } from 'mongodb';

const x = 'NotANumber' as any;
mongoClient.Collections.users.insertOne({
const a = mongoClient.Collections.users.insertOne({
dateCreated: x,

@@ -30,2 +30,3 @@ email: 'dasds',

});
console.log(a);

@@ -32,0 +33,0 @@ // TEST DOCUMENTS

{
"name": "mongo-iots-wrapper",
"version": "0.0.6",
"version": "0.0.7",
"description": "Strongly typed MongoDB",

@@ -5,0 +5,0 @@ "main": "dist/Index.js",

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