Skip to content

Commit c72f566

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

File tree

6 files changed

+15
-6
lines changed

6 files changed

+15
-6
lines changed

lib/analyze-action.js

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze-action.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/config-utils.js

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/config-utils.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/analyze-action.ts

Lines changed: 3 additions & 0 deletions
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

Lines changed: 2 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy