@paroicms/public-server-lib 0.56.1 → 0.56.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,3 +5,4 @@ export declare class ApiError extends Error {
5
5
  constructor(status: ApiErrorStatus);
6
6
  constructor(message: string, status: ApiErrorStatus);
7
7
  }
8
+ //# sourceMappingURL=api-error-handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-error-handler.d.ts","sourceRoot":"","sources":["../src/api-error-handler.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAE3E,qBAAa,QAAS,SAAQ,KAAK;IACjC,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAChC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;gBAEjB,MAAM,EAAE,cAAc;gBACtB,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc;CAQpD"}
@@ -6,3 +6,4 @@ export declare function stripHtmlTags(html: string, { blockSeparator }?: {
6
6
  blockSeparator?: string;
7
7
  }): string;
8
8
  export declare function makeStylesheetLinkAsyncTag(href: string): string;
9
+ //# sourceMappingURL=html-helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"html-helpers.d.ts","sourceRoot":"","sources":["../src/html-helpers.ts"],"names":[],"mappings":"AA4DA,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,OAAO,GAAE;IAAE,YAAY,CAAC,EAAE,OAAO,CAAA;CAAO,GACvC,MAAM,CAQR;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,UAEzC;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,cAAc,EAAE,GAAE;IAAE,cAAc,CAAC,EAAE,MAAM,CAAA;CAAO,UAmB/F;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAI/D"}
package/dist/index.d.ts CHANGED
@@ -14,3 +14,4 @@ export * from "./server-image-cache-engine.helper.js";
14
14
  export * from "./simple-i18n.js";
15
15
  export * from "./site-schema-public-helpers.js";
16
16
  export * from "./typeonly-validator.js";
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,2CAA2C,CAAC;AAC/D,mBAAmB,sCAAsC,CAAC;AAC1D,mBAAmB,yCAAyC,CAAC;AAC7D,mBAAmB,mCAAmC,CAAC;AACvD,mBAAmB,oCAAoC,CAAC;AACxD,mBAAmB,qCAAqC,CAAC;AACzD,mBAAmB,sCAAsC,CAAC;AAC1D,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uCAAuC,CAAC;AACtD,cAAc,kBAAkB,CAAC;AACjC,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC"}
@@ -2,3 +2,4 @@ export declare function newLinesToBr(text: string): string;
2
2
  export declare function decodeHtmlEntities(str: string): string;
3
3
  export declare function replaceLinks(html: string): string;
4
4
  export declare function insertBlockSeparators(html: string, sep: string): string;
5
+ //# sourceMappingURL=internal-html-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal-html-utils.d.ts","sourceRoot":"","sources":["../../src/internal/internal-html-utils.ts"],"names":[],"mappings":"AA6BA,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,UAK7C;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,UAIxC;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,UAI9D"}
@@ -15,3 +15,4 @@ export declare function extractLoadDescriptor(val: unknown): LoadDescriptor | un
15
15
  export declare function extractOneDocumentLoadDescriptor(val: unknown): OneDocumentLoadDescriptor | undefined;
16
16
  export declare function extractDocumentsLoadDescriptor(val: unknown): DocumentsLoadDescriptor | undefined;
17
17
  export declare function mergeListDescriptor<T extends ListBaseDescriptor>(base: T, newValues: ListBaseDescriptor): T;
18
+ //# sourceMappingURL=load-descriptors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load-descriptors.d.ts","sourceRoot":"","sources":["../src/load-descriptors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,kBAAkB,EAClB,cAAc,EACd,yBAAyB,EAC1B,MAAM,mCAAmC,CAAC;AAI3C,MAAM,WAAW,kBAAkB;IACjC,oBAAoB,EAAE,qBAAqB,CAAC;CAC7C;AAED,MAAM,WAAW,6BAA6B;IAC5C,oBAAoB,EAAE,6BAA6B,CAAC;CACrD;AAED,MAAM,WAAW,2BAA2B;IAC1C,oBAAoB,EAAE,0BAA0B,CAAC;CAClD;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EACpC,GAAG,EAAE,CAAC,EACN,cAAc,EAAE,yBAAyB,GACxC,CAAC,GAAG,6BAA6B,CAAC;AACrC,wBAAgB,oBAAoB,CAAC,CAAC,EACpC,GAAG,EAAE,CAAC,EACN,cAAc,EAAE,uBAAuB,GACtC,CAAC,GAAG,2BAA2B,CAAC;AACnC,wBAAgB,oBAAoB,CAAC,CAAC,EACpC,GAAG,EAAE,CAAC,EACN,cAAc,EAAE,cAAc,GAC7B,CAAC,GAAG,kBAAkB,CAAC;AAM1B,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,OAAO,GAAG,cAAc,GAAG,SAAS,CAK9E;AAED,wBAAgB,gCAAgC,CAC9C,GAAG,EAAE,OAAO,GACX,yBAAyB,GAAG,SAAS,CAIvC;AAED,wBAAgB,8BAA8B,CAAC,GAAG,EAAE,OAAO,GAAG,uBAAuB,GAAG,SAAS,CAIhG;AAED,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,kBAAkB,EAC9D,IAAI,EAAE,CAAC,EACP,SAAS,EAAE,kBAAkB,GAC5B,CAAC,CAeH"}
@@ -20,3 +20,4 @@ export declare function getHandleOfFieldOnNode({ siteNodeId, nodeId, fieldName,
20
20
  * @param fieldName The name of the site field (e.g., "favicon", "ogImage", "logo")
21
21
  */
22
22
  export declare function getHandleOfSiteField(fieldName: string): string;
23
+ //# sourceMappingURL=media-handle-helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"media-handle-helpers.d.ts","sourceRoot":"","sources":["../src/media-handle-helpers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAE/D;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,UAAU,EACV,MAAM,EACN,SAAS,GACV,EAAE;IACD,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB,GAAG,MAAM,CAGT;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE9D"}
@@ -1,2 +1,3 @@
1
1
  export declare function generateObfuscatedHtml(inputString: string): string;
2
2
  export declare function obfuscateAsHtmlLink(phoneOrEmail: string): string;
3
+ //# sourceMappingURL=obfuscate.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"obfuscate.helper.d.ts","sourceRoot":"","sources":["../src/obfuscate.helper.ts"],"names":[],"mappings":"AAEA,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM,UAGzD;AAED,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAEhE"}
@@ -16,3 +16,4 @@ export declare function renderedToRawSize(renderedSize: {
16
16
  rawWidth: number;
17
17
  rawHeight: number;
18
18
  };
19
+ //# sourceMappingURL=server-image-cache-engine.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server-image-cache-engine.helper.d.ts","sourceRoot":"","sources":["../src/server-image-cache-engine.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,UAAU,EAAE,KAAK,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAE7F,wBAAgB,iBAAiB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAGvE;AAED,wBAAgB,yBAAyB,CACvC,gBAAgB,EAAE,QAAQ,EAC1B,UAAU,EAAE,MAAM,GACjB,QAAQ,CAEV;AAED,wBAAgB,2BAA2B,CACzC,kBAAkB,EAAE,UAAU,EAC9B,UAAU,EAAE,MAAM,GACjB,UAAU,CAeZ;AAED,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,EACnD,UAAU,EAAE,MAAM,GACjB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAInC;AAED,wBAAgB,iBAAiB,CAC/B,YAAY,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EAC/C,UAAU,EAAE,MAAM,GACjB;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAIzC"}
@@ -26,3 +26,4 @@ export declare function createSimpleTranslator(options: {
26
26
  config?: SimpleTranslatorConfig;
27
27
  }): SimpleTranslator;
28
28
  export declare function ensureLanguagesFormat(languages: string[]): string[];
29
+ //# sourceMappingURL=simple-i18n.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simple-i18n.d.ts","sourceRoot":"","sources":["../src/simple-i18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAIrF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAEpE,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,CAAC,OAAO,EAAE,sBAAsB,KAAK,MAAM,CAAC;CACxD;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,sBAAsB;IACrC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED,wBAAsB,iCAAiC,CAAC,OAAO,EAAE;IAC/D,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,MAAM,CAAC,EAAE,sBAAsB,CAAC;CACjC,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAM5B;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE;IAC9C,MAAM,EACF;QACE,CAAC,QAAQ,EAAE,MAAM,GAAG,cAAc,CAAC;KACpC,GACD,eAAe,CAAC;IACpB,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IAChC,MAAM,CAAC,EAAE,sBAAsB,CAAC;CACjC,GAAG,gBAAgB,CAMnB;AAwID,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAYnE"}
@@ -1,3 +1,4 @@
1
1
  import type { ScSorting } from "@paroicms/public-anywhere-lib";
2
2
  import type { JtSorting } from "../typeonly/site-schema-json-types.js";
3
3
  export declare function parseSorting(val: JtSorting): ScSorting;
4
+ //# sourceMappingURL=site-schema-public-helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"site-schema-public-helpers.d.ts","sourceRoot":"","sources":["../src/site-schema-public-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,+BAA+B,CAAC;AAC3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAEvE,wBAAgB,YAAY,CAAC,GAAG,EAAE,SAAS,GAAG,SAAS,CActD"}
@@ -8,3 +8,4 @@ export declare const jtDir: string;
8
8
  */
9
9
  export declare const docsDir: string;
10
10
  export declare const jsonTypeValidator: import("@typeonly/validator").TypeOnlyValidator;
11
+ //# sourceMappingURL=typeonly-validator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typeonly-validator.d.ts","sourceRoot":"","sources":["../src/typeonly-validator.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,uBAAuB,OAAO,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,KAAK,QAA+B,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,OAAO,QAA2B,CAAC;AAEhD,eAAO,MAAM,iBAAiB,iDAE5B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paroicms/public-server-lib",
3
- "version": "0.56.1",
3
+ "version": "0.56.2",
4
4
  "description": "Common utilitaries for paroicms plugins (backend side).",
5
5
  "author": "Paroi Team",
6
6
  "repository": {
@@ -14,6 +14,7 @@
14
14
  "types": "dist/index.d.ts",
15
15
  "scripts": {
16
16
  "build": "npm run typeonly && npm run tsc",
17
+ "build:ci": "npm run typeonly && tsc --declarationMap false",
17
18
  "tsc": "tsc",
18
19
  "typeonly": "typeonly --bundle dist/types.to.json --source-dir typeonly",
19
20
  "test:watch": "vitest",
@@ -22,18 +23,18 @@
22
23
  "dev": "tsc --watch --preserveWatchOutput"
23
24
  },
24
25
  "dependencies": {
25
- "@paroicms/internal-anywhere-lib": "1.39.2",
26
- "@paroicms/public-anywhere-lib": "0.43.0",
27
- "@paroicms/script-lib": "0.3.21",
26
+ "@paroicms/internal-anywhere-lib": "1.39.3",
27
+ "@paroicms/public-anywhere-lib": "0.43.1",
28
+ "@paroicms/script-lib": "0.3.22",
28
29
  "@typeonly/validator": "~1.1.2",
29
30
  "arktype": "~2.2.0"
30
31
  },
31
32
  "devDependencies": {
32
- "@types/node": "~24.11.0",
33
+ "@types/node": "~24.12.2",
33
34
  "rimraf": "~6.1.3",
34
35
  "typeonly": "~1.1.3",
35
- "typescript": "~5.9.3",
36
- "vitest": "~4.0.18"
36
+ "typescript": "~6.0.2",
37
+ "vitest": "~4.1.2"
37
38
  },
38
39
  "files": [
39
40
  "dist",