synapse-storage 3.0.0 → 3.0.2

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.
@@ -1,4 +1,4 @@
1
- export * from './chunk.util/index.js';
2
- export * from './deepMerge.util/index.js';
3
- export * from './flatMap.util/index.js';
1
+ export * from './chunk.util.js';
2
+ export * from './deepMerge.util.js';
3
+ export * from './flatMap.util.js';
4
4
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  import { IndexedDBStorage, MemoryStorage } from '../core';
2
- import { ApiClient } from './api.module/index.js';
3
- import { ResponseFormat } from './types/api.interface/index.js';
2
+ import { ApiClient } from './api.module.js';
3
+ import { ResponseFormat } from './types/api.interface.js';
4
4
  // Создаем базу данных в indexedDB
5
5
  const { pokemonStorageIdb } = await IndexedDBStorage.createStorages('pokemon-api-cache', {
6
6
  // Создаем хранилище в базе данных
package/dist/api/index.js CHANGED
@@ -1,5 +1,5 @@
1
- export * from './api.module/index.js';
2
- export { ResponseFormat } from './types/api.interface/index.js';
1
+ export * from './api.module.js';
2
+ export { ResponseFormat } from './types/api.interface.js';
3
3
  export * from './utils/api-helpers/index.js';
4
4
  // export * from './_utils/file-_utils/index.js'
5
5
  // export * from './_utils/get-cacheable-headers/index.js'
@@ -1,2 +1,2 @@
1
- export * from './selector.module/index.js';
1
+ export * from './selector.module.js';
2
2
  //# sourceMappingURL=index.js.map
@@ -2,7 +2,7 @@ import { batchingMiddleware } from '../middlewares/storage-batching.middleware';
2
2
  import { shallowCompareMiddleware } from '../middlewares/storage-shallow-compare.middleware';
3
3
  import { StorageEvents } from '../storage.interface';
4
4
  import { MiddlewareModule } from '../utils/middleware-module';
5
- import { getValueByPath } from './path.utils/index.js';
5
+ import { getValueByPath } from './path.utils.js';
6
6
  export class BaseStorage {
7
7
  config;
8
8
  pluginExecutor;
@@ -1,6 +1,6 @@
1
1
  import { StorageKey } from '../utils/storage-key';
2
- import { BaseStorage } from './base-storage.service/index.js';
3
- import { getValueByPath, parsePath, setValueByPath } from './path.utils/index.js';
2
+ import { BaseStorage } from './base-storage.service.js';
3
+ import { getValueByPath, parsePath, setValueByPath } from './path.utils.js';
4
4
  // Управляет соединением с базой данных
5
5
  export class IndexedDBManager {
6
6
  dbName;
@@ -1,6 +1,6 @@
1
1
  import { StorageKey } from '../utils/storage-key';
2
- import { BaseStorage } from './base-storage.service/index.js';
3
- import { getValueByPath, parsePath, setValueByPath } from './path.utils/index.js';
2
+ import { BaseStorage } from './base-storage.service.js';
3
+ import { getValueByPath, parsePath, setValueByPath } from './path.utils.js';
4
4
  export class IndexedDBStorage extends BaseStorage {
5
5
  initPromise = null;
6
6
  db = null;
@@ -1,6 +1,6 @@
1
1
  import { StorageKey } from '../utils/storage-key';
2
- import { BaseStorage } from './base-storage.service/index.js';
3
- import { getValueByPath, parsePath, setValueByPath } from './path.utils/index.js';
2
+ import { BaseStorage } from './base-storage.service.js';
3
+ import { getValueByPath, parsePath, setValueByPath } from './path.utils.js';
4
4
  export class LocalStorage extends BaseStorage {
5
5
  constructor(config, pluginExecutor, eventEmitter, logger) {
6
6
  super(config, pluginExecutor, eventEmitter, logger);
@@ -1,6 +1,6 @@
1
1
  import { StorageKey } from '../utils/storage-key';
2
- import { BaseStorage } from './base-storage.service/index.js';
3
- import { getValueByPath, parsePath, setValueByPath } from './path.utils/index.js';
2
+ import { BaseStorage } from './base-storage.service.js';
3
+ import { getValueByPath, parsePath, setValueByPath } from './path.utils.js';
4
4
  export class MemoryStorage extends BaseStorage {
5
5
  storage = new Map();
6
6
  constructor(config, pluginExecutor, eventEmitter, logger) {
@@ -1,12 +1,12 @@
1
1
  // Экспортируем публичные интерфейсы
2
- export * from './modules/plugin/plugin.interface/index.js';
3
- export * from './modules/plugin/plugin.service/index.js';
4
- export * from './storage.interface/index.js';
2
+ export * from './modules/plugin/plugin.interface.js';
3
+ export * from './modules/plugin/plugin.service.js';
4
+ export * from './storage.interface.js';
5
5
  export { broadcastMiddleware } from './middlewares/index.js';
6
6
  // Экспортируем публичные адаптеры
7
- // export { BaseStorage } from './adapters/base-storage.service/index.js'
8
- // export { IndexedDBStorage } from './adapters/indexed-DB.service1/index.js'
9
- export { IndexedDBStorage } from './adapters/indexed-DB.service/index.js';
10
- export { LocalStorage } from './adapters/local-storage.service/index.js';
11
- export { MemoryStorage } from './adapters/memory-storage.service/index.js';
7
+ // export { BaseStorage } from './adapters/base-storage.service.js'
8
+ // export { IndexedDBStorage } from './adapters/indexed-DB.service1.js'
9
+ export { IndexedDBStorage } from './adapters/indexed-DB.service.js';
10
+ export { LocalStorage } from './adapters/local-storage.service.js';
11
+ export { MemoryStorage } from './adapters/memory-storage.service.js';
12
12
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
1
  // Экспортируем только публичные middleware
2
- export { broadcastMiddleware } from './broadcast.middleware/index.js';
2
+ export { broadcastMiddleware } from './broadcast.middleware.js';
3
3
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
- export * from './dispatcher.module/index.js';
1
+ export * from './dispatcher.module.js';
2
2
  export * from './middlewares/index.js';
3
3
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- export * from './logger.middleware/index.js';
1
+ export * from './logger.middleware.js';
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- export * from './effects.module/index.js';
1
+ export * from './effects.module.js';
2
2
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "synapse-storage",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "Библиотека для управления состоянием и апи-запросами",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",