Comparing version 2.0.6 to 2.0.7
@@ -190,7 +190,15 @@ "use strict"; | ||
if (hi.data) { | ||
try { | ||
data = JSON.stringify(hi.data); | ||
if (typeof hi.data === 'string') { | ||
data = hi.data; | ||
} | ||
catch (_ignore) { | ||
data = hi.data.toString(); | ||
else { | ||
try { | ||
if (hi.data.toString) { | ||
data = hi.data.toString(); | ||
} | ||
else { | ||
data = JSON.stringify(hi.data); | ||
} | ||
} | ||
catch (_ignore) { } | ||
} | ||
@@ -197,0 +205,0 @@ } |
{ | ||
"name": "asyncctx", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"description": "an asynchronous execution context for TypeScript/JavaScript", | ||
@@ -34,8 +34,3 @@ "main": "./index.js", | ||
}, | ||
"greenkeeper": { | ||
"ignore": [ | ||
"@types/node" | ||
] | ||
}, | ||
"dependencies": {} | ||
} |
[![npm version](https://badge.fury.io/js/asyncctx.svg)](https://badge.fury.io/js/asyncctx) | ||
[![Known Vulnerabilities](https://snyk.io/test/github/gms1/node-async-context/badge.svg)](https://snyk.io/test/github/gms1/node-async-context) | ||
[![Build Status](https://api.travis-ci.org/gms1/node-async-context.svg?branch=master)](https://travis-ci.org/gms1/node-async-context) | ||
[![Coverage Status](https://coveralls.io/repos/github/gms1/node-async-context/badge.svg?branch=master)](https://coveralls.io/github/gms1/node-async-context?branch=master) | ||
[![Dependency Status](https://david-dm.org/gms1/node-async-context.svg)](https://david-dm.org/gms1/node-async-context) | ||
[![Greenkeeper badge](https://badges.greenkeeper.io/gms1/node-async-context.svg)](https://greenkeeper.io/) | ||
[![Known Vulnerabilities](https://snyk.io/test/github/gms1/node-async-context/badge.svg)](https://snyk.io/test/github/gms1/node-async-context) | ||
@@ -55,3 +54,3 @@ # node-async-context (asyncctx) | ||
| -------- | --------------------------------------------------------------------------------------- | | ||
| 2.0.3-6 | maintenance release | | ||
| 2.0.3-7 | maintenance release | | ||
| 2.0.2 | fixed loosing context; thanks to Pasi Tuominen | | ||
@@ -58,0 +57,0 @@ | 2.0.1 | maintenance release | |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48284
387
69