@diy-accounting-uk/diya-gl 1.2.72 → 1.2.73

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.
@@ -2105,6 +2105,32 @@
2105
2105
  "scorecard": "101608 passed, 0 warnings, 0 failed"
2106
2106
  }
2107
2107
  }
2108
+ },
2109
+ {
2110
+ "tag": "diya-gl-v1.2.72",
2111
+ "date": "2026-11-01",
2112
+ "formatVersion": "diya-gl/2",
2113
+ "engineVersion": "1.2.72+5c4b070ce",
2114
+ "taxDataHash": "51bdff60e993",
2115
+ "reconciledCommit": "54e8731a91279975e61b1a232fbb67fda89515f0",
2116
+ "templates": {
2117
+ "bst": {
2118
+ "hash": "0d003e10e00c",
2119
+ "scorecard": "812 passed, 0 warnings, 0 failed"
2120
+ },
2121
+ "taxi": {
2122
+ "hash": "1ff69654d64d",
2123
+ "scorecard": "700 passed, 0 warnings, 0 failed"
2124
+ },
2125
+ "se": {
2126
+ "hash": "064605ae76ed",
2127
+ "scorecard": "8015 passed, 0 warnings, 0 failed"
2128
+ },
2129
+ "ltd": {
2130
+ "hash": "b90d8b0f54a0",
2131
+ "scorecard": "101608 passed, 0 warnings, 0 failed"
2132
+ }
2133
+ }
2108
2134
  }
2109
2135
  ]
2110
2136
  }
@@ -38,11 +38,12 @@ const SCHEMA_ROOT_FROM_APP = ["..", "web", "spreadsheets.diyaccounting.co.uk", "
38
38
  // checks a package against move with the version: a template cached by an
39
39
  // older version writes a package the newer reader refuses.
40
40
  //
41
- // Both the current /diya-gl/ and legacy /books/ paths resolve — the old one
42
- // through a redirect — so published versions built before the path moved keep
43
- // working.
41
+ // The source is the canonical host, https://diya-gl.co.uk/assets/. A network
42
+ // failure is retried once, because a fresh runner has an empty cache and a
43
+ // single dropped connection would otherwise fail the whole run.
44
44
  const TEMPLATE_PREFIX = "templates/";
45
- const DEFAULT_TEMPLATE_SOURCE = "https://spreadsheets.diyaccounting.co.uk/diya-gl/assets/";
45
+ const NETWORK_RETRY_DELAY_MS = 1000;
46
+ const DEFAULT_TEMPLATE_SOURCE = "https://diya-gl.co.uk/assets/";
46
47
 
47
48
  let templateTermsAnnounced = false;
48
49
 
@@ -88,8 +89,13 @@ async function fetchTemplate(path) {
88
89
  let response;
89
90
  try {
90
91
  response = await fetch(url);
91
- } catch (cause) {
92
- throw new ResourceUnavailableError(path, `${url} could not be reached: ${cause.message}`);
92
+ } catch {
93
+ await new Promise((wait) => setTimeout(wait, NETWORK_RETRY_DELAY_MS));
94
+ try {
95
+ response = await fetch(url);
96
+ } catch (cause) {
97
+ throw new ResourceUnavailableError(path, `${url} could not be reached: ${cause.message}`);
98
+ }
93
99
  }
94
100
  if (!response.ok) {
95
101
  throw new ResourceUnavailableError(path, `${url} returned ${response.status} ${response.statusText}`);
@@ -19,7 +19,7 @@ import { mkdir, readFile, realpath, rename, writeFile } from "fs/promises";
19
19
  import { extname, resolve, sep } from "path";
20
20
 
21
21
  export const DEFAULT_ORIGIN = "https://diya-gl.co.uk";
22
- export const DEFAULT_TEMPLATE_SOURCE = "https://spreadsheets.diyaccounting.co.uk/diya-gl/assets";
22
+ export const DEFAULT_TEMPLATE_SOURCE = "https://diya-gl.co.uk/assets";
23
23
  const TEMPLATE_URL_PREFIX = "/assets/templates/";
24
24
  // A template is "meta.toml" or "<product>/<file>" with a workbook or TOML extension; nothing else
25
25
  // is proxied, so the upstream URL is always the template source plus one of these names.
@@ -12,7 +12,7 @@
12
12
 
13
13
  export const PROVENANCE_DATA = {
14
14
  formatVersion: "diya-gl/2",
15
- engineVersion: "1.2.72+5c4b070ce",
15
+ engineVersion: "1.2.73+279af012c",
16
16
  taxDataHash: "51bdff60e993",
17
17
  reconciledCommit: "54e8731a91279975e61b1a232fbb67fda89515f0",
18
18
  templates: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diy-accounting-uk/diya-gl",
3
- "version": "1.2.72",
3
+ "version": "1.2.73",
4
4
  "type": "module",
5
5
  "description": "Recalculate, read and write DIYA-GL books from the command line",
6
6
  "license": "Apache-2.0",