@skipruntime/helpers 0.0.18 → 0.0.20
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/src/rest.d.ts +1 -1
- package/dist/src/rest.js +1 -1
- package/package.json +2 -2
- package/src/rest.ts +1 -1
- package/tsconfig.json +4 -1
package/dist/src/rest.d.ts
CHANGED
|
@@ -88,7 +88,7 @@ export declare class SkipServiceBroker {
|
|
|
88
88
|
* @param params - Resource instance parameters.
|
|
89
89
|
* @param key - Key to read.
|
|
90
90
|
* @returns The value associated to the key.
|
|
91
|
-
* @throws
|
|
91
|
+
* @throws {SkipNonUniqueValueError} when the key is associated to either zero or multiple values.
|
|
92
92
|
*/
|
|
93
93
|
getUnique<K extends Json, V extends Json>(resource: string, params: Json, key: K): Promise<V>;
|
|
94
94
|
/**
|
package/dist/src/rest.js
CHANGED
|
@@ -98,7 +98,7 @@ export class SkipServiceBroker {
|
|
|
98
98
|
* @param params - Resource instance parameters.
|
|
99
99
|
* @param key - Key to read.
|
|
100
100
|
* @returns The value associated to the key.
|
|
101
|
-
* @throws
|
|
101
|
+
* @throws {SkipNonUniqueValueError} when the key is associated to either zero or multiple values.
|
|
102
102
|
*/
|
|
103
103
|
async getUnique(resource, params, key) {
|
|
104
104
|
return this.getArray(resource, params, key).then((values) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skipruntime/helpers",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dist/src/index.js"
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"eventsource": "^2.0.2",
|
|
21
21
|
"express": "^4.21.1",
|
|
22
|
-
"@skipruntime/core": "0.0.
|
|
22
|
+
"@skipruntime/core": "0.0.19"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/eventsource": "^1.1.15"
|
package/src/rest.ts
CHANGED
|
@@ -160,7 +160,7 @@ export class SkipServiceBroker {
|
|
|
160
160
|
* @param params - Resource instance parameters.
|
|
161
161
|
* @param key - Key to read.
|
|
162
162
|
* @returns The value associated to the key.
|
|
163
|
-
* @throws
|
|
163
|
+
* @throws {SkipNonUniqueValueError} when the key is associated to either zero or multiple values.
|
|
164
164
|
*/
|
|
165
165
|
async getUnique<K extends Json, V extends Json>(
|
|
166
166
|
resource: string,
|