@slack/bolt 4.0.0-nextGen.1 → 4.0.0-nextGen.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slack/bolt",
|
|
3
|
-
"version": "4.0.0-nextGen.
|
|
3
|
+
"version": "4.0.0-nextGen.2",
|
|
4
4
|
"description": "A framework for building Slack apps, fast.",
|
|
5
5
|
"author": "Slack Technologies, LLC",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@slack/types": "^2.7.0",
|
|
55
55
|
"@slack/web-api": "^6.7.1",
|
|
56
56
|
"@types/express": "^4.16.1",
|
|
57
|
-
"@types/node": "
|
|
57
|
+
"@types/node": "18.7.15",
|
|
58
58
|
"@types/promise.allsettled": "^1.0.3",
|
|
59
59
|
"@types/tsscmp": "^1.0.0",
|
|
60
60
|
"axios": "^0.26.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SlackFunction-utils.d.ts","sourceRoot":"","sources":["../src/SlackFunction-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAG3D,eAAO,MAAM,YAAY,KAAuC,CAAC;AAEjE,wBAAgB,8BAA8B,CAAC,UAAU,EAAE,MAAM,GAAG,wBAAwB,CAmB3F"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.findMatchingManifestDefinition = exports.manifestUtil = void 0;
|
|
4
|
-
const errors_1 = require("./errors");
|
|
5
|
-
// eslint-disable-next-line
|
|
6
|
-
exports.manifestUtil = require('./cli/hook-utils/manifest');
|
|
7
|
-
function findMatchingManifestDefinition(callbackId) {
|
|
8
|
-
const result = { matchFound: false, fnKeys: [] };
|
|
9
|
-
// call the hook to get the manifest
|
|
10
|
-
const manifest = exports.manifestUtil.getManifestData(process.cwd());
|
|
11
|
-
// manifest file must exist in the project
|
|
12
|
-
if (!('functions' in manifest)) {
|
|
13
|
-
const msg = '⚠️ Could not find functions in your project manifest.';
|
|
14
|
-
throw new errors_1.SlackFunctionInitializationError(msg);
|
|
15
|
-
}
|
|
16
|
-
try {
|
|
17
|
-
// set the keys
|
|
18
|
-
result.fnKeys = Object.keys(manifest.functions);
|
|
19
|
-
result.matchFound = result.fnKeys.includes(callbackId);
|
|
20
|
-
}
|
|
21
|
-
catch (error) {
|
|
22
|
-
throw new errors_1.SlackFunctionInitializationError('Something went wrong when trying to read your manifest function definitions');
|
|
23
|
-
}
|
|
24
|
-
return result;
|
|
25
|
-
}
|
|
26
|
-
exports.findMatchingManifestDefinition = findMatchingManifestDefinition;
|
|
27
|
-
//# sourceMappingURL=SlackFunction-utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SlackFunction-utils.js","sourceRoot":"","sources":["../src/SlackFunction-utils.ts"],"names":[],"mappings":";;;AAAA,qCAA4D;AAG5D,2BAA2B;AACd,QAAA,YAAY,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;AAEjE,SAAgB,8BAA8B,CAAC,UAAkB;IAC/D,MAAM,MAAM,GAA6B,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;IAC3E,oCAAoC;IACpC,MAAM,QAAQ,GAAG,oBAAY,CAAC,eAAe,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IAE7D,0CAA0C;IAC1C,IAAI,CAAC,CAAC,WAAW,IAAI,QAAQ,CAAC,EAAE;QAC9B,MAAM,GAAG,GAAG,uDAAuD,CAAC;QACpE,MAAM,IAAI,yCAAgC,CAAC,GAAG,CAAC,CAAC;KACjD;IAED,IAAI;QACF,eAAe;QACf,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAChD,MAAM,CAAC,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;KACxD;IAAC,OAAO,KAAK,EAAE;QACd,MAAM,IAAI,yCAAgC,CAAC,6EAA6E,CAAC,CAAC;KAC3H;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAnBD,wEAmBC"}
|