@mongosh/browser-runtime-electron 3.28.0 → 3.29.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.mocharc.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "require": ["../../scripts/import-expansions.js", "ts-node/register"],
3
+ "timeout": 60000,
4
+ "reporter": "../../configs/mocha-config-mongosh/reporter.ts",
5
+ "spec": ["./{src,lib}/**/*.spec.ts"],
6
+ "exclude": ["**/node_modules/**"]
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mongosh/browser-runtime-electron",
3
- "version": "3.28.0",
3
+ "version": "3.29.1",
4
4
  "description": "Mongosh browser runtime electron",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -15,14 +15,13 @@
15
15
  "url": "git://github.com/mongodb-js/mongosh.git"
16
16
  },
17
17
  "scripts": {
18
- "test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register \"./{src,lib}/**/*.spec.ts\" --reporter \"../../configs/mocha-config-mongosh/reporter.ts\"",
18
+ "test": "mocha",
19
19
  "test-ci": "node ../../scripts/run-if-package-requested.js npm test",
20
20
  "test-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test",
21
21
  "test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci",
22
22
  "eslint": "eslint",
23
23
  "lint": "npm run eslint . && npm run prettier -- --check .",
24
- "check": "npm run lint && npm run depcheck",
25
- "depcheck": "depcheck",
24
+ "check": "npm run lint",
26
25
  "preprepublish": "rimraf ./lib",
27
26
  "prepublish": "npm run compile",
28
27
  "compile": "tsc -p tsconfig.json",
@@ -41,19 +40,16 @@
41
40
  "@mongodb-js/eslint-config-mongosh": "^1.0.0",
42
41
  "@mongodb-js/prettier-config-devtools": "^1.0.1",
43
42
  "@mongodb-js/tsconfig-mongosh": "^1.0.0",
44
- "@mongosh/service-provider-node-driver": "^3.17.7",
45
- "@types/sinon": "^7.5.1",
46
- "@types/sinon-chai": "^4.0.0",
43
+ "@mongosh/service-provider-node-driver": "^3.18.1",
47
44
  "bson": "^6.10.4",
48
- "depcheck": "^1.4.7",
49
45
  "eslint": "^7.25.0",
50
46
  "prettier": "^2.8.8",
51
47
  "rimraf": "^3.0.2"
52
48
  },
53
49
  "dependencies": {
54
- "@mongosh/browser-runtime-core": "^3.28.0",
55
- "@mongosh/service-provider-core": "3.6.5",
56
- "@mongosh/types": "^3.14.0"
50
+ "@mongosh/browser-runtime-core": "^3.29.1",
51
+ "@mongosh/service-provider-core": "3.7.1",
52
+ "@mongosh/types": "^3.14.2"
57
53
  },
58
- "gitHead": "3d71822f423fd44a7307cbf8265e5f9853795828"
54
+ "gitHead": "9a7abcedcbd9ae1bbaef46d3bad7713ecfbcee4a"
59
55
  }
@@ -24,8 +24,9 @@ describe('Electron runtime', function () {
24
24
  extraInfo: { uri: '' },
25
25
  } as any);
26
26
  messageBus = sinon.createStubInstance(EventEmitter);
27
- evaluationListener = sinon.createStubInstance(class FakeListener {});
28
- evaluationListener.onPrint = sinon.stub();
27
+ evaluationListener = {
28
+ onPrint: sinon.stub(),
29
+ } as SinonStubbedInstance<RuntimeEvaluationListener>;
29
30
  electronRuntime = new ElectronRuntime(serviceProvider, messageBus);
30
31
  electronRuntime.setEvaluationListener(evaluationListener as any);
31
32
  });
package/.depcheckrc DELETED
@@ -1,13 +0,0 @@
1
- ignores:
2
- - '@mongodb-js/eslint-config-mongosh'
3
- - '@mongodb-js/tsconfig-mongosh'
4
- - '@mongodb-js/prettier-config-devtools'
5
- - '@typescript-eslint/parser'
6
- - '@typescript-eslint/eslint-plugin'
7
- - chai
8
- - sinon-chai
9
- - sinon
10
- - eslint-plugin-mocha
11
- - eslint-config-mongodb-js
12
- ignore-patterns:
13
- - .eslintrc.js