@gammarers/aws-sns-slack-message-lambda-subscription 1.0.13 → 1.0.14

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/.jsii CHANGED
@@ -4192,6 +4192,6 @@
4192
4192
  "symbolId": "src/index:SNSSlackMessageLambdaSubscriptionProps"
4193
4193
  }
4194
4194
  },
4195
- "version": "1.0.13",
4196
- "fingerprint": "aDEsJkhg7dKjaSa5vM8SRDgZ2rFSWI7XrZ+MzG3cis0="
4195
+ "version": "1.0.14",
4196
+ "fingerprint": "5/MMAKys87tWZgv8nnVxU99wWUTzDlR9E0YHCK/K1tw="
4197
4197
  }
@@ -30,6 +30,37 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
30
  ));
31
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
32
 
33
+ // node_modules/@slack/webhook/dist/errors.js
34
+ var require_errors = __commonJS({
35
+ "node_modules/@slack/webhook/dist/errors.js"(exports2) {
36
+ "use strict";
37
+ Object.defineProperty(exports2, "__esModule", { value: true });
38
+ exports2.ErrorCode = void 0;
39
+ exports2.requestErrorWithOriginal = requestErrorWithOriginal;
40
+ exports2.httpErrorWithOriginal = httpErrorWithOriginal;
41
+ var ErrorCode;
42
+ (function(ErrorCode2) {
43
+ ErrorCode2["RequestError"] = "slack_webhook_request_error";
44
+ ErrorCode2["HTTPError"] = "slack_webhook_http_error";
45
+ })(ErrorCode || (exports2.ErrorCode = ErrorCode = {}));
46
+ function errorWithCode(error, code) {
47
+ const codedError = error;
48
+ codedError.code = code;
49
+ return codedError;
50
+ }
51
+ function requestErrorWithOriginal(original) {
52
+ const error = errorWithCode(new Error(`A request error occurred: ${original.message}`), ErrorCode.RequestError);
53
+ error.original = original;
54
+ return error;
55
+ }
56
+ function httpErrorWithOriginal(original) {
57
+ const error = errorWithCode(new Error(`An HTTP protocol error occurred: statusCode = ${original.response.status}`), ErrorCode.HTTPError);
58
+ error.original = original;
59
+ return error;
60
+ }
61
+ }
62
+ });
63
+
33
64
  // node_modules/delayed-stream/lib/delayed_stream.js
34
65
  var require_delayed_stream = __commonJS({
35
66
  "node_modules/delayed-stream/lib/delayed_stream.js"(exports2, module2) {
@@ -14871,50 +14902,28 @@ var require_axios = __commonJS({
14871
14902
  }
14872
14903
  });
14873
14904
 
14874
- // node_modules/@slack/webhook/dist/errors.js
14875
- var require_errors = __commonJS({
14876
- "node_modules/@slack/webhook/dist/errors.js"(exports2) {
14877
- "use strict";
14878
- Object.defineProperty(exports2, "__esModule", { value: true });
14879
- exports2.httpErrorWithOriginal = exports2.requestErrorWithOriginal = exports2.ErrorCode = void 0;
14880
- var ErrorCode;
14881
- (function(ErrorCode2) {
14882
- ErrorCode2["RequestError"] = "slack_webhook_request_error";
14883
- ErrorCode2["HTTPError"] = "slack_webhook_http_error";
14884
- })(ErrorCode = exports2.ErrorCode || (exports2.ErrorCode = {}));
14885
- function errorWithCode(error, code) {
14886
- const codedError = error;
14887
- codedError.code = code;
14888
- return codedError;
14889
- }
14890
- function requestErrorWithOriginal(original) {
14891
- const error = errorWithCode(new Error(`A request error occurred: ${original.message}`), ErrorCode.RequestError);
14892
- error.original = original;
14893
- return error;
14894
- }
14895
- exports2.requestErrorWithOriginal = requestErrorWithOriginal;
14896
- function httpErrorWithOriginal(original) {
14897
- const error = errorWithCode(new Error(`An HTTP protocol error occurred: statusCode = ${original.response.status}`), ErrorCode.HTTPError);
14898
- error.original = original;
14899
- return error;
14900
- }
14901
- exports2.httpErrorWithOriginal = httpErrorWithOriginal;
14902
- }
14903
- });
14904
-
14905
14905
  // node_modules/@slack/webhook/package.json
14906
14906
  var require_package = __commonJS({
14907
14907
  "node_modules/@slack/webhook/package.json"(exports2, module2) {
14908
14908
  module2.exports = {
14909
14909
  name: "@slack/webhook",
14910
- version: "7.0.5",
14910
+ version: "7.0.6",
14911
14911
  description: "Official library for using the Slack Platform's Incoming Webhooks",
14912
14912
  author: "Slack Technologies, LLC",
14913
14913
  license: "MIT",
14914
- keywords: ["slack", "request", "client", "http", "api", "proxy"],
14914
+ keywords: [
14915
+ "slack",
14916
+ "request",
14917
+ "client",
14918
+ "http",
14919
+ "api",
14920
+ "proxy"
14921
+ ],
14915
14922
  main: "dist/index.js",
14916
14923
  types: "./dist/index.d.ts",
14917
- files: ["dist/**/*"],
14924
+ files: [
14925
+ "dist/**/*"
14926
+ ],
14918
14927
  engines: {
14919
14928
  node: ">= 18",
14920
14929
  npm: ">= 8.6.0"
@@ -14931,29 +14940,34 @@ var require_package = __commonJS({
14931
14940
  prepare: "npm run build",
14932
14941
  build: "npm run build:clean && tsc",
14933
14942
  "build:clean": "shx rm -rf ./dist ./coverage",
14943
+ docs: "npx typedoc --plugin typedoc-plugin-markdown",
14934
14944
  lint: "npx @biomejs/biome check .",
14935
14945
  "lint:fix": "npx @biomejs/biome check --write .",
14936
- mocha: "mocha --config .mocharc.json src/*.spec.ts",
14946
+ mocha: "mocha --config ./test/.mocharc.json src/*.spec.ts",
14937
14947
  test: "npm run lint && npm run test:unit",
14938
- "test:unit": "npm run build && c8 npm run mocha"
14948
+ "test:unit": "npm run build && c8 --config ./test/.c8rc.json npm run mocha"
14939
14949
  },
14940
14950
  dependencies: {
14941
14951
  "@slack/types": "^2.9.0",
14942
14952
  "@types/node": ">=18.0.0",
14943
- axios: "^1.8.3"
14953
+ axios: "^1.11.0"
14944
14954
  },
14945
14955
  devDependencies: {
14946
- "@biomejs/biome": "^1.8.3",
14956
+ "@biomejs/biome": "^2.0.5",
14947
14957
  "@types/chai": "^4.3.5",
14948
14958
  "@types/mocha": "^10.0.1",
14949
- c8: "^9.1.0",
14959
+ c8: "^10.1.3",
14950
14960
  chai: "^4.3.8",
14951
- mocha: "^10.2.0",
14952
- nock: "^13.3.3",
14953
- shx: "^0.3.2",
14961
+ mocha: "^11.7.1",
14962
+ "mocha-junit-reporter": "^2.2.1",
14963
+ "mocha-multi-reporters": "^1.5.1",
14964
+ nock: "^14.0.6",
14965
+ shx: "^0.4.0",
14954
14966
  "source-map-support": "^0.5.21",
14955
- "ts-node": "^8.2.0",
14956
- typescript: "^4.1.0"
14967
+ "ts-node": "^10.9.2",
14968
+ typedoc: "^0.28.7",
14969
+ "typedoc-plugin-markdown": "^4.7.1",
14970
+ typescript: "^5.8.3"
14957
14971
  }
14958
14972
  };
14959
14973
  }
@@ -14981,17 +14995,28 @@ var require_instrument = __commonJS({
14981
14995
  }) : function(o, v) {
14982
14996
  o["default"] = v;
14983
14997
  });
14984
- var __importStar = exports2 && exports2.__importStar || function(mod) {
14985
- if (mod && mod.__esModule) return mod;
14986
- var result = {};
14987
- if (mod != null) {
14988
- for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
14989
- }
14990
- __setModuleDefault(result, mod);
14991
- return result;
14992
- };
14998
+ var __importStar = exports2 && exports2.__importStar || /* @__PURE__ */ (function() {
14999
+ var ownKeys = function(o) {
15000
+ ownKeys = Object.getOwnPropertyNames || function(o2) {
15001
+ var ar = [];
15002
+ for (var k in o2) if (Object.prototype.hasOwnProperty.call(o2, k)) ar[ar.length] = k;
15003
+ return ar;
15004
+ };
15005
+ return ownKeys(o);
15006
+ };
15007
+ return function(mod) {
15008
+ if (mod && mod.__esModule) return mod;
15009
+ var result = {};
15010
+ if (mod != null) {
15011
+ for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
15012
+ }
15013
+ __setModuleDefault(result, mod);
15014
+ return result;
15015
+ };
15016
+ })();
14993
15017
  Object.defineProperty(exports2, "__esModule", { value: true });
14994
- exports2.getUserAgent = exports2.addAppMetadata = void 0;
15018
+ exports2.addAppMetadata = addAppMetadata;
15019
+ exports2.getUserAgent = getUserAgent;
14995
15020
  var os = __importStar(require("node:os"));
14996
15021
  var packageJson = require_package();
14997
15022
  function replaceSlashes(s) {
@@ -15002,12 +15027,10 @@ var require_instrument = __commonJS({
15002
15027
  function addAppMetadata({ name, version }) {
15003
15028
  appMetadata[replaceSlashes(name)] = version;
15004
15029
  }
15005
- exports2.addAppMetadata = addAppMetadata;
15006
15030
  function getUserAgent() {
15007
15031
  const appIdentifier = Object.entries(appMetadata).map(([name, version]) => `${name}/${version}`).join(" ");
15008
15032
  return (appIdentifier.length > 0 ? `${appIdentifier} ` : "") + baseUserAgent;
15009
15033
  }
15010
- exports2.getUserAgent = getUserAgent;
15011
15034
  }
15012
15035
  });
15013
15036
 
@@ -15087,15 +15110,15 @@ var require_dist = __commonJS({
15087
15110
  "node_modules/@slack/webhook/dist/index.js"(exports2) {
15088
15111
  "use strict";
15089
15112
  Object.defineProperty(exports2, "__esModule", { value: true });
15090
- exports2.ErrorCode = exports2.IncomingWebhook = void 0;
15091
- var IncomingWebhook_1 = require_IncomingWebhook();
15092
- Object.defineProperty(exports2, "IncomingWebhook", { enumerable: true, get: function() {
15093
- return IncomingWebhook_1.IncomingWebhook;
15094
- } });
15113
+ exports2.IncomingWebhook = exports2.ErrorCode = void 0;
15095
15114
  var errors_1 = require_errors();
15096
15115
  Object.defineProperty(exports2, "ErrorCode", { enumerable: true, get: function() {
15097
15116
  return errors_1.ErrorCode;
15098
15117
  } });
15118
+ var IncomingWebhook_1 = require_IncomingWebhook();
15119
+ Object.defineProperty(exports2, "IncomingWebhook", { enumerable: true, get: function() {
15120
+ return IncomingWebhook_1.IncomingWebhook;
15121
+ } });
15099
15122
  }
15100
15123
  });
15101
15124