# land-insight-api

> Don't break domain usage in an es6 Promise chain

Latest version **1.0.0** (published 2017-06-26) · 0 weekly downloads

## Install

```sh
npm install land-insight-api
pnpm add land-insight-api
yarn add land-insight-api
bun add land-insight-api
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-06-26 |
| First published | 2017-06-26 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4.x.x |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Land Technologies Ltd |
| Maintainers | landtech |

## Links

- npm: https://www.npmjs.com/package/land-insight-api
- npm.io page: https://npm.io/package/land-insight-api

## Dependencies (1)

- [monkeypatch](https://npm.io/package/monkeypatch.md) ^1.0.0

## Recent versions

- 1.0.0 (latest) — 2017-06-26

## README

# promise-domain-monkeypatch
Don't break domain usage in an es6 Promise chain

[This](https://github.com/nodejs/help/issues/555) issue sheds a bit more detail, but basically the ES6 promise implementation in Node doesn't carry through the domain context (if there is one).

This is a module to monkeypatch to fix this.

More are examples are in the tests.

## Useage

```javascript
require('promise-domain-monkeypatch');
```

This will apply the patch.

You can unpatch by doing the following:

```javascript
let PromisePatcher = require('promise-domain-monkeypatch');
PromisePatcher.unpatch();
```

### Not applying the patch immediately

```javascript
let PromisePatcher = require('promise-domain-monkeypatch/patcher');

...some code...

PromisePatcher.patch();

...some code...

PromisePatcher.unpatch();
```

## Tests

```bash
mocha --recursive  
```

---
_Source: https://npm.io/package/land-insight-api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
