@xylabs/profile 4.13.19 → 4.13.21

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 (3) hide show
  1. package/README.md +87 -3
  2. package/package.json +9 -3
  3. package/xy.config.ts +0 -10
package/README.md CHANGED
@@ -12,13 +12,97 @@
12
12
  [![snyk-badge][]][snyk-link]
13
13
  [![socket-badge][]][socket-link]
14
14
 
15
- Version: 4.13.15
16
15
 
17
16
  Base functionality used throughout XY Labs TypeScript/JavaScript libraries
18
17
 
19
- ## Documentation
18
+ ## API Documentation
19
+
20
+ **@xylabs/profile**
21
+
22
+ ***
23
+
24
+ ## Type Aliases
25
+
26
+ - [Profiler](#type-aliases/Profiler)
27
+
28
+ ## Functions
29
+
30
+ - [createProfiler](#functions/createProfiler)
31
+ - [profile](#functions/profile)
32
+ - [profileReport](#functions/profileReport)
33
+
34
+ ### functions
35
+
36
+ ### <a id="createProfiler"></a>createProfiler
37
+
38
+ [**@xylabs/profile**](#../README)
39
+
40
+ ***
41
+
42
+ ```ts
43
+ function createProfiler(): Profiler;
44
+ ```
45
+
46
+ ## Returns
47
+
48
+ [`Profiler`](#../type-aliases/Profiler)
49
+
50
+ ### <a id="profile"></a>profile
51
+
52
+ [**@xylabs/profile**](#../README)
53
+
54
+ ***
55
+
56
+ ```ts
57
+ function profile(profiler, name): void;
58
+ ```
59
+
60
+ ## Parameters
61
+
62
+ ### profiler
63
+
64
+ [`Profiler`](#../type-aliases/Profiler)
65
+
66
+ ### name
67
+
68
+ `string`
69
+
70
+ ## Returns
71
+
72
+ `void`
73
+
74
+ ### <a id="profileReport"></a>profileReport
75
+
76
+ [**@xylabs/profile**](#../README)
77
+
78
+ ***
79
+
80
+ ```ts
81
+ function profileReport(profiler): Record<string, number>;
82
+ ```
83
+
84
+ ## Parameters
85
+
86
+ ### profiler
87
+
88
+ [`Profiler`](#../type-aliases/Profiler)
89
+
90
+ ## Returns
91
+
92
+ `Record`\<`string`, `number`\>
93
+
94
+ ### type-aliases
95
+
96
+ ### <a id="Profiler"></a>Profiler
97
+
98
+ [**@xylabs/profile**](#../README)
99
+
100
+ ***
101
+
102
+ ```ts
103
+ type Profiler = Record<string, number[]>;
104
+ ```
20
105
 
21
- Coming Soon!
22
106
 
23
107
  Part of [sdk-js](https://www.npmjs.com/package/@xyo-network/sdk-js)
24
108
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xylabs/profile",
3
- "version": "4.13.19",
3
+ "version": "4.13.21",
4
4
  "description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
5
5
  "keywords": [
6
6
  "profile",
@@ -30,15 +30,21 @@
30
30
  "exports": {
31
31
  ".": {
32
32
  "types": "./dist/neutral/index.d.ts",
33
+ "source": "./src/index.ts",
33
34
  "default": "./dist/neutral/index.mjs"
34
35
  },
35
36
  "./package.json": "./package.json"
36
37
  },
37
38
  "module": "./dist/neutral/index.mjs",
39
+ "source": "./src/index.ts",
38
40
  "types": "./dist/neutral/index.d.ts",
41
+ "files": [
42
+ "dist",
43
+ "src"
44
+ ],
39
45
  "devDependencies": {
40
- "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.27",
41
- "@xylabs/tsconfig": "^7.0.0-rc.27",
46
+ "@xylabs/ts-scripts-yarn3": "^7.0.0",
47
+ "@xylabs/tsconfig": "^7.0.0",
42
48
  "typescript": "^5.8.3"
43
49
  },
44
50
  "engines": {
package/xy.config.ts DELETED
@@ -1,10 +0,0 @@
1
- import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
2
- const config: XyTsupConfig = {
3
- compile: {
4
- browser: {},
5
- neutral: { src: true },
6
- node: {},
7
- },
8
- }
9
-
10
- export default config