@skmtc/core 0.0.434 → 0.0.435

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.
@@ -57,13 +57,13 @@ export class ParseContext {
57
57
  return tracer(__classPrivateFieldGet(this, _ParseContext_stackTrail, "f"), token, fn);
58
58
  }
59
59
  registerExtension(extensionFields) {
60
- console.log('EXTENSION FIELDS', __classPrivateFieldGet(this, _ParseContext_stackTrail, "f").toString());
60
+ const stackTrail = __classPrivateFieldGet(this, _ParseContext_stackTrail, "f").slice(1);
61
61
  if (!extensionFields) {
62
- this.extentions.set(__classPrivateFieldGet(this, _ParseContext_stackTrail, "f").toString(), 'NO_VALUE');
62
+ this.extentions.set(stackTrail.toString(), 'NO_VALUE');
63
63
  return;
64
64
  }
65
65
  Object.entries(extensionFields).forEach(([key, value]) => {
66
- this.extentions.set(__classPrivateFieldGet(this, _ParseContext_stackTrail, "f").clone().append(key).toString(), value);
66
+ this.extentions.set(stackTrail.clone().append(key).toString(), value);
67
67
  });
68
68
  }
69
69
  logSkippedFields(skipped) {
@@ -2,6 +2,7 @@ export declare class StackTrail {
2
2
  #private;
3
3
  constructor(stack?: (string | number)[]);
4
4
  clone(): StackTrail;
5
+ slice(start: number, end?: number): StackTrail;
5
6
  get stackTrail(): (string | number)[];
6
7
  append(frame: string | string[]): StackTrail;
7
8
  remove(frame: string | string[]): StackTrail;
@@ -1 +1 @@
1
- {"version":3,"file":"StackTrail.d.ts","sourceRoot":"","sources":["../../src/context/StackTrail.ts"],"names":[],"mappings":"AAAA,qBAAa,UAAU;;gBAGT,KAAK,GAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAO;IAI3C,KAAK;IAIL,IAAI,UAAU,wBAEb;IACD,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,UAAU;IAgB5C,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,UAAU;IAsB5C,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,EAAE,CAAC,UAAU,GAAG,MAAM,CAAC,EAAE,GAAG,MAAM;IAIvD,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU;IAYvC,QAAQ;CAOT"}
1
+ {"version":3,"file":"StackTrail.d.ts","sourceRoot":"","sources":["../../src/context/StackTrail.ts"],"names":[],"mappings":"AAAA,qBAAa,UAAU;;gBAGT,KAAK,GAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAO;IAI3C,KAAK;IAIL,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM;IAIjC,IAAI,UAAU,wBAEb;IACD,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,UAAU;IAgB5C,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,UAAU;IAsB5C,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,EAAE,CAAC,UAAU,GAAG,MAAM,CAAC,EAAE,GAAG,MAAM;IAIvD,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU;IAYvC,QAAQ;CAOT"}
@@ -18,6 +18,9 @@ export class StackTrail {
18
18
  clone() {
19
19
  return new StackTrail([...__classPrivateFieldGet(this, _StackTrail_stack, "f")]);
20
20
  }
21
+ slice(start, end) {
22
+ return new StackTrail(__classPrivateFieldGet(this, _StackTrail_stack, "f").slice(start, end));
23
+ }
21
24
  get stackTrail() {
22
25
  return __classPrivateFieldGet(this, _StackTrail_stack, "f");
23
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skmtc/core",
3
- "version": "0.0.434",
3
+ "version": "0.0.435",
4
4
  "main": "./script/mod.js",
5
5
  "module": "./esm/mod.js",
6
6
  "exports": {
@@ -83,13 +83,13 @@ class ParseContext {
83
83
  return (0, tracer_js_1.tracer)(__classPrivateFieldGet(this, _ParseContext_stackTrail, "f"), token, fn);
84
84
  }
85
85
  registerExtension(extensionFields) {
86
- console.log('EXTENSION FIELDS', __classPrivateFieldGet(this, _ParseContext_stackTrail, "f").toString());
86
+ const stackTrail = __classPrivateFieldGet(this, _ParseContext_stackTrail, "f").slice(1);
87
87
  if (!extensionFields) {
88
- this.extentions.set(__classPrivateFieldGet(this, _ParseContext_stackTrail, "f").toString(), 'NO_VALUE');
88
+ this.extentions.set(stackTrail.toString(), 'NO_VALUE');
89
89
  return;
90
90
  }
91
91
  Object.entries(extensionFields).forEach(([key, value]) => {
92
- this.extentions.set(__classPrivateFieldGet(this, _ParseContext_stackTrail, "f").clone().append(key).toString(), value);
92
+ this.extentions.set(stackTrail.clone().append(key).toString(), value);
93
93
  });
94
94
  }
95
95
  logSkippedFields(skipped) {
@@ -2,6 +2,7 @@ export declare class StackTrail {
2
2
  #private;
3
3
  constructor(stack?: (string | number)[]);
4
4
  clone(): StackTrail;
5
+ slice(start: number, end?: number): StackTrail;
5
6
  get stackTrail(): (string | number)[];
6
7
  append(frame: string | string[]): StackTrail;
7
8
  remove(frame: string | string[]): StackTrail;
@@ -1 +1 @@
1
- {"version":3,"file":"StackTrail.d.ts","sourceRoot":"","sources":["../../src/context/StackTrail.ts"],"names":[],"mappings":"AAAA,qBAAa,UAAU;;gBAGT,KAAK,GAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAO;IAI3C,KAAK;IAIL,IAAI,UAAU,wBAEb;IACD,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,UAAU;IAgB5C,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,UAAU;IAsB5C,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,EAAE,CAAC,UAAU,GAAG,MAAM,CAAC,EAAE,GAAG,MAAM;IAIvD,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU;IAYvC,QAAQ;CAOT"}
1
+ {"version":3,"file":"StackTrail.d.ts","sourceRoot":"","sources":["../../src/context/StackTrail.ts"],"names":[],"mappings":"AAAA,qBAAa,UAAU;;gBAGT,KAAK,GAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAO;IAI3C,KAAK;IAIL,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM;IAIjC,IAAI,UAAU,wBAEb;IACD,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,UAAU;IAgB5C,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,UAAU;IAsB5C,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,EAAE,CAAC,UAAU,GAAG,MAAM,CAAC,EAAE,GAAG,MAAM;IAIvD,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU;IAYvC,QAAQ;CAOT"}
@@ -21,6 +21,9 @@ class StackTrail {
21
21
  clone() {
22
22
  return new StackTrail([...__classPrivateFieldGet(this, _StackTrail_stack, "f")]);
23
23
  }
24
+ slice(start, end) {
25
+ return new StackTrail(__classPrivateFieldGet(this, _StackTrail_stack, "f").slice(start, end));
26
+ }
24
27
  get stackTrail() {
25
28
  return __classPrivateFieldGet(this, _StackTrail_stack, "f");
26
29
  }