@stencil/core 4.35.1 → 4.35.2
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/cli/index.cjs +1 -1
- package/cli/index.js +1 -1
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +7 -7
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +2 -2
- package/internal/app-data/package.json +1 -1
- package/internal/app-globals/package.json +1 -1
- package/internal/client/index.js +216 -180
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +216 -180
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +43 -13
- package/internal/package.json +1 -1
- package/internal/stencil-public-compiler.d.ts +1 -0
- package/internal/stencil-public-runtime.d.ts +5 -5
- package/internal/testing/index.js +213 -179
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +35 -5
- package/mock-doc/index.d.ts +16 -0
- package/mock-doc/index.js +35 -5
- package/mock-doc/package.json +1 -1
- package/package.json +1 -1
- package/screenshot/index.js +1 -1
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +1 -1
- package/sys/node/index.js +26 -26
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +5 -5
- package/testing/package.json +1 -1
- package/testing/puppeteer/puppeteer-browser.d.ts +5 -5
package/sys/node/package.json
CHANGED
package/sys/node/worker.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Node System Worker v4.35.
|
|
2
|
+
Stencil Node System Worker v4.35.2 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
"use strict";var f=Object.create;var d=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var E=Object.getOwnPropertyNames;var y=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty;var g=(n,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of E(t))!R.call(n,e)&&e!==r&&d(n,e,{get:()=>t[e],enumerable:!(s=p(t,e))||s.enumerable});return n};var c=(n,t,r)=>(r=n!=null?f(y(n)):{},g(t||!n||!n.__esModule?d(r,"default",{value:n,enumerable:!0}):r,n));var l=c(require("../../compiler/stencil.js")),m=c(require("../../sys/node/index.js"));var a=(n,t)=>{let r=e=>{e&&e.code==="ERR_IPC_CHANNEL_CLOSED"&&n.exit(0)},s=(e,o)=>{let i={stencilId:e,stencilRtnValue:null,stencilRtnError:"Error"};typeof o=="string"?i.stencilRtnError+=": "+o:o&&(o.stack?i.stencilRtnError+=": "+o.stack:o.message&&(i.stencilRtnError+=":"+o.message)),n.send(i,r)};n.on("message",async e=>{if(e&&typeof e.stencilId=="number")try{let o={stencilId:e.stencilId,stencilRtnValue:await t(e),stencilRtnError:null};n.send(o,r)}catch(o){s(e.stencilId,o)}}),n.on("unhandledRejection",e=>{s(-1,e)})};var k=m.createNodeSys({process}),M=l.createWorkerMessageHandler(k);a(process,M);
|
package/testing/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Testing v4.35.
|
|
2
|
+
Stencil Testing v4.35.2 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
"use strict";
|
|
5
5
|
|
|
@@ -1748,9 +1748,7 @@ ${e}`);
|
|
|
1748
1748
|
devtools: config.testing.browserDevtools,
|
|
1749
1749
|
...connectOpts
|
|
1750
1750
|
};
|
|
1751
|
-
|
|
1752
|
-
launchOpts.executablePath = config.testing.browserExecutablePath;
|
|
1753
|
-
}
|
|
1751
|
+
launchOpts.executablePath = process.env.PUPPETEER_EXECUTABLE_PATH || process.env.CHROME_PATH || puppeteer.executablePath(launchOpts);
|
|
1754
1752
|
browser = await puppeteer.launch({ ...launchOpts });
|
|
1755
1753
|
}
|
|
1756
1754
|
env2.__STENCIL_BROWSER_WS_ENDPOINT__ = browser.wsEndpoint();
|
|
@@ -2440,6 +2438,8 @@ var unwrapErr = (result2) => {
|
|
|
2440
2438
|
|
|
2441
2439
|
// src/utils/shadow-root.ts
|
|
2442
2440
|
var import_app_data = _lazyRequire("@stencil/core/internal/app-data");
|
|
2441
|
+
|
|
2442
|
+
// src/utils/style.ts
|
|
2443
2443
|
var import_platform = _lazyRequire("@stencil/core/internal/testing");
|
|
2444
2444
|
|
|
2445
2445
|
// src/utils/util.ts
|
|
@@ -6971,7 +6971,7 @@ var validateTesting = (config, diagnostics) => {
|
|
|
6971
6971
|
testing.browserArgs = testing.browserArgs || [];
|
|
6972
6972
|
addTestingConfigOption(testing.browserArgs, "--font-render-hinting=medium");
|
|
6973
6973
|
addTestingConfigOption(testing.browserArgs, "--incognito");
|
|
6974
|
-
if (config.flags.ci) {
|
|
6974
|
+
if (config.flags.ci || process.env.CI) {
|
|
6975
6975
|
addTestingConfigOption(testing.browserArgs, "--no-sandbox");
|
|
6976
6976
|
addTestingConfigOption(testing.browserArgs, "--disable-setuid-sandbox");
|
|
6977
6977
|
addTestingConfigOption(testing.browserArgs, "--disable-dev-shm-usage");
|
package/testing/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ValidatedConfig } from '@stencil/core/internal';
|
|
2
|
-
import type
|
|
3
|
-
export declare function startPuppeteerBrowser(config: ValidatedConfig): Promise<
|
|
4
|
-
export declare function connectBrowser(): Promise<
|
|
5
|
-
export declare function disconnectBrowser(browser:
|
|
6
|
-
export declare function newBrowserPage(browser:
|
|
2
|
+
import type { Browser } from 'puppeteer';
|
|
3
|
+
export declare function startPuppeteerBrowser(config: ValidatedConfig): Promise<Browser>;
|
|
4
|
+
export declare function connectBrowser(): Promise<Browser>;
|
|
5
|
+
export declare function disconnectBrowser(browser: Browser): Promise<void>;
|
|
6
|
+
export declare function newBrowserPage(browser: Browser): Promise<import("puppeteer").Page>;
|