@knocklabs/node 0.6.3 → 0.6.4
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/package.json
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Grants = void 0;
|
|
4
4
|
var Grants;
|
|
5
5
|
(function (Grants) {
|
|
6
|
-
Grants["SlackChannelsRead"] = "
|
|
6
|
+
Grants["SlackChannelsRead"] = "slack/channels_read";
|
|
7
7
|
Grants["ChannelDataRead"] = "channel_data/read";
|
|
8
8
|
Grants["ChannelDataWrite"] = "channel_data/write";
|
|
9
9
|
})(Grants || (exports.Grants = Grants = {}));
|
package/dist/src/knock.js
CHANGED
|
@@ -221,7 +221,7 @@ function maybePrepareUserTokenGrants(grants) {
|
|
|
221
221
|
if (!grants)
|
|
222
222
|
return undefined;
|
|
223
223
|
// Given a list of token grants, flattens them into a single object
|
|
224
|
-
// like: { "entity": { "
|
|
224
|
+
// like: { "entity": { "slack/channels_read": [] } }
|
|
225
225
|
return grants.reduce((acc, grant) => {
|
|
226
226
|
if (acc[grant.entity]) {
|
|
227
227
|
const currentGrants = acc[grant.entity];
|