@lowdefy/api 4.0.0-rc.10 → 4.0.0-rc.12

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.
@@ -12,7 +12,7 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { ServerError } from '../context/errors.js';
15
+ */ import { ServerError } from './errors.js';
16
16
  function createAuthorize({ session }) {
17
17
  // Next-auth getSession provides a session object if the user is authenticated
18
18
  // else session will be null
@@ -24,7 +24,7 @@ function createRedirectCallback({ authConfig, plugins }) {
24
24
  throw new Error('More than one auth redirect callbacks are configured. Only one is allowed.');
25
25
  }
26
26
  const [plugin] = redirectCallbackPlugins;
27
- async function redirectCallback({ url, baseUrl }) {
27
+ function redirectCallback({ url, baseUrl }) {
28
28
  return plugin.fn({
29
29
  properties: plugin.properties ?? {},
30
30
  baseUrl,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/api",
3
- "version": "4.0.0-rc.10",
3
+ "version": "4.0.0-rc.12",
4
4
  "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
@@ -40,22 +40,22 @@
40
40
  "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
41
41
  },
42
42
  "dependencies": {
43
- "@lowdefy/ajv": "4.0.0-rc.10",
44
- "@lowdefy/helpers": "4.0.0-rc.10",
45
- "@lowdefy/node-utils": "4.0.0-rc.10",
46
- "@lowdefy/nunjucks": "4.0.0-rc.10",
47
- "@lowdefy/operators": "4.0.0-rc.10",
48
- "@lowdefy/operators-js": "4.0.0-rc.10"
43
+ "@lowdefy/ajv": "4.0.0-rc.12",
44
+ "@lowdefy/helpers": "4.0.0-rc.12",
45
+ "@lowdefy/node-utils": "4.0.0-rc.12",
46
+ "@lowdefy/nunjucks": "4.0.0-rc.12",
47
+ "@lowdefy/operators": "4.0.0-rc.12",
48
+ "@lowdefy/operators-js": "4.0.0-rc.12"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@jest/globals": "28.1.3",
52
52
  "@swc/cli": "0.1.62",
53
- "@swc/core": "1.3.70",
54
- "@swc/jest": "0.2.27",
53
+ "@swc/core": "1.3.92",
54
+ "@swc/jest": "0.2.29",
55
55
  "jest": "28.1.3"
56
56
  },
57
57
  "publishConfig": {
58
58
  "access": "public"
59
59
  },
60
- "gitHead": "537af074f27770e32da9da8d48490f2eda94b406"
60
+ "gitHead": "7f3059b6778b1cb8900b1d4456681b977521d45d"
61
61
  }