mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 05:59:39 +08:00
DEV: Update content-tag to 2.0.2 (#29071)
This commit is contained in:
parent
9eaf908e63
commit
cec5e27192
|
@ -10,7 +10,8 @@
|
|||
"@babel/standalone": "^7.25.7",
|
||||
"@zxing/text-encoding": "^0.9.0",
|
||||
"babel-plugin-ember-template-compilation": "^2.3.0",
|
||||
"content-tag": "^2.0.1",
|
||||
"content-tag": "^2.0.2",
|
||||
"decorator-transforms": "^2.0.0",
|
||||
"discourse-common": "workspace:1.0.0",
|
||||
"discourse-widget-hbs": "workspace:1.0.0",
|
||||
"ember-cli-htmlbars": "^6.3.0",
|
||||
|
@ -19,8 +20,7 @@
|
|||
"handlebars": "^4.7.8",
|
||||
"path-browserify": "^1.0.1",
|
||||
"polyfill-crypto.getrandomvalues": "^1.0.0",
|
||||
"terser": "^5.34.1",
|
||||
"decorator-transforms": "^2.0.0"
|
||||
"terser": "^5.34.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18",
|
||||
|
|
|
@ -66,10 +66,10 @@
|
|||
"patchedDependencies": {
|
||||
"ember-this-fallback@0.4.0": "patches/ember-this-fallback@0.4.0.patch",
|
||||
"babel-plugin-debug-macros@0.3.4": "patches/babel-plugin-debug-macros@0.3.4.patch",
|
||||
"content-tag@2.0.1": "patches/content-tag@2.0.1.patch",
|
||||
"decorator-transforms@2.0.0": "patches/decorator-transforms@2.0.0.patch",
|
||||
"virtual-dom@2.1.1": "patches/virtual-dom@2.1.1.patch",
|
||||
"licensee@11.1.0": "patches/licensee@11.1.0.patch"
|
||||
"licensee@11.1.0": "patches/licensee@11.1.0.patch",
|
||||
"content-tag@2.0.2": "patches/content-tag@2.0.2.patch"
|
||||
},
|
||||
"peerDependencyRules": {
|
||||
"allowedVersions": {
|
||||
|
|
|
@ -1,20 +1,5 @@
|
|||
diff --git a/pkg/standalone.js b/pkg/standalone.js
|
||||
index 7be08fc..35777bf 100644
|
||||
--- a/pkg/standalone.js
|
||||
+++ b/pkg/standalone.js
|
||||
@@ -1,7 +1,8 @@
|
||||
-import init from "./standalone/content_tag.js";
|
||||
+import { initSync } from "./standalone/content_tag.js";
|
||||
+import module from "./standalone/content_tag_bg.wasm";
|
||||
import { Preprocessor as WasmPreprocessor } from "./standalone/content_tag.js";
|
||||
|
||||
-await init();
|
||||
+initSync(module);
|
||||
|
||||
const defaultOptions = {
|
||||
inline_source_map: false,
|
||||
diff --git a/pkg/standalone/content_tag.js b/pkg/standalone/content_tag.js
|
||||
index aaefe00..bb20026 100644
|
||||
index 761f0fa84a1c545ac8908dd3c3b6d7e6c778791d..41a1112329742f8ee5351df4d56e068fceef4864 100644
|
||||
--- a/pkg/standalone/content_tag.js
|
||||
+++ b/pkg/standalone/content_tag.js
|
||||
@@ -20,6 +20,7 @@ function takeObject(idx) {
|
||||
|
@ -25,3 +10,16 @@ index aaefe00..bb20026 100644
|
|||
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
||||
|
||||
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
||||
diff --git a/pkg/standalone.js b/pkg/standalone.js
|
||||
index cb50046539df05b41dcc842ffb98e354236f8d26..10eea2962ffd804905d85057bb25d5b30b4d2e11 100644
|
||||
--- a/pkg/standalone.js
|
||||
+++ b/pkg/standalone.js
|
||||
@@ -1,5 +1,6 @@
|
||||
-import init from "./standalone/content_tag.js";
|
||||
+import { initSync } from "./standalone/content_tag.js";
|
||||
+import module from "./standalone/content_tag_bg.wasm";
|
||||
export { Preprocessor } from "./standalone/content_tag.js";
|
||||
|
||||
-await init();
|
||||
+initSync(module);
|
||||
|
1261
pnpm-lock.yaml
1261
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user