@cripty2001/utils 0.0.83 → 0.0.85

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.
@@ -76,6 +76,8 @@ class Client {
76
76
  const decoded = (0, msgpack_1.decode)(await res.arrayBuffer());
77
77
  let responseData;
78
78
  switch (res.status) {
79
+ case 404:
80
+ throw new ClientError("Not found");
79
81
  case 401:
80
82
  case 403:
81
83
  if (testedToken === this.authToken.value) {
@@ -1,4 +1,4 @@
1
- import { type Static } from "@cripty2001/utils/appserver/server";
1
+ import { type Static } from "../Appserver/server.js";
2
2
  export declare const TEMPLATE_SCHEMA: import("@sinclair/typebox").TObject<{
3
3
  style: import("@sinclair/typebox").TObject<{
4
4
  font: import("@sinclair/typebox").TString;
@@ -7,17 +7,17 @@ exports.TEMPLATE_SCHEMA = void 0;
7
7
  exports.genBuilder = genBuilder;
8
8
  const handlebars_1 = __importDefault(require("handlebars"));
9
9
  const mjml_1 = __importDefault(require("mjml"));
10
- const server_1 = require("@cripty2001/utils/appserver/server");
10
+ const server_js_1 = require("../Appserver/server.js");
11
11
  const image_js_1 = require("./image.js");
12
12
  const raw_js_1 = require("./raw.js");
13
13
  const text_js_1 = require("./text.js");
14
- exports.TEMPLATE_SCHEMA = server_1.Type.Object({
15
- style: server_1.Type.Object({
16
- font: server_1.Type.String(),
17
- backgroundColor: server_1.Type.String(),
18
- textColor: server_1.Type.String()
14
+ exports.TEMPLATE_SCHEMA = server_js_1.Type.Object({
15
+ style: server_js_1.Type.Object({
16
+ font: server_js_1.Type.String(),
17
+ backgroundColor: server_js_1.Type.String(),
18
+ textColor: server_js_1.Type.String()
19
19
  }),
20
- content: server_1.Type.Array(server_1.Type.Union([
20
+ content: server_js_1.Type.Array(server_js_1.Type.Union([
21
21
  image_js_1.SCHEMA,
22
22
  text_js_1.SCHEMA,
23
23
  raw_js_1.SCHEMA
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cripty2001/utils",
3
- "version": "0.0.83",
3
+ "version": "0.0.85",
4
4
  "description": "Internal Set of utils. If you need them use them, otherwise go to the next package ;)",
5
5
  "homepage": "https://github.com/cripty2001/utils#readme",
6
6
  "bugs": {