Skip to content

Commit

Permalink
Update import for native node modules
Browse files Browse the repository at this point in the history
  • Loading branch information
w3nl committed Oct 16, 2023
1 parent 5cb1f94 commit 2f163b3
Show file tree
Hide file tree
Showing 16 changed files with 57 additions and 57 deletions.
84 changes: 42 additions & 42 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@hckrnews/logger",
"description": "Winston logger for Hckrnews",
"version": "0.1.1",
"version": "0.1.2",
"author": {
"name": "Pieter Wigboldus",
"url": "https://hckr.news/"
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/logger.feature.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'node:test'
import assert from 'assert'
import assert from 'node:assert'
import makeLogger from '../logger.js'

test('Test the make loggers', async (t) => {
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/__tests__/pubSubClient.unit.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'node:test'
import assert from 'assert'
import assert from 'node:assert'
import { PubSub } from '@google-cloud/pubsub'
import { getPubSubClient, getCredentials } from '../pubSubClient.js'

Expand Down
2 changes: 1 addition & 1 deletion src/helpers/__tests__/stackdriver.unit.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'node:test'
import assert from 'assert'
import assert from 'node:assert'
import stackdriver from '../stackdriver.js'

test('Test the stackdriver helper', async (t) => {
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/stackdriver.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os from 'os'
import os from 'node:os'

const levelToSeverity = {
trace: 'DEBUG',
Expand Down
2 changes: 1 addition & 1 deletion src/loggers/__tests__/combined-file.unit.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'node:test'
import assert from 'assert'
import assert from 'node:assert'
import winston from 'winston'
import makeCombinedFileLogger from '../combined-file.js'

Expand Down
2 changes: 1 addition & 1 deletion src/loggers/__tests__/console.unit.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'node:test'
import assert from 'assert'
import assert from 'node:assert'
import winston from 'winston'
import makeConsoleLogger from '../console.js'

Expand Down
2 changes: 1 addition & 1 deletion src/loggers/__tests__/error-file.unit.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'node:test'
import assert from 'assert'
import assert from 'node:assert'
import winston from 'winston'
import makeErrorFileLogger from '../error-file.js'

Expand Down
2 changes: 1 addition & 1 deletion src/loggers/__tests__/google-cloud.unit.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'node:test'
import assert from 'assert'
import assert from 'node:assert'
import winston from 'winston'
import makeConsoleLogger from '../google-cloud.js'

Expand Down
2 changes: 1 addition & 1 deletion src/loggers/__tests__/index.feature.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'node:test'
import assert from 'assert'
import assert from 'node:assert'
import winston from 'winston'
import makeLoggers from '../index.js'

Expand Down
2 changes: 1 addition & 1 deletion src/loggers/__tests__/new-relic.unit.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'node:test'
import assert from 'assert'
import assert from 'node:assert'
import winston from 'winston'
import makeNewRelicLogger from '../new-relic.js'

Expand Down
2 changes: 1 addition & 1 deletion src/loggers/__tests__/pubsub-elastic.unit.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'node:test'
import assert from 'assert'
import assert from 'node:assert'
import winston from 'winston'
import { stub, createStubInstance } from 'sinon'
import makeLoggers from '../index.js'
Expand Down
2 changes: 1 addition & 1 deletion src/loggers/__tests__/sentry.unit.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'node:test'
import assert from 'assert'
import assert from 'node:assert'
import winston from 'winston'
import makeSentryLogger from '../sentry.js'

Expand Down
2 changes: 1 addition & 1 deletion src/models/__tests__/logger.unit.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'node:test'
import assert from 'assert'
import assert from 'node:assert'
import Logger from '../logger.js'
import LevelEnum from '../enums/level.js'

Expand Down
2 changes: 1 addition & 1 deletion src/models/enums/__tests__/level.unit.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'node:test'
import assert from 'assert'
import assert from 'node:assert'
import Level from '../level.js'

test('Test the level enum', async (t) => {
Expand Down

0 comments on commit 2f163b3

Please sign in to comment.