@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/LICENSE.md +9 -0
- package/README.md +5 -0
- package/errors-BsRN4TW4.mjs +82 -0
- package/errors-BsRN4TW4.mjs.map +1 -0
- package/errors-DTZFdRbq.js +4 -0
- package/errors-DTZFdRbq.js.map +1 -0
- package/errors.cjs +2 -0
- package/errors.cjs.map +1 -0
- package/errors.d.ts +59 -0
- package/errors.mjs +7 -0
- package/errors.mjs.map +1 -0
- package/index.cjs +4 -0
- package/index.cjs.map +1 -0
- package/index.d.ts +12 -0
- package/index.mjs +1538 -0
- package/index.mjs.map +1 -0
- package/lib/browser.d.ts +6 -0
- package/lib/class_swarm.d.ts +104 -0
- package/lib/common.d.ts +26 -0
- package/lib/emitter.d.ts +33 -0
- package/lib/logger.d.ts +67 -0
- package/lib/symbols.d.ts +5 -0
- package/package.json +31 -0
- package/tsconfig.json +41 -0
- package/types-C0eRuyk9.js +2 -0
- package/types-C0eRuyk9.js.map +1 -0
- package/types-CBFnAS2P.mjs +7 -0
- package/types-CBFnAS2P.mjs.map +1 -0
- package/types.cjs +2 -0
- package/types.cjs.map +1 -0
- package/types.d.ts +39 -0
- package/types.mjs +2 -0
- package/types.mjs.map +1 -0
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 @@
|
|
|
1
|
+
{"version":3,"file":"types-C0eRuyk9.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-CBFnAS2P.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
package/types.cjs
ADDED
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
package/types.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|