Skip to content

Commit e9d8da1

Browse files
authored
Update dependencies and clean some warnings (#104)
1 parent 95279de commit e9d8da1

File tree

9 files changed

+1602
-1286
lines changed

9 files changed

+1602
-1286
lines changed

info/lib/display.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ module.exports = {
1818
Object.keys(configInput.custom.containers).length !== 0
1919
) {
2020
this.listContainers(namespace.id).then((containers) => {
21-
var output = {};
21+
let output = {};
2222
containers.forEach((container) => {
2323
output[container["name"]] = container;
2424
});
2525
console.log(yaml.dump({"Stack Outputs": {"containers": output}}));
2626
});
2727
} else {
2828
this.listFunctions(namespace.id).then((functions) => {
29-
var output = {};
29+
let output = {};
3030
functions.forEach((func) => {
3131
output[func["name"]] = func;
3232
});

invoke/scalewayInvoke.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const BbPromise = require('bluebird');
22
const axios = require('axios');
3-
const util = require('util');
43

54
const scalewayApi = require('../shared/api/endpoint');
65
const setUpDeployment = require('../shared/setUpDeployment');
@@ -45,7 +44,6 @@ class ScalewayInvoke {
4544

4645
function lookUpFunctionOrContainer(ns) {
4746
// List containers/functions in the namespace
48-
let found = null;
4947
if(this.isContainer) {
5048
return this.listContainers(ns.id);
5149
} else {

package-lock.json

Lines changed: 1597 additions & 1272 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/containers/containers.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
const path = require('path');
44
const fs = require('fs');
5-
const axios = require('axios');
65
const { expect } = require('chai');
76

87
const { getTmpDirPath, replaceTextInFile } = require('../utils/fs');

tests/provider/scalewayProvider.test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
const { expect } = require('chai');
2-
const { expect: jestExpect } = require('@jest/globals');
32

43
const fs = require('fs');
5-
const os = require('os');
64
const path = require('path');
75

86
const ScalewayProvider = require('../../provider/scalewayProvider');
@@ -22,7 +20,7 @@ class MockServerless {
2220
setProvider(provName, prov) {
2321
this.service.provider = prov;
2422
};
25-
};
23+
}
2624

2725
describe('Scaleway credentials test', () => {
2826
if (process.env.SCW_SECRET_KEY || process.env.SCW_DEFAULT_PROJECT_ID ||

tests/runtimes/runtimes.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const path = require('path');
44
const fs = require('fs');
55
const axios = require('axios');
66
const { expect } = require('chai');
7-
const { execSync } = require('../../shared/child-process');
87
const { getTmpDirPath } = require('../utils/fs');
98
const { getServiceName, createTestService, sleep, serverlessDeploy, serverlessRemove} = require('../utils/misc');
109
const { FunctionApi, RegistryApi, ContainerApi } = require('../../shared/api');

tests/shared/child-process.tests.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const { expect } = require('chai');
2-
const { expect: jestExpect } = require('@jest/globals');
32

43
const { execSync, execCaptureOutput } = require('../../shared/child-process');
54

tests/shared/validate.tests.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const { expect } = require('chai');
2-
const { expect: jestExpect } = require('@jest/globals');
32

43
const validate = require('../../shared/validate');
54

@@ -22,7 +21,7 @@ class MockProvider {
2221
addContainer(contName) {
2322
this.serverless.service.custom.containers[contName] = {};
2423
};
25-
};
24+
}
2625

2726
describe('Configuration validation test', () => {
2827
// Add validation to this object
@@ -63,4 +62,3 @@ describe('Configuration validation test', () => {
6362
expect(this.isDefinedFunction("qux")).to.equal(false);
6463
});
6564
});
66-

tests/triggers/triggers.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ describe.each(runtimesToTest)(
6767
});
6868

6969
it(`${runtime.name}: should create cronjob for function`, async () => {
70-
let deployedApplication = {};
70+
let deployedApplication;
7171
if (runtime.isFunction) {
7272
deployedApplication = namespace.functions[0];
7373
} else {

0 commit comments

Comments
 (0)