@bscotch/cl2-string-server-shared
Advanced tools
Comparing version 0.9.0 to 0.10.0
@@ -1,3 +0,1 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import { User } from './User.js'; | ||
@@ -39,3 +37,9 @@ import { BaseError } from './errors.js'; | ||
deleteUser(username: string): Promise<void>; | ||
getXliff(projectId: string, branchId: string): Promise<string>; | ||
/** | ||
* Download the strings in XLIFF format. Defaults to only including | ||
* the source English, but can specify a particular target language | ||
* to include those translations (XLIFF only supports one target language | ||
* at a time). | ||
*/ | ||
getXliff(projectId: string, branchId: string, lang?: string): Promise<string>; | ||
updateTranslation(xliffContent: string): Promise<void>; | ||
@@ -42,0 +46,0 @@ updateString(projectId: string, branchId: string, commitNumber: number, stringId: string, update: StringPatch): Promise<StringCommitted>; |
@@ -135,6 +135,16 @@ import { User } from './User.js'; | ||
//#endregion USERS | ||
async getXliff(projectId, branchId) { | ||
/** | ||
* Download the strings in XLIFF format. Defaults to only including | ||
* the source English, but can specify a particular target language | ||
* to include those translations (XLIFF only supports one target language | ||
* at a time). | ||
*/ | ||
async getXliff(projectId, branchId, lang) { | ||
projectId = projectIdSchema.parse(projectId); | ||
branchId = branchIdSchema.parse(branchId); | ||
const xliff = (await this.request('GET', `/api/projects/${projectId}/branches/${branchId}/xliff`, { | ||
let url = `/api/projects/${projectId}/branches/${branchId}/xliff`; | ||
if (lang) { | ||
url += `?lang=${encodeURIComponent(lang)}`; | ||
} | ||
const xliff = (await this.request('GET', url, { | ||
assertStatus: 200, | ||
@@ -141,0 +151,0 @@ })).body; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
/** | ||
@@ -3,0 +2,0 @@ * Prepare an image for storage on the String Server, |
@@ -6,3 +6,4 @@ import { Marked } from 'marked'; | ||
renderer: { | ||
image(href, title, text) { | ||
image(options) { | ||
let { href, title, text } = options; | ||
// Normalize away quotes and newlines to avoid broken HTML | ||
@@ -9,0 +10,0 @@ title = title?.replace(/"/g, "'").replace(/[\r\n]+/g, ' ') || null; |
@@ -10,10 +10,13 @@ import { z } from 'zod'; | ||
l10n: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{ | ||
strings: z.ZodNumber; | ||
commitNumber: z.ZodNumber; | ||
strings: z.ZodDefault<z.ZodNumber>; | ||
words: z.ZodDefault<z.ZodNumber>; | ||
commitNumber: z.ZodDefault<z.ZodNumber>; | ||
}, "strip", z.ZodTypeAny, { | ||
strings: number; | ||
words: number; | ||
commitNumber: number; | ||
}, { | ||
strings: number; | ||
commitNumber: number; | ||
strings?: number | undefined; | ||
words?: number | undefined; | ||
commitNumber?: number | undefined; | ||
}>>>; | ||
@@ -30,2 +33,3 @@ latest: z.ZodOptional<z.ZodBoolean>; | ||
strings: number; | ||
words: number; | ||
commitNumber: number; | ||
@@ -42,4 +46,5 @@ }> | undefined; | ||
l10n?: Record<string, { | ||
strings: number; | ||
commitNumber: number; | ||
strings?: number | undefined; | ||
words?: number | undefined; | ||
commitNumber?: number | undefined; | ||
}> | undefined; | ||
@@ -54,8 +59,8 @@ latest?: boolean | undefined; | ||
}, "strip", z.ZodTypeAny, { | ||
latest?: boolean | undefined; | ||
closed?: boolean | undefined; | ||
}, { | ||
latest?: boolean | undefined; | ||
}, { | ||
closed?: boolean | undefined; | ||
latest?: boolean | undefined; | ||
}>; | ||
//# sourceMappingURL=types.branches.d.ts.map |
@@ -10,3 +10,7 @@ import { z } from 'zod'; | ||
l10n: z | ||
.record(z.object({ strings: z.number().int(), commitNumber: commitNumberSchema })) | ||
.record(z.object({ | ||
strings: z.number().int().default(0), | ||
words: z.number().int().default(0), | ||
commitNumber: commitNumberSchema.default(0), | ||
})) | ||
.optional() | ||
@@ -13,0 +17,0 @@ .describe('Total translated strings by language'), |
@@ -20,3 +20,3 @@ import { z } from 'zod'; | ||
export type GlossaryTermWithId = z.infer<typeof glossaryTermWithIdSchema>; | ||
export declare const glossaryTermWithIdSchema: z.ZodEffects<z.ZodObject<{ | ||
export declare const glossaryTermWithIdSchema: z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{ | ||
text: z.ZodString; | ||
@@ -26,4 +26,5 @@ lower: z.ZodString; | ||
insensitive: z.ZodDefault<z.ZodBoolean>; | ||
}, { | ||
termId: z.ZodEffects<z.ZodString, string, unknown>; | ||
}, "strip", z.ZodTypeAny, { | ||
}>, "strip", z.ZodTypeAny, { | ||
text: string; | ||
@@ -48,3 +49,3 @@ lower: string; | ||
export type GlossaryEntries = z.infer<typeof glossarySchema>; | ||
export declare const glossarySchema: z.ZodArray<z.ZodEffects<z.ZodObject<{ | ||
export declare const glossarySchema: z.ZodArray<z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{ | ||
text: z.ZodString; | ||
@@ -54,4 +55,5 @@ lower: z.ZodString; | ||
insensitive: z.ZodDefault<z.ZodBoolean>; | ||
}, { | ||
termId: z.ZodEffects<z.ZodString, string, unknown>; | ||
}, "strip", z.ZodTypeAny, { | ||
}>, "strip", z.ZodTypeAny, { | ||
text: string; | ||
@@ -77,3 +79,3 @@ lower: string; | ||
export declare const glossaryGetSchema: z.ZodObject<{ | ||
terms: z.ZodArray<z.ZodEffects<z.ZodObject<{ | ||
terms: z.ZodArray<z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{ | ||
text: z.ZodString; | ||
@@ -83,4 +85,5 @@ lower: z.ZodString; | ||
insensitive: z.ZodDefault<z.ZodBoolean>; | ||
}, { | ||
termId: z.ZodEffects<z.ZodString, string, unknown>; | ||
}, "strip", z.ZodTypeAny, { | ||
}>, "strip", z.ZodTypeAny, { | ||
text: string; | ||
@@ -87,0 +90,0 @@ lower: string; |
@@ -13,3 +13,2 @@ import { z } from 'zod'; | ||
.int() | ||
.positive() | ||
.describe('The "miniversion" for a GameChanger commit.'); | ||
@@ -16,0 +15,0 @@ export const projectIdSchema = z |
@@ -5,3 +5,3 @@ import { z } from 'zod'; | ||
projectId: z.ZodString; | ||
name: z.ZodString; | ||
name: z.ZodOptional<z.ZodString>; | ||
preserveWhitespace: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>; | ||
@@ -12,4 +12,4 @@ checkUrls: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>; | ||
projectId: string; | ||
name: string; | ||
languages: string[]; | ||
name?: string | undefined; | ||
preserveWhitespace?: boolean | null | undefined; | ||
@@ -19,4 +19,4 @@ checkUrls?: boolean | null | undefined; | ||
projectId: string; | ||
name: string; | ||
languages: string[]; | ||
name?: string | undefined; | ||
preserveWhitespace?: boolean | null | undefined; | ||
@@ -29,3 +29,3 @@ checkUrls?: boolean | null | undefined; | ||
projectId: z.ZodString; | ||
name: z.ZodString; | ||
name: z.ZodOptional<z.ZodString>; | ||
preserveWhitespace: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>; | ||
@@ -36,4 +36,4 @@ checkUrls: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>; | ||
projectId: string; | ||
name: string; | ||
languages: string[]; | ||
name?: string | undefined; | ||
preserveWhitespace?: boolean | null | undefined; | ||
@@ -43,4 +43,4 @@ checkUrls?: boolean | null | undefined; | ||
projectId: string; | ||
name: string; | ||
languages: string[]; | ||
name?: string | undefined; | ||
preserveWhitespace?: boolean | null | undefined; | ||
@@ -52,4 +52,4 @@ checkUrls?: boolean | null | undefined; | ||
projectId: string; | ||
name: string; | ||
languages: string[]; | ||
name?: string | undefined; | ||
preserveWhitespace?: boolean | null | undefined; | ||
@@ -61,4 +61,4 @@ checkUrls?: boolean | null | undefined; | ||
projectId: string; | ||
name: string; | ||
languages: string[]; | ||
name?: string | undefined; | ||
preserveWhitespace?: boolean | null | undefined; | ||
@@ -65,0 +65,0 @@ checkUrls?: boolean | null | undefined; |
@@ -5,3 +5,3 @@ import { z } from 'zod'; | ||
projectId: projectIdSchema, | ||
name: stringSchema, | ||
name: stringSchema.optional(), | ||
preserveWhitespace: z.boolean().optional().nullable(), | ||
@@ -8,0 +8,0 @@ checkUrls: z.boolean().optional().nullable(), |
@@ -27,8 +27,8 @@ import { z } from 'zod'; | ||
sortKey: string; | ||
entity?: string | undefined; | ||
description?: string | undefined; | ||
immutable?: boolean | undefined; | ||
maxCharacters?: number | undefined; | ||
pointer?: string | undefined; | ||
description?: string | undefined; | ||
category?: string | undefined; | ||
entity?: string | undefined; | ||
property?: string | undefined; | ||
@@ -42,8 +42,8 @@ images?: string[] | undefined; | ||
sortKey: string; | ||
entity?: string | undefined; | ||
description?: string | undefined; | ||
immutable?: boolean | undefined; | ||
maxCharacters?: number | undefined; | ||
pointer?: string | undefined; | ||
description?: string | undefined; | ||
category?: string | undefined; | ||
entity?: string | undefined; | ||
property?: string | undefined; | ||
@@ -83,8 +83,8 @@ images?: string[] | undefined; | ||
sortKey: string; | ||
entity?: string | undefined; | ||
description?: string | undefined; | ||
immutable?: boolean | undefined; | ||
maxCharacters?: number | undefined; | ||
pointer?: string | undefined; | ||
description?: string | undefined; | ||
category?: string | undefined; | ||
entity?: string | undefined; | ||
property?: string | undefined; | ||
@@ -98,8 +98,8 @@ images?: string[] | undefined; | ||
sortKey: string; | ||
entity?: string | undefined; | ||
description?: string | undefined; | ||
immutable?: boolean | undefined; | ||
maxCharacters?: number | undefined; | ||
pointer?: string | undefined; | ||
description?: string | undefined; | ||
category?: string | undefined; | ||
entity?: string | undefined; | ||
property?: string | undefined; | ||
@@ -119,8 +119,8 @@ images?: string[] | undefined; | ||
sortKey: string; | ||
entity?: string | undefined; | ||
description?: string | undefined; | ||
immutable?: boolean | undefined; | ||
maxCharacters?: number | undefined; | ||
pointer?: string | undefined; | ||
description?: string | undefined; | ||
category?: string | undefined; | ||
entity?: string | undefined; | ||
property?: string | undefined; | ||
@@ -142,8 +142,8 @@ images?: string[] | undefined; | ||
sortKey: string; | ||
entity?: string | undefined; | ||
description?: string | undefined; | ||
immutable?: boolean | undefined; | ||
maxCharacters?: number | undefined; | ||
pointer?: string | undefined; | ||
description?: string | undefined; | ||
category?: string | undefined; | ||
entity?: string | undefined; | ||
property?: string | undefined; | ||
@@ -155,11 +155,14 @@ images?: string[] | undefined; | ||
hash: string; | ||
wc?: number | undefined; | ||
edit?: string | null | undefined; | ||
audited?: boolean | undefined; | ||
wc?: number | undefined; | ||
lastChanged?: unknown; | ||
}>; | ||
export type StringLocalized = z.infer<typeof stringLocalizedSchema>; | ||
export declare const stringLocalizedSchema: z.ZodObject<{ | ||
export declare const stringLocalizedSchema: z.ZodObject<z.objectUtil.extendShape<{ | ||
projectId: z.ZodString; | ||
branchId: z.ZodString; | ||
edit: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
audited: z.ZodOptional<z.ZodBoolean>; | ||
hash: z.ZodString; | ||
wc: z.ZodDefault<z.ZodNumber>; | ||
@@ -184,8 +187,8 @@ data: z.ZodObject<{ | ||
sortKey: string; | ||
entity?: string | undefined; | ||
description?: string | undefined; | ||
immutable?: boolean | undefined; | ||
maxCharacters?: number | undefined; | ||
pointer?: string | undefined; | ||
description?: string | undefined; | ||
category?: string | undefined; | ||
entity?: string | undefined; | ||
property?: string | undefined; | ||
@@ -199,8 +202,8 @@ images?: string[] | undefined; | ||
sortKey: string; | ||
entity?: string | undefined; | ||
description?: string | undefined; | ||
immutable?: boolean | undefined; | ||
maxCharacters?: number | undefined; | ||
pointer?: string | undefined; | ||
description?: string | undefined; | ||
category?: string | undefined; | ||
entity?: string | undefined; | ||
property?: string | undefined; | ||
@@ -211,8 +214,6 @@ images?: string[] | undefined; | ||
}>; | ||
edit: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
audited: z.ZodOptional<z.ZodBoolean>; | ||
hash: z.ZodString; | ||
lastChanged: z.ZodOptional<z.ZodEffects<z.ZodDate, Date, unknown>>; | ||
}, { | ||
l10n: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; | ||
}, "strip", z.ZodTypeAny, { | ||
}>, "strip", z.ZodTypeAny, { | ||
projectId: string; | ||
@@ -225,8 +226,8 @@ branchId: string; | ||
sortKey: string; | ||
entity?: string | undefined; | ||
description?: string | undefined; | ||
immutable?: boolean | undefined; | ||
maxCharacters?: number | undefined; | ||
pointer?: string | undefined; | ||
description?: string | undefined; | ||
category?: string | undefined; | ||
entity?: string | undefined; | ||
property?: string | undefined; | ||
@@ -238,6 +239,6 @@ images?: string[] | undefined; | ||
hash: string; | ||
l10n?: Record<string, string> | undefined; | ||
edit?: string | null | undefined; | ||
audited?: boolean | undefined; | ||
lastChanged?: Date | undefined; | ||
l10n?: Record<string, string> | undefined; | ||
}, { | ||
@@ -250,8 +251,8 @@ projectId: string; | ||
sortKey: string; | ||
entity?: string | undefined; | ||
description?: string | undefined; | ||
immutable?: boolean | undefined; | ||
maxCharacters?: number | undefined; | ||
pointer?: string | undefined; | ||
description?: string | undefined; | ||
category?: string | undefined; | ||
entity?: string | undefined; | ||
property?: string | undefined; | ||
@@ -264,6 +265,6 @@ images?: string[] | undefined; | ||
wc?: number | undefined; | ||
l10n?: Record<string, string> | undefined; | ||
edit?: string | null | undefined; | ||
audited?: boolean | undefined; | ||
lastChanged?: unknown; | ||
l10n?: Record<string, string> | undefined; | ||
}>; | ||
@@ -292,8 +293,8 @@ export type StringsPut = z.infer<typeof stringsPutSchema>; | ||
sortKey: string; | ||
entity?: string | undefined; | ||
description?: string | undefined; | ||
immutable?: boolean | undefined; | ||
maxCharacters?: number | undefined; | ||
pointer?: string | undefined; | ||
description?: string | undefined; | ||
category?: string | undefined; | ||
entity?: string | undefined; | ||
property?: string | undefined; | ||
@@ -307,8 +308,8 @@ images?: string[] | undefined; | ||
sortKey: string; | ||
entity?: string | undefined; | ||
description?: string | undefined; | ||
immutable?: boolean | undefined; | ||
maxCharacters?: number | undefined; | ||
pointer?: string | undefined; | ||
description?: string | undefined; | ||
category?: string | undefined; | ||
entity?: string | undefined; | ||
property?: string | undefined; | ||
@@ -325,8 +326,8 @@ images?: string[] | undefined; | ||
sortKey: string; | ||
entity?: string | undefined; | ||
description?: string | undefined; | ||
immutable?: boolean | undefined; | ||
maxCharacters?: number | undefined; | ||
pointer?: string | undefined; | ||
description?: string | undefined; | ||
category?: string | undefined; | ||
entity?: string | undefined; | ||
property?: string | undefined; | ||
@@ -344,8 +345,8 @@ images?: string[] | undefined; | ||
sortKey: string; | ||
entity?: string | undefined; | ||
description?: string | undefined; | ||
immutable?: boolean | undefined; | ||
maxCharacters?: number | undefined; | ||
pointer?: string | undefined; | ||
description?: string | undefined; | ||
category?: string | undefined; | ||
entity?: string | undefined; | ||
property?: string | undefined; | ||
@@ -362,5 +363,8 @@ images?: string[] | undefined; | ||
commitNumber: z.ZodNumber; | ||
strings: z.ZodArray<z.ZodObject<{ | ||
strings: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{ | ||
projectId: z.ZodString; | ||
branchId: z.ZodString; | ||
edit: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
audited: z.ZodOptional<z.ZodBoolean>; | ||
hash: z.ZodString; | ||
wc: z.ZodDefault<z.ZodNumber>; | ||
@@ -385,8 +389,8 @@ data: z.ZodObject<{ | ||
sortKey: string; | ||
entity?: string | undefined; | ||
description?: string | undefined; | ||
immutable?: boolean | undefined; | ||
maxCharacters?: number | undefined; | ||
pointer?: string | undefined; | ||
description?: string | undefined; | ||
category?: string | undefined; | ||
entity?: string | undefined; | ||
property?: string | undefined; | ||
@@ -400,8 +404,8 @@ images?: string[] | undefined; | ||
sortKey: string; | ||
entity?: string | undefined; | ||
description?: string | undefined; | ||
immutable?: boolean | undefined; | ||
maxCharacters?: number | undefined; | ||
pointer?: string | undefined; | ||
description?: string | undefined; | ||
category?: string | undefined; | ||
entity?: string | undefined; | ||
property?: string | undefined; | ||
@@ -412,8 +416,6 @@ images?: string[] | undefined; | ||
}>; | ||
edit: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
audited: z.ZodOptional<z.ZodBoolean>; | ||
hash: z.ZodString; | ||
lastChanged: z.ZodOptional<z.ZodEffects<z.ZodDate, Date, unknown>>; | ||
}, { | ||
l10n: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; | ||
}, "strip", z.ZodTypeAny, { | ||
}>, "strip", z.ZodTypeAny, { | ||
projectId: string; | ||
@@ -426,8 +428,8 @@ branchId: string; | ||
sortKey: string; | ||
entity?: string | undefined; | ||
description?: string | undefined; | ||
immutable?: boolean | undefined; | ||
maxCharacters?: number | undefined; | ||
pointer?: string | undefined; | ||
description?: string | undefined; | ||
category?: string | undefined; | ||
entity?: string | undefined; | ||
property?: string | undefined; | ||
@@ -439,6 +441,6 @@ images?: string[] | undefined; | ||
hash: string; | ||
l10n?: Record<string, string> | undefined; | ||
edit?: string | null | undefined; | ||
audited?: boolean | undefined; | ||
lastChanged?: Date | undefined; | ||
l10n?: Record<string, string> | undefined; | ||
}, { | ||
@@ -451,8 +453,8 @@ projectId: string; | ||
sortKey: string; | ||
entity?: string | undefined; | ||
description?: string | undefined; | ||
immutable?: boolean | undefined; | ||
maxCharacters?: number | undefined; | ||
pointer?: string | undefined; | ||
description?: string | undefined; | ||
category?: string | undefined; | ||
entity?: string | undefined; | ||
property?: string | undefined; | ||
@@ -465,6 +467,6 @@ images?: string[] | undefined; | ||
wc?: number | undefined; | ||
l10n?: Record<string, string> | undefined; | ||
edit?: string | null | undefined; | ||
audited?: boolean | undefined; | ||
lastChanged?: unknown; | ||
l10n?: Record<string, string> | undefined; | ||
}>, "many">; | ||
@@ -481,8 +483,8 @@ }, "strip", z.ZodTypeAny, { | ||
sortKey: string; | ||
entity?: string | undefined; | ||
description?: string | undefined; | ||
immutable?: boolean | undefined; | ||
maxCharacters?: number | undefined; | ||
pointer?: string | undefined; | ||
description?: string | undefined; | ||
category?: string | undefined; | ||
entity?: string | undefined; | ||
property?: string | undefined; | ||
@@ -494,6 +496,6 @@ images?: string[] | undefined; | ||
hash: string; | ||
l10n?: Record<string, string> | undefined; | ||
edit?: string | null | undefined; | ||
audited?: boolean | undefined; | ||
lastChanged?: Date | undefined; | ||
l10n?: Record<string, string> | undefined; | ||
}[]; | ||
@@ -510,8 +512,8 @@ commitNumber: number; | ||
sortKey: string; | ||
entity?: string | undefined; | ||
description?: string | undefined; | ||
immutable?: boolean | undefined; | ||
maxCharacters?: number | undefined; | ||
pointer?: string | undefined; | ||
description?: string | undefined; | ||
category?: string | undefined; | ||
entity?: string | undefined; | ||
property?: string | undefined; | ||
@@ -524,6 +526,6 @@ images?: string[] | undefined; | ||
wc?: number | undefined; | ||
l10n?: Record<string, string> | undefined; | ||
edit?: string | null | undefined; | ||
audited?: boolean | undefined; | ||
lastChanged?: unknown; | ||
l10n?: Record<string, string> | undefined; | ||
}[]; | ||
@@ -530,0 +532,0 @@ commitNumber: number; |
@@ -36,16 +36,16 @@ import { z } from 'zod'; | ||
_id: string; | ||
isRoot?: boolean | undefined; | ||
canAudit?: boolean | undefined; | ||
canCommit?: boolean | undefined; | ||
canTranslate?: boolean | undefined; | ||
isRoot?: boolean | undefined; | ||
password?: string | undefined; | ||
}, { | ||
username: string; | ||
_id?: unknown; | ||
isRoot?: unknown; | ||
canAudit?: unknown; | ||
canCommit?: unknown; | ||
canTranslate?: unknown; | ||
_id?: unknown; | ||
isRoot?: unknown; | ||
password?: string | undefined; | ||
}>; | ||
//# sourceMappingURL=types.users.d.ts.map |
@@ -16,6 +16,6 @@ import { type PostedUser } from './types.users.js'; | ||
_id: string; | ||
isRoot?: boolean | undefined; | ||
canAudit?: boolean | undefined; | ||
canCommit?: boolean | undefined; | ||
canTranslate?: boolean | undefined; | ||
isRoot?: boolean | undefined; | ||
password?: string | undefined; | ||
@@ -22,0 +22,0 @@ }; |
@@ -7,3 +7,3 @@ import { marked } from 'marked'; | ||
} | ||
const textPartsPattern = /(\n|\bhttps?:\/\/[a-zA-Z0-9_.-]+(?::\d+)?|&[a-z]+;|&#x?[a-f0-9]+;|\d+(?:st|th|rd)|[<>(){}[\]:;|@#,!?+/*="“”`\s&~-]|['’](?:s|ve|d|ll|re)\b|\.{3}|\.[^A-Za-z]|\.$|\b[\d]+(?:\.\d+)?%?)/iu; | ||
const textPartsPattern = /(\n|\bhttps?:\/\/[a-zA-Z0-9_.-]+(?::\d+)?|\d+(?:st|th|rd)|n(?:['’]|')t|(?:['’]|')(?:s|m|ve|d|ll|re)\b|\.{3}|\.[^A-Za-z]|\.$|\b[\d]+(?:\.\d+)?%?|&[a-z]+;|&#x?[a-f0-9]+;|[<>(){}[\]:;|@#,!?+/*="“”`\s&~-])/iu; | ||
export const variablePattern = /(\{{1,3}[a-zA-Z0-9_]+\}{1,3}|\{{2,3}[^{}]+\}{2,3})/; | ||
@@ -10,0 +10,0 @@ export function parseText(text, offset = 0) { |
{ | ||
"name": "@bscotch/cl2-string-server-shared", | ||
"version": "0.9.0", | ||
"version": "0.10.0", | ||
"description": "", | ||
@@ -29,6 +29,6 @@ "keywords": [], | ||
"dependencies": { | ||
"marked": "12.0.0", | ||
"marked": "14.1.2", | ||
"nspell": "2.1.5", | ||
"sharp": "0.33.2", | ||
"zod": "^3.22.4" | ||
"sharp": "0.33.5", | ||
"zod": "^3.23.8" | ||
}, | ||
@@ -38,3 +38,3 @@ "devDependencies": { | ||
"source-map-support": "0.5.21", | ||
"typescript": "^5.4.0-beta" | ||
"typescript": "^5.6.2" | ||
}, | ||
@@ -46,5 +46,5 @@ "publishConfig": { | ||
"build": "tsc", | ||
"test": "node -r source-map-support/register --test dist", | ||
"watch": "tsc -w" | ||
"dev": "tsc -w", | ||
"test": "node -r source-map-support/register --test dist" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1393553
55031
+ Added@emnapi/runtime@1.3.1(transitive)
+ Added@img/sharp-darwin-arm64@0.33.5(transitive)
+ Added@img/sharp-darwin-x64@0.33.5(transitive)
+ Added@img/sharp-libvips-darwin-arm64@1.0.4(transitive)
+ Added@img/sharp-libvips-darwin-x64@1.0.4(transitive)
+ Added@img/sharp-libvips-linux-arm@1.0.5(transitive)
+ Added@img/sharp-libvips-linux-arm64@1.0.4(transitive)
+ Added@img/sharp-libvips-linux-s390x@1.0.4(transitive)
+ Added@img/sharp-libvips-linux-x64@1.0.4(transitive)
+ Added@img/sharp-libvips-linuxmusl-arm64@1.0.4(transitive)
+ Added@img/sharp-libvips-linuxmusl-x64@1.0.4(transitive)
+ Added@img/sharp-linux-arm@0.33.5(transitive)
+ Added@img/sharp-linux-arm64@0.33.5(transitive)
+ Added@img/sharp-linux-s390x@0.33.5(transitive)
+ Added@img/sharp-linux-x64@0.33.5(transitive)
+ Added@img/sharp-linuxmusl-arm64@0.33.5(transitive)
+ Added@img/sharp-linuxmusl-x64@0.33.5(transitive)
+ Added@img/sharp-wasm32@0.33.5(transitive)
+ Added@img/sharp-win32-ia32@0.33.5(transitive)
+ Added@img/sharp-win32-x64@0.33.5(transitive)
+ Addedmarked@14.1.2(transitive)
+ Addedsharp@0.33.5(transitive)
- Removed@emnapi/runtime@0.45.0(transitive)
- Removed@img/sharp-darwin-arm64@0.33.2(transitive)
- Removed@img/sharp-darwin-x64@0.33.2(transitive)
- Removed@img/sharp-libvips-darwin-arm64@1.0.1(transitive)
- Removed@img/sharp-libvips-darwin-x64@1.0.1(transitive)
- Removed@img/sharp-libvips-linux-arm@1.0.1(transitive)
- Removed@img/sharp-libvips-linux-arm64@1.0.1(transitive)
- Removed@img/sharp-libvips-linux-s390x@1.0.1(transitive)
- Removed@img/sharp-libvips-linux-x64@1.0.1(transitive)
- Removed@img/sharp-libvips-linuxmusl-arm64@1.0.1(transitive)
- Removed@img/sharp-libvips-linuxmusl-x64@1.0.1(transitive)
- Removed@img/sharp-linux-arm@0.33.2(transitive)
- Removed@img/sharp-linux-arm64@0.33.2(transitive)
- Removed@img/sharp-linux-s390x@0.33.2(transitive)
- Removed@img/sharp-linux-x64@0.33.2(transitive)
- Removed@img/sharp-linuxmusl-arm64@0.33.2(transitive)
- Removed@img/sharp-linuxmusl-x64@0.33.2(transitive)
- Removed@img/sharp-wasm32@0.33.2(transitive)
- Removed@img/sharp-win32-ia32@0.33.2(transitive)
- Removed@img/sharp-win32-x64@0.33.2(transitive)
- Removedmarked@12.0.0(transitive)
- Removedsharp@0.33.2(transitive)
Updatedmarked@14.1.2
Updatedsharp@0.33.5
Updatedzod@^3.23.8