sst 0.1.1 → 0.1.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/aws/realtime.d.ts +10 -5
- package/dist/aws/realtime.js +10 -5
- package/package.json +6 -6
package/dist/aws/realtime.d.ts
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { Context, IoTCustomAuthorizerEvent } from "aws-lambda";
|
|
2
|
+
/**
|
|
3
|
+
* The `realtime` client SDK is available through the following.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```js title="src/authorizer.ts"
|
|
7
|
+
* import { realtime } from "sst/aws/realtime";
|
|
8
|
+
* ```
|
|
9
|
+
*/
|
|
2
10
|
export declare namespace realtime {
|
|
3
11
|
interface AuthResult {
|
|
4
12
|
/**
|
|
@@ -43,17 +51,14 @@ export declare namespace realtime {
|
|
|
43
51
|
*
|
|
44
52
|
* @example
|
|
45
53
|
* ```js title="src/authorizer.ts" "realtime.authorizer"
|
|
46
|
-
* import { Resource } from "sst/aws";
|
|
47
|
-
* import { realtime } from "sst/aws/realtime";
|
|
48
|
-
*
|
|
49
54
|
* export const handler = realtime.authorizer(async (token) => {
|
|
50
55
|
* // Validate the token
|
|
51
56
|
* console.log(token);
|
|
52
57
|
*
|
|
53
58
|
* // Return the topics to subscribe and publish
|
|
54
59
|
* return {
|
|
55
|
-
* subscribe: [
|
|
56
|
-
* publish: [
|
|
60
|
+
* subscribe: ["*"],
|
|
61
|
+
* publish: ["*"],
|
|
57
62
|
* };
|
|
58
63
|
* });
|
|
59
64
|
* ```
|
package/dist/aws/realtime.js
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `realtime` client SDK is available through the following.
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```js title="src/authorizer.ts"
|
|
6
|
+
* import { realtime } from "sst/aws/realtime";
|
|
7
|
+
* ```
|
|
8
|
+
*/
|
|
1
9
|
export var realtime;
|
|
2
10
|
(function (realtime) {
|
|
3
11
|
/**
|
|
@@ -6,17 +14,14 @@ export var realtime;
|
|
|
6
14
|
*
|
|
7
15
|
* @example
|
|
8
16
|
* ```js title="src/authorizer.ts" "realtime.authorizer"
|
|
9
|
-
* import { Resource } from "sst/aws";
|
|
10
|
-
* import { realtime } from "sst/aws/realtime";
|
|
11
|
-
*
|
|
12
17
|
* export const handler = realtime.authorizer(async (token) => {
|
|
13
18
|
* // Validate the token
|
|
14
19
|
* console.log(token);
|
|
15
20
|
*
|
|
16
21
|
* // Return the topics to subscribe and publish
|
|
17
22
|
* return {
|
|
18
|
-
* subscribe: [
|
|
19
|
-
* publish: [
|
|
23
|
+
* subscribe: ["*"],
|
|
24
|
+
* publish: ["*"],
|
|
20
25
|
* };
|
|
21
26
|
* });
|
|
22
27
|
* ```
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "sst",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.2",
|
|
7
7
|
"main": "./dist/index.js",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": "./dist/index.js",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"optionalDependencies": {
|
|
50
|
-
"sst-linux-x64": "0.1.
|
|
51
|
-
"sst-linux-x86": "0.1.
|
|
52
|
-
"sst-linux-arm64": "0.1.
|
|
53
|
-
"sst-darwin-x64": "0.1.
|
|
54
|
-
"sst-darwin-arm64": "0.1.
|
|
50
|
+
"sst-linux-x64": "0.1.2",
|
|
51
|
+
"sst-linux-x86": "0.1.2",
|
|
52
|
+
"sst-linux-arm64": "0.1.2",
|
|
53
|
+
"sst-darwin-x64": "0.1.2",
|
|
54
|
+
"sst-darwin-arm64": "0.1.2"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@aws-sdk/client-lambda": "3.478.0",
|