@lynx-js/web-core-canary 0.19.1-canary-20251210-37d32392 → 0.19.1-canary-20251212-12a98f76

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/CHANGELOG.md CHANGED
@@ -1,14 +1,16 @@
1
1
  # @lynx-js/web-core
2
2
 
3
- ## 0.19.1-canary-20251210102141-37d32392fef3644ef156866321a2879710671ef2
3
+ ## 0.19.1-canary-20251212065701-12a98f76be08e5c45e147867ea57fecdc968b102
4
4
 
5
5
  ### Patch Changes
6
6
 
7
+ - fix: support CSP for mts ([#1994](https://github.com/lynx-family/lynx-stack/pull/1994))
8
+
7
9
  - Updated dependencies [[`f7256d5`](https://github.com/lynx-family/lynx-stack/commit/f7256d5bd920b2f6c0cadab44455585c35621b35)]:
8
- - @lynx-js/web-mainthread-apis@0.19.1-canary-20251210102141-37d32392fef3644ef156866321a2879710671ef2
9
- - @lynx-js/web-worker-runtime@0.19.1-canary-20251210102141-37d32392fef3644ef156866321a2879710671ef2
10
- - @lynx-js/web-constants@0.19.1-canary-20251210102141-37d32392fef3644ef156866321a2879710671ef2
11
- - @lynx-js/web-worker-rpc@0.19.1-canary-20251210102141-37d32392fef3644ef156866321a2879710671ef2
10
+ - @lynx-js/web-mainthread-apis@0.19.1-canary-20251212065701-12a98f76be08e5c45e147867ea57fecdc968b102
11
+ - @lynx-js/web-worker-runtime@0.19.1-canary-20251212065701-12a98f76be08e5c45e147867ea57fecdc968b102
12
+ - @lynx-js/web-constants@0.19.1-canary-20251212065701-12a98f76be08e5c45e147867ea57fecdc968b102
13
+ - @lynx-js/web-worker-rpc@0.19.1-canary-20251212065701-12a98f76be08e5c45e147867ea57fecdc968b102
12
14
 
13
15
  ## 0.19.0
14
16
 
@@ -5,6 +5,8 @@ import { updateDataEndpoint, i18nResourceMissedEventName, I18nResources, lynxUni
5
5
  import { Rpc } from '@lynx-js/web-worker-rpc';
6
6
  import { dispatchLynxViewEvent } from '../utils/dispatchLynxViewEvent.js';
7
7
  import { createExposureMonitor } from './crossThreadHandlers/createExposureMonitor.js';
8
+ const existingScript = document.querySelector('script[nonce]');
9
+ const nonce = existingScript?.nonce || existingScript?.getAttribute('nonce');
8
10
  const { prepareMainThreadAPIs, } = await import(
9
11
  /* webpackChunkName: "web-core-main-thread-apis" */
10
12
  /* webpackMode: "lazy-once" */
@@ -40,6 +42,7 @@ async function createIFrameRealm(parent) {
40
42
  script.fetchPriority = 'high';
41
43
  script.defer = true;
42
44
  script.async = false;
45
+ script.nonce = nonce || '';
43
46
  iframe.contentDocument.head.appendChild(script);
44
47
  return new Promise(async (resolve, reject) => {
45
48
  script.onload = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-core-canary",
3
- "version": "0.19.1-canary-20251210-37d32392",
3
+ "version": "0.19.1-canary-20251212-12a98f76",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [],
@@ -25,10 +25,10 @@
25
25
  ],
26
26
  "dependencies": {
27
27
  "@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4",
28
- "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.19.1-canary-20251210-37d32392",
29
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.1-canary-20251210-37d32392",
30
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.1-canary-20251210-37d32392",
31
- "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.19.1-canary-20251210-37d32392"
28
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.19.1-canary-20251212-12a98f76",
29
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.1-canary-20251212-12a98f76",
30
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.1-canary-20251212-12a98f76",
31
+ "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.19.1-canary-20251212-12a98f76"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@lynx-js/lynx-core": "0.1.3",