@atlaspack/profiler 2.12.1-dev.3567 → 2.13.1-canary.3630

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 ADDED
@@ -0,0 +1,14 @@
1
+ # @atlaspack/profiler
2
+
3
+ ## 2.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#335](https://github.com/atlassian-labs/atlaspack/pull/335) [`b4dbd4d`](https://github.com/atlassian-labs/atlaspack/commit/b4dbd4d5b23d1b7aa3fcdf59cc7bc8bedd3a59cf) Thanks [@yamadapc](https://github.com/yamadapc)! - Initial changeset release
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`b4dbd4d`](https://github.com/atlassian-labs/atlaspack/commit/b4dbd4d5b23d1b7aa3fcdf59cc7bc8bedd3a59cf)]:
12
+ - @atlaspack/diagnostic@2.13.0
13
+ - @atlaspack/types-internal@2.13.0
14
+ - @atlaspack/events@2.13.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/profiler",
3
- "version": "2.12.1-dev.3567+c06f4487e",
3
+ "version": "2.13.1-canary.3630+10a6f37ef",
4
4
  "description": "Blazing fast, zero configuration web application bundler",
5
5
  "license": "(MIT OR Apache-2.0)",
6
6
  "publishConfig": {
@@ -20,10 +20,10 @@
20
20
  "check-ts": "tsc --noEmit lib/index.d.ts"
21
21
  },
22
22
  "dependencies": {
23
- "@atlaspack/diagnostic": "2.12.1-dev.3567+c06f4487e",
24
- "@atlaspack/events": "2.12.1-dev.3567+c06f4487e",
25
- "@atlaspack/types-internal": "2.12.1-dev.3567+c06f4487e",
23
+ "@atlaspack/diagnostic": "2.13.1-canary.3630+10a6f37ef",
24
+ "@atlaspack/events": "2.13.1-canary.3630+10a6f37ef",
25
+ "@atlaspack/types-internal": "2.13.1-canary.3630+10a6f37ef",
26
26
  "chrome-trace-event": "^1.0.2"
27
27
  },
28
- "gitHead": "c06f4487ebddc632957147c8b585a97e149062a1"
28
+ "gitHead": "10a6f37ef063d0227ebb26310383e899dbd9b1e6"
29
29
  }
@@ -1,3 +1,4 @@
1
+ // @flow
1
2
  import {tracer, PluginTracer} from '../src/Tracer';
2
3
  import sinon from 'sinon';
3
4
  import assert from 'assert';
@@ -22,6 +23,7 @@ describe('Tracer', () => {
22
23
  });
23
24
  it('emits a basic trace event', () => {
24
25
  const measurement = tracer.createMeasurement('test');
26
+ if (!measurement) return assert.fail();
25
27
  measurement.end();
26
28
  sinon.assert.calledWith(
27
29
  onTrace,
@@ -37,6 +39,7 @@ describe('Tracer', () => {
37
39
  const measurement = tracer.createMeasurement('test', 'myPlugin', 'aaargh', {
38
40
  extra: 'data',
39
41
  });
42
+ if (!measurement) return assert.fail();
40
43
  measurement.end();
41
44
  sinon.assert.calledWith(
42
45
  onTrace,
@@ -51,6 +54,7 @@ describe('Tracer', () => {
51
54
  });
52
55
  it('calling end twice on measurment should be a no-op', () => {
53
56
  const measurement = tracer.createMeasurement('test');
57
+ if (!measurement) return assert.fail();
54
58
  measurement.end();
55
59
  measurement.end();
56
60
  sinon.assert.calledOnce(onTrace);
@@ -63,6 +67,7 @@ describe('Tracer', () => {
63
67
  category: 'cat',
64
68
  });
65
69
  const measurement = pluginTracer.createMeasurement('test', 'customCat');
70
+ if (!measurement) return assert.fail();
66
71
  measurement.end();
67
72
  sinon.assert.calledWith(
68
73
  onTrace,