@budibase/string-templates 2.1.45 → 2.1.46-alpha.0

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.
@@ -1,8 +1,8 @@
1
- export var HelperFunctionBuiltin: string[];
1
+ export const HelperFunctionBuiltin: string[];
2
2
  export namespace HelperFunctionNames {
3
3
  const OBJECT: string;
4
4
  const ALL: string;
5
5
  const LITERAL: string;
6
6
  const JS: string;
7
7
  }
8
- export var LITERAL_MARKER: string;
8
+ export const LITERAL_MARKER: "%LITERAL%";
@@ -1,5 +1,5 @@
1
1
  export function registerAll(handlebars: any): void;
2
- export var externalHelperNames: any[];
2
+ export const externalHelperNames: any[] | string[];
3
3
  export function unregisterAll(handlebars: any): void;
4
4
  /**
5
5
  * full list of supported helpers can be found here:
@@ -1,4 +1,4 @@
1
- export var processors: Postprocessor[];
1
+ export const processors: Postprocessor[];
2
2
  export namespace PostProcessorNames {
3
3
  const CONVERT_LITERALS: string;
4
4
  }
@@ -1,4 +1,4 @@
1
- export var processors: Preprocessor[];
1
+ export const processors: Preprocessor[];
2
2
  declare class Preprocessor {
3
3
  constructor(name: any, fn: any);
4
4
  name: any;
@@ -1,6 +1,6 @@
1
- export var FIND_HBS_REGEX: RegExp;
2
- export var FIND_ANY_HBS_REGEX: RegExp;
3
- export var FIND_TRIPLE_HBS_REGEX: RegExp;
1
+ export const FIND_HBS_REGEX: RegExp;
2
+ export const FIND_ANY_HBS_REGEX: RegExp;
3
+ export const FIND_TRIPLE_HBS_REGEX: RegExp;
4
4
  export function findDoubleHbsInstances(string: any): any;
5
5
  export function isAlphaNumeric(char: any): any;
6
6
  export function swapStrings(string: any, start: any, length: any, swap: any): any;
package/manifest.json CHANGED
@@ -625,7 +625,7 @@
625
625
  "length"
626
626
  ],
627
627
  "numArgs": 2,
628
- "example": "{{ellipsis 'foo bar baz', 7}} -> foo bar…",
628
+ "example": "{{ellipsis 'foo bar baz' 7}} -> foo bar…",
629
629
  "description": "<p>Truncates a string to the specified <code>length</code>, and appends it with an elipsis, <code>…</code>.</p>\n"
630
630
  },
631
631
  "hyphenate": {
@@ -1219,4 +1219,4 @@
1219
1219
  "description": "<p>Produce a humanized duration left/until given an amount of time and the type of time measurement.</p>\n"
1220
1220
  }
1221
1221
  }
1222
- }
1222
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@budibase/string-templates",
3
- "version": "2.1.45",
3
+ "version": "2.1.46-alpha.0",
4
4
  "description": "Handlebars wrapper for Budibase templating.",
5
5
  "main": "src/index.cjs",
6
6
  "module": "dist/bundle.mjs",
@@ -44,7 +44,7 @@
44
44
  "rollup-plugin-node-globals": "^1.4.0",
45
45
  "rollup-plugin-node-resolve": "^5.2.0",
46
46
  "rollup-plugin-terser": "^7.0.2",
47
- "typescript": "^4.5.5"
47
+ "typescript": "4.7.3"
48
48
  },
49
- "gitHead": "4570e0cdf439ea7d89ba3b00875558f0a4b12bba"
49
+ "gitHead": "1c1f758ab9bbd9b841b1e759a872523aa31f53b4"
50
50
  }