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

@mongosh/errors

Package Overview
Dependencies
Maintainers
13
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mongosh/errors - npm Package Compare versions

Comparing version 2.0.2 to 2.1.0

22

generated/error-overview.md

@@ -38,2 +38,24 @@ # mongosh Error Codes Overview

#### `ASYNC-10013`
Signals the iteration of a Mongosh API object in a place where it is not supported.
This occurs inside of constructors and (non-async) generator functions.
Examples causing error:
```javascript
class SomeClass {
constructor() {
for (const item of db.coll.find()) { ... }
}
}
function*() {
for (const item of db.coll.find()) yield item;
yield* db.coll.find();
}
```
**Solution: Do not use calls directly in such functions. If necessary, place these calls in an inner 'async' function.**
## @mongosh/cli-repl

@@ -40,0 +62,0 @@

4

package.json
{
"name": "@mongosh/errors",
"version": "2.0.2",
"version": "2.1.0",
"description": "MongoDB Shell Errors Package",

@@ -48,3 +48,3 @@ "homepage": "https://github.com/mongodb-js/mongosh",

},
"gitHead": "5737e60cdbcd551f6a355b38fc9b5b6cc19ac5a4"
"gitHead": "963c75bc45834b1bf69e62bf5b72c4ae8ef26cb4"
}

Sorry, the diff of this file is not supported yet

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