@ac-bench/reporter-json 0.1.0 → 0.1.1
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 +11 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
package/CHANGELOG.md
ADDED
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { AggregateSink } from "@ac-kit/app-report";
|
|
|
4
4
|
export default function jsonReporter(options = {}) {
|
|
5
5
|
return defineReporterPlugin({
|
|
6
6
|
id: "json",
|
|
7
|
-
createSink: (context) => new AggregateSink(context.openOutput(options.output ?? `${context.defaultOutput}.json`),
|
|
7
|
+
createSink: (context) => new AggregateSink(context.openOutput(options.output ?? `${context.defaultOutput}.json`), formatJson_(context)),
|
|
8
8
|
});
|
|
9
9
|
}
|
|
10
10
|
/** Serialises every measure present in `run` into one JSON document. */
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EACN,mBAAmB,EACnB,oBAAoB,EACpB,yBAAyB,GACzB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAOnD,qEAAqE;AACrE,MAAM,CAAC,OAAO,UAAU,YAAY,CACnC,OAAO,GAAwB,EAAE;IAEjC,OAAO,oBAAoB,CAAC;QAC3B,EAAE,EAAE,MAAM;QACV,UAAU,EAAE,CAAC,OAAO,EAAE,EAAE,CACvB,IAAI,aAAa,CAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,MAAM,IAAI,GAAG,OAAO,CAAC,aAAa,OAAO,CAAC,EACrE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EACN,mBAAmB,EACnB,oBAAoB,EACpB,yBAAyB,GACzB,MAA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
|
"description": "JSON reporter for @ac-bench: writes a run to a single document, one section per measure.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"benchmark",
|
|
7
7
|
"json",
|
|
8
8
|
"reporter"
|
|
9
9
|
],
|
|
10
|
-
"homepage": "https://
|
|
10
|
+
"homepage": "https://git.grenadine.io/anthochamp/node-essentials/src/branch/main/bench/reporter-json#readme",
|
|
11
11
|
"bugs": {
|
|
12
|
-
"url": "https://
|
|
12
|
+
"url": "https://git.grenadine.io/anthochamp/node-essentials/issues"
|
|
13
13
|
},
|
|
14
14
|
"license": "BSD-3-Clause",
|
|
15
15
|
"author": "Anthony Champagne <dev@anthonychampagne.fr>",
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
18
|
-
"url": "git+https://
|
|
18
|
+
"url": "git+https://git.grenadine.io/anthochamp/node-essentials.git",
|
|
19
19
|
"directory": "bench/reporter-json"
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
@@ -43,21 +43,21 @@
|
|
|
43
43
|
"prepack": "yarn build"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@ac-bench/core": "^0.
|
|
47
|
-
"@ac-kit/app-report": "^0.
|
|
48
|
-
"@types/web": "^0.0.
|
|
46
|
+
"@ac-bench/core": "^0.2.0",
|
|
47
|
+
"@ac-kit/app-report": "^0.2.0",
|
|
48
|
+
"@types/web": "^0.0.362"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@ac-kit/model-dataset": "^0.1.0",
|
|
52
52
|
"@ac-kit/tsconfig": "0.1.0",
|
|
53
53
|
"@ac-kit/typedoc-config": "0.1.0",
|
|
54
|
-
"@ac-kit/vitest-config": "0.1.
|
|
54
|
+
"@ac-kit/vitest-config": "0.1.1",
|
|
55
55
|
"@typescript/native": "typescript@7.0.2",
|
|
56
|
-
"rimraf": "6.1.
|
|
56
|
+
"rimraf": "6.1.4",
|
|
57
57
|
"typedoc": "0.28.20",
|
|
58
58
|
"typescript": "@typescript/typescript6@6.0.2",
|
|
59
|
-
"vite": "8.3.
|
|
60
|
-
"vitest": "5.
|
|
59
|
+
"vite": "8.3.7",
|
|
60
|
+
"vitest": "5.1.0"
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|
|
63
63
|
"node": ">=24"
|