Skip to content

Commit

Permalink
chore: update package.json to match package-lock versions (mongodb-js…
Browse files Browse the repository at this point in the history
  • Loading branch information
gribnoysup authored Oct 5, 2023
1 parent 9b425fd commit dcd723b
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 33 deletions.
2 changes: 1 addition & 1 deletion configs/webpack-config-compass/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"less-loader": "^10.0.1",
"mini-css-extract-plugin": "^2.3.0",
"node-loader": "^2.0.0",
"postcss": "^8.3.6",
"postcss": "^8.4.31",
"postcss-loader": "^6.1.1",
"postcss-preset-env": "^6.7.0",
"react-refresh": "^0.10.0",
Expand Down
34 changes: 17 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/compass-user-data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@
"sinon": "^9.2.3",
"typescript": "^5.0.4",
"write-file-atomic": "^5.0.1",
"zod": "^3.22.2"
"zod": "^3.22.3"
}
}
3 changes: 1 addition & 2 deletions packages/connection-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@
"bson": "^6.0.0",
"keytar": "^7.9.0",
"lodash": "^4.17.21",
"mongodb-connection-string-url": "^2.6.0",
"zod": "^3.22.2"
"mongodb-connection-string-url": "^2.6.0"
},
"devDependencies": {
"@mongodb-js/eslint-config-compass": "^1.0.9",
Expand Down
16 changes: 6 additions & 10 deletions packages/connection-storage/src/connection-storage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import path from 'path';
import os from 'os';
import { UUID } from 'bson';
import { sortBy } from 'lodash';
import type { ZodError } from 'zod';

import { ConnectionStorage } from './connection-storage';
import type { ConnectionInfo } from './connection-info';
Expand Down Expand Up @@ -248,9 +247,7 @@ describe('ConnectionStorage', function () {
},
});
} catch (e) {
const errors = (e as ZodError).errors;
const message = errors[0].message;
expect(message).to.be.equal('Invalid uuid');
expect(e).to.have.nested.property('errors[0].message', 'Invalid uuid');
}
});

Expand All @@ -265,9 +262,7 @@ describe('ConnectionStorage', function () {
},
});
} catch (e) {
const errors = (e as ZodError).errors;
const message = errors[0].message;
expect(message).to.be.equal('Invalid uuid');
expect(e).to.have.nested.property('errors[0].message', 'Invalid uuid');
}
});

Expand All @@ -283,9 +278,10 @@ describe('ConnectionStorage', function () {
});
expect.fail('Expected connection string to be required.');
} catch (e) {
const errors = (e as ZodError).errors;
const message = errors[0].message;
expect(message).to.be.equal('Connection string is required.');
expect(e).to.have.nested.property(
'errors[0].message',
'Connection string is required.'
);
}
});

Expand Down
3 changes: 1 addition & 2 deletions packages/connection-storage/src/connection-storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ import type {
ImportConnectionOptions,
ExportConnectionOptions,
} from './import-export-connection';
import { UserData } from '@mongodb-js/compass-user-data';
import { z } from 'zod';
import { UserData, z } from '@mongodb-js/compass-user-data';

const { log, mongoLogId } = createLoggerAndTelemetry('CONNECTION-STORAGE');

Expand Down

0 comments on commit dcd723b

Please sign in to comment.