@interfere/types 0.0.1 → 0.0.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.
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -0
- package/dist/utils.d.ts +2 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +2 -0
- package/dist/utils.js.map +1 -0
- package/dist/utils.test.d.ts +2 -0
- package/dist/utils.test.d.ts.map +1 -0
- package/dist/utils.test.js +6 -0
- package/dist/utils.test.js.map +1 -0
- package/package.json +1 -1
- package/dist/envelope.d.ts +0 -59
- package/dist/envelope.d.ts.map +0 -1
- package/dist/envelope.js +0 -27
- package/dist/envelope.js.map +0 -1
package/dist/index.d.mts
ADDED
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { add } from './utils.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { add } from './utils.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/index.mjs
ADDED
package/dist/utils.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG,GAAI,GAAG,MAAM,EAAE,GAAG,MAAM,WAAU,CAAC"}
|
package/dist/utils.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.test.d.ts","sourceRoot":"","sources":["../src/utils.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.test.js","sourceRoot":"","sources":["../src/utils.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE;IACf,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC5B,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
package/dist/envelope.d.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
declare const envelopeVersion: z.ZodUnion<readonly [z.ZodLiteral<"0">]>;
|
|
3
|
-
export type EnvelopeVersion = z.infer<typeof envelopeVersion>;
|
|
4
|
-
export declare const runtimeSchema: z.ZodEnum<{
|
|
5
|
-
client: "client";
|
|
6
|
-
server: "server";
|
|
7
|
-
edge: "edge";
|
|
8
|
-
}>;
|
|
9
|
-
export declare const envSchema: z.ZodEnum<{
|
|
10
|
-
development: "development";
|
|
11
|
-
preview: "preview";
|
|
12
|
-
production: "production";
|
|
13
|
-
}>;
|
|
14
|
-
export declare const projectIdSchema: z.ZodString;
|
|
15
|
-
export type Runtime = z.infer<typeof runtimeSchema>;
|
|
16
|
-
export type Env = z.infer<typeof envSchema>;
|
|
17
|
-
export type ProjectId = z.infer<typeof projectIdSchema>;
|
|
18
|
-
export declare const eventTypeSchema: z.ZodEnum<{
|
|
19
|
-
custom: "custom";
|
|
20
|
-
error: "error";
|
|
21
|
-
ui_event: "ui_event";
|
|
22
|
-
network: "network";
|
|
23
|
-
server_req: "server_req";
|
|
24
|
-
server_error: "server_error";
|
|
25
|
-
edge_req: "edge_req";
|
|
26
|
-
edge_error: "edge_error";
|
|
27
|
-
}>;
|
|
28
|
-
export type EventType = z.infer<typeof eventTypeSchema>;
|
|
29
|
-
export declare const envelopeSchema: z.ZodObject<{
|
|
30
|
-
v: z.ZodUnion<readonly [z.ZodLiteral<"0">]>;
|
|
31
|
-
runtime: z.ZodEnum<{
|
|
32
|
-
client: "client";
|
|
33
|
-
server: "server";
|
|
34
|
-
edge: "edge";
|
|
35
|
-
}>;
|
|
36
|
-
project: z.ZodString;
|
|
37
|
-
env: z.ZodEnum<{
|
|
38
|
-
development: "development";
|
|
39
|
-
preview: "preview";
|
|
40
|
-
production: "production";
|
|
41
|
-
}>;
|
|
42
|
-
client_ts: z.ZodInt;
|
|
43
|
-
session_id: z.ZodUUID;
|
|
44
|
-
seq: z.ZodInt;
|
|
45
|
-
type: z.ZodEnum<{
|
|
46
|
-
custom: "custom";
|
|
47
|
-
error: "error";
|
|
48
|
-
ui_event: "ui_event";
|
|
49
|
-
network: "network";
|
|
50
|
-
server_req: "server_req";
|
|
51
|
-
server_error: "server_error";
|
|
52
|
-
edge_req: "edge_req";
|
|
53
|
-
edge_error: "edge_error";
|
|
54
|
-
}>;
|
|
55
|
-
payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
56
|
-
}, z.core.$strip>;
|
|
57
|
-
export type Envelope = z.infer<typeof envelopeSchema>;
|
|
58
|
-
export {};
|
|
59
|
-
//# sourceMappingURL=envelope.d.ts.map
|
package/dist/envelope.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"envelope.d.ts","sourceRoot":"","sources":["../src/envelope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,QAAA,MAAM,eAAe,0CAA4B,CAAC;AAElD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D,eAAO,MAAM,aAAa;;;;EAAuC,CAAC;AAClE,eAAO,MAAM,SAAS;;;;EAAmD,CAAC;AAC1E,eAAO,MAAM,eAAe,aAAiC,CAAC;AAE9D,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACpD,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAC5C,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,eAAe;;;;;;;;;EAS1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
package/dist/envelope.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
const envelopeVersion = z.union([z.literal('0')]);
|
|
3
|
-
export const runtimeSchema = z.enum(['client', 'server', 'edge']);
|
|
4
|
-
export const envSchema = z.enum(['development', 'preview', 'production']);
|
|
5
|
-
export const projectIdSchema = z.string().startsWith('if_p_');
|
|
6
|
-
export const eventTypeSchema = z.enum([
|
|
7
|
-
'ui_event',
|
|
8
|
-
'error',
|
|
9
|
-
'network',
|
|
10
|
-
'custom',
|
|
11
|
-
'server_req',
|
|
12
|
-
'server_error',
|
|
13
|
-
'edge_req',
|
|
14
|
-
'edge_error',
|
|
15
|
-
]);
|
|
16
|
-
export const envelopeSchema = z.object({
|
|
17
|
-
v: envelopeVersion,
|
|
18
|
-
runtime: runtimeSchema,
|
|
19
|
-
project: projectIdSchema,
|
|
20
|
-
env: envSchema,
|
|
21
|
-
client_ts: z.int().positive(),
|
|
22
|
-
session_id: z.uuid(),
|
|
23
|
-
seq: z.int().positive(),
|
|
24
|
-
type: eventTypeSchema,
|
|
25
|
-
payload: z.instanceof(Uint8Array),
|
|
26
|
-
});
|
|
27
|
-
//# sourceMappingURL=envelope.js.map
|
package/dist/envelope.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"envelope.js","sourceRoot":"","sources":["../src/envelope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAIlD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;AAClE,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC;AAC1E,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;AAM9D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC;IACpC,UAAU;IACV,OAAO;IACP,SAAS;IACT,QAAQ;IACR,YAAY;IACZ,cAAc;IACd,UAAU;IACV,YAAY;CACb,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,CAAC,EAAE,eAAe;IAClB,OAAO,EAAE,aAAa;IACtB,OAAO,EAAE,eAAe;IACxB,GAAG,EAAE,SAAS;IACd,SAAS,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC7B,UAAU,EAAE,CAAC,CAAC,IAAI,EAAE;IACpB,GAAG,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACvB,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC;CAClC,CAAC,CAAC"}
|