Skip to content

Commit

Permalink
chore: Adjust for build tool updates
Browse files Browse the repository at this point in the history
  • Loading branch information
eemeli committed Jun 14, 2021
1 parent 79932df commit 27bd4fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/schema/yaml-1.1/timestamp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { ScalarTag } from '../types.js'
function parseSexagesimal<B extends boolean>(str: string, asBigInt?: B) {
const sign = str[0]
const parts = sign === '-' || sign === '+' ? str.substring(1) : str
const num = (n: unknown) =>
const num = (n: number | string) =>
asBigInt ? (BigInt(n) as unknown as number) : Number(n)
const res = parts
.replace(/_/g, '')
Expand Down
2 changes: 1 addition & 1 deletion tests/doc/comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ describe('stringify comments', () => {
doc.contents.items[0].commentBefore = 'c0\nc1'
doc.contents.items[1].commentBefore = ' \nc2\n\nc3'
doc.contents.comment = 'c4\nc5'
expect(String(doc)).toBe( source`
expect(String(doc)).toBe(source`
#c0
#c1
- value 1
Expand Down

0 comments on commit 27bd4fa

Please sign in to comment.