@spoosh/core 0.11.0 → 0.11.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/index.d.mts CHANGED
@@ -284,7 +284,7 @@ type PluginContext = {
284
284
  /** Unique identifier for the hook instance. Persists across queryKey changes within the same hook. */
285
285
  readonly hookId?: string;
286
286
  request: PluginRequestOptions;
287
- metadata: Map<string, unknown>;
287
+ temp: Map<string, unknown>;
288
288
  stateManager: StateManager;
289
289
  eventEmitter: EventEmitter;
290
290
  /** Access other plugins' exported APIs */
package/dist/index.d.ts CHANGED
@@ -284,7 +284,7 @@ type PluginContext = {
284
284
  /** Unique identifier for the hook instance. Persists across queryKey changes within the same hook. */
285
285
  readonly hookId?: string;
286
286
  request: PluginRequestOptions;
287
- metadata: Map<string, unknown>;
287
+ temp: Map<string, unknown>;
288
288
  stateManager: StateManager;
289
289
  eventEmitter: EventEmitter;
290
290
  /** Access other plugins' exported APIs */
package/dist/index.js CHANGED
@@ -1240,7 +1240,7 @@ function createOperationController(options) {
1240
1240
  options: initialRequestOptions
1241
1241
  });
1242
1242
  let abortController = null;
1243
- const metadata = /* @__PURE__ */ new Map();
1243
+ const temp = /* @__PURE__ */ new Map();
1244
1244
  let pluginOptions = void 0;
1245
1245
  const initialState = createInitialState();
1246
1246
  let cachedState = initialState;
@@ -1261,7 +1261,7 @@ function createOperationController(options) {
1261
1261
  ...requestOptions,
1262
1262
  headers: resolvedHeaders ?? {}
1263
1263
  },
1264
- metadata,
1264
+ temp,
1265
1265
  pluginOptions,
1266
1266
  stateManager,
1267
1267
  eventEmitter
@@ -1382,7 +1382,7 @@ function createOperationController(options) {
1382
1382
  pluginOptions = options2;
1383
1383
  },
1384
1384
  setMetadata(key, value) {
1385
- metadata.set(key, value);
1385
+ temp.set(key, value);
1386
1386
  }
1387
1387
  };
1388
1388
  return controller;
@@ -1552,7 +1552,7 @@ function createInfiniteReadController(options) {
1552
1552
  requestTimestamp: Date.now(),
1553
1553
  hookId,
1554
1554
  request: { headers: {} },
1555
- metadata: /* @__PURE__ */ new Map(),
1555
+ temp: /* @__PURE__ */ new Map(),
1556
1556
  pluginOptions,
1557
1557
  stateManager,
1558
1558
  eventEmitter
package/dist/index.mjs CHANGED
@@ -1179,7 +1179,7 @@ function createOperationController(options) {
1179
1179
  options: initialRequestOptions
1180
1180
  });
1181
1181
  let abortController = null;
1182
- const metadata = /* @__PURE__ */ new Map();
1182
+ const temp = /* @__PURE__ */ new Map();
1183
1183
  let pluginOptions = void 0;
1184
1184
  const initialState = createInitialState();
1185
1185
  let cachedState = initialState;
@@ -1200,7 +1200,7 @@ function createOperationController(options) {
1200
1200
  ...requestOptions,
1201
1201
  headers: resolvedHeaders ?? {}
1202
1202
  },
1203
- metadata,
1203
+ temp,
1204
1204
  pluginOptions,
1205
1205
  stateManager,
1206
1206
  eventEmitter
@@ -1321,7 +1321,7 @@ function createOperationController(options) {
1321
1321
  pluginOptions = options2;
1322
1322
  },
1323
1323
  setMetadata(key, value) {
1324
- metadata.set(key, value);
1324
+ temp.set(key, value);
1325
1325
  }
1326
1326
  };
1327
1327
  return controller;
@@ -1491,7 +1491,7 @@ function createInfiniteReadController(options) {
1491
1491
  requestTimestamp: Date.now(),
1492
1492
  hookId,
1493
1493
  request: { headers: {} },
1494
- metadata: /* @__PURE__ */ new Map(),
1494
+ temp: /* @__PURE__ */ new Map(),
1495
1495
  pluginOptions,
1496
1496
  stateManager,
1497
1497
  eventEmitter
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spoosh/core",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "license": "MIT",
5
5
  "description": "Type-safe API toolkit with plugin middleware system",
6
6
  "keywords": [