@small-tech/tap-monkey 1.4.0 β†’ 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [1.5.0] - 2025-12-29
8
+
9
+ Maintenance monkey.
10
+
11
+ - Update all dependencies.
12
+ - Fix failing test.
13
+ - Remove all vulnerability warnings.
14
+
7
15
  ## [1.4.0] - 2022-05-24
8
16
 
9
17
  Testy monkey.
package/index.js CHANGED
@@ -12,7 +12,7 @@
12
12
  //
13
13
  //////////////////////////////////////////////////////////////////////////////////////////
14
14
 
15
- import Ora from 'ora'
15
+ import ora from 'ora'
16
16
  import chalk from 'chalk'
17
17
  import { performance } from 'perf_hooks'
18
18
  import tapOut from '@small-tech/tap-out'
@@ -31,16 +31,16 @@ export const context = {
31
31
  // reflected in the spinner text and that’s ok. Failures, of course, are
32
32
  // all output in full to the terminal.
33
33
  const indentedMonkey = {
34
- "interval": 300,
35
- "frames": [
36
- " πŸ™ˆ ",
37
- " πŸ™ˆ ",
38
- " πŸ™‰ ",
39
- " πŸ™Š "
34
+ interval: 300,
35
+ frames: [
36
+ ' πŸ™ˆ ',
37
+ ' πŸ™ˆ ',
38
+ ' πŸ™‰ ',
39
+ ' πŸ™Š '
40
40
  ]
41
41
  }
42
42
 
43
- const spinner = new Ora({
43
+ const spinner = ora({
44
44
  spinner: indentedMonkey,
45
45
  discardStdin: false,
46
46
  text: 'Running tests…'
package/jsconfig.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "compilerOptions": {
3
+ "checkJs": true,
4
+ "module": "nodenext",
5
+ "lib": ["es2024", "dom"],
6
+ "target": "es2024",
7
+ "moduleResolution": "nodenext",
8
+ "esModuleInterop": true,
9
+ "allowSyntheticDefaultImports": true,
10
+ "forceConsistentCasingInFileNames": true,
11
+ "skipLibCheck": true
12
+ },
13
+ "exclude": ["node_modules"]
14
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@small-tech/tap-monkey",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "A tap formatter that’s also a monkey.",
5
5
  "keywords": [
6
6
  "tap",
@@ -34,13 +34,13 @@
34
34
  "url": "https://github.com/small-tech/tap-monkey.git"
35
35
  },
36
36
  "dependencies": {
37
- "@small-tech/tap-out": "^3.2.0",
38
- "chalk": "^4.1.0",
39
- "ora": "^5.3.0"
37
+ "@small-tech/tap-out": "^3.3.0",
38
+ "chalk": "^5.6.2",
39
+ "ora": "^9.0.0"
40
40
  },
41
41
  "devDependencies": {
42
- "c8": "^7.11.3",
43
- "strip-ansi": "^7.0.1",
44
- "tape": "^5.5.3"
42
+ "c8": "^10.1.3",
43
+ "strip-ansi": "^7.1.2",
44
+ "tape": "^5.9.0"
45
45
  }
46
46
  }
package/tests/index.js CHANGED
@@ -21,11 +21,11 @@ test('test handler', t => {
21
21
  tapMonkey.testHandler({name: 'mock'})
22
22
  tapMonkey.spinner.stop()
23
23
 
24
- t.strictEquals(tapMonkey.spinner._spinner.interval, 300, 'spinner interval is as expected')
25
- t.strictEquals(tapMonkey.spinner._spinner.frames[0], ' πŸ™ˆ ', 'animation frame 1 is correct')
26
- t.strictEquals(tapMonkey.spinner._spinner.frames[1], ' πŸ™ˆ ', 'animation frame 2 is correct')
27
- t.strictEquals(tapMonkey.spinner._spinner.frames[2], ' πŸ™‰ ', 'animation frame 3 is correct')
28
- t.strictEquals(tapMonkey.spinner._spinner.frames[3], ' πŸ™Š ', 'animation frame 4 is correct')
24
+ t.strictEquals(tapMonkey.spinner.interval, 300, 'spinner interval is as expected')
25
+ t.strictEquals(tapMonkey.spinner.spinner.frames[0], ' πŸ™ˆ ', 'animation frame 1 is correct')
26
+ t.strictEquals(tapMonkey.spinner.spinner.frames[1], ' πŸ™ˆ ', 'animation frame 2 is correct')
27
+ t.strictEquals(tapMonkey.spinner.spinner.frames[2], ' πŸ™‰ ', 'animation frame 3 is correct')
28
+ t.strictEquals(tapMonkey.spinner.spinner.frames[3], ' πŸ™Š ', 'animation frame 4 is correct')
29
29
 
30
30
  t.true(strip(tapMonkey.spinner.text).includes('Running mock tests'), 'test name is displayed correctly')
31
31
 
@@ -106,7 +106,7 @@ test('fail handler', t => {
106
106
  console.log = originalConsoleLog
107
107
 
108
108
  t.true(output.includes('TypeError: Cannot convert undefined or null to object'), 'output includes main error message')
109
- t.true(output.includes('~/Projects/nodekit/node_modules/tape-promise/node_modules/onetime/index.js:30:12'), 'error location shown')
109
+ t.true(output.includes('/var/home/aral/Projects/nodekit/node_modules/tape-promise/node_modules/onetime/index.js:30:12'), 'error location shown')
110
110
 
111
111
  // Test a regular assertion failure.
112
112