Skip to content

Commit 4684205

Browse files
committed
0.0.20
1 parent 6363e70 commit 4684205

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const makeFunction = (code: string) => {
3939
return fn;
4040
}
4141

42-
const makeDeepClient = (token: string, secret?: string) => {
42+
const makeDeepClient = (token: string, path?: string, ssl?: boolean, secret?: string) => {
4343
if (!token) throw new Error('No token provided');
4444
const decoded = parseJwt(token);
4545
const linkId = decoded?.userId;
@@ -52,9 +52,9 @@ const makeDeepClient = (token: string, secret?: string) => {
5252
const unsafe: any = {};
5353
if (secret) {
5454
unsafe.hasura = new HasuraApi({
55-
path: DEEPLINKS_HASURA_PATH,
56-
ssl: DEEPLINKS_HASURA_SSL,
57-
secret: secret,
55+
path,
56+
ssl,
57+
secret,
5858
});
5959
}
6060

@@ -63,9 +63,9 @@ const makeDeepClient = (token: string, secret?: string) => {
6363
}
6464

6565
const execute = async (args, options) => {
66-
const { jwt, secret, code, data } = options;
66+
const { jwt, secret, code, data, path, ssl } = options;
6767
const fn = makeFunction(code);
68-
const deep = makeDeepClient(jwt, secret);
68+
const deep = makeDeepClient(jwt, path, ssl, secret);
6969
// await supports both sync and async functions the same way
7070
const result = await fn(...args, { data, deep, gql, require: requireWrapper });
7171
return result;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@deep-foundation/js-docker-isolation-provider",
3-
"version": "0.0.19",
3+
"version": "0.0.20",
44
"type": "module",
55
"scripts": {
66
"dev": "nodemon index.ts",

0 commit comments

Comments
 (0)