Skip to content

Commit 599e42e

Browse files
chore: upgrade form-data to 4.0.6
1 parent cec5331 commit 599e42e

5 files changed

Lines changed: 33 additions & 19 deletions

File tree

.talismanrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ fileignoreconfig:
99
- filename: test/unit/commands/rollback.test.ts
1010
checksum: d1f931f2d9a397131409399ad6463653e28b5a2224e870b641d9ba57c4418f18
1111
- filename: package-lock.json
12-
checksum: e8262e57f73252240a076fa99be712c4d1403c058378cc2bb23f897bb4e45648
12+
checksum: ffb77989c6fe554cdd79ebe0cbd07c0ce4329dd65b3e9a9089db4abb7b9be2b3
1313
version: "1.0"

eslint.config.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,15 @@ export default tseslint.config(
3131
'max-len': 'off',
3232
},
3333
},
34+
{
35+
files: ['test/**/*.{js,ts}'],
36+
rules: {
37+
'max-len': 'off',
38+
// chai assertions (e.g. expect(x).to.be.true) read as unused expressions
39+
'@typescript-eslint/no-unused-expressions': 'off',
40+
// test files use @ts-nocheck and scaffolding vars that aren't all referenced
41+
'@typescript-eslint/ban-ts-comment': 'off',
42+
'@typescript-eslint/no-unused-vars': 'off',
43+
},
44+
},
3445
);

package-lock.json

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

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@contentstack/cli-launch",
3-
"version": "1.11.0",
3+
"version": "1.11.1",
44
"description": "Launch related operations",
55
"author": "Contentstack CLI",
66
"bin": {
@@ -36,7 +36,7 @@
3636
"cross-fetch": "^4.1.0",
3737
"dotenv": "^16.4.7",
3838
"express": "^4.22.0",
39-
"form-data": "4.0.4",
39+
"form-data": "4.0.6",
4040
"graphql": "^16.9.0",
4141
"ini": "^3.0.1",
4242
"lodash": "^4.18.1",
@@ -107,7 +107,7 @@
107107
},
108108
"overrides": {
109109
"lodash": "^4.18.1",
110-
"form-data": "4.0.4",
110+
"form-data": "4.0.6",
111111
"ajv": "^8.18.0",
112112
"eslint": {
113113
"ajv": "^6.12.6"

test/unit/adapters/github.test.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ describe('GitHub', () => {
4141
checkUserGitHubAccessStub,
4242
prepareForNewProjectCreationStub,
4343
createNewProjectStub,
44+
selectOrgStub,
4445
prepareLaunchConfigStub,
4546
showLogsStub,
4647
showDeploymentUrlStub,
@@ -65,6 +66,7 @@ describe('GitHub', () => {
6566
checkUserGitHubAccessStub = stub(GitHub.prototype, 'checkUserGitHubAccess').resolves(true);
6667
prepareForNewProjectCreationStub = stub(GitHub.prototype, 'prepareForNewProjectCreation').resolves();
6768
createNewProjectStub = stub(GitHub.prototype, 'createNewProject').resolves();
69+
selectOrgStub = stub(BaseClass.prototype, 'selectOrg').resolves();
6870
prepareLaunchConfigStub = stub(BaseClass.prototype, 'prepareLaunchConfig').resolves();
6971
showLogsStub = stub(BaseClass.prototype, 'showLogs').resolves();
7072
showDeploymentUrlStub = stub(BaseClass.prototype, 'showDeploymentUrl').resolves();
@@ -81,6 +83,7 @@ describe('GitHub', () => {
8183
checkUserGitHubAccessStub.restore();
8284
prepareForNewProjectCreationStub.restore();
8385
createNewProjectStub.restore();
86+
selectOrgStub.restore();
8487
prepareLaunchConfigStub.restore();
8588
showLogsStub.restore();
8689
showDeploymentUrlStub.restore();
@@ -108,7 +111,7 @@ describe('GitHub', () => {
108111

109112
it('should successfully run github flow for existing project when flag redeploy-latest is passed', async () => {
110113
getEnvironmentStub.resolves(defaultEnvironment);
111-
let adapterConstructorOptions = {
114+
const adapterConstructorOptions = {
112115
config: {
113116
isExistingProject: true,
114117
'redeploy-latest': true,
@@ -133,7 +136,7 @@ describe('GitHub', () => {
133136
it('should successfully run github flow for existing project when flag redeploy-latest and environment is passed ', async () => {
134137
getEnvironmentStub.resolves(environmentMatchedByEnvironmentFlagInput);
135138

136-
let adapterConstructorOptions = {
139+
const adapterConstructorOptions = {
137140
config: {
138141
isExistingProject: true,
139142
'redeploy-latest': true,
@@ -158,7 +161,7 @@ describe('GitHub', () => {
158161

159162
it('should exit with non zero status code if deployment fails', async () => {
160163
getEnvironmentStub.resolves(defaultEnvironment);
161-
let adapterConstructorOptions = {
164+
const adapterConstructorOptions = {
162165
config: {
163166
isExistingProject: true,
164167
'redeploy-latest': true,
@@ -370,7 +373,7 @@ describe('GitHub', () => {
370373
});
371374

372375
describe('Deploy new project', () => {
373-
let adapterConstructorOptions = {
376+
const adapterConstructorOptions = {
374377
config: {
375378
isExistingProject: false,
376379
},
@@ -440,7 +443,7 @@ describe('GitHub', () => {
440443
});
441444

442445
it('should log "New project created successfully" and update the currentConfig if the mutation succeeds', async () => {
443-
let adapterConstructorOptions = {
446+
const adapterConstructorOptions = {
444447
config: {
445448
branch: 'main',
446449
provider: 'GitHub',
@@ -497,7 +500,7 @@ describe('GitHub', () => {
497500

498501
describe('prepareForNewProjectCreation', () => {
499502
let selectOrgStub, selectBranchStub, detectFrameworkStub, handleEnvImportFlowStub;
500-
let adapterConstructorOptions = {
503+
const adapterConstructorOptions = {
501504
config: {
502505
flags: {
503506
name: 'Test project',
@@ -536,7 +539,7 @@ describe('GitHub', () => {
536539

537540
describe('checkGitHubConnected', () => {
538541
let sandbox;
539-
let adapterConstructorOptions = {
542+
const adapterConstructorOptions = {
540543
config: {
541544
provider: 'GitHub',
542545
userConnection: null,

0 commit comments

Comments
 (0)