Skip to content

Commit

Permalink
Merge pull request newrelic#107 from bizob2828/increase-coverage
Browse files Browse the repository at this point in the history
remove standalone capability and improved test coverage
  • Loading branch information
bizob2828 authored Jun 27, 2023
2 parents 5d71971 + 519f0b9 commit 2d3c72c
Show file tree
Hide file tree
Showing 10 changed files with 400 additions and 60 deletions.
7 changes: 4 additions & 3 deletions lib/instrumentation/superagent/.c8rc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"reporter": ["html", "lcov"],
"reporter": ["lcov"],
"all": true,
"exclude": ["tests/*", "coverage/*", ".eslintrc.js"]
}
"exclude": ["tests/*", "coverage/*", ".eslintrc.js"],
"clean": true
}
13 changes: 1 addition & 12 deletions lib/instrumentation/superagent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,7 @@ New Relic [Node.js agent](https://github.com/newrelic/node-newrelic).
This module is a dependency of the agent and is installed by default when you install the agent.

## Installation and Getting Started
Typically, most users use the version auto-installed by the agent. You can see agent install instructions [here](https://github.com/newrelic/node-newrelic#installation-and-getting-started).

In some cases, installing a specific version is ideal. For example, new features or major changes might be released via a major version update to this module, prior to inclusion in the main New Relic Node.js agent.

```
npm install @newrelic/superagent
```

```js
// index.js
require('@newrelic/superagent')
```
This package is a dependency of the the [Node.js Agent](https://github.com/newrelic/node-newrelic/blob/main/package.json#L191), and should not need to install it manually.

For more information, please see the agent [installation guide][3] and [compatibility and requirements][4].

Expand Down
38 changes: 37 additions & 1 deletion lib/instrumentation/superagent/THIRD_PARTY_NOTICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ code, the source code can be found at [https://github.com/newrelic/node-newrelic
* [newrelic](#newrelic)
* [prettier](#prettier)
* [semver](#semver)
* [sinon](#sinon)
* [superagent](#superagent)
* [tap](#tap)

Expand Down Expand Up @@ -669,7 +670,7 @@ This product includes source derived from [@newrelic/test-utilities](https://git

### c8

This product includes source derived from [c8](https://github.com/bcoe/c8) ([v7.12.0](https://github.com/bcoe/c8/tree/v7.12.0)), distributed under the [ISC License](https://github.com/bcoe/c8/blob/v7.12.0/LICENSE.txt):
This product includes source derived from [c8](https://github.com/bcoe/c8) ([v8.0.0](https://github.com/bcoe/c8/tree/v8.0.0)), distributed under the [ISC License](https://github.com/bcoe/c8/blob/v8.0.0/LICENSE.txt):

```
Copyright (c) 2017, Contributors
Expand Down Expand Up @@ -7263,6 +7264,41 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
```

### sinon

This product includes source derived from [sinon](https://github.com/sinonjs/sinon) ([v15.2.0](https://github.com/sinonjs/sinon/tree/v15.2.0)), distributed under the [BSD-3-Clause License](https://github.com/sinonjs/sinon/blob/v15.2.0/LICENSE):

```
(The BSD License)
Copyright (c) 2010-2017, Christian Johansen, [email protected]
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of Christian Johansen nor the names of his contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
```

### superagent

This product includes source derived from [superagent](https://github.com/visionmedia/superagent) ([v3.8.3](https://github.com/visionmedia/superagent/tree/v3.8.3)), distributed under the [MIT License](https://github.com/visionmedia/superagent/blob/v3.8.3/LICENSE):
Expand Down
15 changes: 0 additions & 15 deletions lib/instrumentation/superagent/index.js

This file was deleted.

Loading

0 comments on commit 2d3c72c

Please sign in to comment.