Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@slack/oauth

Package Overview
Dependencies
Maintainers
10
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@slack/oauth - npm Package Compare versions

Comparing version 2.6.2 to 3.0.0

LICENSE

2

dist/callback-options.js

@@ -27,2 +27,3 @@ "use strict";

var htmlResponse = "<html>\n <head>\n <meta http-equiv=\"refresh\" content=\"0; URL=".concat(escapeHtml(redirectUrl), "\">\n <style>\n body {\n padding: 10px 15px;\n font-family: verdana;\n text-align: center;\n }\n </style>\n </head>\n <body>\n <h2>Thank you!</h2>\n <p>Redirecting to the Slack App... click <a href=\"").concat(escapeHtml(redirectUrl), "\">here</a>. If you use the browser version of Slack, click <a href=\"").concat(escapeHtml(browserUrl), "\" target=\"_blank\">this link</a> instead.</p>\n </body>\n </html>");
// eslint-disable-next-line @typescript-eslint/naming-convention
res.writeHead(200, { 'Content-Type': 'text/html; charset=utf-8' });

@@ -44,2 +45,3 @@ res.end(htmlResponse);

}
// eslint-disable-next-line @typescript-eslint/naming-convention
res.writeHead(httpStatus, { 'Content-Type': 'text/html; charset=utf-8' });

@@ -46,0 +48,0 @@ var html = "<html>\n <head>\n <style>\n body {\n padding: 10px 15px;\n font-family: verdana;\n text-align: center;\n }\n </style>\n </head>\n <body>\n <h2>Oops, Something Went Wrong!</h2>\n <p>Please try again or contact the app owner (reason: ".concat(escapeHtml(error.code), ")</p>\n </body>\n </html>");

2

dist/errors.js

@@ -31,3 +31,3 @@ "use strict";

ErrorCode["UnknownError"] = "slack_oauth_unknown_error";
})(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {}));
})(ErrorCode || (exports.ErrorCode = ErrorCode = {}));
var InstallerInitializationError = /** @class */ (function (_super) {

@@ -34,0 +34,0 @@ __extends(InstallerInitializationError, _super);

@@ -735,3 +735,3 @@ "use strict";

client = new web_api_1.WebClient(token, clientOptions);
return [4 /*yield*/, client.auth.test()];
return [4 /*yield*/, client.auth.test({})];
case 1:

@@ -738,0 +738,0 @@ authResult = _a.sent();

{
"name": "@slack/oauth",
"version": "2.6.2",
"version": "3.0.0",
"description": "Official library for interacting with Slack's Oauth endpoints",

@@ -19,4 +19,4 @@ "author": "Slack Technologies, LLC",

"engines": {
"node": ">=12.13.0",
"npm": ">=6.12.0"
"node": ">=18",
"npm": ">=8.6.0"
},

@@ -36,5 +36,4 @@ "repository": "slackapi/node-slack-sdk",

"lint": "eslint --fix --ext .ts src",
"test": "npm run lint && npm run test:mocha",
"test:mocha": "nyc mocha --config .mocharc.json src/*.spec.js src/**/*.spec.js src/*.spec.ts src/**/*.spec.ts",
"coverage": "codecov -F oauthhelper --root=$PWD",
"test": "npm run build && npm run lint && npm run test:mocha",
"test:mocha": "nyc --reporter=text-summary mocha --config .mocharc.json src/*.spec.js src/**/*.spec.js src/*.spec.ts src/**/*.spec.ts",
"ref-docs:model": "api-extractor run",

@@ -44,36 +43,32 @@ "watch": "npx nodemon --watch 'src' --ext 'ts' --exec npm run build"

"dependencies": {
"@slack/logger": "^3.0.0",
"@slack/web-api": "^6.11.2",
"@types/jsonwebtoken": "^8.3.7",
"@types/node": ">=12",
"jsonwebtoken": "^9.0.0",
"lodash.isstring": "^4.0.1"
"@slack/logger": "^4",
"@slack/web-api": "^7",
"@types/jsonwebtoken": "^9",
"@types/node": ">=18",
"jsonwebtoken": "^9",
"lodash.isstring": "^4"
},
"devDependencies": {
"@microsoft/api-extractor": "^7.19.4",
"@types/chai": "^4.2.11",
"@types/mocha": "^9.1.0",
"@types/sinon": "^10.0.11",
"@typescript-eslint/eslint-plugin": "^4.4.1",
"@typescript-eslint/parser": "^4.4.0",
"chai": "^4.2.0",
"codecov": "^3.0.4",
"eslint": "^7.32.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-airbnb-typescript": "^12.3.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsdoc": "^30.6.1",
"eslint-plugin-node": "^11.1.0",
"mocha": "^9.2.1",
"nop": "^1.0.0",
"nyc": "^15.1.0",
"rewiremock": "^3.13.9",
"@microsoft/api-extractor": "^7",
"@types/chai": "^4",
"@types/mocha": "^10",
"@types/sinon": "^17",
"@typescript-eslint/eslint-plugin": "^6",
"@typescript-eslint/parser": "^6",
"chai": "^4",
"eslint": "^8",
"eslint-config-airbnb-base": "^15",
"eslint-config-airbnb-typescript": "^17",
"eslint-plugin-import": "^2",
"eslint-plugin-jsdoc": "^48",
"eslint-plugin-node": "^11",
"mocha": "^10",
"nyc": "^15",
"rewiremock": "^3",
"shx": "^0.3.2",
"sinon": "^9.0.2",
"source-map-support": "^0.5.12",
"superagent": "^3.3.1",
"ts-node": "^8.2.0",
"typescript": "^4.1",
"uncaughtException": "^1.0.0"
"sinon": "^17",
"source-map-support": "^0.5.21",
"ts-node": "^10",
"typescript": "5.3.3"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc