@spoosh/angular 0.6.4 → 0.6.5

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.js CHANGED
@@ -50,7 +50,7 @@ function createInjectRead(options) {
50
50
  let currentResolvedTags = [];
51
51
  let prevContext = null;
52
52
  let isMounted = false;
53
- const hookId = `angular-${Math.random().toString(36).slice(2)}`;
53
+ const instanceId = `angular-${Math.random().toString(36).slice(2)}`;
54
54
  const captureSelector = () => {
55
55
  const selectorResult = {
56
56
  call: null,
@@ -78,7 +78,7 @@ function createInjectRead(options) {
78
78
  stateManager,
79
79
  eventEmitter,
80
80
  pluginExecutor,
81
- hookId,
81
+ instanceId,
82
82
  fetchFn: async (fetchOpts) => {
83
83
  const pathMethods = api(capturedCall.path);
84
84
  const method = pathMethods[capturedCall.method];
@@ -365,7 +365,7 @@ function createInjectWrite(options) {
365
365
  }
366
366
  return selectorResult.selector;
367
367
  };
368
- const hookId = `angular-${Math.random().toString(36).slice(2)}`;
368
+ const instanceId = `angular-${Math.random().toString(36).slice(2)}`;
369
369
  let currentQueryKey = null;
370
370
  let currentController = null;
371
371
  let currentSubscription = null;
@@ -406,7 +406,7 @@ function createInjectWrite(options) {
406
406
  stateManager,
407
407
  eventEmitter,
408
408
  pluginExecutor,
409
- hookId,
409
+ instanceId,
410
410
  fetchFn: async (fetchOpts) => {
411
411
  const pathMethods = api(selectedEndpoint.path);
412
412
  const method = pathMethods[selectedEndpoint.method];
@@ -519,7 +519,7 @@ function createInjectInfiniteRead(options) {
519
519
  }
520
520
  return selectorResult.call;
521
521
  };
522
- const hookId = `angular-${Math.random().toString(36).slice(2)}`;
522
+ const instanceId = `angular-${Math.random().toString(36).slice(2)}`;
523
523
  const dataSignal = (0, import_core5.signal)(void 0);
524
524
  const allResponsesSignal = (0, import_core5.signal)(void 0);
525
525
  const errorSignal = (0, import_core5.signal)(void 0);
@@ -600,7 +600,7 @@ function createInjectInfiniteRead(options) {
600
600
  stateManager,
601
601
  eventEmitter,
602
602
  pluginExecutor,
603
- hookId,
603
+ instanceId,
604
604
  fetchFn: async (opts, abortSignal) => {
605
605
  const pathMethods = api(capturedCall.path);
606
606
  const method = pathMethods[capturedCall.method];
package/dist/index.mjs CHANGED
@@ -35,7 +35,7 @@ function createInjectRead(options) {
35
35
  let currentResolvedTags = [];
36
36
  let prevContext = null;
37
37
  let isMounted = false;
38
- const hookId = `angular-${Math.random().toString(36).slice(2)}`;
38
+ const instanceId = `angular-${Math.random().toString(36).slice(2)}`;
39
39
  const captureSelector = () => {
40
40
  const selectorResult = {
41
41
  call: null,
@@ -63,7 +63,7 @@ function createInjectRead(options) {
63
63
  stateManager,
64
64
  eventEmitter,
65
65
  pluginExecutor,
66
- hookId,
66
+ instanceId,
67
67
  fetchFn: async (fetchOpts) => {
68
68
  const pathMethods = api(capturedCall.path);
69
69
  const method = pathMethods[capturedCall.method];
@@ -355,7 +355,7 @@ function createInjectWrite(options) {
355
355
  }
356
356
  return selectorResult.selector;
357
357
  };
358
- const hookId = `angular-${Math.random().toString(36).slice(2)}`;
358
+ const instanceId = `angular-${Math.random().toString(36).slice(2)}`;
359
359
  let currentQueryKey = null;
360
360
  let currentController = null;
361
361
  let currentSubscription = null;
@@ -396,7 +396,7 @@ function createInjectWrite(options) {
396
396
  stateManager,
397
397
  eventEmitter,
398
398
  pluginExecutor,
399
- hookId,
399
+ instanceId,
400
400
  fetchFn: async (fetchOpts) => {
401
401
  const pathMethods = api(selectedEndpoint.path);
402
402
  const method = pathMethods[selectedEndpoint.method];
@@ -521,7 +521,7 @@ function createInjectInfiniteRead(options) {
521
521
  }
522
522
  return selectorResult.call;
523
523
  };
524
- const hookId = `angular-${Math.random().toString(36).slice(2)}`;
524
+ const instanceId = `angular-${Math.random().toString(36).slice(2)}`;
525
525
  const dataSignal = signal3(void 0);
526
526
  const allResponsesSignal = signal3(void 0);
527
527
  const errorSignal = signal3(void 0);
@@ -602,7 +602,7 @@ function createInjectInfiniteRead(options) {
602
602
  stateManager,
603
603
  eventEmitter,
604
604
  pluginExecutor,
605
- hookId,
605
+ instanceId,
606
606
  fetchFn: async (opts, abortSignal) => {
607
607
  const pathMethods = api(capturedCall.path);
608
608
  const method = pathMethods[capturedCall.method];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spoosh/angular",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "license": "MIT",
5
5
  "description": "Angular signals integration for Spoosh API toolkit",
6
6
  "keywords": [
@@ -34,13 +34,13 @@
34
34
  }
35
35
  },
36
36
  "peerDependencies": {
37
- "@spoosh/core": ">=0.11.1",
37
+ "@spoosh/core": ">=0.12.0",
38
38
  "@angular/core": ">=16.0.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@angular/core": "^19.0.0",
42
- "@spoosh/core": "0.11.1",
43
- "@spoosh/test-utils": "0.1.6"
42
+ "@spoosh/core": "0.12.0",
43
+ "@spoosh/test-utils": "0.1.8"
44
44
  },
45
45
  "scripts": {
46
46
  "dev": "tsup --watch",