Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mozilla/web-ext
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5a67687cafc1656b2ac1159024401bbd8a2c89f3
Choose a base ref
...
head repository: mozilla/web-ext
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cfc49ce803a9a320d06af5871a2e3aa8a8c533b5
Choose a head ref
Loading
Showing with 5,187 additions and 2,922 deletions.
  1. +1 −2 .flowconfig
  2. +1 −1 bin/web-ext
  3. +13 −0 index.mjs
  4. +4,319 −2,793 package-lock.json
  5. +45 −39 package.json
  6. +2 −1 scripts/audit-deps
  7. +1 −1 scripts/lib/config.js
  8. +7 −0 scripts/lib/mocha.js
  9. +3 −0 src/cmd/run.js
  10. +87 −3 src/extension-runners/chromium.js
  11. +20 −0 src/extension-runners/firefox-android.js
  12. +1 −1 src/extension-runners/index.js
  13. +3 −1 src/firefox/index.js
  14. +1 −1 src/firefox/remote.js
  15. +10 −1 src/program.js
  16. +43 −4 src/util/adb.js
  17. +17 −3 src/util/manifest.js
  18. +1 −1 src/util/promisify.js
  19. +2 −2 src/util/stdin.js
  20. +7 −0 tests/fixtures/import-as-esm/test-import.mjs
  21. +6 −0 tests/fixtures/require-as-cjs/test-require.js
  22. +2 −0 tests/functional/common.js
  23. +54 −0 tests/functional/test.lib.imports.js
  24. +3 −3 tests/unit/helpers.js
  25. +5 −5 tests/unit/test-cmd/test.lint.js
  26. +5 −4 tests/unit/test-cmd/test.run.js
  27. +1 −1 tests/unit/test-cmd/test.sign.js
  28. +233 −5 tests/unit/test-extension-runners/test.chromium.js
  29. +6 −4 tests/unit/test-extension-runners/test.extension-runners.js
  30. +88 −6 tests/unit/test-extension-runners/test.firefox-android.js
  31. +3 −4 tests/unit/test-extension-runners/test.firefox-desktop.js
  32. +1 −0 tests/unit/test-firefox/test.firefox.js
  33. +1 −1 tests/unit/test-firefox/test.preferences.js
  34. +11 −9 tests/unit/test-firefox/test.remote.js
  35. +98 −4 tests/unit/test-util/test.adb.js
  36. +1 −0 tests/unit/test-util/test.file-filter.js
  37. +14 −14 tests/unit/test-util/test.logger.js
  38. +59 −5 tests/unit/test-util/test.manifest.js
  39. +1 −0 tests/unit/test.config.js
  40. +1 −1 tests/unit/test.program.js
  41. +1 −1 tests/unit/test.web-ext.js
  42. +9 −1 webpack.config.js
3 changes: 1 addition & 2 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -4,9 +4,8 @@

[options]
module.system=node
esproposal.optional_chaining=enable
log.file=./artifacts/flow.log
suppress_comment= \\(.\\|\n\\)*\\$FLOW_FIXME
suppress_comment= \\(.\\|\n\\)*\\$FLOW_IGNORE

[ignore]
<PROJECT_ROOT>/dist/.*
2 changes: 1 addition & 1 deletion bin/web-ext
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node

var webExt = require('../dist/web-ext').default;
var webExt = require('../dist/web-ext');
var path = require('path');
var absolutePackageDir = path.join(path.resolve(__dirname), '..');

13 changes: 13 additions & 0 deletions index.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// This module provides a nicer ESM module wrapper around the module generated by webpack.

// NOTE: disabled eslint rules:
// - import/extensions: we need the explicit .js here to force node to look for the .js file instead of
// looking for a .mjs file.
// - import/no-unresolved: the dist/web-ext.js file has likely not build yet when this runs in the CI jobs
// and this is also covered by automated tests (which would catch an unresolved import issue here).
//
// eslint-disable-next-line import/extensions, import/no-unresolved
import webext from './dist/web-ext.js';

export default webext;
export const {cmd, main, util} = webext;
Loading