@comunica/actor-query-result-serialize-stats 2.10.2 → 3.0.1-alpha.43.0

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/README.md CHANGED
@@ -23,7 +23,7 @@ After installing, this package can be added to your engine's configuration as fo
23
23
  {
24
24
  "@context": [
25
25
  ...
26
- "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-stats/^2.0.0/components/context.jsonld"
26
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-stats/^3.0.0/components/context.jsonld"
27
27
  ],
28
28
  "actors": [
29
29
  ...
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "@context": [
3
- "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-stats/^2.0.0/components/context.jsonld",
4
- "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-http-invalidate/^2.0.0/components/context.jsonld",
5
- "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/core/^2.0.0/components/context.jsonld",
6
- "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-http/^2.0.0/components/context.jsonld"
3
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-stats/^3.0.0/components/context.jsonld",
4
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-http-invalidate/^3.0.0/components/context.jsonld",
5
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/core/^3.0.0/components/context.jsonld",
6
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-http/^3.0.0/components/context.jsonld"
7
7
  ],
8
8
  "@id": "npmd:@comunica/actor-query-result-serialize-stats",
9
9
  "components": [
@@ -28,7 +28,7 @@
28
28
  "range": "cbhi:components/ActorHttpInvalidateListenable.jsonld#ActorHttpInvalidateListenable",
29
29
  "default": {
30
30
  "@id": "caqrsst:components/ActionObserverHttp.jsonld#IActionObserverHttpArgs_default_invalidator",
31
- "@type": "npmd:@comunica/bus-http-invalidate/^2.0.0/components/ActorHttpInvalidateListenable.jsonld#ActorHttpInvalidateListenable"
31
+ "@type": "npmd:@comunica/bus-http-invalidate/^3.0.0/components/ActorHttpInvalidateListenable.jsonld#ActorHttpInvalidateListenable"
32
32
  },
33
33
  "comment": "An actor that listens to HTTP invalidation events"
34
34
  },
@@ -52,32 +52,32 @@
52
52
  "genericTypeInstances": [
53
53
  {
54
54
  "@type": "ParameterRangeGenericTypeReference",
55
- "parameterRangeGenericType": "npmd:@comunica/actor-query-result-serialize-sparql-json/^2.0.0/components/ActionObserverHttp.jsonld#ActionObserverHttp__generic_I"
55
+ "parameterRangeGenericType": "npmd:@comunica/actor-query-result-serialize-sparql-json/^3.0.0/components/ActionObserverHttp.jsonld#ActionObserverHttp__generic_I"
56
56
  },
57
57
  {
58
58
  "@type": "ParameterRangeWildcard"
59
59
  },
60
60
  {
61
61
  "@type": "ParameterRangeGenericTypeReference",
62
- "parameterRangeGenericType": "npmd:@comunica/actor-query-result-serialize-sparql-json/^2.0.0/components/ActionObserverHttp.jsonld#ActionObserverHttp__generic_O"
62
+ "parameterRangeGenericType": "npmd:@comunica/actor-query-result-serialize-sparql-json/^3.0.0/components/ActionObserverHttp.jsonld#ActionObserverHttp__generic_O"
63
63
  }
64
64
  ]
65
65
  },
66
66
  {
67
67
  "@type": "ParameterRangeGenericTypeReference",
68
- "parameterRangeGenericType": "npmd:@comunica/actor-query-result-serialize-sparql-json/^2.0.0/components/ActionObserverHttp.jsonld#ActionObserverHttp__generic_I"
68
+ "parameterRangeGenericType": "npmd:@comunica/actor-query-result-serialize-sparql-json/^3.0.0/components/ActionObserverHttp.jsonld#ActionObserverHttp__generic_I"
69
69
  },
70
70
  {
71
71
  "@type": "ParameterRangeWildcard"
72
72
  },
73
73
  {
74
74
  "@type": "ParameterRangeGenericTypeReference",
75
- "parameterRangeGenericType": "npmd:@comunica/actor-query-result-serialize-sparql-json/^2.0.0/components/ActionObserverHttp.jsonld#ActionObserverHttp__generic_O"
75
+ "parameterRangeGenericType": "npmd:@comunica/actor-query-result-serialize-sparql-json/^3.0.0/components/ActionObserverHttp.jsonld#ActionObserverHttp__generic_O"
76
76
  }
77
77
  ]
78
78
  },
79
79
  "default": {
80
- "@id": "npmd:@comunica/bus-http/^2.0.0/components/ActorHttp.jsonld#ActorHttp_default_bus"
80
+ "@id": "npmd:@comunica/bus-http/^3.0.0/components/ActorHttp.jsonld#ActorHttp_default_bus"
81
81
  },
82
82
  "comment": "The bus this observer can subscribe to."
83
83
  }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "@context": [
3
- "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-stats/^2.0.0/components/context.jsonld",
4
- "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/core/^2.0.0/components/context.jsonld",
5
- "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-query-result-serialize/^2.0.0/components/context.jsonld"
3
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-stats/^3.0.0/components/context.jsonld",
4
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/core/^3.0.0/components/context.jsonld",
5
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-query-result-serialize/^3.0.0/components/context.jsonld"
6
6
  ],
7
7
  "@id": "npmd:@comunica/actor-query-result-serialize-stats",
8
8
  "components": [
@@ -78,29 +78,29 @@
78
78
  "genericTypeInstances": [
79
79
  {
80
80
  "@type": "ParameterRangeGenericTypeReference",
81
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^2.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
81
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
82
82
  },
83
83
  {
84
84
  "@type": "ParameterRangeGenericTypeReference",
85
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^2.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
85
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
86
86
  },
87
87
  {
88
88
  "@type": "ParameterRangeGenericTypeReference",
89
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^2.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
89
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
90
90
  }
91
91
  ]
92
92
  },
93
93
  {
94
94
  "@type": "ParameterRangeGenericTypeReference",
95
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^2.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
95
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
96
96
  },
97
97
  {
98
98
  "@type": "ParameterRangeGenericTypeReference",
99
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^2.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
99
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
100
100
  },
101
101
  {
102
102
  "@type": "ParameterRangeGenericTypeReference",
103
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^2.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
103
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
104
104
  }
105
105
  ]
106
106
  },
@@ -123,15 +123,15 @@
123
123
  "genericTypeInstances": [
124
124
  {
125
125
  "@type": "ParameterRangeGenericTypeReference",
126
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^2.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
126
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
127
127
  },
128
128
  {
129
129
  "@type": "ParameterRangeGenericTypeReference",
130
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^2.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
130
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
131
131
  },
132
132
  {
133
133
  "@type": "ParameterRangeGenericTypeReference",
134
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^2.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
134
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
135
135
  }
136
136
  ]
137
137
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "@context": [
3
- "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-stats/^2.0.0/components/context.jsonld"
3
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-stats/^3.0.0/components/context.jsonld"
4
4
  ],
5
5
  "@id": "npmd:@comunica/actor-query-result-serialize-stats",
6
6
  "@type": "Module",
@@ -3,7 +3,7 @@
3
3
  "https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^5.0.0/components/context.jsonld",
4
4
  {
5
5
  "npmd": "https://linkedsoftwaredependencies.org/bundles/npm/",
6
- "caqrsst": "npmd:@comunica/actor-query-result-serialize-stats/^2.0.0/",
6
+ "caqrsst": "npmd:@comunica/actor-query-result-serialize-stats/^3.0.0/",
7
7
  "ActionObserverHttp": {
8
8
  "@id": "caqrsst:components/ActionObserverHttp.jsonld#ActionObserverHttp",
9
9
  "@prefix": true,
@@ -9,7 +9,7 @@ export declare class ActionObserverHttp extends ActionObserver<IActionHttp, IAct
9
9
  readonly httpInvalidator: ActorHttpInvalidateListenable;
10
10
  requests: number;
11
11
  /**
12
- * @param args - @defaultNested {<npmd:@comunica/bus-http/^2.0.0/components/ActorHttp.jsonld#ActorHttp_default_bus>} bus
12
+ * @param args - @defaultNested {<npmd:@comunica/bus-http/^3.0.0/components/ActorHttp.jsonld#ActorHttp_default_bus>} bus
13
13
  */
14
14
  constructor(args: IActionObserverHttpArgs);
15
15
  onRun(actor: Actor<IActionHttp, IActorTest, IActorHttpOutput>, action: IActionHttp, output: Promise<IActorHttpOutput>): void;
@@ -17,7 +17,7 @@ export declare class ActionObserverHttp extends ActionObserver<IActionHttp, IAct
17
17
  export interface IActionObserverHttpArgs extends IActionObserverArgs<IActionHttp, IActorHttpOutput> {
18
18
  /**
19
19
  * An actor that listens to HTTP invalidation events
20
- * @default {<default_invalidator> a <npmd:@comunica/bus-http-invalidate/^2.0.0/components/ActorHttpInvalidateListenable.jsonld#ActorHttpInvalidateListenable>}
20
+ * @default {<default_invalidator> a <npmd:@comunica/bus-http-invalidate/^3.0.0/components/ActorHttpInvalidateListenable.jsonld#ActorHttpInvalidateListenable>}
21
21
  */
22
22
  httpInvalidator: ActorHttpInvalidateListenable;
23
23
  }
@@ -8,7 +8,7 @@ const core_1 = require("@comunica/core");
8
8
  class ActionObserverHttp extends core_1.ActionObserver {
9
9
  /* eslint-disable max-len */
10
10
  /**
11
- * @param args - @defaultNested {<npmd:@comunica/bus-http/^2.0.0/components/ActorHttp.jsonld#ActorHttp_default_bus>} bus
11
+ * @param args - @defaultNested {<npmd:@comunica/bus-http/^3.0.0/components/ActorHttp.jsonld#ActorHttp_default_bus>} bus
12
12
  */
13
13
  constructor(args) {
14
14
  super(args);
@@ -1 +1 @@
1
- {"version":3,"file":"ActionObserverHttp.js","sourceRoot":"","sources":["ActionObserverHttp.ts"],"names":[],"mappings":";;;AAGA,yCAAgD;AAEhD;;GAEG;AACH,MAAa,kBAAmB,SAAQ,qBAA6C;IAInF,4BAA4B;IAC5B;;OAEG;IACH,YAAmB,IAA6B;QAC9C,KAAK,CAAC,IAAI,CAAC,CAAC;QAPP,aAAQ,GAAG,CAAC,CAAC;QAQlB,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,eAAe,CAAC,qBAAqB,CAAC,GAAG,EAAE;YAC9C,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;QACpB,CAAC,CAAC,CAAC;IACL,CAAC;IACD,2BAA2B;IAEpB,KAAK,CAAC,KAAuD,EAClE,MAAmB,EAAE,MAAiC;QACtD,IAAI,CAAC,QAAQ,EAAE,CAAC;IAClB,CAAC;CACF;AArBD,gDAqBC","sourcesContent":["import type { IActionHttp, IActorHttpOutput } from '@comunica/bus-http';\nimport type { ActorHttpInvalidateListenable } from '@comunica/bus-http-invalidate';\nimport type { Actor, IActionObserverArgs, IActorTest } from '@comunica/core';\nimport { ActionObserver } from '@comunica/core';\n\n/**\n * Observes HTTP actions, and maintains a counter of the number of requests.\n */\nexport class ActionObserverHttp extends ActionObserver<IActionHttp, IActorHttpOutput> {\n public readonly httpInvalidator: ActorHttpInvalidateListenable;\n public requests = 0;\n\n /* eslint-disable max-len */\n /**\n * @param args - @defaultNested {<npmd:@comunica/bus-http/^2.0.0/components/ActorHttp.jsonld#ActorHttp_default_bus>} bus\n */\n public constructor(args: IActionObserverHttpArgs) {\n super(args);\n this.bus.subscribeObserver(this);\n this.httpInvalidator.addInvalidateListener(() => {\n this.requests = 0;\n });\n }\n /* eslint-enable max-len */\n\n public onRun(actor: Actor<IActionHttp, IActorTest, IActorHttpOutput>,\n action: IActionHttp, output: Promise<IActorHttpOutput>): void {\n this.requests++;\n }\n}\n\nexport interface IActionObserverHttpArgs extends IActionObserverArgs<IActionHttp, IActorHttpOutput> {\n /* eslint-disable max-len */\n /**\n * An actor that listens to HTTP invalidation events\n * @default {<default_invalidator> a <npmd:@comunica/bus-http-invalidate/^2.0.0/components/ActorHttpInvalidateListenable.jsonld#ActorHttpInvalidateListenable>}\n */\n httpInvalidator: ActorHttpInvalidateListenable;\n /* eslint-enable max-len */\n}\n"]}
1
+ {"version":3,"file":"ActionObserverHttp.js","sourceRoot":"","sources":["ActionObserverHttp.ts"],"names":[],"mappings":";;;AAGA,yCAAgD;AAEhD;;GAEG;AACH,MAAa,kBAAmB,SAAQ,qBAA6C;IAInF,4BAA4B;IAC5B;;OAEG;IACH,YAAmB,IAA6B;QAC9C,KAAK,CAAC,IAAI,CAAC,CAAC;QAPP,aAAQ,GAAG,CAAC,CAAC;QAQlB,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,eAAe,CAAC,qBAAqB,CAAC,GAAG,EAAE;YAC9C,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;QACpB,CAAC,CAAC,CAAC;IACL,CAAC;IACD,2BAA2B;IAEpB,KAAK,CAAC,KAAuD,EAClE,MAAmB,EAAE,MAAiC;QACtD,IAAI,CAAC,QAAQ,EAAE,CAAC;IAClB,CAAC;CACF;AArBD,gDAqBC","sourcesContent":["import type { IActionHttp, IActorHttpOutput } from '@comunica/bus-http';\nimport type { ActorHttpInvalidateListenable } from '@comunica/bus-http-invalidate';\nimport type { Actor, IActionObserverArgs, IActorTest } from '@comunica/core';\nimport { ActionObserver } from '@comunica/core';\n\n/**\n * Observes HTTP actions, and maintains a counter of the number of requests.\n */\nexport class ActionObserverHttp extends ActionObserver<IActionHttp, IActorHttpOutput> {\n public readonly httpInvalidator: ActorHttpInvalidateListenable;\n public requests = 0;\n\n /* eslint-disable max-len */\n /**\n * @param args - @defaultNested {<npmd:@comunica/bus-http/^3.0.0/components/ActorHttp.jsonld#ActorHttp_default_bus>} bus\n */\n public constructor(args: IActionObserverHttpArgs) {\n super(args);\n this.bus.subscribeObserver(this);\n this.httpInvalidator.addInvalidateListener(() => {\n this.requests = 0;\n });\n }\n /* eslint-enable max-len */\n\n public onRun(actor: Actor<IActionHttp, IActorTest, IActorHttpOutput>,\n action: IActionHttp, output: Promise<IActorHttpOutput>): void {\n this.requests++;\n }\n}\n\nexport interface IActionObserverHttpArgs extends IActionObserverArgs<IActionHttp, IActorHttpOutput> {\n /* eslint-disable max-len */\n /**\n * An actor that listens to HTTP invalidation events\n * @default {<default_invalidator> a <npmd:@comunica/bus-http-invalidate/^3.0.0/components/ActorHttpInvalidateListenable.jsonld#ActorHttpInvalidateListenable>}\n */\n httpInvalidator: ActorHttpInvalidateListenable;\n /* eslint-enable max-len */\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comunica/actor-query-result-serialize-stats",
3
- "version": "2.10.2",
3
+ "version": "3.0.1-alpha.43.0",
4
4
  "description": "A stats query-result-serialize actor",
5
5
  "lsd:module": true,
6
6
  "main": "lib/index.js",
@@ -32,11 +32,11 @@
32
32
  "lib/**/*.js.map"
33
33
  ],
34
34
  "dependencies": {
35
- "@comunica/bus-http": "^2.10.2",
36
- "@comunica/bus-http-invalidate": "^2.10.0",
37
- "@comunica/bus-query-result-serialize": "^2.10.0",
38
- "@comunica/core": "^2.10.0",
39
- "@comunica/types": "^2.10.0",
35
+ "@comunica/bus-http": "3.0.1-alpha.43.0",
36
+ "@comunica/bus-http-invalidate": "3.0.1-alpha.43.0",
37
+ "@comunica/bus-query-result-serialize": "3.0.1-alpha.43.0",
38
+ "@comunica/core": "3.0.1-alpha.43.0",
39
+ "@comunica/types": "3.0.1-alpha.43.0",
40
40
  "process": "^0.11.10",
41
41
  "readable-stream": "^4.4.2"
42
42
  },
@@ -45,5 +45,5 @@
45
45
  "build:ts": "node \"../../node_modules/typescript/bin/tsc\"",
46
46
  "build:components": "componentsjs-generator"
47
47
  },
48
- "gitHead": "1fe8472ccb1f1f5365127be47b0c937be82960a5"
48
+ "gitHead": "d11e44cf07d4699f9d2c51d5851b5ed443de1997"
49
49
  }