userpath-js 0.0.11 → 0.0.13

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.
@@ -37,8 +37,10 @@ export declare const userpath: {
37
37
  * app.listen(3000);
38
38
  * ```
39
39
  */
40
- fetch(request: Request, { serverUrl, }?: {
40
+ fetch(request: Request, { serverUrl, debug, version, }?: {
41
41
  serverUrl?: string;
42
+ debug?: boolean;
43
+ version?: number;
42
44
  }): Promise<any>;
43
45
  };
44
46
  export * from './utils';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/server/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,QAAQ;IACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;mBAEO,OAAO,mBAGb;QACF,SAAS,CAAC,EAAE,MAAM,CAAC;KACnB;CAsDF,CAAC;AAEF,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/server/index.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,QAAQ;IACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;mBAEO,OAAO,mCAKb;QACF,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,CAAC;KACjB;CA0HF,CAAC;AAEF,cAAc,SAAS,CAAC"}
@@ -1,6 +1,7 @@
1
+ export declare function formatNumberSafely(value: string | number | undefined): number | undefined;
1
2
  /**
2
- * Normalizes potentially malformed UTF-8 strings from Cloudflare headers
3
- * Handles cases like "Vitória" -> "Vitória"
3
+ * Transform a string encoded in ISO-8859-1 to UTF-8
4
+ * Usually used to decode strings from headers since they are encoded in ISO-8859-1
4
5
  */
5
- export declare function normalizeUTF8String(str: string): string;
6
+ export declare function decodeISO8859(value: string): string;
6
7
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/server/utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CA4BvD"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/server/utils.ts"],"names":[],"mappings":"AAEA,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,sBAMpE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAiBnD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "userpath-js",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/types/client/src/index.d.ts",
@@ -34,5 +34,8 @@
34
34
  "devDependencies": {
35
35
  "bun-types": "latest",
36
36
  "typescript": "^5.0.0"
37
+ },
38
+ "dependencies": {
39
+ "iconv-lite": "^0.6.3"
37
40
  }
38
41
  }