@tinycloud/sdk-services 3.6.0 → 3.7.0-beta.2
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/encryption/index.cjs +5 -1
- package/dist/encryption/index.cjs.map +1 -1
- package/dist/encryption/index.js +5 -1
- package/dist/encryption/index.js.map +1 -1
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/internal/decrypt-transport-response-error.cjs +2 -1
- package/dist/internal/decrypt-transport-response-error.cjs.map +1 -1
- package/dist/internal/decrypt-transport-response-error.d.cts +5 -1
- package/dist/internal/decrypt-transport-response-error.d.ts +5 -1
- package/dist/internal/decrypt-transport-response-error.js +2 -1
- package/dist/internal/decrypt-transport-response-error.js.map +1 -1
- package/package.json +1 -1
|
@@ -24,10 +24,11 @@ __export(DecryptTransportResponseError_exports, {
|
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(DecryptTransportResponseError_exports);
|
|
26
26
|
var DecryptTransportResponseError = class extends Error {
|
|
27
|
-
constructor(status, permissionHint) {
|
|
27
|
+
constructor(status, permissionHint, notFoundMessage) {
|
|
28
28
|
super("Node decrypt request failed");
|
|
29
29
|
this.status = status;
|
|
30
30
|
this.permissionHint = permissionHint;
|
|
31
|
+
this.notFoundMessage = notFoundMessage;
|
|
31
32
|
this.name = "DecryptTransportResponseError";
|
|
32
33
|
}
|
|
33
34
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/encryption/DecryptTransportResponseError.ts"],"sourcesContent":["import type { PermissionHint } from \"../types\";\n\n/** A reachable node returned an HTTP failure for a decrypt request. */\nexport class DecryptTransportResponseError extends Error {\n constructor(readonly status: number
|
|
1
|
+
{"version":3,"sources":["../../src/encryption/DecryptTransportResponseError.ts"],"sourcesContent":["import type { PermissionHint } from \"../types\";\n\n/** A reachable node returned an HTTP failure for a decrypt request. */\nexport class DecryptTransportResponseError extends Error {\n constructor(\n readonly status: number,\n readonly permissionHint?: PermissionHint,\n /** Caller-supplied advice for a 404 on the owner's own network. */\n readonly notFoundMessage?: string,\n ) {\n super(\"Node decrypt request failed\");\n this.name = \"DecryptTransportResponseError\";\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,IAAM,gCAAN,cAA4C,MAAM;AAAA,EACvD,YACW,QACA,gBAEA,iBACT;AACA,UAAM,6BAA6B;AAL1B;AACA;AAEA;AAGT,SAAK,OAAO;AAAA,EACd;AACF;","names":[]}
|
|
@@ -4,7 +4,11 @@ import { P as PermissionHint } from '../types-DAOyIbXu.cjs';
|
|
|
4
4
|
declare class DecryptTransportResponseError extends Error {
|
|
5
5
|
readonly status: number;
|
|
6
6
|
readonly permissionHint?: PermissionHint | undefined;
|
|
7
|
-
|
|
7
|
+
/** Caller-supplied advice for a 404 on the owner's own network. */
|
|
8
|
+
readonly notFoundMessage?: string | undefined;
|
|
9
|
+
constructor(status: number, permissionHint?: PermissionHint | undefined,
|
|
10
|
+
/** Caller-supplied advice for a 404 on the owner's own network. */
|
|
11
|
+
notFoundMessage?: string | undefined);
|
|
8
12
|
}
|
|
9
13
|
|
|
10
14
|
export { DecryptTransportResponseError };
|
|
@@ -4,7 +4,11 @@ import { P as PermissionHint } from '../types-DAOyIbXu.js';
|
|
|
4
4
|
declare class DecryptTransportResponseError extends Error {
|
|
5
5
|
readonly status: number;
|
|
6
6
|
readonly permissionHint?: PermissionHint | undefined;
|
|
7
|
-
|
|
7
|
+
/** Caller-supplied advice for a 404 on the owner's own network. */
|
|
8
|
+
readonly notFoundMessage?: string | undefined;
|
|
9
|
+
constructor(status: number, permissionHint?: PermissionHint | undefined,
|
|
10
|
+
/** Caller-supplied advice for a 404 on the owner's own network. */
|
|
11
|
+
notFoundMessage?: string | undefined);
|
|
8
12
|
}
|
|
9
13
|
|
|
10
14
|
export { DecryptTransportResponseError };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// src/encryption/DecryptTransportResponseError.ts
|
|
2
2
|
var DecryptTransportResponseError = class extends Error {
|
|
3
|
-
constructor(status, permissionHint) {
|
|
3
|
+
constructor(status, permissionHint, notFoundMessage) {
|
|
4
4
|
super("Node decrypt request failed");
|
|
5
5
|
this.status = status;
|
|
6
6
|
this.permissionHint = permissionHint;
|
|
7
|
+
this.notFoundMessage = notFoundMessage;
|
|
7
8
|
this.name = "DecryptTransportResponseError";
|
|
8
9
|
}
|
|
9
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/encryption/DecryptTransportResponseError.ts"],"sourcesContent":["import type { PermissionHint } from \"../types\";\n\n/** A reachable node returned an HTTP failure for a decrypt request. */\nexport class DecryptTransportResponseError extends Error {\n constructor(readonly status: number
|
|
1
|
+
{"version":3,"sources":["../../src/encryption/DecryptTransportResponseError.ts"],"sourcesContent":["import type { PermissionHint } from \"../types\";\n\n/** A reachable node returned an HTTP failure for a decrypt request. */\nexport class DecryptTransportResponseError extends Error {\n constructor(\n readonly status: number,\n readonly permissionHint?: PermissionHint,\n /** Caller-supplied advice for a 404 on the owner's own network. */\n readonly notFoundMessage?: string,\n ) {\n super(\"Node decrypt request failed\");\n this.name = \"DecryptTransportResponseError\";\n }\n}\n"],"mappings":";AAGO,IAAM,gCAAN,cAA4C,MAAM;AAAA,EACvD,YACW,QACA,gBAEA,iBACT;AACA,UAAM,6BAA6B;AAL1B;AACA;AAEA;AAGT,SAAK,OAAO;AAAA,EACd;AACF;","names":[]}
|