@agoric/stat-logger 0.4.28-pismo-dev-0d5327f.0 → 0.4.29-dev-bf4b59f.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
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ### [0.4.28](https://github.com/Agoric/agoric-sdk/compare/@agoric/stat-logger@0.4.27...@agoric/stat-logger@0.4.28) (2023-05-19)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * update vega to get rid of override mistake problem ([f96d16b](https://github.com/Agoric/agoric-sdk/commit/f96d16bde7da6e34ec68caa7fa9a945416329ed8)), closes [#2373](https://github.com/Agoric/agoric-sdk/issues/2373)
12
+ * **stat-logger:** Clarify that peerDependencies are optional ([8021703](https://github.com/Agoric/agoric-sdk/commit/80217034317645c0d2836c413cd48192e9b21eb6))
13
+
14
+
15
+
6
16
  ### [0.4.27](https://github.com/Agoric/agoric-sdk/compare/@agoric/stat-logger@0.4.26...@agoric/stat-logger@0.4.27) (2022-09-20)
7
17
 
8
18
 
package/jsconfig.json CHANGED
@@ -1,22 +1,7 @@
1
1
  // This file can contain .js-specific Typescript compiler config.
2
2
  {
3
- "compilerOptions": {
4
- "target": "esnext",
5
- "module": "esnext",
6
-
7
- "noEmit": true,
8
- /*
9
- // The following flags are for creating .d.ts files:
10
- "noEmit": false,
11
- "declaration": true,
12
- "emitDeclarationOnly": true,
13
- */
14
- "downlevelIteration": true,
15
- "strictNullChecks": true,
16
- "moduleResolution": "node",
17
- },
3
+ "extends": "../../tsconfig.json",
18
4
  "include": [
19
- "exported.js",
20
5
  "src/**/*.js",
21
6
  "test/**/*.js"
22
7
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/stat-logger",
3
- "version": "0.4.28-pismo-dev-0d5327f.0+0d5327f",
3
+ "version": "0.4.29-dev-bf4b59f.0+bf4b59f",
4
4
  "description": "Simple library for logging and graphing performance statistics",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -16,16 +16,22 @@
16
16
  },
17
17
  "peerDependencies": {
18
18
  "canvas": "^2.6.1",
19
- "vega": "^5.10.0",
19
+ "vega": "^5.22.1",
20
20
  "vega-canvas": "^1.2.1"
21
21
  },
22
+ "peerDependenciesMeta": {
23
+ "canvas": {
24
+ "optional": true
25
+ },
26
+ "vega": {
27
+ "optional": true
28
+ },
29
+ "vega-canvas": {
30
+ "optional": true
31
+ }
32
+ },
22
33
  "publishConfig": {
23
34
  "access": "public"
24
35
  },
25
- "eslintConfig": {
26
- "extends": [
27
- "@agoric"
28
- ]
29
- },
30
- "gitHead": "0d5327f87310cf523834853b0546d0e217f37009"
36
+ "gitHead": "bf4b59f2128aca73d786429c6ef4a7c9cdfb6700"
31
37
  }
package/src/statGraph.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import fs from 'fs';
3
3
  import path from 'path';
4
4
 
5
- const { details: X } = assert;
5
+ const { Fail } = assert;
6
6
 
7
7
  function scanMax(filePath, fields) {
8
8
  const lines = fs.readFileSync(filePath, { encoding: 'utf8' }).split('\n');
@@ -18,7 +18,7 @@ function scanMax(filePath, fields) {
18
18
  }
19
19
  }
20
20
  if (hit < 0) {
21
- assert.fail(X`field ${field} not found in ${filePath}`);
21
+ Fail`field ${field} not found in ${filePath}`;
22
22
  } else {
23
23
  headerMap[hit] = field;
24
24
  }
@@ -154,13 +154,13 @@ export function addGraphToGraphSpec(spec, tag, statsPath, yField, color) {
154
154
 
155
155
  export async function renderGraph(spec, outputPath, type = 'png') {
156
156
  if (spec.data.length === 0) {
157
- throw new Error('graph spec contains no data');
157
+ throw Error('graph spec contains no data');
158
158
  } else if (spec.marks.length === 0) {
159
- throw new Error('graph spec has no graphs defined');
159
+ throw Error('graph spec has no graphs defined');
160
160
  }
161
161
  type === 'png' ||
162
162
  type === 'pdf' ||
163
- assert.fail(X`invalid output type ${type}, valid types are png or pdf`);
163
+ Fail`invalid output type ${type}, valid types are png or pdf`;
164
164
 
165
165
  let loadDir = '.';
166
166
  let out = process.stdout;
@@ -1,56 +0,0 @@
1
- diff --git a/node_modules/vega-util/build/vega-util.js b/node_modules/vega-util/build/vega-util.js
2
- index 0b40c91..bd0a2e4 100644
3
- --- a/node_modules/vega-util/build/vega-util.js
4
- +++ b/node_modules/vega-util/build/vega-util.js
5
- @@ -611,7 +611,12 @@
6
-
7
- function inherits (child, parent, members) {
8
- const proto = child.prototype = Object.create(parent.prototype);
9
- - proto.constructor = child;
10
- + Object.defineProperty(proto, 'constructor', {
11
- + value: child,
12
- + writable: true,
13
- + enumerable: true,
14
- + configurable: true
15
- + });
16
- return extend(proto, members);
17
- }
18
-
19
- @@ -859,7 +864,6 @@
20
- exports.fastmap = fastmap;
21
- exports.field = field;
22
- exports.flush = flush;
23
- - exports.hasOwnProperty = has;
24
- exports.id = id;
25
- exports.identity = identity;
26
- exports.inherits = inherits;
27
- @@ -895,7 +899,6 @@
28
- exports.toDate = toDate;
29
- exports.toNumber = toNumber;
30
- exports.toSet = toSet;
31
- - exports.toString = toString;
32
- exports.truncate = truncate;
33
- exports.truthy = truthy;
34
- exports.utcquarter = utcquarter;
35
- @@ -907,6 +910,21 @@
36
- exports.zoomPow = zoomPow;
37
- exports.zoomSymlog = zoomSymlog;
38
-
39
- + Object.defineProperties(exports, {
40
- + hasOwnProperty: {
41
- + value: has,
42
- + writable: true,
43
- + enumerable: true,
44
- + configurable: true
45
- + },
46
- + toString: {
47
- + value: toString,
48
- + writable: true,
49
- + enumerable: true,
50
- + configurable: true
51
- + }
52
- + });
53
- +
54
- Object.defineProperty(exports, '__esModule', { value: true });
55
-
56
- })));