@awsless/awsless 0.0.653 → 0.0.654

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/client.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _awsless_mqtt from '@awsless/mqtt';
2
- import { QoS } from '@awsless/mqtt';
2
+ import { DebugCallback, QoS } from '@awsless/mqtt';
3
3
 
4
4
  interface AuthResources {
5
5
  }
@@ -61,7 +61,7 @@ type ClientProps = {
61
61
  token?: string;
62
62
  };
63
63
  type ClientPropsProvider = () => Promise<ClientProps> | ClientProps;
64
- declare const createPubSubClient: (app: string | (() => string), props: ClientProps | ClientPropsProvider) => {
64
+ declare const createPubSubClient: (app: string | (() => string), props: ClientProps | ClientPropsProvider, debug?: DebugCallback) => {
65
65
  connected: boolean;
66
66
  topics: string[];
67
67
  publish(topic: string, event: string, payload: unknown, qos: QoS): Promise<void>;
package/dist/client.js CHANGED
@@ -80,7 +80,7 @@ var createHttpClient = (fetcher) => {
80
80
  // src/lib/client/pubsub.ts
81
81
  import { parse, stringify } from "@awsless/json";
82
82
  import { createClient } from "@awsless/mqtt";
83
- var createPubSubClient = (app, props) => {
83
+ var createPubSubClient = (app, props, debug) => {
84
84
  const mqtt = createClient(async () => {
85
85
  const config = typeof props === "function" ? await props() : props;
86
86
  return {
@@ -88,7 +88,7 @@ var createPubSubClient = (app, props) => {
88
88
  username: `?x-amz-customauthorizer-name=${config.authorizer}`,
89
89
  password: config.token
90
90
  };
91
- });
91
+ }, debug);
92
92
  const getApp = () => {
93
93
  return typeof app === "string" ? app : app();
94
94
  };
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.653",
3
+ "version": "0.0.654",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -40,9 +40,9 @@
40
40
  "@awsless/dynamodb": "^0.3.19",
41
41
  "@awsless/iot": "^0.0.3",
42
42
  "@awsless/json": "^0.0.11",
43
- "@awsless/lambda": "^0.0.41",
44
- "@awsless/mqtt": "^0.0.2",
43
+ "@awsless/mqtt": "^0.0.5",
45
44
  "@awsless/open-search": "^0.0.21",
45
+ "@awsless/lambda": "^0.0.41",
46
46
  "@awsless/redis": "^0.0.16",
47
47
  "@awsless/s3": "^0.0.21",
48
48
  "@awsless/sns": "^0.0.10",
@@ -115,9 +115,9 @@
115
115
  "zod": "^3.24.2",
116
116
  "zod-to-json-schema": "^3.24.3",
117
117
  "@awsless/big-float": "^0.1.6",
118
+ "@awsless/clui": "^0.0.8",
118
119
  "@awsless/cloudwatch": "^0.0.1",
119
120
  "@awsless/duration": "^0.0.4",
120
- "@awsless/clui": "^0.0.8",
121
121
  "@awsless/json": "^0.0.11",
122
122
  "@awsless/scheduler": "^0.0.4",
123
123
  "@awsless/size": "^0.0.2",