@budibase/string-templates 2.8.14 → 2.8.18-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.
package/dist/index.d.cts CHANGED
@@ -1 +1 @@
1
- export { isValid, makePropSafe, getManifest, isJSBinding, encodeJSBinding, decodeJSBinding, processStringSync, processObjectSync, processString, processObject, doesContainStrings, doesContainString, disableEscaping, findHBSBlocks, convertToJS };
1
+ export { isValid, makePropSafe, getManifest, isJSBinding, encodeJSBinding, decodeJSBinding, processStringSync, processObjectSync, processString, processObject, doesContainStrings, doesContainString, disableEscaping, findHBSBlocks, convertToJS, FIND_ANY_HBS_REGEX };
package/dist/index.d.mts CHANGED
@@ -16,3 +16,4 @@ export const doesContainString: (template: string, string: string) => boolean;
16
16
  export const disableEscaping: (string: any) => any;
17
17
  export const findHBSBlocks: (string: string) => string[];
18
18
  export const convertToJS: (hbs: any) => string;
19
+ export const FIND_ANY_HBS_REGEX: RegExp;
package/dist/index.d.ts CHANGED
@@ -13,3 +13,5 @@ export function doesContainStrings(template: string, strings: string[]): boolean
13
13
  export function findHBSBlocks(string: string): string[];
14
14
  export function doesContainString(template: string, string: string): boolean;
15
15
  export function convertToJS(hbs: any): string;
16
+ export { FIND_ANY_HBS_REGEX };
17
+ import { FIND_ANY_HBS_REGEX } from "./utilities";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@budibase/string-templates",
3
- "version": "2.8.14",
3
+ "version": "2.8.18-alpha.0",
4
4
  "description": "Handlebars wrapper for Budibase templating.",
5
5
  "main": "src/index.cjs",
6
6
  "module": "dist/bundle.mjs",
@@ -47,5 +47,5 @@
47
47
  "rollup-plugin-terser": "^7.0.2",
48
48
  "typescript": "4.7.3"
49
49
  },
50
- "gitHead": "837c9f7274af6d852ea3a76f46fb8ad704b7f2d5"
50
+ "gitHead": "6e359b00d71205692a6e4edafa71fd6fecb66084"
51
51
  }
package/src/index.cjs CHANGED
@@ -18,6 +18,7 @@ module.exports.doesContainString = templates.doesContainString
18
18
  module.exports.disableEscaping = templates.disableEscaping
19
19
  module.exports.findHBSBlocks = templates.findHBSBlocks
20
20
  module.exports.convertToJS = templates.convertToJS
21
+ module.exports.FIND_ANY_HBS_REGEX = templates.FIND_ANY_HBS_REGEX
21
22
 
22
23
  if (!process.env.NO_JS) {
23
24
  const { VM } = require("vm2")
@@ -28,7 +29,7 @@ if (!process.env.NO_JS) {
28
29
  setJSRunner((js, context) => {
29
30
  const vm = new VM({
30
31
  sandbox: context,
31
- timeout: 1000
32
+ timeout: 1000,
32
33
  })
33
34
  return vm.run(js)
34
35
  })
package/src/index.js CHANGED
@@ -389,3 +389,5 @@ module.exports.convertToJS = hbs => {
389
389
  js += "`;"
390
390
  return `${varBlock}${js}`
391
391
  }
392
+
393
+ module.exports.FIND_ANY_HBS_REGEX = FIND_ANY_HBS_REGEX
package/src/index.mjs CHANGED
@@ -20,6 +20,7 @@ export const doesContainString = templates.doesContainString
20
20
  export const disableEscaping = templates.disableEscaping
21
21
  export const findHBSBlocks = templates.findHBSBlocks
22
22
  export const convertToJS = templates.convertToJS
23
+ export const FIND_ANY_HBS_REGEX = templates.FIND_ANY_HBS_REGEX
23
24
 
24
25
  if (process && !process.env.NO_JS) {
25
26
  /**