@itrocks/template 0.0.29 → 0.0.30

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/cjs/template.d.ts CHANGED
@@ -9,8 +9,7 @@ type BlockStackEntry = {
9
9
  };
10
10
  export type VariableParser = [parser: string, (variable: string, data: any) => any];
11
11
  export declare const frontScripts: SortedArray<string>;
12
- export { Template };
13
- export default class Template {
12
+ export declare class Template {
14
13
  data?: any;
15
14
  containerData?: any;
16
15
  blockBack: number;
@@ -105,3 +104,4 @@ export default class Template {
105
104
  startsExpression(char: string, open?: string, close?: string): boolean;
106
105
  trimEndLine(string: string): string;
107
106
  }
107
+ export {};
package/cjs/template.js CHANGED
@@ -830,6 +830,5 @@ class Template {
830
830
  return string.substring(0, index);
831
831
  }
832
832
  }
833
- exports.default = Template;
834
833
  exports.Template = Template;
835
834
  //# sourceMappingURL=template.js.map
package/esm/template.d.ts CHANGED
@@ -9,8 +9,7 @@ type BlockStackEntry = {
9
9
  };
10
10
  export type VariableParser = [parser: string, (variable: string, data: any) => any];
11
11
  export declare const frontScripts: SortedArray<string>;
12
- export { Template };
13
- export default class Template {
12
+ export declare class Template {
14
13
  data?: any;
15
14
  containerData?: any;
16
15
  blockBack: number;
@@ -105,3 +104,4 @@ export default class Template {
105
104
  startsExpression(char: string, open?: string, close?: string): boolean;
106
105
  trimEndLine(string: string): string;
107
106
  }
107
+ export {};
package/esm/template.js CHANGED
@@ -5,8 +5,7 @@ import { readFile } from 'node:fs/promises';
5
5
  import { normalize, sep } from 'node:path';
6
6
  export const frontScripts = new SortedArray();
7
7
  frontScripts.distinct = true;
8
- export { Template };
9
- export default class Template {
8
+ export class Template {
10
9
  data;
11
10
  containerData;
12
11
  // block stack
package/package.json CHANGED
@@ -67,5 +67,5 @@
67
67
  "test": "jest"
68
68
  },
69
69
  "types": "./esm/template.d.ts",
70
- "version": "0.0.29"
70
+ "version": "0.0.30"
71
71
  }