This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/node_modules/@medusajs/framework/dist/http/router.js b/node_modules/@medusajs/framework/dist/http/router.js | |
| index 26d7afd..d2fd80d 100644 | |
| --- a/node_modules/@medusajs/framework/dist/http/router.js | |
| +++ b/node_modules/@medusajs/framework/dist/http/router.js | |
| @@ -79,6 +79,10 @@ class ApiLoader { | |
| * CORS and Auth setup for admin routes | |
| */ | |
| __classPrivateFieldGet(this, _ApiLoader_instances, "m", _ApiLoader_applyCorsMiddleware).call(this, routesFinder, "/admin", "shouldAppendAdminCors", __classPrivateFieldGet(this, _ApiLoader_instances, "m", _ApiLoader_createCorsOptions).call(this, config_1.configManager.config.projectConfig.http.adminCors)); | |
| + | |
| + const customAuthRoute = middlewares.find((route) => route.handler.name.startsWith('auth0')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rroszkowiak@RR-T460p:~/myfolder/e2e-storage-test (yarn-lock) $ ng e2e | |
| ** NG Live Development Server is running on http://localhost:4200. ** | |
| Hash: b322fd8016d9bf83307a | |
| Time: 9340ms | |
| chunk {0} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 426 kB {4} [initial] [rendered] | |
| chunk {1} main.bundle.js, main.bundle.js.map (main) 23.6 kB {3} [initial] [rendered] | |
| chunk {2} styles.bundle.js, styles.bundle.js.map (styles) 10.3 kB {4} [initial] [rendered] | |
| chunk {3} vendor.bundle.js, vendor.bundle.js.map (vendor) 3.53 MB [initial] [rendered] | |
| chunk {4} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered] | |
| webpack: Compiled successfully. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| >>> import lxml.html | |
| >>> tree = lxml.html.fromstring("""<html> | |
| ... <body> | |
| ... <div id=yw1> | |
| ... <table id="x"> | |
| ... <thead></thead> | |
| ... <tbody> | |
| ... <tr> | |
| ... <td> | |
| ... <table id="y"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import asyncio | |
| import aiohttp | |
| async def get_content(url): | |
| response = await aiohttp.request('GET', url) | |
| body = await response.read() | |
| return body | |
| async def main(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import logging | |
| # setting up the logger | |
| logger = logging.getLogger(__file__) | |
| logger.setLevel(logging.INFO) | |
| formatter = logging.Formatter( | |
| '%(asctime)s - %(levelname)s - %(message)s' | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def log_execution(func): | |
| """ | |
| The time measuring and logging decorator. | |
| """ | |
| @functools.wraps(func) | |
| def _inner(self, *args, **kwargs): | |
| """ | |
| Proxy, inner function of the log_execution decorator. | |
| """ | |
| try: |