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.
- package/dist/_utils/index.js +3 -3
- package/dist/api/example.js +2 -2
- package/dist/api/index.js +2 -2
- package/dist/core/selector/index.js +1 -1
- package/dist/core/storage/adapters/base-storage.service.js +1 -1
- package/dist/core/storage/adapters/indexed-DB.service.js +2 -2
- package/dist/core/storage/adapters/indexed-DB.service.old.js +2 -2
- package/dist/core/storage/adapters/local-storage.service.js +2 -2
- package/dist/core/storage/adapters/memory-storage.service.js +2 -2
- package/dist/core/storage/index.js +8 -8
- package/dist/core/storage/middlewares/index.js +1 -1
- package/dist/reactive/dispatcher/index.js +1 -1
- package/dist/reactive/dispatcher/middlewares/index.js +1 -1
- package/dist/reactive/effects/index.js +1 -1
- package/package.json +1 -1
package/dist/_utils/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './chunk.util
|
|
2
|
-
export * from './deepMerge.util
|
|
3
|
-
export * from './flatMap.util
|
|
1
|
+
export * from './chunk.util.js';
|
|
2
|
+
export * from './deepMerge.util.js';
|
|
3
|
+
export * from './flatMap.util.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/api/example.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IndexedDBStorage, MemoryStorage } from '../core';
|
|
2
|
-
import { ApiClient } from './api.module
|
|
3
|
-
import { ResponseFormat } from './types/api.interface
|
|
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
|
|
2
|
-
export { ResponseFormat } from './types/api.interface
|
|
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
|
|
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
|
|
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
|
|
3
|
-
import { getValueByPath, parsePath, setValueByPath } from './path.utils
|
|
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
|
|
3
|
-
import { getValueByPath, parsePath, setValueByPath } from './path.utils
|
|
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
|
|
3
|
-
import { getValueByPath, parsePath, setValueByPath } from './path.utils
|
|
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
|
|
3
|
-
import { getValueByPath, parsePath, setValueByPath } from './path.utils
|
|
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
|
|
3
|
-
export * from './modules/plugin/plugin.service
|
|
4
|
-
export * from './storage.interface
|
|
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
|
|
8
|
-
// export { IndexedDBStorage } from './adapters/indexed-DB.service1
|
|
9
|
-
export { IndexedDBStorage } from './adapters/indexed-DB.service
|
|
10
|
-
export { LocalStorage } from './adapters/local-storage.service
|
|
11
|
-
export { MemoryStorage } from './adapters/memory-storage.service
|
|
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,2 +1,2 @@
|
|
|
1
|
-
export * from './logger.middleware
|
|
1
|
+
export * from './logger.middleware.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './effects.module
|
|
1
|
+
export * from './effects.module.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|