@modular-circuit/middleware 0.0.38 → 0.0.39

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.
@@ -6,9 +6,9 @@ export declare class DefaultRegistryMgr implements RegistryMgr {
6
6
  private registries;
7
7
  constructor(http_registries: HttpConfig[]);
8
8
  get_available_registries(): Promise<ModuleResolver[]>;
9
- get_module_achieve(idx: ModuleIndex): Promise<URL | undefined>;
9
+ get_module_archive(idx: ModuleIndex): Promise<URL | undefined>;
10
10
  get_module_circuit(idx: ModuleIndex): Promise<ModuleCircuit | undefined>;
11
11
  get_module_circuit_by_id(id: string): Promise<ModuleCircuit | undefined>;
12
- get_module_achieve_by_id(id: string): Promise<URL | undefined>;
12
+ get_module_archive_by_id(id: string): Promise<URL | undefined>;
13
13
  }
14
14
  //# sourceMappingURL=default_registry_mgr.d.ts.map
@@ -71,13 +71,13 @@ var DefaultRegistryMgr = /** @class */ (function () {
71
71
  });
72
72
  });
73
73
  };
74
- DefaultRegistryMgr.prototype.get_module_achieve = function (idx) {
74
+ DefaultRegistryMgr.prototype.get_module_archive = function (idx) {
75
75
  var _this = this;
76
76
  return this.registries.reduce(function (prev, registry) { return __awaiter(_this, void 0, void 0, function () {
77
77
  var res, _a;
78
78
  return __generator(this, function (_b) {
79
79
  switch (_b.label) {
80
- case 0: return [4 /*yield*/, registry.get_module_achieve(idx)];
80
+ case 0: return [4 /*yield*/, registry.get_module_archive(idx)];
81
81
  case 1:
82
82
  res = _b.sent();
83
83
  if (!res) return [3 /*break*/, 2];
@@ -134,13 +134,13 @@ var DefaultRegistryMgr = /** @class */ (function () {
134
134
  });
135
135
  }); }, Promise.resolve(undefined));
136
136
  };
137
- DefaultRegistryMgr.prototype.get_module_achieve_by_id = function (id) {
137
+ DefaultRegistryMgr.prototype.get_module_archive_by_id = function (id) {
138
138
  var _this = this;
139
139
  return this.registries.reduce(function (prev, registry) { return __awaiter(_this, void 0, void 0, function () {
140
140
  var res, _a;
141
141
  return __generator(this, function (_b) {
142
142
  switch (_b.label) {
143
- case 0: return [4 /*yield*/, registry.get_module_achieve_by_id(id)];
143
+ case 0: return [4 /*yield*/, registry.get_module_archive_by_id(id)];
144
144
  case 1:
145
145
  res = _b.sent();
146
146
  if (!res) return [3 /*break*/, 2];
@@ -6,7 +6,7 @@ export interface HttpResponse {
6
6
  result: unknown;
7
7
  }
8
8
  export interface HttpConfig {
9
- module_achieve_url: URL;
9
+ module_archive_url: URL;
10
10
  module_circuit_url: URL;
11
11
  zip_origin?: string;
12
12
  all_modules?: RuntimeModuleCircuit[];
@@ -16,9 +16,9 @@ export declare class HttpRegistry implements ModuleResolver {
16
16
  private zip_origin;
17
17
  private module_caches;
18
18
  constructor(cnf: HttpConfig);
19
- get_module_achieve(idx: ModuleIndex): Promise<URL | undefined>;
19
+ get_module_archive(idx: ModuleIndex): Promise<URL | undefined>;
20
20
  get_module_circuit(idx: ModuleIndex): Promise<ModuleCircuit | undefined>;
21
21
  get_module_circuit_by_id(id: string): Promise<ModuleCircuit | undefined>;
22
- get_module_achieve_by_id(id: string): Promise<URL | undefined>;
22
+ get_module_archive_by_id(id: string): Promise<URL | undefined>;
23
23
  }
24
24
  //# sourceMappingURL=http_registry.d.ts.map
@@ -52,7 +52,7 @@ var HttpRegistry = /** @class */ (function () {
52
52
  var _b, _c;
53
53
  this.cnf = cnf;
54
54
  this.module_caches = {};
55
- this.zip_origin = (_b = cnf.zip_origin) !== null && _b !== void 0 ? _b : cnf.module_achieve_url.origin;
55
+ this.zip_origin = (_b = cnf.zip_origin) !== null && _b !== void 0 ? _b : cnf.module_archive_url.origin;
56
56
  try {
57
57
  for (var _d = __values((_c = cnf.all_modules) !== null && _c !== void 0 ? _c : []), _e = _d.next(); !_e.done; _e = _d.next()) {
58
58
  var module_circuit = _e.value;
@@ -67,12 +67,12 @@ var HttpRegistry = /** @class */ (function () {
67
67
  finally { if (e_1) throw e_1.error; }
68
68
  }
69
69
  }
70
- HttpRegistry.prototype.get_module_achieve = function (idx) {
70
+ HttpRegistry.prototype.get_module_archive = function (idx) {
71
71
  return __awaiter(this, void 0, void 0, function () {
72
72
  var it, pp, full;
73
73
  return __generator(this, function (_a) {
74
74
  switch (_a.label) {
75
- case 0: return [4 /*yield*/, do_fetch(this.cnf.module_achieve_url, idx)];
75
+ case 0: return [4 /*yield*/, do_fetch(this.cnf.module_archive_url, idx)];
76
76
  case 1:
77
77
  it = _a.sent();
78
78
  return [4 /*yield*/, it.json()];
@@ -107,7 +107,7 @@ var HttpRegistry = /** @class */ (function () {
107
107
  });
108
108
  });
109
109
  };
110
- HttpRegistry.prototype.get_module_achieve_by_id = function (id) {
110
+ HttpRegistry.prototype.get_module_archive_by_id = function (id) {
111
111
  return __awaiter(this, void 0, void 0, function () {
112
112
  var path;
113
113
  var _a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modular-circuit/middleware",
3
- "version": "0.0.38",
3
+ "version": "0.0.39",
4
4
  "description": "Intermediate representation of the modular circuit",
5
5
  "main": "./build/index.js",
6
6
  "exports": {
@@ -24,8 +24,8 @@
24
24
  "typescript": "^5.4.5"
25
25
  },
26
26
  "dependencies": {
27
- "@modular-circuit/ir": "0.0.62",
28
- "@modular-circuit/utils": "0.0.40"
27
+ "@modular-circuit/ir": "0.0.63",
28
+ "@modular-circuit/utils": "0.0.41"
29
29
  },
30
30
  "scripts": {
31
31
  "clean": "rimraf build",