Skip to content
This repository was archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #517 from Shopify/fix-circle
Browse files Browse the repository at this point in the history
Fix CircleCI running with Node 10
  • Loading branch information
t-kelly authored May 1, 2018
2 parents 1e5ffd0 + e8b5b1d commit d90d3ab
Show file tree
Hide file tree
Showing 2 changed files with 750 additions and 562 deletions.
6 changes: 1 addition & 5 deletions packages/slate-analytics/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* eslint-disable no-process-env */

const uuidGenerator = require('uuid/v4');
const {performance} = require('perf_hooks');
const clearConsole = require('react-dev-utils/clearConsole');
const rc = require('@shopify/slate-rc');
const axios = require('axios');
Expand Down Expand Up @@ -55,9 +54,6 @@ function event(name, payload = {}) {
return Promise.resolve();
}

performance.mark(name);
const mark = performance.getEntriesByName(name).pop();

process.env.SLATE_PROCESS_ID =
process.env.SLATE_PROCESS_ID || uuidGenerator();

Expand All @@ -66,7 +62,7 @@ function event(name, payload = {}) {
event: name,
id: process.env.SLATE_PROCESS_ID,
uuid: config.uuid,
performance: mark,
performance: process.hrtime(),
}),
};

Expand Down
Loading

0 comments on commit d90d3ab

Please sign in to comment.