Socket
Socket
Sign inDemoInstall

tap-arc

Package Overview
Dependencies
Maintainers
3
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tap-arc - npm Package Compare versions

Comparing version 1.2.0-RC.2 to 1.2.0

2

package.json

@@ -5,3 +5,3 @@ {

"author": "tbeseda",
"version": "1.2.0-RC.2",
"version": "1.2.0",
"license": "Apache-2.0",

@@ -8,0 +8,0 @@ "type": "module",

@@ -17,6 +17,5 @@ <h1 align="center"><code>tap-arc</code> 📋</h1>

- minimal, informative spec-like output for all assertions
- minimal, maintained dependencies
- streaming in and out
- minimal, informative spec-like output for all assertion types
- helpful diffing for failures
- shallow graph of maintained dependencies

@@ -45,3 +44,4 @@ ![tap-arc output screen shot](./screen-shot.png)

💁 `tap-arc` will format output from any tap reporter. [`tape`](https://github.com/ljharb/tape) is our favorite and was used for testing.
> [!IMPORTANT]
> 💁 `tap-arc` will format output from any tap reporter. [`tape`](https://github.com/ljharb/tape) is our favorite and was used for testing.

@@ -48,0 +48,0 @@ ### `tap-arc --help`

@@ -19,11 +19,16 @@ import * as Diff from 'diff'

const diff = Diff.diffWordsWithSpace(a, e)
const output = []
let aLine = 'Actual: '
let eLine = 'Expected: '
for (const d of diff) {
if (d.added) output.push(`${expected(d.value)}`)
else if (d.removed) output.push(`${actual(d.value)}`)
else output.push(d.value)
if (d.added) eLine += expected(d.value)
else if (d.removed) aLine += actual(d.value)
else {
eLine += d.value
aLine += d.value
}
}
return output.join('').split('\n')
return [ aLine, eLine ]
}

@@ -30,0 +35,0 @@

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