Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 8d22dc4

Browse files
ofrobotskjin
authored andcommitted
chore: use TS synthetic imports (#57)
This avoids deprecation warnings from Node.js core due to `import *` of `crypto`.
1 parent 6e673b2 commit 8d22dc4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/opencensus-propagation-stackdriver/src

packages/opencensus-propagation-stackdriver/src/v1.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
* Full details at https://cloud.google.com/trace/docs/support.
2121
*/
2222

23-
import * as crypto from 'crypto';
24-
import * as uuid from 'uuid';
23+
import crypto from 'crypto';
24+
import uuid from 'uuid';
2525

2626
import {HeaderGetter, HeaderSetter, SpanContext} from './index';
2727

0 commit comments

Comments
 (0)