Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .mocharc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
spec: test/**/*.test.js
spec: test/**/*.test.*
extension: [ts, js]
exit: true
slow: 10000
timeout: 20000
Expand Down
38 changes: 38 additions & 0 deletions lib/build/plugins.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

156 changes: 156 additions & 0 deletions lib/build/plugins.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion lib/build/recipe/accountlinking/recipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const processState_1 = require("../../processState");
const logger_1 = require("../../logger");
const recipe_1 = __importDefault(require("../emailverification/recipe"));
const utils_2 = require("../../utils");
const plugins_1 = require("../../plugins");
class Recipe extends recipeModule_1.default {
constructor(recipeId, appInfo, config, _recipes, _ingredients) {
super(recipeId, appInfo);
Expand Down Expand Up @@ -595,7 +596,7 @@ class Recipe extends recipeModule_1.default {
Recipe.instance = new Recipe(
Recipe.RECIPE_ID,
appInfo,
(0, utils_2.applyPlugins)(
(0, plugins_1.applyPlugins)(
Recipe.RECIPE_ID,
config,
plugins !== null && plugins !== void 0 ? plugins : []
Expand Down
3 changes: 2 additions & 1 deletion lib/build/recipe/dashboard/recipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ const updateTenantSecondaryFactor_1 = __importDefault(require("./api/multitenanc
const updateTenantCoreConfig_1 = __importDefault(require("./api/multitenancy/updateTenantCoreConfig"));
const getThirdPartyConfig_1 = __importDefault(require("./api/multitenancy/getThirdPartyConfig"));
const utils_2 = require("../../utils");
const plugins_1 = require("../../plugins");
class Recipe extends recipeModule_1.default {
constructor(recipeId, appInfo, isInServerlessEnv, config) {
super(recipeId, appInfo);
Expand Down Expand Up @@ -603,7 +604,7 @@ class Recipe extends recipeModule_1.default {
Recipe.RECIPE_ID,
appInfo,
isInServerlessEnv,
(0, utils_2.applyPlugins)(
(0, plugins_1.applyPlugins)(
Recipe.RECIPE_ID,
config,
plugins !== null && plugins !== void 0 ? plugins : []
Expand Down
3 changes: 2 additions & 1 deletion lib/build/recipe/emailpassword/recipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const signin_1 = __importDefault(require("./api/signin"));
const generatePasswordResetToken_1 = __importDefault(require("./api/generatePasswordResetToken"));
const passwordReset_1 = __importDefault(require("./api/passwordReset"));
const utils_2 = require("../../utils");
const plugins_1 = require("../../plugins");
const emailExists_1 = __importDefault(require("./api/emailExists"));
const recipeImplementation_1 = __importDefault(require("./recipeImplementation"));
const implementation_1 = __importDefault(require("./api/implementation"));
Expand Down Expand Up @@ -285,7 +286,7 @@ class Recipe extends recipeModule_1.default {
Recipe.RECIPE_ID,
appInfo,
isInServerlessEnv,
(0, utils_2.applyPlugins)(
(0, plugins_1.applyPlugins)(
Recipe.RECIPE_ID,
config,
plugins !== null && plugins !== void 0 ? plugins : []
Expand Down
3 changes: 2 additions & 1 deletion lib/build/recipe/emailverification/recipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const session_1 = __importDefault(require("../session"));
const __1 = require("../..");
const logger_1 = require("../../logger");
const utils_2 = require("../../utils");
const plugins_1 = require("../../plugins");
class Recipe extends recipeModule_1.default {
constructor(recipeId, appInfo, isInServerlessEnv, config, ingredients) {
super(recipeId, appInfo);
Expand Down Expand Up @@ -295,7 +296,7 @@ class Recipe extends recipeModule_1.default {
Recipe.RECIPE_ID,
appInfo,
isInServerlessEnv,
(0, utils_2.applyPlugins)(
(0, plugins_1.applyPlugins)(
Recipe.RECIPE_ID,
config,
plugins !== null && plugins !== void 0 ? plugins : []
Expand Down
3 changes: 2 additions & 1 deletion lib/build/recipe/jwt/recipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const normalisedURLPath_1 = __importDefault(require("../../normalisedURLPath"));
const querier_1 = require("../../querier");
const recipeModule_1 = __importDefault(require("../../recipeModule"));
const utils_1 = require("../../utils");
const plugins_1 = require("../../plugins");
const getJWKS_1 = __importDefault(require("./api/getJWKS"));
const implementation_1 = __importDefault(require("./api/implementation"));
const constants_1 = require("./constants");
Expand Down Expand Up @@ -75,7 +76,7 @@ class Recipe extends recipeModule_1.default {
Recipe.RECIPE_ID,
appInfo,
isInServerlessEnv,
(0, utils_1.applyPlugins)(
(0, plugins_1.applyPlugins)(
Recipe.RECIPE_ID,
config,
plugins !== null && plugins !== void 0 ? plugins : []
Expand Down
3 changes: 2 additions & 1 deletion lib/build/recipe/multifactorauth/recipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const postSuperTokensInitCallbacks_1 = require("../../postSuperTokensInitCallbac
const recipe_2 = __importDefault(require("../multitenancy/recipe"));
const querier_1 = require("../../querier");
const utils_2 = require("../../utils");
const plugins_1 = require("../../plugins");
class Recipe extends recipeModule_1.default {
constructor(recipeId, appInfo, isInServerlessEnv, config) {
var _a;
Expand Down Expand Up @@ -192,7 +193,7 @@ class Recipe extends recipeModule_1.default {
Recipe.RECIPE_ID,
appInfo,
isInServerlessEnv,
(0, utils_2.applyPlugins)(
(0, plugins_1.applyPlugins)(
Recipe.RECIPE_ID,
config,
plugins !== null && plugins !== void 0 ? plugins : []
Expand Down
3 changes: 2 additions & 1 deletion lib/build/recipe/multitenancy/recipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const allowedDomainsClaim_1 = require("./allowedDomainsClaim");
const utils_1 = require("./utils");
const loginMethods_1 = __importDefault(require("./api/loginMethods"));
const utils_2 = require("../../utils");
const plugins_1 = require("../../plugins");
class Recipe extends recipeModule_1.default {
constructor(recipeId, appInfo, isInServerlessEnv, config) {
super(recipeId, appInfo);
Expand Down Expand Up @@ -106,7 +107,7 @@ class Recipe extends recipeModule_1.default {
Recipe.RECIPE_ID,
appInfo,
isInServerlessEnv,
(0, utils_2.applyPlugins)(
(0, plugins_1.applyPlugins)(
Recipe.RECIPE_ID,
config,
plugins !== null && plugins !== void 0 ? plugins : []
Expand Down
4 changes: 2 additions & 2 deletions lib/build/recipe/oauth2provider/recipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const revokeToken_1 = __importDefault(require("./api/revokeToken"));
const introspectToken_1 = __importDefault(require("./api/introspectToken"));
const endSession_1 = require("./api/endSession");
const logout_1 = require("./api/logout");
const utils_2 = require("../../utils");
const plugins_1 = require("../../plugins");
class Recipe extends recipeModule_1.default {
constructor(recipeId, appInfo, isInServerlessEnv, config) {
super(recipeId, appInfo);
Expand Down Expand Up @@ -132,7 +132,7 @@ class Recipe extends recipeModule_1.default {
Recipe.RECIPE_ID,
appInfo,
isInServerlessEnv,
(0, utils_2.applyPlugins)(
(0, plugins_1.applyPlugins)(
Recipe.RECIPE_ID,
config,
plugins !== null && plugins !== void 0 ? plugins : []
Expand Down
3 changes: 2 additions & 1 deletion lib/build/recipe/openid/recipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const normalisedURLPath_1 = __importDefault(require("../../normalisedURLPath"));
const constants_1 = require("./constants");
const getOpenIdDiscoveryConfiguration_1 = __importDefault(require("./api/getOpenIdDiscoveryConfiguration"));
const utils_2 = require("../../utils");
const plugins_1 = require("../../plugins");
class OpenIdRecipe extends recipeModule_1.default {
constructor(recipeId, appInfo, config) {
super(recipeId, appInfo);
Expand Down Expand Up @@ -83,7 +84,7 @@ class OpenIdRecipe extends recipeModule_1.default {
OpenIdRecipe.instance = new OpenIdRecipe(
OpenIdRecipe.RECIPE_ID,
appInfo,
(0, utils_2.applyPlugins)(
(0, plugins_1.applyPlugins)(
OpenIdRecipe.RECIPE_ID,
config,
plugins !== null && plugins !== void 0 ? plugins : []
Expand Down
3 changes: 2 additions & 1 deletion lib/build/recipe/passwordless/recipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const recipe_2 = __importDefault(require("../multitenancy/recipe"));
const utils_2 = require("../thirdparty/utils");
const multifactorauth_1 = require("../multifactorauth");
const utils_3 = require("../../utils");
const plugins_1 = require("../../plugins");
class Recipe extends recipeModule_1.default {
constructor(recipeId, appInfo, isInServerlessEnv, config, ingredients) {
super(recipeId, appInfo);
Expand Down Expand Up @@ -567,7 +568,7 @@ class Recipe extends recipeModule_1.default {
Recipe.RECIPE_ID,
appInfo,
isInServerlessEnv,
(0, utils_3.applyPlugins)(
(0, plugins_1.applyPlugins)(
Recipe.RECIPE_ID,
config,
plugins !== null && plugins !== void 0 ? plugins : []
Expand Down
3 changes: 2 additions & 1 deletion lib/build/recipe/session/recipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const supertokens_js_override_1 = __importDefault(require("supertokens-js-overri
const logger_1 = require("../../logger");
const combinedRemoteJWKSet_1 = require("../../combinedRemoteJWKSet");
const utils_2 = require("../../utils");
const plugins_1 = require("../../plugins");
// For Express
class SessionRecipe extends recipeModule_1.default {
constructor(recipeId, appInfo, isInServerlessEnv, config) {
Expand Down Expand Up @@ -227,7 +228,7 @@ class SessionRecipe extends recipeModule_1.default {
SessionRecipe.RECIPE_ID,
appInfo,
isInServerlessEnv,
(0, utils_2.applyPlugins)(
(0, plugins_1.applyPlugins)(
SessionRecipe.RECIPE_ID,
config,
plugins !== null && plugins !== void 0 ? plugins : []
Expand Down
Loading
Loading