@microsoft/fast-router 0.2.16 → 0.3.0

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/.eslintrc.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "extends": ["@microsoft/eslint-config-fast-dna", "prettier"],
3
+ "rules": {
4
+ "@typescript-eslint/no-non-null-assertion": "off",
5
+ "@typescript-eslint/ban-types": [
6
+ "error",
7
+ {
8
+ "types": {
9
+ "{}": false,
10
+ "Function": false,
11
+ "Object": false
12
+ },
13
+ "extendDefaults": true
14
+ }
15
+ ],
16
+ "import/extensions": [
17
+ "error",
18
+ "always"
19
+ ]
20
+ }
21
+ }
package/CHANGELOG.json CHANGED
@@ -2,7 +2,30 @@
2
2
  "name": "@microsoft/fast-router",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 06 Apr 2022 07:10:25 GMT",
5
+ "date": "Tue, 12 Apr 2022 07:11:55 GMT",
6
+ "tag": "@microsoft/fast-router_v0.3.0",
7
+ "version": "0.3.0",
8
+ "comments": {
9
+ "minor": [
10
+ {
11
+ "comment": "Convert package to type:module",
12
+ "author": "nicholasrice@users.noreply.github.com",
13
+ "commit": "349ff265636d29e45cf336755083e4b997d6e6f2",
14
+ "package": "@microsoft/fast-router"
15
+ }
16
+ ],
17
+ "none": [
18
+ {
19
+ "comment": "Bump @microsoft/fast-element to v1.9.0",
20
+ "author": "yinon@hotmail.com",
21
+ "commit": "3e4d72447520f40d234b1df2cc70446dcef8bb47",
22
+ "package": "@microsoft/fast-router"
23
+ }
24
+ ]
25
+ }
26
+ },
27
+ {
28
+ "date": "Wed, 06 Apr 2022 07:12:42 GMT",
6
29
  "tag": "@microsoft/fast-router_v0.2.16",
7
30
  "version": "0.2.16",
8
31
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,20 @@
1
1
  # Change Log - @microsoft/fast-router
2
2
 
3
- This log was last generated on Wed, 06 Apr 2022 07:10:25 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 12 Apr 2022 07:11:55 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.3.0
8
+
9
+ Tue, 12 Apr 2022 07:11:55 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - Convert package to type:module (nicholasrice@users.noreply.github.com)
14
+
7
15
  ## 0.2.16
8
16
 
9
- Wed, 06 Apr 2022 07:10:25 GMT
17
+ Wed, 06 Apr 2022 07:12:42 GMT
10
18
 
11
19
  ### Patches
12
20
 
@@ -1,10 +1,10 @@
1
- import { Router } from "./router";
2
- import { RouterConfiguration } from "./configuration";
3
- import { Layout, RouteView, Transition } from "./view";
4
- import { ElementFallbackRouteDefinition, ElementRouteDefinition, TemplateFallbackRouteDefinition, TemplateRouteDefinition } from "./routes";
5
- import { RecognizedRoute } from "./recognizer";
6
- import { NavigationContributor } from "./contributors";
7
- import { NavigationCommitPhase, NavigationPhase } from "./phases";
1
+ import { Router } from "./router.js";
2
+ import { RouterConfiguration } from "./configuration.js";
3
+ import { Layout, RouteView, Transition } from "./view.js";
4
+ import { ElementFallbackRouteDefinition, ElementRouteDefinition, TemplateFallbackRouteDefinition, TemplateRouteDefinition } from "./routes.js";
5
+ import { RecognizedRoute } from "./recognizer.js";
6
+ import { NavigationContributor } from "./contributors.js";
7
+ import { NavigationCommitPhase, NavigationPhase } from "./phases.js";
8
8
  /**
9
9
  * @alpha
10
10
  */
@@ -1,14 +1,14 @@
1
1
  import { Constructable } from "@microsoft/fast-element";
2
- import { NavigationQueue } from "./navigation";
3
- import { Layout, Transition } from "./view";
4
- import { RouteCollection, RouteMatch } from "./routes";
5
- import { LinkHandler } from "./links";
6
- import { NavigationProcess } from "./process";
7
- import { TitleBuilder } from "./titles";
8
- import { RoutingEventSink } from "./events";
9
- import { NavigationContributor } from "./contributors";
10
- import { NavigationPhaseHook, NavigationPhaseName } from "./phases";
11
- import { RouteRecognizer } from "./recognizer";
2
+ import { NavigationQueue } from "./navigation.js";
3
+ import { Layout, Transition } from "./view.js";
4
+ import { RouteCollection, RouteMatch } from "./routes.js";
5
+ import { LinkHandler } from "./links.js";
6
+ import { NavigationProcess } from "./process.js";
7
+ import { TitleBuilder } from "./titles.js";
8
+ import { RoutingEventSink } from "./events.js";
9
+ import { NavigationContributor } from "./contributors.js";
10
+ import { NavigationPhaseHook, NavigationPhaseName } from "./phases.js";
11
+ import { RouteRecognizer } from "./recognizer.js";
12
12
  /**
13
13
  * @alpha
14
14
  */
@@ -1,5 +1,5 @@
1
1
  import { HTMLDirective } from "@microsoft/fast-element";
2
- import { NavigationCommitPhaseHook, NavigationPhaseHook, NavigationPhaseName } from "./phases";
2
+ import { NavigationCommitPhaseHook, NavigationPhaseHook, NavigationPhaseName } from "./phases.js";
3
3
  /**
4
4
  * @alpha
5
5
  */
@@ -1,8 +1,8 @@
1
- import { NavigationCommand } from "./commands";
2
- import { NavigationMessage } from "./navigation";
3
- import { NavigationPhase } from "./phases";
4
- import { RecognizedRoute } from "./recognizer";
5
- import { Router } from "./router";
1
+ import { NavigationCommand } from "./commands.js";
2
+ import { NavigationMessage } from "./navigation.js";
3
+ import { NavigationPhase } from "./phases.js";
4
+ import { RecognizedRoute } from "./recognizer.js";
5
+ import { Router } from "./router.js";
6
6
  /**
7
7
  * @alpha
8
8
  */
@@ -1,5 +1,5 @@
1
1
  import { FASTElement } from "@microsoft/fast-element";
2
- import { RouterElement } from "./router";
2
+ import { RouterElement } from "./router.js";
3
3
  declare const FASTRouter_base: new () => FASTElement & RouterElement;
4
4
  /**
5
5
  * @alpha
@@ -1,2 +1,2 @@
1
- export * from "./index";
1
+ export * from "./index.js";
2
2
  export * from "@microsoft/fast-element";
@@ -1,13 +1,13 @@
1
- export * from "./commands";
2
- export * from "./configuration";
3
- export * from "./fast-router";
4
- export * from "./links";
5
- export * from "./navigation";
6
- export * from "./contributors";
7
- export * from "./phases";
8
- export * from "./process";
9
- export * from "./query-string";
10
- export * from "./recognizer";
11
- export * from "./router";
12
- export * from "./routes";
13
- export * from "./view";
1
+ export * from "./commands.js";
2
+ export * from "./configuration.js";
3
+ export * from "./fast-router.js";
4
+ export * from "./links.js";
5
+ export * from "./navigation.js";
6
+ export * from "./contributors.js";
7
+ export * from "./phases.js";
8
+ export * from "./process.js";
9
+ export * from "./query-string.js";
10
+ export * from "./recognizer.js";
11
+ export * from "./router.js";
12
+ export * from "./routes.js";
13
+ export * from "./view.js";
@@ -1,4 +1,4 @@
1
- import { Router } from "./router";
1
+ import { Router } from "./router.js";
2
2
  /**
3
3
  * @alpha
4
4
  */
@@ -1,5 +1,5 @@
1
- import { RecognizedRoute } from "./recognizer";
2
- import { Router } from "./router";
1
+ import { RecognizedRoute } from "./recognizer.js";
2
+ import { Router } from "./router.js";
3
3
  /**
4
4
  * @alpha
5
5
  */
@@ -1,7 +1,7 @@
1
- import { NavigationMessage } from "./navigation";
2
- import { NavigationCommitPhase, NavigationPhaseFollowupAction, NavigationPhaseName } from "./phases";
3
- import { RecognizedRoute } from "./recognizer";
4
- import { Router } from "./router";
1
+ import { NavigationMessage } from "./navigation.js";
2
+ import { NavigationCommitPhase, NavigationPhaseFollowupAction, NavigationPhaseName } from "./phases.js";
3
+ import { RecognizedRoute } from "./recognizer.js";
4
+ import { Router } from "./router.js";
5
5
  declare class NavigationPhaseImpl<TSettings = any> implements NavigationCommitPhase<TSettings> {
6
6
  readonly name: NavigationPhaseName;
7
7
  private readonly commitActions;
@@ -1,4 +1,4 @@
1
- import { Route } from "./navigation";
1
+ import { Route } from "./navigation.js";
2
2
  /**
3
3
  * @alpha
4
4
  */
@@ -1,8 +1,8 @@
1
1
  import { FASTElement } from "@microsoft/fast-element";
2
- import { RenderCommand } from "./commands";
3
- import { RouterConfiguration } from "./configuration";
4
- import { NavigationContributor } from "./contributors";
5
- import { RecognizedRoute } from "./recognizer";
2
+ import { RenderCommand } from "./commands.js";
3
+ import { RouterConfiguration } from "./configuration.js";
4
+ import { NavigationContributor } from "./contributors.js";
5
+ import { RecognizedRoute } from "./recognizer.js";
6
6
  /**
7
7
  * @alpha
8
8
  */
@@ -1,9 +1,9 @@
1
1
  import { Constructable, FASTElement, ViewTemplate } from "@microsoft/fast-element";
2
- import { RecognizedRoute, RouteParameterConverter } from "./recognizer";
3
- import { NavigationCommand } from "./commands";
4
- import { Layout, Transition } from "./view";
5
- import { RouterConfiguration } from "./configuration";
6
- import { Route } from "./navigation";
2
+ import { RecognizedRoute, RouteParameterConverter } from "./recognizer.js";
3
+ import { NavigationCommand } from "./commands.js";
4
+ import { Layout, Transition } from "./view.js";
5
+ import { RouterConfiguration } from "./configuration.js";
6
+ import { Route } from "./navigation.js";
7
7
  /**
8
8
  * @internal
9
9
  */
@@ -1,5 +1,5 @@
1
1
  import { ComposableStyles, ExecutionContext, ViewTemplate } from "@microsoft/fast-element";
2
- import { Router } from "./router";
2
+ import { Router } from "./router.js";
3
3
  /**
4
4
  * @alpha
5
5
  */
@@ -1,8 +1,8 @@
1
1
  import { __awaiter } from "tslib";
2
2
  import { FASTElementDefinition, html, HTMLView, ViewTemplate, } from "@microsoft/fast-element";
3
- import { FASTElementLayout } from "./view";
4
- import { Route } from "./navigation";
5
- import { navigationContributor } from "./contributors";
3
+ import { FASTElementLayout } from "./view.js";
4
+ import { Route } from "./navigation.js";
5
+ import { navigationContributor } from "./contributors.js";
6
6
  /**
7
7
  * @alpha
8
8
  */
@@ -1,13 +1,13 @@
1
1
  import { __awaiter } from "tslib";
2
- import { DefaultNavigationQueue } from "./navigation";
3
- import { Layout, Transition } from "./view";
4
- import { RouteCollection } from "./routes";
5
- import { DefaultLinkHandler } from "./links";
6
- import { DefaultNavigationProcess } from "./process";
7
- import { DefaultTitleBuilder } from "./titles";
8
- import { DefaultRoutingEventSink } from "./events";
9
- import { isNavigationPhaseContributor } from "./contributors";
10
- import { DefaultRouteRecognizer } from "./recognizer";
2
+ import { DefaultNavigationQueue } from "./navigation.js";
3
+ import { Layout, Transition } from "./view.js";
4
+ import { RouteCollection } from "./routes.js";
5
+ import { DefaultLinkHandler } from "./links.js";
6
+ import { DefaultNavigationProcess } from "./process.js";
7
+ import { DefaultTitleBuilder } from "./titles.js";
8
+ import { DefaultRoutingEventSink } from "./events.js";
9
+ import { isNavigationPhaseContributor } from "./contributors.js";
10
+ import { DefaultRouteRecognizer } from "./recognizer.js";
11
11
  /**
12
12
  * @alpha
13
13
  */
@@ -1,5 +1,5 @@
1
1
  import { DOM, HTMLDirective } from "@microsoft/fast-element";
2
- import { Router } from "./router";
2
+ import { Router } from "./router.js";
3
3
  /**
4
4
  * @alpha
5
5
  */
@@ -1,6 +1,6 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { customElement, FASTElement } from "@microsoft/fast-element";
3
- import { Router } from "./router";
3
+ import { Router } from "./router.js";
4
4
  /**
5
5
  * @alpha
6
6
  */
@@ -1,2 +1,2 @@
1
- export * from "./index";
1
+ export * from "./index.js";
2
2
  export * from "@microsoft/fast-element";
package/dist/esm/index.js CHANGED
@@ -1,13 +1,13 @@
1
- export * from "./commands";
2
- export * from "./configuration";
3
- export * from "./fast-router";
4
- export * from "./links";
5
- export * from "./navigation";
6
- export * from "./contributors";
7
- export * from "./phases";
8
- export * from "./process";
9
- export * from "./query-string";
10
- export * from "./recognizer";
11
- export * from "./router";
12
- export * from "./routes";
13
- export * from "./view";
1
+ export * from "./commands.js";
2
+ export * from "./configuration.js";
3
+ export * from "./fast-router.js";
4
+ export * from "./links.js";
5
+ export * from "./navigation.js";
6
+ export * from "./contributors.js";
7
+ export * from "./phases.js";
8
+ export * from "./process.js";
9
+ export * from "./query-string.js";
10
+ export * from "./recognizer.js";
11
+ export * from "./router.js";
12
+ export * from "./routes.js";
13
+ export * from "./view.js";
package/dist/esm/links.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Route } from "./navigation";
1
+ import { Route } from "./navigation.js";
2
2
  /**
3
3
  * @alpha
4
4
  */
@@ -1,5 +1,5 @@
1
1
  import { __awaiter } from "tslib";
2
- import { Router } from "./router";
2
+ import { Router } from "./router.js";
3
3
  /**
4
4
  * @alpha
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import { __awaiter } from "tslib";
2
- import { isNavigationPhaseContributor } from "./contributors";
2
+ import { isNavigationPhaseContributor } from "./contributors.js";
3
3
  class NavigationPhaseImpl {
4
4
  constructor(name, route, router, commitActions, cancelActions) {
5
5
  this.name = name;
@@ -1,5 +1,5 @@
1
1
  import { __awaiter } from "tslib";
2
- import { QueryString } from "./query-string";
2
+ import { QueryString } from "./query-string.js";
3
3
  const defaultParameterConverter = (value) => value;
4
4
  /**
5
5
  * @alpha
@@ -1,8 +1,8 @@
1
1
  import { __awaiter } from "tslib";
2
2
  import { FASTElement } from "@microsoft/fast-element";
3
- import { NavigationMessage } from "./navigation";
4
- import { childRouteParameter } from "./routes";
5
- import { RouterExecutionContext } from "./view";
3
+ import { NavigationMessage } from "./navigation.js";
4
+ import { childRouteParameter } from "./routes.js";
5
+ import { RouterExecutionContext } from "./view.js";
6
6
  const routerProperty = "$router";
7
7
  // TODO: remove this from here and from fast-foundation
8
8
  // TODO: move this to fast-element so router and foundation can both use it
@@ -1,7 +1,7 @@
1
1
  import { __awaiter } from "tslib";
2
- import { ConfigurableRoute, Endpoint, RecognizedRoute, } from "./recognizer";
3
- import { Ignore, Redirect, Render } from "./commands";
4
- import { QueryString } from "./query-string";
2
+ import { ConfigurableRoute, Endpoint, RecognizedRoute, } from "./recognizer.js";
3
+ import { Ignore, Redirect, Render } from "./commands.js";
4
+ import { QueryString } from "./query-string.js";
5
5
  /**
6
6
  * @internal
7
7
  */
package/dist/esm/view.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { __awaiter } from "tslib";
2
2
  import { defaultExecutionContext, ElementStyles, html, } from "@microsoft/fast-element";
3
- import { isFASTElementHost } from "./router";
3
+ import { isFASTElementHost } from "./router.js";
4
4
  /**
5
5
  * @alpha
6
6
  */
package/karma.conf.cjs ADDED
@@ -0,0 +1,152 @@
1
+ const path = require("path");
2
+
3
+ const basePath = path.resolve(__dirname);
4
+
5
+ const commonChromeFlags = [
6
+ "--no-default-browser-check",
7
+ "--no-first-run",
8
+ "--no-sandbox",
9
+ "--no-managed-user-acknowledgment-check",
10
+ "--disable-background-timer-throttling",
11
+ "--disable-backing-store-limit",
12
+ "--disable-boot-animation",
13
+ "--disable-cloud-import",
14
+ "--disable-contextual-search",
15
+ "--disable-default-apps",
16
+ "--disable-extensions",
17
+ "--disable-infobars",
18
+ "--disable-translate",
19
+ ];
20
+
21
+ module.exports = function (config) {
22
+ let browsers;
23
+ if (process.env.BROWSERS) {
24
+ browsers = [process.env.BROWSERS];
25
+ } else if (config.browsers) {
26
+ browsers = config.browsers;
27
+ } else {
28
+ browsers = ["Chrome"];
29
+ }
30
+
31
+ const setup = "setup-browser" + (config.package ? "-" + config.package : "");
32
+ const options = {
33
+ basePath,
34
+ browserDisconnectTimeout: 10000,
35
+ processKillTimeout: 10000,
36
+ frameworks: ["source-map-support", "mocha"],
37
+ plugins: [
38
+ require("karma-mocha"),
39
+ require("karma-mocha-reporter"),
40
+ require("karma-webpack"),
41
+ require("karma-source-map-support"),
42
+ require("karma-sourcemap-loader"),
43
+ require("karma-coverage-istanbul-reporter"),
44
+ require("karma-chrome-launcher"),
45
+ require("karma-firefox-launcher"),
46
+ ],
47
+ files: [`dist/esm/__test__/${setup}.js`],
48
+ preprocessors: {
49
+ [`dist/esm/__test__/${setup}.js`]: ["webpack", "sourcemap"],
50
+ },
51
+ webpackMiddleware: {
52
+ // webpack-dev-middleware configuration
53
+ // i. e.
54
+ stats: "errors-only",
55
+ },
56
+ webpack: {
57
+ mode: "none",
58
+ resolve: {
59
+ extensions: [".js"],
60
+ modules: ["dist", "node_modules"],
61
+ mainFields: ["module", "main"],
62
+ },
63
+ devtool: "inline-source-map",
64
+ performance: {
65
+ hints: false,
66
+ },
67
+ optimization: {
68
+ namedModules: false,
69
+ namedChunks: false,
70
+ nodeEnv: false,
71
+ usedExports: true,
72
+ flagIncludedChunks: false,
73
+ occurrenceOrder: false,
74
+ sideEffects: true,
75
+ concatenateModules: true,
76
+ splitChunks: {
77
+ name: false,
78
+ },
79
+ runtimeChunk: false,
80
+ noEmitOnErrors: false,
81
+ checkWasmTypes: false,
82
+ minimize: false,
83
+ },
84
+ module: {
85
+ rules: [
86
+ {
87
+ test: /\.js\.map$/,
88
+ use: ["ignore-loader"],
89
+ },
90
+ {
91
+ test: /\.js$/,
92
+ use: [
93
+ {
94
+ loader: "source-map-loader",
95
+ options: {
96
+ enforce: "pre",
97
+ },
98
+ },
99
+ ],
100
+ },
101
+ ],
102
+ },
103
+ },
104
+ mime: {
105
+ "text/x-typescript": ["ts"],
106
+ },
107
+ reporters: [config.reporter || (process.env.CI ? "min" : "progress")],
108
+ browsers: browsers,
109
+ customLaunchers: {
110
+ ChromeDebugging: {
111
+ base: "Chrome",
112
+ flags: [...commonChromeFlags, "--remote-debugging-port=9333"],
113
+ debug: true,
114
+ },
115
+ ChromeHeadlessOpt: {
116
+ base: "ChromeHeadless",
117
+ flags: [...commonChromeFlags],
118
+ },
119
+ },
120
+ client: {
121
+ captureConsole: true,
122
+ mocha: {
123
+ bail: config["bail"],
124
+ ui: "bdd",
125
+ timeout: 5000,
126
+ },
127
+ },
128
+ logLevel: config.LOG_ERROR, // to disable the WARN 404 for image requests
129
+ };
130
+
131
+ if (config.coverage) {
132
+ options.webpack.module.rules.push({
133
+ enforce: "post",
134
+ exclude: /(__tests__|testing|node_modules|\.spec\.[tj]s$)/,
135
+ loader: "istanbul-instrumenter-loader",
136
+ options: { esModules: true },
137
+ test: /\.[tj]s$/,
138
+ });
139
+ options.reporters = ["coverage-istanbul", ...options.reporters];
140
+ options.coverageIstanbulReporter = {
141
+ reports: ["html", "text-summary", "json", "lcovonly", "cobertura"],
142
+ dir: "coverage",
143
+ };
144
+ options.junitReporter = {
145
+ outputDir: "coverage",
146
+ outputFile: "test-results.xml",
147
+ useBrowserName: false,
148
+ };
149
+ }
150
+
151
+ config.set(options);
152
+ };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@microsoft/fast-router",
3
3
  "description": "A web-components-based router.",
4
4
  "sideEffects": false,
5
- "version": "0.2.16",
5
+ "version": "0.3.0",
6
6
  "author": {
7
7
  "name": "Microsoft",
8
8
  "url": "https://discord.gg/FcSNfg4"
@@ -17,6 +17,7 @@
17
17
  },
18
18
  "main": "dist/esm/index.js",
19
19
  "types": "dist/fast-router.d.ts",
20
+ "type": "module",
20
21
  "unpkg": "dist/fast-router.min.js",
21
22
  "scripts": {
22
23
  "clean:dist": "node ../../../build/clean.js dist",
@@ -30,17 +31,17 @@
30
31
  "prettier:diff": "prettier --config ../../../.prettierrc \"**/*.ts\" --list-different",
31
32
  "eslint": "eslint . --ext .ts",
32
33
  "eslint:fix": "eslint . --ext .ts --fix",
33
- "test": "yarn test-chrome:verbose && yarn doc:ci",
34
+ "test": "yarn eslint && yarn test-chrome:verbose && yarn doc:ci",
34
35
  "test-node": "mocha --reporter min --exit dist/esm/__test__/setup-node.js './dist/esm/**/*.spec.js'",
35
36
  "test-node:verbose": "mocha --reporter spec --exit dist/esm/__test__/setup-node.js './dist/esm/**/*.spec.js'",
36
- "test-chrome": "karma start karma.conf.js --browsers=ChromeHeadlessOpt --single-run --coverage",
37
- "test-chrome:verbose": "karma start karma.conf.js --browsers=ChromeHeadlessOpt --single-run --coverage --reporter=mocha",
38
- "test-chrome:watch": "karma start karma.conf.js --browsers=ChromeHeadlessOpt --coverage --watch-extensions js",
39
- "test-chrome:debugger": "karma start karma.conf.js --browsers=ChromeDebugging",
40
- "test-chrome:verbose:watch": "karma start karma.conf.js --browsers=ChromeHeadlessOpt --coverage --watch-extensions js --reporter=mocha",
41
- "test-chrome:verbose:debugger": "karma start karma.conf.js --browsers=ChromeDebugging --reporter=mocha",
42
- "test-firefox": "karma start karma.conf.js --browsers=FirefoxHeadless --single-run --coverage",
43
- "test-firefox:verbose": "karma start karma.conf.js --browsers=FirefoxHeadless --single-run --coverage --reporter=mocha"
37
+ "test-chrome": "karma start karma.conf.cjs --browsers=ChromeHeadlessOpt --single-run --coverage",
38
+ "test-chrome:verbose": "karma start karma.conf.cjs --browsers=ChromeHeadlessOpt --single-run --coverage --reporter=mocha",
39
+ "test-chrome:watch": "karma start karma.conf.cjs --browsers=ChromeHeadlessOpt --coverage --watch-extensions js",
40
+ "test-chrome:debugger": "karma start karma.conf.cjs --browsers=ChromeDebugging",
41
+ "test-chrome:verbose:watch": "karma start karma.conf.cjs --browsers=ChromeHeadlessOpt --coverage --watch-extensions js --reporter=mocha",
42
+ "test-chrome:verbose:debugger": "karma start karma.conf.cjs --browsers=ChromeDebugging --reporter=mocha",
43
+ "test-firefox": "karma start karma.conf.cjs --browsers=FirefoxHeadless --single-run --coverage",
44
+ "test-firefox:verbose": "karma start karma.conf.cjs --browsers=FirefoxHeadless --single-run --coverage --reporter=mocha"
44
45
  },
45
46
  "devDependencies": {
46
47
  "@microsoft/api-extractor": "7.8.1",