Skip to content

Commit

Permalink
Exposes <! and renames management-api
Browse files Browse the repository at this point in the history
  • Loading branch information
dehli committed Jan 21, 2020
1 parent 5e9fd89 commit e180224
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

- 0.1.19
- Renames `serverless.aws.api-gateway/api-gateway-management-api`
to `serverless.aws.api-gateway/management-api`
- 0.1.18
- Adds whitelist for API Gateway methods
- 0.1.17
- Updates `serverless.aws.api-gateway` to use functions again
- 0.1.16
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<groupId>dehli</groupId>
<artifactId>serverless</artifactId>
<version>0.1.18</version>
<version>0.1.19</version>
<name>serverless</name>

<dependencies>
Expand Down
7 changes: 3 additions & 4 deletions src/serverless/aws/api_gateway.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
[serverless.core :refer [def-]]
[serverless.json :refer [json->clj clj->json]]))

(def- ApiGatewayManagementApi (gobj/get AWS "ApiGatewayManagementApi"))
(def- ManagementApi (gobj/get AWS "ApiGatewayManagementApi"))

;; Constructor
(defn api-gateway-management-api [^String endpoint]
(new ApiGatewayManagementApi
(clj->js {:apiVersion "2018-11-29" :endpoint endpoint})))
(defn management-api [^String endpoint]
(new ManagementApi (clj->js {:apiVersion "2018-11-29" :endpoint endpoint})))

;; Method helpers
(def- base-xform #(select-keys % [:connection-id]))
Expand Down
4 changes: 3 additions & 1 deletion src/serverless/core/async.cljs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
(ns serverless.core.async
(:require [cljs.core.async])
(:require [cljs.core.async :as async])
(:require-macros [serverless.core.async]))

(def <! async/<!)

0 comments on commit e180224

Please sign in to comment.