Skip to content

Commit 53c210a

Browse files
rlubaschewskirlubaschewski
andauthored
➕ added jsonwebtoken dependency (#200)
Co-authored-by: rlubaschewski <[email protected]>
1 parent 3ca185a commit 53c210a

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

bin/example/bin/faas-debugger.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bin/example/bin/lp-faas-toolbelt/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"fs-extra": "10.1.0",
1414
"get-port": "5.1.1",
1515
"jsforce": "1.11.0",
16-
"luxon": "1.27.0",
16+
"jsonwebtoken": "8.5.1",
17+
"luxon": "1.28.0",
1718
"lodash": "4.17.21",
1819
"oauth-1.0a": "2.2.6",
1920
"request": "2.88.2",

bin/example/bin/rewire.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable @typescript-eslint/no-unused-vars */
22
/* eslint-disable global-require */
33
const { join } = require('path');
4-
const externalLibs = ['oauth-1.0a', 'luxon', 'jsforce', 'lodash']
4+
const externalLibs = ['oauth-1.0a', 'luxon', 'jsforce', 'jsonwebtoken', 'lodash'];
55
/**
66
* Is used for rewiring the require, so the lambda code will stay the same
77
* Uses the proxy to overwrite the module.require.

src/shared/faas-debugger.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ interface IInvokeErrorLogs {
1919

2020
const EXECUTION_EXCEED_TIMEOUT = 60000;
2121

22-
const EXTERNAL_PACKAGE_MAPPING = ['oauth-1.0a', 'luxon', 'jsforce', 'lodash'];
22+
const EXTERNAL_PACKAGE_MAPPING = [
23+
'oauth-1.0a',
24+
'luxon',
25+
'jsforce',
26+
'jsonwebtoken',
27+
'lodash',
28+
];
2329

2430
function isLogLevel(input: any) {
2531
return Object.keys({

test/shared/faas-debugger.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ const Toolbelt = require('lp-faas-toolbelt');
224224
const OAuth = require('oauth-1.0a');
225225
const luxon = require('luxon');
226226
const jsforce = require('jsforce');
227+
const jsonwebtoken = require('jsonwebtoken');
227228
const lodash = require('lodash');
228229
callback(null, 'Hello World');
229230
}
@@ -246,6 +247,7 @@ callback(null, 'Hello World');
246247
expect(indexFile).toContain("require('lp-faas-toolbelt')");
247248
expect(indexFile).toContain("require('../bin/lp-faas-toolbelt/luxon')");
248249
expect(indexFile).toContain("require('../bin/lp-faas-toolbelt/jsforce')");
250+
expect(indexFile).toContain("require('../bin/lp-faas-toolbelt/jsonwebtoken')");
249251
expect(indexFile).toContain(
250252
"require('../bin/lp-faas-toolbelt/oauth-1.0a')",
251253
);

0 commit comments

Comments
 (0)