@dpuse/dpuse-shared 1.0.217 → 1.0.219

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.
@@ -150,7 +150,9 @@ export interface EngineLoadObjectRecordsResult extends LoadObjectRecordsResult {
150
150
  }
151
151
  export type StoreRecord = StoreValue[];
152
152
  export type StoreValue = bigint | boolean | Date | number | string | null;
153
- export type OpenStoreOptions = EngineConnectorActionOptions;
153
+ export interface OpenStoreOptions extends EngineConnectorActionOptions {
154
+ takeOver?: boolean;
155
+ }
154
156
  export interface OpenStoreResult {
155
157
  storeStateId: StoreStateId;
156
158
  }
@@ -245,7 +247,7 @@ export { auditObjectContentWithParser, buildPreviewObjectResult, indexObjectStru
245
247
  export { listObjectStructureEntriesWithParser, retrieveRecordsWithParser } from './objectParsing';
246
248
  export { resolveStorePath } from './storePath';
247
249
  export { convertStoreRecordToParsedRecord, convertStoreValueToText } from './storeValues';
248
- export { acquireWebLock } from './webLock';
250
+ export { type AcquireWebLockOptions, acquireWebLock } from './webLock';
249
251
  export { readTableSchema } from './tableSchema';
250
252
  export declare function determineConnectorUsageId(actionNames: ConnectorActionName[]): ConnectorUsageId;
251
253
  export declare const constructConnectorCategoryConfig: (id: string, localeId?: import('../../../locale').LocaleId) => LocalisedConfig<ConnectorCategoryConfig>;
@@ -1 +1,5 @@
1
- export declare function acquireWebLock(name: string): Promise<(() => Promise<void>) | undefined>;
1
+ export interface AcquireWebLockOptions {
2
+ onLost?: () => void;
3
+ takeOver?: boolean;
4
+ }
5
+ export declare function acquireWebLock(name: string, options?: AcquireWebLockOptions): Promise<(() => Promise<void>) | undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpuse/dpuse-shared",
3
- "version": "1.0.217",
3
+ "version": "1.0.219",
4
4
  "private": false,
5
5
  "description": "Common constants, types and utilities used across DPUse projects.",
6
6
  "license": "MIT",
@@ -64,12 +64,12 @@
64
64
  "valibot": "^1.5.0"
65
65
  },
66
66
  "devDependencies": {
67
- "@dpuse/dpuse-development": "^1.0.151",
67
+ "@dpuse/dpuse-development": "^1.0.152",
68
68
  "@dpuse/eslint-config-dpuse": "^1.0.150",
69
69
  "@types/node": "^26.6.6",
70
70
  "@vitest/coverage-v8": "^5.1.0",
71
- "eslint": "^10.14.0",
72
- "fallow": "^3.42.0",
71
+ "eslint": "^10.15.0",
72
+ "fallow": "^3.43.0",
73
73
  "fast-check": "^4.10.2",
74
74
  "iconv-lite": "^0.7.3",
75
75
  "jschardet": "^4.1.0",