@takeshape/util 7.213.0 → 7.214.1

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/es/index.js CHANGED
@@ -7,4 +7,5 @@ export * from './unix-to-iso';
7
7
  export * from './arrays';
8
8
  export * from './value';
9
9
  export * from './clone';
10
- export * from './predicate';
10
+ export * from './predicate';
11
+ export * from './tracing';
package/es/tracing.js ADDED
@@ -0,0 +1 @@
1
+ export {};
package/lib/index.d.ts CHANGED
@@ -8,4 +8,5 @@ export * from './arrays';
8
8
  export * from './value';
9
9
  export * from './clone';
10
10
  export * from './predicate';
11
+ export * from './tracing';
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC"}
package/lib/index.js CHANGED
@@ -132,4 +132,17 @@ Object.keys(_predicate).forEach(function (key) {
132
132
  return _predicate[key];
133
133
  }
134
134
  });
135
+ });
136
+
137
+ var _tracing = require("./tracing");
138
+
139
+ Object.keys(_tracing).forEach(function (key) {
140
+ if (key === "default" || key === "__esModule") return;
141
+ if (key in exports && exports[key] === _tracing[key]) return;
142
+ Object.defineProperty(exports, key, {
143
+ enumerable: true,
144
+ get: function () {
145
+ return _tracing[key];
146
+ }
147
+ });
135
148
  });
@@ -0,0 +1,28 @@
1
+ export declare type ResolverArgs = Record<string, any>;
2
+ export interface TraceDetails {
3
+ args: ResolverArgs;
4
+ fieldName: string;
5
+ name: string;
6
+ path: Array<string | number>;
7
+ result?: unknown;
8
+ returnType: string;
9
+ }
10
+ export interface ComposeStep {
11
+ name?: string;
12
+ args?: ResolverArgs;
13
+ result?: unknown;
14
+ duration?: number;
15
+ }
16
+ export interface Report {
17
+ args?: ResolverArgs;
18
+ duration?: number;
19
+ result?: unknown;
20
+ fieldName: string;
21
+ name?: string;
22
+ path: Array<string | number>;
23
+ returnType?: string;
24
+ startOffset?: number;
25
+ steps?: ComposeStep[];
26
+ children: Report[];
27
+ }
28
+ //# sourceMappingURL=tracing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tracing.d.ts","sourceRoot":"","sources":["../../src/tracing.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAE/C,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,YAAY,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,MAAM;IACrB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;IACtB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB"}
package/lib/tracing.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takeshape/util",
3
- "version": "7.213.0",
3
+ "version": "7.214.1",
4
4
  "description": "Shared utilities",
5
5
  "homepage": "https://www.takeshape.io",
6
6
  "repository": {