@nhtio/swarm 1.20250424.0

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/tsconfig.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ESNext",
4
+ "useDefineForClassFields": true,
5
+ "module": "ESNext",
6
+ "lib": [
7
+ "ESNext",
8
+ "DOM",
9
+ "DOM.Iterable"
10
+ ],
11
+ "skipLibCheck": true,
12
+ "sourceMap": true,
13
+ "inlineSources": true,
14
+ "sourceRoot": "/",
15
+ "allowSyntheticDefaultImports": true,
16
+ "moduleResolution": "bundler",
17
+ "allowImportingTsExtensions": true,
18
+ "resolveJsonModule": true,
19
+ "isolatedModules": true,
20
+ "moduleDetection": "force",
21
+ "noEmit": true,
22
+ "strict": true,
23
+ "noUnusedLocals": true,
24
+ "noUnusedParameters": true,
25
+ "noFallthroughCasesInSwitch": true,
26
+ "paths": {
27
+ "@/*": [
28
+ "./*"
29
+ ],
30
+ "@nhtio/swarm": [
31
+ "."
32
+ ],
33
+ "@nhtio/swarm/*": [
34
+ "./*"
35
+ ]
36
+ }
37
+ },
38
+ "include": [
39
+ "./**/*.d.ts"
40
+ ]
41
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";const e=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.types=e;
2
+ //# sourceMappingURL=types-C0eRuyk9.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-C0eRuyk9.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ const e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2
+ __proto__: null
3
+ }, Symbol.toStringTag, { value: "Module" }));
4
+ export {
5
+ e as t
6
+ };
7
+ //# sourceMappingURL=types-CBFnAS2P.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-CBFnAS2P.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
package/types.cjs ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=types.cjs.map
package/types.cjs.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/types.d.ts ADDED
@@ -0,0 +1,39 @@
1
+ /**
2
+ * The module which contains types for the library.
3
+ * @module @nhtio/swarm/types
4
+ */
5
+ /**
6
+ * An inteface which describes the information about the browser and operating system
7
+ */
8
+ export interface BrowserInfo {
9
+ /**
10
+ * The name of the browser
11
+ */
12
+ browserName: string;
13
+ /**
14
+ * The version of the browser
15
+ */
16
+ browserVersion: string;
17
+ /**
18
+ * The name of the operating system
19
+ */
20
+ osName: string;
21
+ /**
22
+ * The version of the operating system
23
+ */
24
+ osVersion: string;
25
+ /**
26
+ * The type of platform i.e. desktop / mobile
27
+ */
28
+ platformType: string;
29
+ /**
30
+ * The name of the browser engine
31
+ */
32
+ engineName: string;
33
+ /**
34
+ * The version of the browser engine
35
+ */
36
+ engineVersion: string;
37
+ }
38
+ export type { TypedEventMap } from './lib/emitter';
39
+ export type { RequestHandlerMap } from './lib/class_swarm';
package/types.mjs ADDED
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=types.mjs.map
package/types.mjs.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}