tape-six 1.0.4 → 1.1.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/README.md CHANGED
@@ -236,6 +236,7 @@ See [set-up tests](https://github.com/uhop/tape-six/wiki/Set-up-tests) for detai
236
236
 
237
237
  The most recent releases:
238
238
 
239
+ - 1.1.0 _Added TypeScript support._
239
240
  - 1.0.4 _Bugfix for platform-specific tests, old platforms, minor updates to accommodate Deno 2, updated dev deps._
240
241
  - 1.0.3 _Minor update to accommodate changes in Bun and updated dev deps._
241
242
  - 1.0.2 _Bugfix for Deno using the JSONL reporter._
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "tape-six",
3
- "version": "1.0.4",
3
+ "version": "1.1.0",
4
4
  "description": "TAP the test harness for the modern JavaScript (ES6).",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
7
  "module": "index.js",
8
+ "types": "index.d.ts",
8
9
  "exports": {
9
10
  ".": "./index.js",
10
11
  "./bin/*": "./bin/*",
@@ -22,12 +23,16 @@
22
23
  "copyDeep6": "node scripts/copyFolder.js --src ./vendors/deep6/src --dst ./src/deep6 --clear",
23
24
  "build": "npm run copyDeep6",
24
25
  "prepublishOnly": "npm run build",
26
+ "lint": "prettier --check .",
27
+ "lint:fix": "prettier --write .",
25
28
  "test": "node ./bin/tape6.js --flags FO",
26
29
  "test:bun": "bun run ./bin/tape6-bun.js --flags FO",
27
30
  "test:deno": "deno run -A ./bin/tape6-deno.js --flags FO",
28
31
  "test:chrome": "node tests/puppeteer-chrome.js",
29
- "lint": "prettier --check .",
30
- "lint:fix": "prettier --write ."
32
+ "ts-check": "tsc --noEmit",
33
+ "ts-test": "node ./bin/tape6.js --flags FO '/ts-tests/test-*.ts'",
34
+ "ts-test:bun": "bun run ./bin/tape6-bun.js --flags FO '/ts-tests/test-*.ts'",
35
+ "ts-test:deno": "deno run -A ./bin/tape6-deno.js --flags FO '/ts-tests/test-*.ts'"
31
36
  },
32
37
  "github": "http://github.com/uhop/tape-six",
33
38
  "repository": {
@@ -66,6 +71,8 @@
66
71
  }
67
72
  },
68
73
  "devDependencies": {
69
- "puppeteer": "^24.4.0"
74
+ "@types/node": "^22.13.10",
75
+ "puppeteer": "^24.4.0",
76
+ "typescript": "^5.8.2"
70
77
  }
71
78
  }
package/src/Tester.js CHANGED
@@ -15,8 +15,8 @@ class Tester {
15
15
  this.testNumber = testNumber;
16
16
  }
17
17
 
18
- plan(n) {
19
- this.state.setPlan(n);
18
+ plan(_n) {
19
+ // this.state.setPlan(_n);
20
20
  }
21
21
 
22
22
  comment(msg) {