Skip to content

Commit c72f566

Browse files
committed
Explicitly import performance for Node 12 compatibility
1 parent f0a1a35 commit c72f566

6 files changed

+15
-6
lines changed

lib/analyze-action.js

+4-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze-action.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/config-utils.js

+4-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/config-utils.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/analyze-action.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// We need to import `performance` on Node 12
2+
import { performance } from "perf_hooks";
3+
14
import * as core from "@actions/core";
25

36
import * as actionsUtil from "./actions-util";

src/config-utils.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import * as fs from "fs";
22
import * as path from "path";
3+
// We need to import `performance` on Node 12
4+
import { performance } from "perf_hooks";
35

46
import * as yaml from "js-yaml";
57
import * as semver from "semver";

0 commit comments

Comments
 (0)