@milaboratories/pl-middle-layer 1.19.11 → 1.20.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milaboratories/pl-middle-layer",
3
- "version": "1.19.11",
3
+ "version": "1.20.0",
4
4
  "description": "Pl Middle Layer",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",
@@ -24,23 +24,24 @@
24
24
  "denque": "^2.1.0",
25
25
  "lru-cache": "^11.0.2",
26
26
  "quickjs-emscripten": "^0.31.0",
27
- "undici": "^6.21.0",
27
+ "undici": "^7.1.0",
28
28
  "utility-types": "^3.11.0",
29
29
  "yaml": "^2.6.1",
30
30
  "zod": "^3.23.8",
31
+ "@milaboratories/pl-http": "^1.0.1",
32
+ "@milaboratories/computable": "^2.3.4",
33
+ "@milaboratories/pl-client": "^2.7.0",
34
+ "@platforma-sdk/block-tools": "^2.4.8",
35
+ "@milaboratories/pl-drivers": "^1.5.0",
36
+ "@milaboratories/pl-model-common": "^1.8.0",
31
37
  "@milaboratories/resolve-helper": "^1.0.2",
32
- "@platforma-sdk/block-tools": "^2.4.7",
33
- "@milaboratories/pl-client": "^2.6.3",
34
- "@milaboratories/computable": "^2.3.3",
35
- "@milaboratories/pl-drivers": "^1.4.0",
36
38
  "@milaboratories/pl-model-middle-layer": "^1.6.4",
37
- "@milaboratories/pl-tree": "^1.4.18",
39
+ "@milaboratories/pl-tree": "^1.4.19",
38
40
  "@platforma-sdk/model": "^1.14.1",
39
41
  "@platforma-sdk/workflow-tengo": "2.6.0",
40
- "@milaboratories/pl-model-common": "^1.8.0",
41
- "@milaboratories/pl-local": "^1.9.0",
42
- "@milaboratories/ts-helpers": "^1.1.2",
43
- "@milaboratories/pl-config": "^1.3.2"
42
+ "@milaboratories/pl-config": "^1.3.3",
43
+ "@milaboratories/ts-helpers": "^1.1.3",
44
+ "@milaboratories/pl-local": "^1.9.1"
44
45
  },
45
46
  "devDependencies": {
46
47
  "typescript": "~5.5.4",
@@ -1,13 +1,12 @@
1
1
  import { test, expect } from '@jest/globals';
2
2
  import { BlockPackRegistry } from './registry';
3
- import path from 'node:path';
4
3
  import { CentralBlockRegistry } from './well_known_registries';
5
4
  import { V2RegistryProvider } from './registry-v2-provider';
6
- import { Agent } from 'undici';
7
5
  import { BlockPackFromRegistryV2 } from '@milaboratories/pl-model-middle-layer';
6
+ import { defaultHttpDispatcher } from '../../../pl-http/src';
8
7
 
9
8
  test('testing remote registry', async () => {
10
- const registry = new BlockPackRegistry(new V2RegistryProvider(new Agent()), [
9
+ const registry = new BlockPackRegistry(new V2RegistryProvider(defaultHttpDispatcher()), [
11
10
  { id: 'central', title: 'Central Block Registry', spec: CentralBlockRegistry }
12
11
  ]);
13
12
  const listing = await registry.listBlockPacks();
@@ -15,7 +14,7 @@ test('testing remote registry', async () => {
15
14
  });
16
15
 
17
16
  test('testing specific version retrieval', async () => {
18
- const registry = new BlockPackRegistry(new V2RegistryProvider(new Agent()), [
17
+ const registry = new BlockPackRegistry(new V2RegistryProvider(defaultHttpDispatcher()), [
19
18
  { id: 'central', title: 'Central Block Registry', spec: CentralBlockRegistry }
20
19
  ]);
21
20
  const overview = await registry.getOverview(
@@ -1,5 +1,4 @@
1
1
  import { Dispatcher, request } from 'undici';
2
- import { BlockPackSpecAny } from '../model';
3
2
  import {
4
3
  BlockPackDescriptionAbsolute,
5
4
  BlockPackMetaEmbedAbsoluteBytes,
@@ -22,7 +21,6 @@ import {
22
21
  SingleBlockPackOverview,
23
22
  StableChannel
24
23
  } from '@milaboratories/pl-model-middle-layer';
25
- import { version } from 'node:process';
26
24
 
27
25
  async function getFileContent(path: string) {
28
26
  try {
@@ -4,10 +4,10 @@ import { BlockPackSpecAny } from '../../model';
4
4
  import path from 'node:path';
5
5
  import { HmacSha256Signer } from '@milaboratories/ts-helpers';
6
6
  import { V2RegistryProvider } from '../../block_registry/registry-v2-provider';
7
- import { Agent } from 'undici';
7
+ import { defaultHttpDispatcher } from '@milaboratories/pl-http';
8
8
 
9
9
  const preparation = new BlockPackPreparer(
10
- new V2RegistryProvider(new Agent()),
10
+ new V2RegistryProvider(defaultHttpDispatcher()),
11
11
  new HmacSha256Signer(HmacSha256Signer.generateSecret())
12
12
  );
13
13
 
@@ -2,10 +2,10 @@ import { BlockPackPreparer } from '../mutator/block-pack/block_pack';
2
2
  import { HmacSha256Signer } from '@milaboratories/ts-helpers';
3
3
  import { BlockPackSpec } from '@milaboratories/pl-model-middle-layer';
4
4
  import { V2RegistryProvider } from '../block_registry/registry-v2-provider';
5
- import { Agent } from 'undici';
5
+ import { defaultHttpDispatcher } from '@milaboratories/pl-http';
6
6
 
7
7
  export const TestBPPreparer = new BlockPackPreparer(
8
- new V2RegistryProvider(new Agent()),
8
+ new V2RegistryProvider(defaultHttpDispatcher()),
9
9
  new HmacSha256Signer(HmacSha256Signer.generateSecret())
10
10
  );
11
11