Skip to content

Commit a2b8fd3

Browse files
committed
1 parent 8ec84d9 commit a2b8fd3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+3042
-247
lines changed

lib/utils/metrics.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const fs = require('fs')
88
const path = require('path')
99
const npm = require('../npm.js')
1010
const regFetch = require('npm-registry-fetch')
11-
const uuid = require('uuid')
11+
const { v4: uuidv4 } = require('uuid')
1212
const cacheFile = require('./cache-file.js')
1313

1414
let inMetrics = false
@@ -42,7 +42,7 @@ function saveMetrics (itWorked) {
4242
}
4343
} catch (ex) {
4444
metrics = {
45-
metricId: uuid.v4(),
45+
metricId: uuidv4(),
4646
metrics: {
4747
from: new Date().toISOString(),
4848
to: new Date().toISOString(),

node_modules/request/node_modules/.bin/uuid

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

node_modules/request/node_modules/uuid/CHANGELOG.md

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

node_modules/request/node_modules/uuid/LICENSE.md

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

0 commit comments

Comments
 (0)