@financial-times/dotcom-server-handlebars 7.2.7 → 7.3.1

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.
Files changed (46) hide show
  1. package/dist/node/PageKitHandlebars.d.ts +46 -0
  2. package/dist/node/findPartialFiles.d.ts +2 -0
  3. package/dist/node/helpers/array.d.ts +1 -0
  4. package/dist/node/helpers/capture.d.ts +2 -0
  5. package/dist/node/helpers/concat.d.ts +1 -0
  6. package/dist/node/helpers/dateformat.d.ts +1 -0
  7. package/dist/node/helpers/encode.d.ts +1 -0
  8. package/dist/node/helpers/ifAll.d.ts +1 -0
  9. package/dist/node/helpers/ifEquals.d.ts +1 -0
  10. package/dist/node/helpers/ifEqualsSome.d.ts +1 -0
  11. package/dist/node/helpers/ifSome.d.ts +1 -0
  12. package/dist/node/helpers/json.d.ts +1 -0
  13. package/dist/node/helpers/renderReactComponent.d.ts +3 -0
  14. package/dist/node/helpers/resize.d.ts +1 -0
  15. package/dist/node/helpers/slice.d.ts +1 -0
  16. package/dist/node/helpers/unlessAll.d.ts +1 -0
  17. package/dist/node/helpers/unlessEquals.d.ts +1 -0
  18. package/dist/node/helpers/unlessSome.d.ts +1 -0
  19. package/dist/node/helpers.d.ts +16 -0
  20. package/dist/node/index.d.ts +3 -0
  21. package/dist/node/loadFileContents.d.ts +1 -0
  22. package/dist/tsconfig.tsbuildinfo +3320 -0
  23. package/package.json +6 -4
  24. package/src/PageKitHandlebars.ts +0 -142
  25. package/src/findPartialFiles.ts +0 -25
  26. package/src/helpers/README.md +0 -213
  27. package/src/helpers/array.ts +0 -8
  28. package/src/helpers/capture.ts +0 -9
  29. package/src/helpers/concat.ts +0 -8
  30. package/src/helpers/dateformat.ts +0 -13
  31. package/src/helpers/encode.ts +0 -15
  32. package/src/helpers/ifAll.ts +0 -12
  33. package/src/helpers/ifEquals.ts +0 -12
  34. package/src/helpers/ifEqualsSome.ts +0 -13
  35. package/src/helpers/ifSome.ts +0 -12
  36. package/src/helpers/json.ts +0 -16
  37. package/src/helpers/renderReactComponent.ts +0 -34
  38. package/src/helpers/resize.ts +0 -20
  39. package/src/helpers/slice.ts +0 -22
  40. package/src/helpers/unlessAll.ts +0 -12
  41. package/src/helpers/unlessEquals.ts +0 -12
  42. package/src/helpers/unlessSome.ts +0 -12
  43. package/src/helpers.ts +0 -16
  44. package/src/index.ts +0 -3
  45. package/src/loadFileContents.ts +0 -5
  46. package/src/types.d.ts +0 -11
package/src/index.ts DELETED
@@ -1,3 +0,0 @@
1
- import * as helpers from './helpers'
2
- export * from './PageKitHandlebars'
3
- export { helpers }
@@ -1,5 +0,0 @@
1
- import fs from 'fs'
2
-
3
- export default function loadFileContents(filePath: string): string {
4
- return fs.readFileSync(filePath).toString()
5
- }
package/src/types.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import { TemplateDelegate } from 'handlebars'
2
-
3
- export type TRenderCallback = (error?: Error, output?: string) => any
4
-
5
- export type TFilePaths = {
6
- [key: string]: string
7
- }
8
-
9
- export type TPartialTemplates = {
10
- [key: string]: TemplateDelegate
11
- }