Skip to content

Commit

Permalink
chore: update auto-generated files (#1709)
Browse files Browse the repository at this point in the history
* chore: update THIRD_PARTY_NOTICES

* chore: update error documentation

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] authored Oct 19, 2023
1 parent 9d3d25b commit 105d838
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 1 deletion.
2 changes: 1 addition & 1 deletion THIRD_PARTY_NOTICES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
The following third-party software is used by and included in **mongosh**.
This document was automatically generated on Tue Oct 17 2023.
This document was automatically generated on Thu Oct 19 2023.

## List of dependencies

Expand Down
22 changes: 22 additions & 0 deletions packages/errors/generated/error-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,28 @@ function*() {

**Solution: Do not use calls directly in such functions. If necessary, place these calls in an inner 'async' function.**

#### `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

#### `CLIREPL-10001`
Expand Down
25 changes: 25 additions & 0 deletions packages/errors/generated/error-overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,31 @@ Examples causing error:
**Solution: Do not use calls directly in such functions. If necessary, place these calls in an inner 'async' function.**

``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:

.. code-block:: 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
Expand Down

0 comments on commit 105d838

Please sign in to comment.