Skip to content

Commit

Permalink
Merge pull request #6 from mkholt/browser-sync-support
Browse files Browse the repository at this point in the history
Fix tests
  • Loading branch information
mkholt authored Feb 9, 2022
2 parents 840c0bd + 09b6c57 commit 48861a6
Show file tree
Hide file tree
Showing 7 changed files with 231 additions and 125 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 17.x]
node-version: [12.x, 14.x, 16.x, 17.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down
170 changes: 160 additions & 10 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
Expand Up @@ -47,7 +47,7 @@
"jest": "^27.3.1",
"jest-mock-extended": "^2.0.4",
"mock-socket": "^9.1.2",
"socket.io-mock": "^1.3.2",
"socket.io": "^4.4.1",
"ts-jest": "^27.0.7",
"ts-node": "^10.4.0",
"ts-patch": "^1.4.5",
Expand Down
9 changes: 6 additions & 3 deletions src/injected/logger.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
const timestamp = () => new Date().toLocaleTimeString('en-US', {
hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit', fractionalSecondDigits: 3
} as Intl.DateTimeFormatOptions)
const timestamp = () => {
const d = new Date()
return d.toLocaleTimeString('en-US', {
hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit'
}) + "." + d.getMilliseconds()
}

export const log = (...message: string[]) => console.log("[pcf-reloader]", "[" + timestamp() + "]", ...message)
Loading

0 comments on commit 48861a6

Please sign in to comment.