@hamak/ui-remote-resource 0.6.0 → 0.7.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.
- package/dist/api/actions/entity-action-factory.d.ts +2 -2
- package/dist/api/actions/entity-action-factory.js +1 -1
- package/dist/api/actions/entity-action-types.d.ts +1 -1
- package/dist/api/actions/resource-action-factory.d.ts +2 -2
- package/dist/api/actions/resource-action-factory.js +1 -1
- package/dist/api/actions/resource-action-types.d.ts +1 -1
- package/dist/api/index.d.ts +11 -11
- package/dist/api/index.js +10 -10
- package/dist/api/types/action-types.d.ts +1 -1
- package/dist/api/types/resource-attributes.d.ts +1 -1
- package/dist/api/utils/resource-attributes-util.d.ts +2 -2
- package/dist/api/utils/resource-attributes-util.js +1 -1
- package/dist/impl/autosave/index.d.ts +1 -1
- package/dist/impl/autosave/index.js +1 -1
- package/dist/impl/autosave/resource-autosave-provider.d.ts +2 -2
- package/dist/impl/autosave/resource-autosave-provider.js +3 -3
- package/dist/impl/index.d.ts +17 -17
- package/dist/impl/index.js +13 -13
- package/dist/impl/middleware/entity-middleware.d.ts +1 -1
- package/dist/impl/middleware/entity-middleware.js +1 -1
- package/dist/impl/middleware/entity-sync-middleware.js +1 -1
- package/dist/impl/middleware/resource-middleware.d.ts +1 -1
- package/dist/impl/middleware/resource-middleware.js +1 -1
- package/dist/impl/middleware/sync-middleware.js +1 -1
- package/dist/impl/plugin/resource-plugin-factory.d.ts +1 -1
- package/dist/impl/plugin/resource-plugin-factory.js +8 -8
- package/dist/impl/providers/mock-resource-provider.d.ts +2 -2
- package/dist/impl/providers/rest-resource-provider.d.ts +2 -2
- package/dist/impl/registry/entity-registry.d.ts +1 -1
- package/dist/impl/registry/resource-registry.d.ts +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/spi/config/endpoint-definition.d.ts +2 -2
- package/dist/spi/config/entity-definition.d.ts +2 -2
- package/dist/spi/config/plugin-config.d.ts +4 -4
- package/dist/spi/index.d.ts +5 -5
- package/dist/spi/index.js +5 -5
- package/dist/spi/providers/i-resource-provider.d.ts +1 -1
- package/package.json +8 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { FetchEntityAction, UpdateEntityAction, DeleteEntityAction, CreateEntityAction, InvalidateEntityAction } from './entity-action-types';
|
|
2
|
-
import type { EntityKey } from '../types/resource-types';
|
|
1
|
+
import type { FetchEntityAction, UpdateEntityAction, DeleteEntityAction, CreateEntityAction, InvalidateEntityAction } from './entity-action-types.js';
|
|
2
|
+
import type { EntityKey } from '../types/resource-types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Factory class for creating entity actions
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ResourceCallRequestAction, ResourceCallSuccessAction, ResourceCallFailureAction, InvalidateResourceAction } from './resource-action-types';
|
|
2
|
-
import type { ResourceOperation, ErrorObject } from '../types/resource-types';
|
|
1
|
+
import type { ResourceCallRequestAction, ResourceCallSuccessAction, ResourceCallFailureAction, InvalidateResourceAction } from './resource-action-types.js';
|
|
2
|
+
import type { ResourceOperation, ErrorObject } from '../types/resource-types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Factory class for creating resource actions
|
|
5
5
|
*/
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from './constants';
|
|
2
|
-
export * from './types/resource-types';
|
|
3
|
-
export * from './types/resource-attributes';
|
|
4
|
-
export type { BaseAction, ResourceCallAction } from './types/action-types';
|
|
5
|
-
export * from './actions/resource-action-types';
|
|
6
|
-
export * from './actions/resource-action-factory';
|
|
7
|
-
export * from './actions/entity-action-types';
|
|
8
|
-
export * from './actions/entity-action-factory';
|
|
9
|
-
export * from './utils/resource-attributes-util';
|
|
10
|
-
export * from './contracts/i-resource-registry';
|
|
11
|
-
export * from './contracts/i-entity-registry';
|
|
1
|
+
export * from './constants.js';
|
|
2
|
+
export * from './types/resource-types.js';
|
|
3
|
+
export * from './types/resource-attributes.js';
|
|
4
|
+
export type { BaseAction, ResourceCallAction } from './types/action-types.js';
|
|
5
|
+
export * from './actions/resource-action-types.js';
|
|
6
|
+
export * from './actions/resource-action-factory.js';
|
|
7
|
+
export * from './actions/entity-action-types.js';
|
|
8
|
+
export * from './actions/entity-action-factory.js';
|
|
9
|
+
export * from './utils/resource-attributes-util.js';
|
|
10
|
+
export * from './contracts/i-resource-registry.js';
|
|
11
|
+
export * from './contracts/i-entity-registry.js';
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/api/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// Constants
|
|
2
|
-
export * from './constants';
|
|
2
|
+
export * from './constants.js';
|
|
3
3
|
// Types
|
|
4
|
-
export * from './types/resource-types';
|
|
5
|
-
export * from './types/resource-attributes';
|
|
4
|
+
export * from './types/resource-types.js';
|
|
5
|
+
export * from './types/resource-attributes.js';
|
|
6
6
|
// Actions (Clients use these to dispatch)
|
|
7
|
-
export * from './actions/resource-action-types';
|
|
8
|
-
export * from './actions/resource-action-factory';
|
|
9
|
-
export * from './actions/entity-action-types';
|
|
10
|
-
export * from './actions/entity-action-factory';
|
|
7
|
+
export * from './actions/resource-action-types.js';
|
|
8
|
+
export * from './actions/resource-action-factory.js';
|
|
9
|
+
export * from './actions/entity-action-types.js';
|
|
10
|
+
export * from './actions/entity-action-factory.js';
|
|
11
11
|
// Utils (Clients use this to access attributes)
|
|
12
|
-
export * from './utils/resource-attributes-util';
|
|
12
|
+
export * from './utils/resource-attributes-util.js';
|
|
13
13
|
// Contracts (Read-only registry access for clients)
|
|
14
|
-
export * from './contracts/i-resource-registry';
|
|
15
|
-
export * from './contracts/i-entity-registry';
|
|
14
|
+
export * from './contracts/i-resource-registry.js';
|
|
15
|
+
export * from './contracts/i-entity-registry.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
type FileSystemNode = any;
|
|
2
|
-
import type { RemoteResourceAttributes, EntityAttributes } from '../types/resource-attributes';
|
|
3
|
-
import type { EntityKey, ResourceOperation } from '../types/resource-types';
|
|
2
|
+
import type { RemoteResourceAttributes, EntityAttributes } from '../types/resource-attributes.js';
|
|
3
|
+
import type { EntityKey, ResourceOperation } from '../types/resource-types.js';
|
|
4
4
|
/**
|
|
5
5
|
* Utility class for accessing and manipulating remote resource attributes
|
|
6
6
|
* stored in file node extension states.
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
import type { Dispatch, AnyAction } from 'redux';
|
|
8
8
|
import type { FileSystemNode } from '@hamak/shared-utils';
|
|
9
9
|
import type { IAutosaveProvider, AutosaveResult } from '@hamak/ui-store-spi';
|
|
10
|
-
import { EntityActionFactory } from '../../api';
|
|
11
|
-
import { ResourceActionFactory } from '../../api';
|
|
10
|
+
import { EntityActionFactory } from '../../api/index.js';
|
|
11
|
+
import { ResourceActionFactory } from '../../api/index.js';
|
|
12
12
|
/**
|
|
13
13
|
* Configuration for ResourceAutosaveProvider
|
|
14
14
|
*/
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* Implements autosave for files managed by the remote resource plugin.
|
|
5
5
|
* Uses UPDATE_ENTITY or RESOURCE_CALL_REQUEST actions to save files.
|
|
6
6
|
*/
|
|
7
|
-
import { REMOTE_RESOURCE_EXTENSION_KEY, } from '../../api';
|
|
8
|
-
import { EntityActionFactory } from '../../api';
|
|
9
|
-
import { ResourceActionFactory } from '../../api';
|
|
7
|
+
import { REMOTE_RESOURCE_EXTENSION_KEY, } from '../../api/index.js';
|
|
8
|
+
import { EntityActionFactory } from '../../api/index.js';
|
|
9
|
+
import { ResourceActionFactory } from '../../api/index.js';
|
|
10
10
|
/**
|
|
11
11
|
* Autosave provider for remote resources
|
|
12
12
|
*
|
package/dist/impl/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export * from '../api';
|
|
2
|
-
export * from '../spi';
|
|
3
|
-
export { createResourcePlugin } from './plugin/resource-plugin-factory';
|
|
4
|
-
export type { PluginModule } from './plugin/resource-plugin-factory';
|
|
5
|
-
export { RESOURCE_REGISTRY_TOKEN, ENTITY_REGISTRY_TOKEN } from './plugin/resource-plugin-factory';
|
|
1
|
+
export * from '../api/index.js';
|
|
2
|
+
export * from '../spi/index.js';
|
|
3
|
+
export { createResourcePlugin } from './plugin/resource-plugin-factory.js';
|
|
4
|
+
export type { PluginModule } from './plugin/resource-plugin-factory.js';
|
|
5
|
+
export { RESOURCE_REGISTRY_TOKEN, ENTITY_REGISTRY_TOKEN } from './plugin/resource-plugin-factory.js';
|
|
6
6
|
export { STORE_MANAGER_TOKEN, MIDDLEWARE_REGISTRY_TOKEN, STORE_EXTENSIONS_TOKEN } from '@hamak/ui-store-api';
|
|
7
|
-
export { RestResourceProvider } from './providers/rest-resource-provider';
|
|
8
|
-
export type { RestProviderConfig } from './providers/rest-resource-provider';
|
|
9
|
-
export { MockResourceProvider } from './providers/mock-resource-provider';
|
|
10
|
-
export type { MockProviderConfig, EndpointMockConfig, MockConfigMap, MockCallHistoryEntry } from './providers/mock-resource-provider';
|
|
11
|
-
export { ResourceRegistry } from './registry/resource-registry';
|
|
12
|
-
export { EntityRegistry } from './registry/entity-registry';
|
|
13
|
-
export { createResourceMiddleware } from './middleware/resource-middleware';
|
|
14
|
-
export { createSyncMiddleware } from './middleware/sync-middleware';
|
|
15
|
-
export { createEntityMiddleware } from './middleware/entity-middleware';
|
|
16
|
-
export { createEntitySyncMiddleware } from './middleware/entity-sync-middleware';
|
|
7
|
+
export { RestResourceProvider } from './providers/rest-resource-provider.js';
|
|
8
|
+
export type { RestProviderConfig } from './providers/rest-resource-provider.js';
|
|
9
|
+
export { MockResourceProvider } from './providers/mock-resource-provider.js';
|
|
10
|
+
export type { MockProviderConfig, EndpointMockConfig, MockConfigMap, MockCallHistoryEntry } from './providers/mock-resource-provider.js';
|
|
11
|
+
export { ResourceRegistry } from './registry/resource-registry.js';
|
|
12
|
+
export { EntityRegistry } from './registry/entity-registry.js';
|
|
13
|
+
export { createResourceMiddleware } from './middleware/resource-middleware.js';
|
|
14
|
+
export { createSyncMiddleware } from './middleware/sync-middleware.js';
|
|
15
|
+
export { createEntityMiddleware } from './middleware/entity-middleware.js';
|
|
16
|
+
export { createEntitySyncMiddleware } from './middleware/entity-sync-middleware.js';
|
|
17
17
|
export type { FileSystemNodeActions } from '@hamak/ui-store-impl';
|
|
18
|
-
export { ResourceAutosaveProvider } from './autosave/resource-autosave-provider';
|
|
19
|
-
export type { ResourceAutosaveProviderConfig } from './autosave/resource-autosave-provider';
|
|
18
|
+
export { ResourceAutosaveProvider } from './autosave/resource-autosave-provider.js';
|
|
19
|
+
export type { ResourceAutosaveProviderConfig } from './autosave/resource-autosave-provider.js';
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/impl/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export * from '../api';
|
|
2
|
-
export * from '../spi';
|
|
1
|
+
export * from '../api/index.js';
|
|
2
|
+
export * from '../spi/index.js';
|
|
3
3
|
// Plugin factory (main export)
|
|
4
|
-
export { createResourcePlugin } from './plugin/resource-plugin-factory';
|
|
5
|
-
export { RESOURCE_REGISTRY_TOKEN, ENTITY_REGISTRY_TOKEN } from './plugin/resource-plugin-factory';
|
|
4
|
+
export { createResourcePlugin } from './plugin/resource-plugin-factory.js';
|
|
5
|
+
export { RESOURCE_REGISTRY_TOKEN, ENTITY_REGISTRY_TOKEN } from './plugin/resource-plugin-factory.js';
|
|
6
6
|
// Re-export store tokens from ui-store-api for convenience
|
|
7
7
|
export { STORE_MANAGER_TOKEN, MIDDLEWARE_REGISTRY_TOKEN, STORE_EXTENSIONS_TOKEN } from '@hamak/ui-store-api';
|
|
8
8
|
// Built-in providers (exported for convenience and testing)
|
|
9
|
-
export { RestResourceProvider } from './providers/rest-resource-provider';
|
|
10
|
-
export { MockResourceProvider } from './providers/mock-resource-provider';
|
|
9
|
+
export { RestResourceProvider } from './providers/rest-resource-provider.js';
|
|
10
|
+
export { MockResourceProvider } from './providers/mock-resource-provider.js';
|
|
11
11
|
// Registry implementations (internal, but exported for testing)
|
|
12
|
-
export { ResourceRegistry } from './registry/resource-registry';
|
|
13
|
-
export { EntityRegistry } from './registry/entity-registry';
|
|
12
|
+
export { ResourceRegistry } from './registry/resource-registry.js';
|
|
13
|
+
export { EntityRegistry } from './registry/entity-registry.js';
|
|
14
14
|
// Middleware factories (internal, but exported for advanced use cases)
|
|
15
|
-
export { createResourceMiddleware } from './middleware/resource-middleware';
|
|
16
|
-
export { createSyncMiddleware } from './middleware/sync-middleware';
|
|
17
|
-
export { createEntityMiddleware } from './middleware/entity-middleware';
|
|
18
|
-
export { createEntitySyncMiddleware } from './middleware/entity-sync-middleware';
|
|
15
|
+
export { createResourceMiddleware } from './middleware/resource-middleware.js';
|
|
16
|
+
export { createSyncMiddleware } from './middleware/sync-middleware.js';
|
|
17
|
+
export { createEntityMiddleware } from './middleware/entity-middleware.js';
|
|
18
|
+
export { createEntitySyncMiddleware } from './middleware/entity-sync-middleware.js';
|
|
19
19
|
// Autosave provider
|
|
20
|
-
export { ResourceAutosaveProvider } from './autosave/resource-autosave-provider';
|
|
20
|
+
export { ResourceAutosaveProvider } from './autosave/resource-autosave-provider.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EntityActionTypes, ResourceActionFactory, resourceAttributesUtil } from '../../api';
|
|
1
|
+
import { EntityActionTypes, ResourceActionFactory, resourceAttributesUtil } from '../../api/index.js';
|
|
2
2
|
/**
|
|
3
3
|
* Entity middleware
|
|
4
4
|
* Translates entity actions to resource actions
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Middleware } from 'redux';
|
|
2
|
-
import { type ResourceAction } from '../../api';
|
|
2
|
+
import { type ResourceAction } from '../../api/index.js';
|
|
3
3
|
export interface ResourceMiddlewareConfig {
|
|
4
4
|
registry: any;
|
|
5
5
|
onError?: (error: any, action: ResourceAction) => void;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { MIDDLEWARE_REGISTRY_TOKEN } from '@hamak/ui-store-api';
|
|
2
2
|
import { FILESYSTEM_ADAPTER_TOKEN } from '@hamak/ui-store-impl';
|
|
3
|
-
import { ResourceRegistry } from '../registry/resource-registry';
|
|
4
|
-
import { EntityRegistry } from '../registry/entity-registry';
|
|
5
|
-
import { RestResourceProvider } from '../providers/rest-resource-provider';
|
|
6
|
-
import { MockResourceProvider } from '../providers/mock-resource-provider';
|
|
7
|
-
import { createResourceMiddleware } from '../middleware/resource-middleware';
|
|
8
|
-
import { createSyncMiddleware } from '../middleware/sync-middleware';
|
|
9
|
-
import { createEntityMiddleware } from '../middleware/entity-middleware';
|
|
10
|
-
import { createEntitySyncMiddleware } from '../middleware/entity-sync-middleware';
|
|
3
|
+
import { ResourceRegistry } from '../registry/resource-registry.js';
|
|
4
|
+
import { EntityRegistry } from '../registry/entity-registry.js';
|
|
5
|
+
import { RestResourceProvider } from '../providers/rest-resource-provider.js';
|
|
6
|
+
import { MockResourceProvider } from '../providers/mock-resource-provider.js';
|
|
7
|
+
import { createResourceMiddleware } from '../middleware/resource-middleware.js';
|
|
8
|
+
import { createSyncMiddleware } from '../middleware/sync-middleware.js';
|
|
9
|
+
import { createEntityMiddleware } from '../middleware/entity-middleware.js';
|
|
10
|
+
import { createEntitySyncMiddleware } from '../middleware/entity-sync-middleware.js';
|
|
11
11
|
// Dependency injection tokens (for local use)
|
|
12
12
|
export const RESOURCE_REGISTRY_TOKEN = 'RESOURCE_REGISTRY';
|
|
13
13
|
export const ENTITY_REGISTRY_TOKEN = 'ENTITY_REGISTRY';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IResourceProvider, ResourceCallParams, ResourceCallResult } from '../../spi';
|
|
2
|
-
import type { ResourceOperation } from '../../api';
|
|
1
|
+
import type { IResourceProvider, ResourceCallParams, ResourceCallResult } from '../../spi/index.js';
|
|
2
|
+
import type { ResourceOperation } from '../../api/index.js';
|
|
3
3
|
/**
|
|
4
4
|
* Configuration for a single endpoint mock
|
|
5
5
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type AxiosInstance } from 'axios';
|
|
2
|
-
import type { IResourceProvider, ResourceCallParams, ResourceCallResult } from '../../spi';
|
|
3
|
-
import type { ResourceOperation } from '../../api';
|
|
2
|
+
import type { IResourceProvider, ResourceCallParams, ResourceCallResult } from '../../spi/index.js';
|
|
3
|
+
import type { ResourceOperation } from '../../api/index.js';
|
|
4
4
|
/**
|
|
5
5
|
* Configuration for REST resource provider
|
|
6
6
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IResourceProvider } from '../../spi';
|
|
2
|
-
import type { ResourceEndpointDefinition } from '../../spi';
|
|
1
|
+
import type { IResourceProvider } from '../../spi/index.js';
|
|
2
|
+
import type { ResourceEndpointDefinition } from '../../spi/index.js';
|
|
3
3
|
/**
|
|
4
4
|
* Internal registry interface with write operations
|
|
5
5
|
*/
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ResourceCallAction } from '../../api';
|
|
2
|
-
import type { ResourceCallParams } from '../providers/i-resource-provider';
|
|
1
|
+
import type { ResourceCallAction } from '../../api/index.js';
|
|
2
|
+
import type { ResourceCallParams } from '../providers/i-resource-provider.js';
|
|
3
3
|
/**
|
|
4
4
|
* Maps entire action to API call parameters
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { EntityKey, ResourceOperation } from '../../api';
|
|
2
|
-
import type { ResourceCallParams } from '../providers/i-resource-provider';
|
|
1
|
+
import type { EntityKey, ResourceOperation } from '../../api/index.js';
|
|
2
|
+
import type { ResourceCallParams } from '../providers/i-resource-provider.js';
|
|
3
3
|
/**
|
|
4
4
|
* Entity key schema definition
|
|
5
5
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ResourceAction, EntityAction } from '../../api';
|
|
2
|
-
import type { IResourceProvider } from '../providers/i-resource-provider';
|
|
3
|
-
import type { ResourceEndpointDefinition } from './endpoint-definition';
|
|
4
|
-
import type { EntityDefinition } from './entity-definition';
|
|
1
|
+
import type { ResourceAction, EntityAction } from '../../api/index.js';
|
|
2
|
+
import type { IResourceProvider } from '../providers/i-resource-provider.js';
|
|
3
|
+
import type { ResourceEndpointDefinition } from './endpoint-definition.js';
|
|
4
|
+
import type { EntityDefinition } from './entity-definition.js';
|
|
5
5
|
/**
|
|
6
6
|
* Plugin configuration
|
|
7
7
|
* Used when creating the resource plugin
|
package/dist/spi/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from '../api';
|
|
2
|
-
export * from './providers/i-resource-provider';
|
|
3
|
-
export * from './config/endpoint-definition';
|
|
4
|
-
export * from './config/entity-definition';
|
|
5
|
-
export * from './config/plugin-config';
|
|
1
|
+
export * from '../api/index.js';
|
|
2
|
+
export * from './providers/i-resource-provider.js';
|
|
3
|
+
export * from './config/endpoint-definition.js';
|
|
4
|
+
export * from './config/entity-definition.js';
|
|
5
|
+
export * from './config/plugin-config.js';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/spi/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from '../api';
|
|
1
|
+
export * from '../api/index.js';
|
|
2
2
|
// Providers (for custom implementations)
|
|
3
|
-
export * from './providers/i-resource-provider';
|
|
3
|
+
export * from './providers/i-resource-provider.js';
|
|
4
4
|
// Configuration (for plugin setup)
|
|
5
|
-
export * from './config/endpoint-definition';
|
|
6
|
-
export * from './config/entity-definition';
|
|
7
|
-
export * from './config/plugin-config';
|
|
5
|
+
export * from './config/endpoint-definition.js';
|
|
6
|
+
export * from './config/entity-definition.js';
|
|
7
|
+
export * from './config/plugin-config.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hamak/ui-remote-resource",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Remote resource management for microkernel-based applications",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"scripts": {
|
|
22
|
-
"build": "tsc -p tsconfig.lib.json",
|
|
22
|
+
"build": "tsc -p tsconfig.lib.json && node ../../scripts/fix-esm-extensions.mjs ./dist",
|
|
23
23
|
"clean": "rm -rf dist",
|
|
24
24
|
"test": "vitest run",
|
|
25
25
|
"test:watch": "vitest"
|
|
@@ -43,8 +43,12 @@
|
|
|
43
43
|
},
|
|
44
44
|
"typesVersions": {
|
|
45
45
|
"*": {
|
|
46
|
-
"api": [
|
|
47
|
-
|
|
46
|
+
"api": [
|
|
47
|
+
"./dist/api/index.d.ts"
|
|
48
|
+
],
|
|
49
|
+
"spi": [
|
|
50
|
+
"./dist/spi/index.d.ts"
|
|
51
|
+
]
|
|
48
52
|
}
|
|
49
53
|
},
|
|
50
54
|
"dependencies": {
|