@sd-jwt/present 0.3.0 → 0.3.2-next.100

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/build/traverse.js DELETED
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.traverseNodes = void 0;
4
- function traverseNodes(object, path = []) {
5
- const result = [];
6
- if (typeof object !== 'object' || object === null) {
7
- return [{ path: [], value: object, isLeaf: true }];
8
- }
9
- for (const key in object) {
10
- if (object.hasOwnProperty(key)) {
11
- const currentPath = [...path, key];
12
- const value = object[key];
13
- // Value must be object / array, and have at least some values in it
14
- if (typeof value === 'object' &&
15
- value !== null &&
16
- Object.keys(value).length > 0) {
17
- // Recursively traverse nested objects or arrays
18
- result.push(...traverseNodes(value, currentPath));
19
- }
20
- else {
21
- // Leaf node found
22
- result.push({ path: currentPath, value, isLeaf: true });
23
- }
24
- }
25
- }
26
- return result;
27
- }
28
- exports.traverseNodes = traverseNodes;
29
- //# sourceMappingURL=traverse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"traverse.js","sourceRoot":"","sources":["../src/traverse.ts"],"names":[],"mappings":";;;AAAA,SAAgB,aAAa,CAAC,MAAW,EAAE,OAAmB,EAAE;IAC5D,MAAM,MAAM,GAAe,EAAE,CAAA;IAE7B,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;QAChD,OAAO,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAA;IACtD,CAAC;IAED,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;QACvB,IAAI,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC;YAC7B,MAAM,WAAW,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC,CAAA;YAClC,MAAM,KAAK,GAAG,MAAM,CAAC,GAA0B,CAAC,CAAA;YAEhD,oEAAoE;YACpE,IACI,OAAO,KAAK,KAAK,QAAQ;gBACzB,KAAK,KAAK,IAAI;gBACd,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC,EAC/B,CAAC;gBACC,gDAAgD;gBAChD,MAAM,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAA;YACrD,CAAC;iBAAM,CAAC;gBACJ,kBAAkB;gBAClB,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAA;YAC3D,CAAC;QACL,CAAC;IACL,CAAC;IAED,OAAO,MAAM,CAAA;AACjB,CAAC;AA5BD,sCA4BC"}
package/build/types.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import { BaseFrame } from '@sd-jwt/types';
2
- export type PresentationFrame<T> = BaseFrame<T, {}>;
package/build/types.js DELETED
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}