Skip to content

Commit

Permalink
"type" typo
Browse files Browse the repository at this point in the history
  • Loading branch information
eddow committed Jun 8, 2024
1 parent f1e76ba commit fad09ee
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "omni18n",
"version": "1.1.14",
"version": "1.1.15",
"exports": {
".": {
"browser": {
Expand Down
2 changes: 1 addition & 1 deletion src/db/fileDb.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { readFile, stat, writeFile } from 'node:fs/promises'
import Defer from '../tools/defer'
import { WorkDictionary, type Locale, type TextKey, type Translation, type Zone } from '../types'
import type { WorkDictionary, Locale, TextKey, Translation, Zone } from '../types'
import MemDB from './memDb'
import serialization from './serialization'

Expand Down
2 changes: 1 addition & 1 deletion src/tools/cgpt-js.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export function parse(jsonString: string): JSONValue {
return parseObject()
} else if (jsonString[index] === '[') {
return parseArray()
} else if (jsonString[index] === '"' || jsonString[index] === "'") {
} else if ('"\'`'.includes(jsonString[index])) {
return parseString()
} else {
return parseLiteral()
Expand Down
5 changes: 1 addition & 4 deletions test/specifics.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,6 @@ describe('specifics', () => {
'<span class="fi fi-be"></span>'
])
})
test('errors', async () => {
// TODO test errors
})
test('fallbacks', async () => {
misses.mockClear()
const { Tp } = localStack({
Expand Down Expand Up @@ -260,7 +257,7 @@ line*/,
isAdmin: true,
hobbies: ["reading", "coding", "swimming"],
address: {city: "New
York", country: "USA"/* -- */}
York", country: \`USA\`/* -- */}
}`
const expected = {
name: 'John',
Expand Down

0 comments on commit fad09ee

Please sign in to comment.