@puth/core 0.0.1 → 0.0.3

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.
package/dist/index.cjs CHANGED
@@ -37,8 +37,11 @@ const Constructors = {
37
37
  };
38
38
  const ConstructorValues = Object.values(Constructors);
39
39
 
40
+ const SNAPSHOT_VERSION = 1;
41
+
40
42
  exports.ConstructorValues = ConstructorValues;
41
43
  exports.Constructors = Constructors;
42
44
  exports.ContextStatus = ContextStatus;
45
+ exports.SNAPSHOT_VERSION = SNAPSHOT_VERSION;
43
46
  exports.SnapshotMode = SnapshotMode;
44
47
  exports.SnapshotState = SnapshotState;
package/dist/index.d.cts CHANGED
@@ -92,7 +92,14 @@ type IResponse = IPacket & {
92
92
  headers: {
93
93
  [key: string]: string;
94
94
  };
95
- content: Uint8Array;
95
+ /** The response body, present on the first occurrence of a payload. */
96
+ content?: Uint8Array;
97
+ /** SHA-256 hash of the uncompressed response body. */
98
+ contentHash?: string;
99
+ /** Packet id containing the body when this response duplicates an earlier one. */
100
+ contentReference?: string;
101
+ /** Size of the uncompressed response body, including when it is referenced. */
102
+ contentLength?: number;
96
103
  };
97
104
  type ILogLocation = {
98
105
  url?: string;
@@ -143,5 +150,7 @@ declare const Constructors: {
143
150
  };
144
151
  declare const ConstructorValues: string[];
145
152
 
146
- export { ConstructorValues, Constructors, ContextStatus, SnapshotMode, SnapshotState };
153
+ declare const SNAPSHOT_VERSION = 1;
154
+
155
+ export { ConstructorValues, Constructors, ContextStatus, SNAPSHOT_VERSION, SnapshotMode, SnapshotState };
147
156
  export type { CommandProps, IBlobHandle, ICommand, ICommandError, IConsoleMessageType, IContext, IExpectation, IExpects, ILog, ILogLocation, IPacket, IPageInclude, IResponse, ISnapshot, IViewport };
package/dist/index.d.mts CHANGED
@@ -92,7 +92,14 @@ type IResponse = IPacket & {
92
92
  headers: {
93
93
  [key: string]: string;
94
94
  };
95
- content: Uint8Array;
95
+ /** The response body, present on the first occurrence of a payload. */
96
+ content?: Uint8Array;
97
+ /** SHA-256 hash of the uncompressed response body. */
98
+ contentHash?: string;
99
+ /** Packet id containing the body when this response duplicates an earlier one. */
100
+ contentReference?: string;
101
+ /** Size of the uncompressed response body, including when it is referenced. */
102
+ contentLength?: number;
96
103
  };
97
104
  type ILogLocation = {
98
105
  url?: string;
@@ -143,5 +150,7 @@ declare const Constructors: {
143
150
  };
144
151
  declare const ConstructorValues: string[];
145
152
 
146
- export { ConstructorValues, Constructors, ContextStatus, SnapshotMode, SnapshotState };
153
+ declare const SNAPSHOT_VERSION = 1;
154
+
155
+ export { ConstructorValues, Constructors, ContextStatus, SNAPSHOT_VERSION, SnapshotMode, SnapshotState };
147
156
  export type { CommandProps, IBlobHandle, ICommand, ICommandError, IConsoleMessageType, IContext, IExpectation, IExpects, ILog, ILogLocation, IPacket, IPageInclude, IResponse, ISnapshot, IViewport };
package/dist/index.mjs CHANGED
@@ -35,4 +35,6 @@ const Constructors = {
35
35
  };
36
36
  const ConstructorValues = Object.values(Constructors);
37
37
 
38
- export { ConstructorValues, Constructors, ContextStatus, SnapshotMode, SnapshotState };
38
+ const SNAPSHOT_VERSION = 1;
39
+
40
+ export { ConstructorValues, Constructors, ContextStatus, SNAPSHOT_VERSION, SnapshotMode, SnapshotState };
package/package.json CHANGED
@@ -1,6 +1,11 @@
1
1
  {
2
2
  "name": "@puth/core",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "git+https://github.com/puth-io/puth.git",
7
+ "directory": "workspaces/core"
8
+ },
4
9
  "author": {
5
10
  "name": "Sebastian Uehlin",
6
11
  "email": "s.uehlin@proton.me"