@milaboratories/pframes-rs-serv 1.1.18 → 1.1.20

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.
Files changed (82) hide show
  1. package/dist/export.cjs +16 -17
  2. package/dist/export.cjs.map +1 -1
  3. package/dist/export.d.ts +6 -2
  4. package/dist/export.d.ts.map +1 -1
  5. package/dist/export.js +16 -15
  6. package/dist/export.js.map +1 -1
  7. package/dist/fs-store.cjs +83 -87
  8. package/dist/fs-store.cjs.map +1 -1
  9. package/dist/fs-store.d.ts +14 -10
  10. package/dist/fs-store.d.ts.map +1 -1
  11. package/dist/fs-store.js +83 -85
  12. package/dist/fs-store.js.map +1 -1
  13. package/dist/handler.cjs +132 -157
  14. package/dist/handler.cjs.map +1 -1
  15. package/dist/handler.d.ts +8 -4
  16. package/dist/handler.d.ts.map +1 -1
  17. package/dist/handler.js +132 -155
  18. package/dist/handler.js.map +1 -1
  19. package/dist/index.cjs +13 -18
  20. package/dist/index.d.ts +6 -6
  21. package/dist/index.js +6 -6
  22. package/dist/parquet-server.cjs +95 -101
  23. package/dist/parquet-server.cjs.map +1 -1
  24. package/dist/parquet-server.d.ts +16 -12
  25. package/dist/parquet-server.d.ts.map +1 -1
  26. package/dist/parquet-server.js +95 -98
  27. package/dist/parquet-server.js.map +1 -1
  28. package/dist/serve.cjs +98 -94
  29. package/dist/serve.cjs.map +1 -1
  30. package/dist/serve.d.ts +11 -2
  31. package/dist/serve.d.ts.map +1 -1
  32. package/dist/serve.js +98 -92
  33. package/dist/serve.js.map +1 -1
  34. package/dist/utils/etag.cjs +5 -7
  35. package/dist/utils/etag.cjs.map +1 -1
  36. package/dist/utils/etag.js +5 -5
  37. package/dist/utils/etag.js.map +1 -1
  38. package/dist/utils/filename.cjs +9 -11
  39. package/dist/utils/filename.cjs.map +1 -1
  40. package/dist/utils/filename.js +9 -9
  41. package/dist/utils/filename.js.map +1 -1
  42. package/dist/utils/headers.cjs +28 -21
  43. package/dist/utils/headers.cjs.map +1 -1
  44. package/dist/utils/headers.js +28 -19
  45. package/dist/utils/headers.js.map +1 -1
  46. package/dist/utils/method.cjs +7 -7
  47. package/dist/utils/method.cjs.map +1 -1
  48. package/dist/utils/method.js +7 -5
  49. package/dist/utils/method.js.map +1 -1
  50. package/dist/utils/options.cjs +111 -134
  51. package/dist/utils/options.cjs.map +1 -1
  52. package/dist/utils/options.js +111 -132
  53. package/dist/utils/options.js.map +1 -1
  54. package/dist/utils/range.cjs +26 -31
  55. package/dist/utils/range.cjs.map +1 -1
  56. package/dist/utils/range.js +26 -29
  57. package/dist/utils/range.js.map +1 -1
  58. package/dist/utils/status.cjs +17 -17
  59. package/dist/utils/status.cjs.map +1 -1
  60. package/dist/utils/status.js +17 -15
  61. package/dist/utils/status.js.map +1 -1
  62. package/package.json +4 -4
  63. package/src/parquet-server.ts +16 -2
  64. package/dist/index.cjs.map +0 -1
  65. package/dist/index.d.ts.map +0 -1
  66. package/dist/index.js.map +0 -1
  67. package/dist/utils/etag.d.ts +0 -15
  68. package/dist/utils/etag.d.ts.map +0 -1
  69. package/dist/utils/filename.d.ts +0 -4
  70. package/dist/utils/filename.d.ts.map +0 -1
  71. package/dist/utils/headers.d.ts +0 -31
  72. package/dist/utils/headers.d.ts.map +0 -1
  73. package/dist/utils/index.d.ts +0 -8
  74. package/dist/utils/index.d.ts.map +0 -1
  75. package/dist/utils/method.d.ts +0 -6
  76. package/dist/utils/method.d.ts.map +0 -1
  77. package/dist/utils/options.d.ts +0 -64
  78. package/dist/utils/options.d.ts.map +0 -1
  79. package/dist/utils/range.d.ts +0 -4
  80. package/dist/utils/range.d.ts.map +0 -1
  81. package/dist/utils/status.d.ts +0 -17
  82. package/dist/utils/status.d.ts.map +0 -1
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,15 +0,0 @@
1
- import type { Branded } from "@milaboratories/pl-model-common";
2
- import type { PFrameInternal } from "@milaboratories/pl-model-middle-layer";
3
- /**
4
- * See <https://datatracker.ietf.org/doc/html/rfc9110#section-8.8.3>
5
- *
6
- * Examples:
7
- *
8
- * ```text
9
- * ETag: "xyzzy"
10
- * ETag: W/"xyzzy"
11
- * ```
12
- */
13
- export type Etag = Branded<string, "Etag">;
14
- export declare function createETag(filename: PFrameInternal.ParquetFileName): Etag;
15
- //# sourceMappingURL=etag.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"etag.d.ts","sourceRoot":"","sources":["../../src/utils/etag.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAE5E;;;;;;;;;GASG;AACH,MAAM,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE3C,wBAAgB,UAAU,CAAC,QAAQ,EAAE,cAAc,CAAC,eAAe,GAAG,IAAI,CAIzE"}
@@ -1,4 +0,0 @@
1
- import type { PFrameInternal } from "@milaboratories/pl-model-middle-layer";
2
- import type { IncomingMessage } from "node:http";
3
- export declare function getFilenameFromUrl(request: IncomingMessage): PFrameInternal.ParquetFileName | null;
4
- //# sourceMappingURL=filename.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filename.d.ts","sourceRoot":"","sources":["../../src/utils/filename.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAIjD,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,eAAe,GAAG,IAAI,CAQvC"}
@@ -1,31 +0,0 @@
1
- /** HTTP header names used in the parquet server handler */
2
- export declare const HeaderName: {
3
- readonly Accept: "accept";
4
- readonly AcceptRanges: "accept-ranges";
5
- readonly Allow: "allow";
6
- readonly Authorization: "authorization";
7
- readonly CacheControl: "cache-control";
8
- readonly Connection: "connection";
9
- readonly ContentLength: "content-length";
10
- readonly ContentRange: "content-range";
11
- readonly ContentType: "content-type";
12
- readonly Date: "date";
13
- readonly ETag: "etag";
14
- readonly IfMatch: "if-match";
15
- readonly IfModifiedSince: "if-modified-since";
16
- readonly IfNoneMatch: "if-none-match";
17
- readonly IfUnmodifiedSince: "if-unmodified-since";
18
- readonly LastModified: "last-modified";
19
- readonly Range: "range";
20
- readonly WWWAuthenticate: "www-authenticate";
21
- };
22
- /** HTTP header values used in the parquet server handler */
23
- export declare const HeaderValue: {
24
- readonly AcceptRanges: "bytes";
25
- readonly Allow: "GET, HEAD";
26
- readonly CacheControl: "public, immutable, max-age=31536000";
27
- readonly Connection: "close";
28
- readonly ContentType: "application/octet-stream";
29
- readonly WWWAuthenticate: "Bearer realm=\"parquet-server\"";
30
- };
31
- //# sourceMappingURL=headers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"headers.d.ts","sourceRoot":"","sources":["../../src/utils/headers.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;CAmBb,CAAC;AAEX,4DAA4D;AAC5D,eAAO,MAAM,WAAW;;;;;;;CAOd,CAAC"}
@@ -1,8 +0,0 @@
1
- export * from "./filename";
2
- export * from "./etag";
3
- export * from "./headers";
4
- export * from "./options";
5
- export * from "./range";
6
- export * from "./method";
7
- export * from "./status";
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
@@ -1,6 +0,0 @@
1
- import type { PFrameInternal } from "@milaboratories/pl-model-middle-layer";
2
- import type { IncomingHttpHeaders } from "node:http";
3
- export declare function isGetOrHead(method: IncomingHttpHeaders["method"]): method is PFrameInternal.HttpMethod;
4
- export declare function isGet(method: PFrameInternal.HttpMethod): method is Extract<PFrameInternal.HttpMethod, "GET">;
5
- export declare function isHead(method: PFrameInternal.HttpMethod): method is Extract<PFrameInternal.HttpMethod, "HEAD">;
6
- //# sourceMappingURL=method.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/utils/method.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAErD,wBAAgB,WAAW,CACzB,MAAM,EAAE,mBAAmB,CAAC,QAAQ,CAAC,GACpC,MAAM,IAAI,cAAc,CAAC,UAAU,CAErC;AAED,wBAAgB,KAAK,CACnB,MAAM,EAAE,cAAc,CAAC,UAAU,GAChC,MAAM,IAAI,OAAO,CAAC,cAAc,CAAC,UAAU,EAAE,KAAK,CAAC,CAErD;AAED,wBAAgB,MAAM,CACpB,MAAM,EAAE,cAAc,CAAC,UAAU,GAChC,MAAM,IAAI,OAAO,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,CAAC,CAEtD"}
@@ -1,64 +0,0 @@
1
- import type { IncomingMessage } from "node:http";
2
- import type { Etag } from "./etag";
3
- export declare class Options {
4
- /**
5
- * See <https://datatracker.ietf.org/doc/html/rfc9110#name-if-match>
6
- *
7
- * Examples:
8
- *
9
- * ```text
10
- * If-Match: "xyzzy"
11
- * If-Match: "xyzzy", "r2d2xxxx", "c3piozzzz"
12
- * If-Match: *
13
- * ```
14
- */
15
- private ifMatch;
16
- /**
17
- * See <https://datatracker.ietf.org/doc/html/rfc9110#section-13.1.2>
18
- *
19
- * Examples:
20
- *
21
- * ```text
22
- * If-None-Match: "xyzzy"
23
- * If-None-Match: "xyzzy", "r2d2xxxx", "c3piozzzz"
24
- * If-None-Match: *
25
- * ```
26
- */
27
- private ifNoneMatch;
28
- /**
29
- * See <https://datatracker.ietf.org/doc/html/rfc9110#section-13.1.3>
30
- *
31
- * Examples:
32
- *
33
- * ```text
34
- * If-Modified-Since: Mon, 07 Jan 2002 19:43:36 GMT
35
- * ```
36
- */
37
- private ifModifiedSince;
38
- /**
39
- * See <https://datatracker.ietf.org/doc/html/rfc9110#section-13.1.4>
40
- *
41
- * Examples:
42
- *
43
- * ```text
44
- * If-Unmodified-Since: Mon, 07 Jan 2002 19:43:36 GMT
45
- * ```
46
- */
47
- private ifUnmodifiedSince;
48
- constructor(request: IncomingMessage);
49
- /**
50
- * RFC 9110 section 13.1.1: If-Match precondition evaluation
51
- * RFC 9110 section 13.1.4: If-Unmodified-Since precondition evaluation
52
- * See <https://datatracker.ietf.org/doc/html/rfc9110#section-13.1.1>
53
- * See <https://datatracker.ietf.org/doc/html/rfc9110#section-13.1.4>
54
- */
55
- preconditionFailed(etag: Etag, mtime: Date): boolean;
56
- /**
57
- * RFC 9110 section 13.1.2: If-None-Match precondition evaluation
58
- * RFC 9110 section 13.1.3: If-Modified-Since precondition evaluation
59
- * See <https://datatracker.ietf.org/doc/html/rfc9110#section-13.1.2>
60
- * See <https://datatracker.ietf.org/doc/html/rfc9110#section-13.1.3>
61
- */
62
- notModified(etag: Etag, mtime: Date): boolean;
63
- }
64
- //# sourceMappingURL=options.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/utils/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAmDnC,qBAAa,OAAO;IAClB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,OAAO,CAAmB;IAElC;;;;;;;;;;OAUG;IACH,OAAO,CAAC,WAAW,CAAmB;IAEtC;;;;;;;;OAQG;IACH,OAAO,CAAC,eAAe,CAAmB;IAE1C;;;;;;;;OAQG;IACH,OAAO,CAAC,iBAAiB,CAAmB;gBAEhC,OAAO,EAAE,eAAe;IAOpC;;;;;OAKG;IACH,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,GAAG,OAAO;IAcpD;;;;;OAKG;IACH,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,GAAG,OAAO;CAa9C"}
@@ -1,4 +0,0 @@
1
- import type { PFrameInternal } from "@milaboratories/pl-model-middle-layer";
2
- import type { IncomingMessage } from "node:http";
3
- export declare function parseRange(request: IncomingMessage): PFrameInternal.HttpRange | null | undefined;
4
- //# sourceMappingURL=range.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../src/utils/range.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEjD,wBAAgB,UAAU,CAAC,OAAO,EAAE,eAAe,GAAG,cAAc,CAAC,SAAS,GAAG,IAAI,GAAG,SAAS,CAkChG"}
@@ -1,17 +0,0 @@
1
- /** HTTP status codes used in the parquet server handler */
2
- export declare const StatusCode: {
3
- readonly Ok: 200;
4
- readonly PartialContent: 206;
5
- readonly NotModified: 304;
6
- readonly BadRequest: 400;
7
- readonly Unauthorized: 401;
8
- readonly NotFound: 404;
9
- readonly MethodNotAllowed: 405;
10
- readonly RequestTimeout: 408;
11
- readonly Gone: 410;
12
- readonly PreconditionFailed: 412;
13
- readonly RangeNotSatisfiable: 416;
14
- readonly InternalServerError: 500;
15
- readonly GatewayTimeout: 504;
16
- };
17
- //# sourceMappingURL=status.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/utils/status.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,eAAO,MAAM,UAAU;;;;;;;;;;;;;;CAcb,CAAC"}