@bifold/oca 2.11.12 → 2.12.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.
@@ -99,6 +99,7 @@ describe('RemoteOCABundleResolver', () => {
99
99
  expect(resolver.indexFileEtag).toEqual(initialEtag);
100
100
  expect(resolver['indexFile']).toMatchSnapshot();
101
101
  });
102
+ // eslint-disable-next-line jest/no-disabled-tests
102
103
  it.skip('should check index periodically', async () => {
103
104
  await resolver.checkForUpdates();
104
105
  await resolver.checkForUpdates();
package/build/index.js CHANGED
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
18
18
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
19
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
20
  };
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
28
38
  Object.defineProperty(exports, "__esModule", { value: true });
29
39
  exports.legacy = void 0;
30
40
  __exportStar(require("./formatters"), exports);
@@ -186,7 +186,7 @@ class RemoteOCABundleResolver extends oca_1.DefaultOCABundleResolver {
186
186
  (_a = this.log) === null || _a === void 0 ? void 0 : _a.info(`File ${fileName} ${fileExists ? 'does' : 'does not'} exist at ${pathToFile}`);
187
187
  return fileExists;
188
188
  }
189
- catch (error) {
189
+ catch (_c) {
190
190
  (_b = this.log) === null || _b === void 0 ? void 0 : _b.error(`Failed to check existence of ${fileName} at ${pathToFile}`);
191
191
  }
192
192
  return false;
@@ -205,7 +205,7 @@ class RemoteOCABundleResolver extends oca_1.DefaultOCABundleResolver {
205
205
  await (0, react_native_fs_1.mkdir)(workSpace);
206
206
  return true;
207
207
  }
208
- catch (error) {
208
+ catch (_b) {
209
209
  (_a = this.log) === null || _a === void 0 ? void 0 : _a.error(`Failed to create directory ${workSpace}`);
210
210
  return false;
211
211
  }
@@ -252,7 +252,7 @@ class RemoteOCABundleResolver extends oca_1.DefaultOCABundleResolver {
252
252
  (_b = this.log) === null || _b === void 0 ? void 0 : _b.info(`File ${fileName} loaded from ${pathToFile}`);
253
253
  return data;
254
254
  }
255
- catch (error) {
255
+ catch (_d) {
256
256
  (_c = this.log) === null || _c === void 0 ? void 0 : _c.error(`Failed to load file ${fileName} from ${pathToFile}`);
257
257
  }
258
258
  };
@@ -269,7 +269,7 @@ class RemoteOCABundleResolver extends oca_1.DefaultOCABundleResolver {
269
269
  await (0, react_native_fs_1.unlink)(pathToFile);
270
270
  return true;
271
271
  }
272
- catch (error) {
272
+ catch (_b) {
273
273
  (_a = this.log) === null || _a === void 0 ? void 0 : _a.error(`Failed to unlink file ${fileName} from ${pathToFile}`);
274
274
  }
275
275
  return false;
@@ -343,7 +343,7 @@ class RemoteOCABundleResolver extends oca_1.DefaultOCABundleResolver {
343
343
  }
344
344
  await this.saveFileToLocalStorage(filePath, JSON.stringify(this.indexFile));
345
345
  }
346
- catch (error) {
346
+ catch (_g) {
347
347
  (_f = this.log) === null || _f === void 0 ? void 0 : _f.error(`Failed to fetch OCA index ${filePath}`);
348
348
  }
349
349
  };
@@ -473,7 +473,7 @@ class RemoteOCABundleResolver extends oca_1.DefaultOCABundleResolver {
473
473
  this.bundles[identifier] = overlayBundle;
474
474
  return new oca_1.OCABundle(overlayBundle, Object.assign(Object.assign({}, this.options), { language: language !== null && language !== void 0 ? language : this.options.language }));
475
475
  }
476
- catch (error) {
476
+ catch (_c) {
477
477
  // probably couldn't parse the overlay bundle.
478
478
  return Promise.resolve(undefined);
479
479
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bifold/oca",
3
- "version": "2.11.12",
3
+ "version": "2.12.1",
4
4
  "description": "TypeScript implementation of Overlay Capture Architecture (OCA) for styling Aries Verifiable Credentials",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -40,11 +40,11 @@
40
40
  "jest": "~29.6.4",
41
41
  "rimraf": "~5.0.10",
42
42
  "ts-jest": "~29.1.5",
43
- "typescript": "~5.5.4"
43
+ "typescript": "~5.9.2"
44
44
  },
45
45
  "dependencies": {
46
- "@credo-ts/anoncreds": "0.5.17",
47
- "@credo-ts/core": "0.5.17",
46
+ "@credo-ts/anoncreds": "0.5.19",
47
+ "@credo-ts/core": "0.5.19",
48
48
  "axios": "~1.13.2",
49
49
  "lodash.startcase": "~4.4.0",
50
50
  "react-native-fs": "~2.20.0"